configChanges value of the com.google.ads.AdActivity must include
Errors:
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include screenLayout.
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include uiMode.
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include screenSize.
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize.
E/Ads(333): You must have AdActivity declared in AndroidManifest.xml with configChanges.
Solution:
Try to using a lower version of the GoogleAdMobAdsSDK ADS SDK in project:
GoogleAdMobAdsSDK-4.0.4
How add SDK to project
Add activity to AndroidManifest.xml
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include screenLayout.
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include uiMode.
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include screenSize.
E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize.
E/Ads(333): You must have AdActivity declared in AndroidManifest.xml with configChanges.
Solution:
Try to using a lower version of the GoogleAdMobAdsSDK ADS SDK in project:
GoogleAdMobAdsSDK-4.0.4
How add SDK to project
Add activity to AndroidManifest.xml
// .............. blah
<uses-sdk android:minSdkVersion="4"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application android:icon="@drawable/dicts_ico" android:label="@string/app_name"
>
<meta-data
android:value="a12345_your_number"
android:name="ADMOB_PUBLISHER_ID" />
<activity android:name=".MainStartMenu"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Google ads -->
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation"/>
// ......... blah
396LW NO topic_id
AD
Další témata ....(Topics)
Samsung Galaxy Ace nejlepší cena od 4 500 KCZ Kč (únor.2012)
Samsung Galaxy Ace je chytrý telefon s operačním systémem Android.
Samsung Galaxy Ace je (22.února2012) 4. nejpoužívanějším chytrým telefonem u programu Sky Map viz tabulka.
Galaxy Ace je 3.5G smartphone nabízí i quad-band GSM. Displej je 3,5 palcový TFT kapacitní dotykový LCD HVGA s (320x480) rozlišením. K dispozici je také 5 megapixelový fotoaparát s LED bleskem. Je schopny zaznamenat video v rozlišení QVGA (320x240) a VGA s (640x480) rozlišením. Ace je dodáván s 1350mAh Li-Ion baterií. Ace běží s OS Android 2.2 Froyo a lze jej upgradovat na Android 2.3.6 Gingerbread.
Samsung Galaxy Ace photo pic image
Zdroj obrázku: wikipedia
Samsung Galaxy Ace je chytrý telefon s operačním systémem Android.
Samsung Galaxy Ace je (22.února2012) 4. nejpoužívanějším chytrým telefonem u programu Sky Map viz tabulka.
Galaxy Ace je 3.5G smartphone nabízí i quad-band GSM. Displej je 3,5 palcový TFT kapacitní dotykový LCD HVGA s (320x480) rozlišením. K dispozici je také 5 megapixelový fotoaparát s LED bleskem. Je schopny zaznamenat video v rozlišení QVGA (320x240) a VGA s (640x480) rozlišením. Ace je dodáván s 1350mAh Li-Ion baterií. Ace běží s OS Android 2.2 Froyo a lze jej upgradovat na Android 2.3.6 Gingerbread.
Samsung Galaxy Ace photo pic image

Zdroj obrázku: wikipedia
Read file from URL to array of byte and convert to UTF-8 String Android examle source code.
URL urlLoc = new URL("//myweb.com/myfile.html");
URLConnection conexion = urlLoc.openConnection();
conexion.setConnectTimeout(4000);
conexion.setReadTimeout(1000);
conexion.connect();
// downlod the file
InputStream input = new BufferedInputStream(urlLoc
.openStream());
StringBuffer responseBuffer = new StringBuffer();
byte[] byteArray = new byte[1024];
while (input.read(byteArray) != -1)
{
String res = new String(byteArray, "UTF-8");
responseBuffer.append(res);
byteArray = null;
byteArray = new byte[1024];
}
String response = responseBuffer.toString().trim();
private SensorManager mSensorManager;
private PowerManager mPowerManager;
private WindowManager mWindowManager;
private Display mDisplay;
// onCreate
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Get an instance of the SensorManager
mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
// Get an instance of the PowerManager
mPowerManager = (PowerManager) getSystemService(POWER_SERVICE);
// Get an instance of the WindowManager
mWindowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
mDisplay = mWindowManager.getDefaultDisplay();
setContentView(R.layout.main); // main.xml or your xml file name
}
Motorola Droid X cena od 3 000 KCZ Kč (únor.2012)
Spokojenost uživatelů nadprůměrná.
Motorola Droid X je chytrý telefon s operačním systémem Android.
Motorola Droid X je (22.února2012) 8. nejpoužívanějším chytrým telefonem u programu Sky Map viz tabulka.
Android 2.1
Display 854 x 480 pixelů
8 megapixel fotoaparát dual LED flash
720p HD video recording
Music and Video player
8 GB paměť
rozšíření paměti 32 GB
WiFi/DLNA
TI OMAP3630 processor – 1GHz
4.3-inch large display
Motorola Droid X photo pic image
Zdroj obrázku: wikipedia
Spokojenost uživatelů nadprůměrná.
Motorola Droid X je chytrý telefon s operačním systémem Android.
Motorola Droid X je (22.února2012) 8. nejpoužívanějším chytrým telefonem u programu Sky Map viz tabulka.
Android 2.1
Display 854 x 480 pixelů
8 megapixel fotoaparát dual LED flash
720p HD video recording
Music and Video player
8 GB paměť
rozšíření paměti 32 GB
WiFi/DLNA
TI OMAP3630 processor – 1GHz
4.3-inch large display
Motorola Droid X photo pic image

Zdroj obrázku: wikipedia
R.string to string Android source code
R.array to string [] Android source code
R.array to string [] Android source code
String s = getResources().getString(R.string.my_string); // Hello world!!
String[] arrayOfStrings = getResources().getStringArray(R.array.my_array); // one, two
<xml version="1.0" encoding="utf-8">
<resources>
<string-array name="my_array">
<item>one</item>
<item>two</item>
</string-array>
<string name="my_string">Hello world!!</string>
</resources>
Editace: 2014-02-15 20:33:05
Počet článků v kategorii: 396
Url:configchanges-value-of-the-com-google-ads-adactivity-must-include