Here is my code-
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
<uses-library android:name="com.google.android.maps"/>
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
When i save it , it shows an error regarding uses-library line.Why i am getting error in using uses library line? Anyone help me.
The uses library should be under application tag... and you should paste your log so we could be more helpfull
Related
My Manifest runs like this;
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme"
>
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
But deleting android:theme="#android:style/Theme.NoTitleBar" in activity, it works. It's about one month that I am struggling with this in Eclipse. Any advice will be welcomed.
After searching three hours on the web I couldn't find a solution for my app , I'm having an error that says : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED .. Any Help ! by the way I tried to test it before and it works great !! Any suggestions ?
This is the Manifest file :
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" android:name="">
<activity
android:name="com.abdullahadhaim.itc.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<activity
android:name="com.abdullahadhaim.itc.Two"
android:label="#string/title_activity_two" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Three"
android:label="#string/title_activity_three" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Four"
android:label="#string/title_activity_four" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Five"
android:label="#string/title_activity_five" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Six"
android:label="#string/title_activity_six" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Seven"
android:label="#string/title_activity_seven" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Eight"
android:label="#string/title_activity_eight" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.End"
android:label="#string/title_activity_end" >
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Looks like your manifest file is missing those lines :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abdullahadhaim.itc"
android:versionCode="1"
android:versionName="1.0">
Try to add them, then clean-up the project and build it
I am getting this problem when publishing android apk file on Google Play.
This is my AndroidManifast.xml code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xx.com"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/main_icon"
android:label="#string/app_name"
android:theme="#style/AppTheme"
>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"
/>
<activity
android:name="xx.com.MainActivity"
android:label="#style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="xx.com.Images"
android:label="#string/app_name" >
</activity>
<activity
android:name="xx.com.Awards"
android:label="#string/app_name" >
</activity>
<activity
android:name="xx.com.Magazine"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
I tried many stackoverflow.com examples but failed. Apk is working fine in device and emulator.
This may be your problem
<activity
android:name="amithanda.com.MainActivity"
android:label="#style/AppTheme" >
label should be a String value.
android:label="#string/app_name"
FYI : Developer guide gives you an idea
android:label="string resource"
I made my android application and tested it on the AVD but when I want to install it on my phone, I get "application not installed"
what could cause this problem??
here is the Manifest.xml, I don't see any thing weird in it !!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dashboard_our"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<permission
android:name="com.example.dashboard_our.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#android:style/Theme.Light.NoTitleBar" >
<activity
android:name="com.example.dashboard_our.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.dashboard_our.Hotels"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Restaurants"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.About"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.PrayTime"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Airports"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Currency_convert"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Translator"
android:label="#string/title_activity_translate" >
</activity>
<activity
android:name="com.example.dashboard_our.WeatherActivity"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.PlaceDetailsActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name=".PlaceDetails" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.dashboard_our.Todo"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Ocr"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.TodoDetailActivity"
android:label="#string/app_name" >
</activity>
<provider
android:name=".contentprovider.MyTodoContentProvider"
android:authorities="de.vogella.android.todos.contentprovider" >
</provider>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="API-KEY" />
</application>
</manifest>
any error from a DDMS? also you can try looking for .apk file from your project source and installing the app into the device.
Did you check "allow installation from non market applications" in your phone settings?
Did you remove an SD card around the time of installation?
Check if you have declared Main Activity twice inside AndroidManifest.xml. Delete one.
Another solution is if you haven't signed your app, you need to sign it. As the docs say All applications must be signed. The system will not install an application on an emulator or a device if it is not signed. Go here for more information: Android App Signing
I solved it, the problem was in my phone, I had to format my phone in order to work
I am developing an android application and one part of it is to check whether the wifi of the phone is enabled or not.
I am running the application directly on mobile phone.These are some errors
error opening trace file: No such file or directory (2)
Refusing to reopen boot DEX 'system/framework/hwframework.jar'
This is my manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.demo"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.demo.Test_allActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I am very new to android , and can't figure out the solution. Thanks is advance
I guess you need the ACCESS_NETWORK_STATE in your manifest.
Need to check your main class(MainActivity) file is mentioned or not in 'Manifest.xml'.
<activity
android:label="#string/app_name"
android:name="com.androidexample.demo.MainActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>