Here is my code I wanted to integrate Flurry Banner Ads at the bottom and Top of My App with their NEW SDK.. Please help
My Manifest.xml file
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Start of Flurry Permission-->
<activity
android:name="com.flurry.android.FlurryFullscreenTakeoverActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">
</activity>
<!-- End of Flurry Permission -->
My Launcher.java Activity
import com.flurry.android.FlurryAdType;
import com.flurry.android.FlurryAds;
import com.flurry.android.FlurryAdSize;
import com.flurry.android.FlurryAgent;
import com.flurry.android.FlurryAdListener;
public class MainActivity extends Activity {
ProgressDialog progress;
private Context mContext;
FrameLayout mBanner;
public static String apiKey ;
private String adSpace;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle bundle = getIntent().getExtras();
mBanner = (FrameLayout) findViewById(R.id.banner);
mContext = LauncherActivity.this;
apiKey = getResources().getString(R.string.flurry_api_key);
adSpace = getResources().getString(R.string.adSpaceName);
@Override
protected void onStart() {
// TODO Auto-generated method stub
super.onStart();
FlurryAds.fetchAd(mContext, adSpace, mBanner,
FlurryAdSize.BANNER_BOTTOM);
}
My MainScreen.xml Layout
<FrameLayout
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"/>
My String File
<string name="flurry_api_key">3HVSXVC8XTBT8NCN5SCB</string>
<string name="adSpaceName">MyAdSpace Bottom</string>
The ad's are not displaying on my apps from this codes please let me know where is the problem and tell me how to solve it.
I am using FlurryAds-5.6.0.jar SDK. The error i m getting is Unfortunately Application Has Stop. without showing error in error catalog