android-manifest

How can i Use External Storage in android

六月ゝ 毕业季﹏ 提交于 2019-12-29 09:14:28
问题 This is for the first time i am using external storage in android. I need some help how can i perform different operations such as how to check whether External Storage is available or not?, How to write files or pictures into storage . 回答1: how to check whether External Storage is available or not? Use Environment.getExternalStorageState() . How to write files or pictures into storage Use standard Java I/O, working off a directory built using Environment.getExternalStorageDirectory() . 回答2:

How can i Use External Storage in android

╄→гoц情女王★ 提交于 2019-12-29 09:14:13
问题 This is for the first time i am using external storage in android. I need some help how can i perform different operations such as how to check whether External Storage is available or not?, How to write files or pictures into storage . 回答1: how to check whether External Storage is available or not? Use Environment.getExternalStorageState() . How to write files or pictures into storage Use standard Java I/O, working off a directory built using Environment.getExternalStorageDirectory() . 回答2:

Android market publishing: 'android:icon' attribute: attribute is not a string value

雨燕双飞 提交于 2019-12-29 08:18:14
问题 I'm trying to publish an app to the Android Market, I get the following error: W/ResourceType(16964): No known package when getting value for resource number 0x01030006 ERROR getting 'android:icon' attribute: attribute is not a string value Here is the AndroidMannifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="it.prezzofelice.android" android:versionCode="6" android:versionName="1.0.05" > <uses-sdk android

How do i dynamically choose which activity to launch when opening an app

孤人 提交于 2019-12-29 02:34:05
问题 I am writing an app that requires you to be logged in to a service before using it. From my understanding of android so far, you have to choose which activity to launch when you open from the launcher in the manifest. I don't know which activity i want to launch at compile time. I want the user to click the icon, then I check and see if they're logged in, then decide based on that whether to launch the login activity, or the main app activity. Is there a way to do this? 回答1: No, since you

java.lang.ClassNotFoundException on my android app but I have no idea why

这一生的挚爱 提交于 2019-12-28 23:11:12
问题 I've been trying to get started with Android programming for a while now. I'm mainly a .NET developer with no Java experience for 8 years (university). I can compile and run samples no problem but the moment I try and rename my package/class it fails. I believe I've updated the manifest and triple checked it (Copied and pasted name, selected it with Eclipse) yet it always fails with a java.lang.ClassNotFoundException: 12-02 09:12:21.088: ERROR/AndroidRuntime(233): Uncaught handler: thread

java.lang.ClassNotFoundException on my android app but I have no idea why

こ雲淡風輕ζ 提交于 2019-12-28 23:11:10
问题 I've been trying to get started with Android programming for a while now. I'm mainly a .NET developer with no Java experience for 8 years (university). I can compile and run samples no problem but the moment I try and rename my package/class it fails. I believe I've updated the manifest and triple checked it (Copied and pasted name, selected it with Eclipse) yet it always fails with a java.lang.ClassNotFoundException: 12-02 09:12:21.088: ERROR/AndroidRuntime(233): Uncaught handler: thread

Android Market filters app - Telephony?

醉酒当歌 提交于 2019-12-28 13:53:32
问题 I have the following Manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp.MainActivity" android:versionCode="1" android:versionName="1.0.0" > <supports-screens android:anyDensity="false" android:largeScreens="true" android:normalScreens="true" android:resizeable="false" android:smallScreens="true" android:xlargeScreens="true" > </supports-screens> <uses-permission android:name="android.permission.RECEIVE_SMS" android:required="false" > </uses

Android Market filters app - Telephony?

余生长醉 提交于 2019-12-28 13:53:06
问题 I have the following Manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp.MainActivity" android:versionCode="1" android:versionName="1.0.0" > <supports-screens android:anyDensity="false" android:largeScreens="true" android:normalScreens="true" android:resizeable="false" android:smallScreens="true" android:xlargeScreens="true" > </supports-screens> <uses-permission android:name="android.permission.RECEIVE_SMS" android:required="false" > </uses

For android library projects, is <uses-sdk> meaningful in manifest?

只谈情不闲聊 提交于 2019-12-28 05:51:03
问题 It's all pretty much in the title. Although I see <uses-sdk> specified in all the example library project's AndroidManifest.xml I've seen, I have a feeling it's irrelevant. In fact, I suspect that <uses-permission> is also irrelevant, as are all of the attributes of <manifest> , other than package . Can anyone confirm? 回答1: As of ADT r20 preview 3 Library manifests can be merged with the main application manifest. This is enabled in an ant build by specifying the property manifestmerger

add 'tools:replace=“Android:value”' to <meta-data> element at AndroidManifest

我的未来我决定 提交于 2019-12-28 02:26:10
问题 I'm following a tutorial in HeadFirst Android development and encountered issues after adding: private ActionBarDrawerToggle drawerToggle; The control was deprecated so I followed instructions on Stack to resolve that issue by adding com.android.support:appcompat-v7:26.0.0-alpha1 to the app modules Dependencies But now I'm getting the following build errors: Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value