Tag Archives: androidmanifest

1,113 views

Who has higher priority build.gradle or AndroidManifest Android Studio

build.gradle in module have higher priority then AndrodiManifest.xml Try this. AndroidManifest.xml have code: <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" /> build.gradle have code: defaultConfig { applicationId "cz.okhelp.words" minSdkVersion 9 targetSdkVersion 19 versionCode 107 versionName "1.0.7" } Warning in AndroidManifest.xml: This targetSdkVersion value (23) … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on Who has higher priority build.gradle or AndroidManifest Android Studio
801 views

IllegalArgumentException Unknown Uri content SearchableDict

If you change the package name, you have to add new package name in: DictionaryProvider.java   public class DictionaryProvider extends ContentProvider { String TAG = "DictionaryProvider";   // public static String AUTHORITY = "com.example.android.searchabledict.DictionaryProvider"; // change to your new package … Continue reading

Posted in Bugs, warnings, errors | Tagged , , | Comments Off on IllegalArgumentException Unknown Uri content SearchableDict
2,449 views

Set Default Start Up Activity Class Java AndroidManifest xml

Insert into your default start up activity tag inten-filter tag with action MAIN and category LAUNCHER <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.blabol" android:versionCode="1" android:versionName="1.0" >   <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19" />   … Continue reading

Posted in Android Examples Code | Tagged | Comments Off on Set Default Start Up Activity Class Java AndroidManifest xml
2,220 views

On orientation changed view button textview not visible Android

Try add to AndroidManifest.xml configChanges for your Activity android:configChanges=”keyboardHidden|orientation|screenSize” <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" >

Posted in Android Examples Code | Tagged , | Comments Off on On orientation changed view button textview not visible Android
4,077 views

Call requires API level xx current min is xx android

Call requires API level 16 (current min is 4): android Change The SDK version in AndroidManifest.xml to higher <uses-sdk android:minSdkVersion="4" /> // <uses-sdk android:minSdkVersion="8" />

Posted in Android Examples Code | Tagged , , | Comments Off on Call requires API level xx current min is xx android
4,404 views

Unable to find explicit activity class Android Eclipse error

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.my_package/com.example.my_package.MainClass}; have you declared this activity in your AndroidManifest.xml? Is MainClass.java in AndroidManifest as a activity ? AndroidManifest.xml example <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.my_packag" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="7" />   <application android:icon="@drawable/icon" … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged , , | Comments Off on Unable to find explicit activity class Android Eclipse error
3,822 views

Admob in Android emulator problem

If admob doesn’t show in application tested on emulator try this solution: Check AndroidManifest.xml 1.) user-permission <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 2.) activity <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/> 3.) metadata <meta-data android:value="my_ad_id_unit" android:name="ADMOB_PUBLISHER_ID" /> This is AndroidManifest.xml example. You have to … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged , , | Comments Off on Admob in Android emulator problem
4,095 views

No title bar Android application without titlebar style Theme NoTitleBar Android example

Set in AndroidManifest.xml android:theme=”@android:style/Theme.NoTitleBar” AndroidManifest.xml example source code. AndroidManifest.xml   <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myexample.without_titlebar"> <application android:label="My app"> <activity android:name="NoTitleBar" android:theme="@android:style/Theme.NoTitleBar" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>

Posted in Android Examples Code | Tagged , , , | Comments Off on No title bar Android application without titlebar style Theme NoTitleBar Android example
50,863 views

Start Activity from ListView item click Android example

How start certain Activity if user clicked to ListView item Start Activity from list – launches other activities from list – latest variant!!!! public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);   try { setContentView(R.layout.main); … Continue reading

Posted in Android Examples Code | Tagged , , , , , , | Comments Off on Start Activity from ListView item click Android example
5,339 views

Permission settings of Android application example

In your project AndroidManifest.xml you can set permission of Android application example source code. For example if you want allow your application connection to INTERNET you have to permit this in AndroidManifest.xml. WebViev show error: Website Not Available you have … Continue reading

Posted in Android Examples Code | Tagged , , , | Comments Off on Permission settings of Android application example