android-manifest

Android internal autoscaling feature only for large screens

Hi, i am developing a game with canvas. I want use the Android internal autoscaling feature (anydensity=false;) only for large density screens. Is it possible to enable this graphics (in the drawable folder) scaling function only for large screens. For smallscreens my Game Engine does automatically manage the presentation. I attempted ...

Problem registering for C2DM in Android

Hi there, I'm trying to test the C2DM framework. I got the confirmation email a couple of days ago and then tryied to create a client that could register. For that purpose, I created a simple client following the steps described in this tutorial: http://code.google.com/intl/es-419/android/c2dm/index.html. The Android manifest file cont...

How does Android determine whether to move the layout up when showing the softkeyboard?

How does Android determine whether to move the layout up when showing the softkeyboard? Note: I am aware that the activity property android:windowSoftInputMode="adjustResize|adjustResize|adjustUnspecified" exists, as described here http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft , but in my case it doesn't...

How to add a file to an Android project, deploy it to the device, and then open it?

I have an Android (2.2) project in Eclipse (Helios). I want to add an MP3 file to the project so that the MP3 file is deployed to the device along with the application. I then would like to open the file as a File object, which means I'd need to know the full path (?) to the file on the device, but I don't know how paths are specified ...

android manifest build number

I was wondering if it is possible to have Eclipse automatically increment the build version number inside of the Manifest each time that I either build or run an Android app. Has anyone ever done something like this? ...

styles.xml from device providers

Is it possible to find the modified versions of //android/framework/base/core/res/res/values/styles.xml that phone manufactures provide (HTC Sense, Motorola Motoblur, Samsung TouchWiz, etc)? We have a partner developing an android app for us so I do not know how they implemented it, but we have seen issues on the Sense and Motoblur with...

Getting Package string from Android manifest

Hi All This should be simple but I can't find any info on this... I simply want to read the package value in the android manifest... <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="THIS" the reason is simple I have to call context.getResources().getIdentifier(...) and I need the package. since this c...

Android intent-filter for http scheme

I built an Android application that requires OAuth. All was working well using a custom scheme call back which is intercepted by Android. It seems that Yahoo have changed the goal posts and now the custom scheme is not accepted by Yahoo. I am now looking at possible alternate approaches. My first attempt is to use a normal http scheme...

Android HelloViews Spinner Tutorial R.id and R.array can not be resolved.

Hello. I am having trouble with the Android HelloViews Spinner Tutorial. The error in HelloSpinner.java states that "R.id cannot be resolved" and "R.array cannot be resolved". The error in AndroidManifest.xml states that there is "No resource found that matches the given name (at 'label' with value '@string/app_name')" and "No resource f...

Android: Force closing for lack of permission which is located in the manifest

Hello, I'm trying to delete a bookmark using contentResolver.delete() and I get force close for missing permission "com.android.broswer.permission.WRITE_HISTORY_BOOKMARKS" but it's in the manifest... this is in the manifest (outside <application></application>) <uses-permission android:name="com.android.browser.permission.READ_HISTORY...

Android: Force close when trying to call Preferences.java

Hello, Been trying to call Preferences.java class using: Intent settingsActivity = new Intent(getBaseContext(), Preferences.class); startActivity(settingsActivity); I have this in my Manifest.xml (outside the main app class activity): <application> ........ <activity android:name=".Preferences" android:label="Preferences"> ...

Uses-feature accelerometer in the manifest

With the new tag of the AndroidManifest, is it also possible to define my application requires an accelerometer? It seems to me only light sensor and proximity sensor are supported in the tag. Thanks in advance. ...

check permission and priority value about installed app

i want to know how to check permission about app are installed in my device. also some app priority value is high,i doubt it is dangerous,i want to give user a cue. how to get the priority value about apps,coule you give me some code 、example or suggestion,I don't have any clues,thank you ...

Intent definition in Manifest file

I would like to start my own SMS editor when user selects "Send message" from contacts application. How do I define intent in manifest file to allow passing contact details to the editor? Thanks a lot ...

Android MapView is not loading

Hello. Im having problems with the MapView because its not loading the map. I've been reading around, and find many people with the same issue. I checked all the possible issues and it seems that everything is ok :P On the Manifest, the is inside the tag I have the before the tag In the emulator the 3G is working properly since i ...

Could you please help me in displaying a popup when a key is press in softkeyboard in android

How can i display custom popup when any key is clicked in android? Can any one tell which part of code i need to change for doing the same in SoftKeyboard sample? Thanks & regards, Reddy Pratap R ...

Detect my own app's version or use existing update notifier when publishing on my website and not the market

I would like to notify the users when there is an update because the updates will be coming from my own website and not the market. However, do not want to have to update two places. Either that or I would like to share the existing update notifier that is included with android. I am planning on uploading the app to one of our websites ...

point the drawable from another application in AndroidManifest.xml

I need to set the ic_launcher_browser icon from the Browser Application in my package for a particular Activity in AndroidManifest.xml (android:icon="") How do i do that?? Like android:icon="@android:drawable/xyz" Can't we specify android:icon="@packagename:drawable/xyz" Regards, Sanat ...

Cannot access the internet while i debug android on device

Hi, I'm trying to develop an android application that uses network connection. The server is up and running, but when i am trying to access it from the device that runs the android app (in debug mode-using eclipse) it outputs a message that 'cannot find the server' after a UnknownHostException occurs! I have tested the server with a jav...

Detect my apps own android:versionCode at run time

Is there a way for my app to know the android:versionCode from AndroidManifest.xml or do I have to create a separate constant in one of my classes? ...