Hi,i done my application in portrait configaration but when load my application in to device its coming portraint configaration but i keep in landscape mode missing some controls.so i want to add scroll view to screen when changing the config to landscape.how i can add scrollview to screen
...
HI
Plz guide, In android how can i pass my string (less then 160 char) to default builtin sms applicaion or queue, who must do rest of process.
I meant, from my activity i want to call buitin sms application, & pass my sms string to that , then builtin application will be responsible to rest of activity like sms sent retry,
?>??
...
I am testing the AdMob for Android SDK. I can't set the admob:testing="true" because the admob attribute is unknown.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:admob="http://schemas.android.com/apk/res/org.ifies.android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
...
I'm using an horizontal progress bar in my Android application, and I want to change its progress color (which is Yellow by default). How can I do it using code (not XML)?
...
All, I've googled over and over again to find a solution and while I found a bug regarding camera release, etc I can not for the life of me seem to get the cam code to work. Every time I executed takePicture the system simply hangs, sometimes it calls the PictureCallback, but most of the time it simply hangs.
Weird issues about not bei...
I have an Android application (java) that was working fine when compiled with the Android 1.6 SDK using the following code from the android.provider.Contacts class:
Uri baseUri = Contacts.Phones.CONTENT_FILTER_URL;
When the 2.0 SDK came out, the android.provider.Contacts class was depreciated and replaced with android.provider.Contact...
Hi,
how can i check the current status of the GPS receiver?
I already checked the LocationListener onStatusChanged method but somehow it seems that is not working, or just the wrong possibility.
So basically i just need to know if the gps icon at the top of the screen is blinking (no actual fix) or solid (fix is available)
thx!
...
I have a main class filled with a cursor adapter:
public class MainMenu extends ListActivity{
...
private void updateData(){
...
SimpleAdapter notes = new SimpleAdapter(this, array, R.layout.row_task, from, to); setListAdapter(notes);
}
}
I need to know when this list has finnished to inflate it, so I've discovered this methods:...
I've got an app using MapActivity.onCreate() to initialize the map and show it on screen. Now I would like to add a menu to my app. From what I've found out I can't add a menu from MapActivity and need to use Activity (correct me if I'm wrong).
Now I have no idea how to "initialize" the map from my Activity-class.
And how would I have ...
A friend and I are currently working on a turn-based game with chat with both desktop browser and Android clients, with Google App Engine as the server.
We're using the Java API for GAE and using HTTP for communication with the server. We've implemented simple chat functionality, and we're getting undesirable latencies 1-3 seconds from...
In order to get XML data from a server repeatedly, I'm attempting to use AsyncTask and Timer as per Mark Murphy's suggestion.
I get the following error:
01-07 16:11:26.705: ERROR/AndroidRuntime(729):
Caused by: java.lang.RuntimeException:
Can't create handler inside thread that has not
called Looper.prepare()
I'm using SDK 1.5 wit...
Hi,
I am creating an android application which has to execute web requests in the background and then handle the received data and modify the user interface according to the server response.
The goal of posting requests and handling data in the background is to avoid the freezing of user interface. Currently however I notice that the u...
I'm trying to use BouncyCastle with android to implement ECDH and EL Gamal. I've added the bouncycastle jar file (bcprov-jdk16-144.jar) and written some code that works with my computers jvm however when I try and port it to my android application it throws:
java.security.NoSuchAlgorithmException: KeyPairGenerator ECDH implementation n...
Hi!
I'm creating a file in data/data/myPackage/files/ :
file = new File( getFilesDir() + "/file.txt");
I'm absolutely sure that the file is created.
Right after its creation I call:
file.canWrite();
and the result is true.
When I try to use that file
I get: "Permission Denied".
In Eclipse, in DDMS, this file permissions are...
So here's the problem. I am displaying a big image in ImageView and need to find it's position relative to the image. Like this:
╔═══════════════════════════════╗
║ Image ║
║──>╔═════════════╗ ║
║ ║ ImageView ║ ║
║ ║ ║ ║
║ ╚═════════════╝ ║
║ ...
I am a Java professional. Now I'd like to write an application for the Android platform.
What is the initial step I need to take?
How does my Java programming experience help in this case?
...
I'm having a strange problem with Android 1.6
I have an application that has a ListView (found in Activity #1).
The user can click on one of the rows in the ListView and is taken to a 2nd Activity (Activity # 2).
User can then use the back button to go back to the ListView.
The problem is that if the user scrolls down the list af...
It looks like Android won't natively support in-app purchases for a while, and when it does there might be a huge user base with devices that don't support them.
What's the best way to implement iPhone-like (additional content or services) in-app purchases in Android using the Android Market if possible?
The solution should consider i...
In the emulator I can't seem to write to the attached SDCard. The following code always spits out the "can't write root" log message, but not the "can't read root" one.
File routesRoot = Environment.getExternalStorageDirectory();
if (!routesRoot.canWrite())
Log.v(getClass().getSimpleName(), "can't write root");
if (!routesRoot.canRe...
Hi. Is someone from Google able to advise when the Android SDK is likely to include a public API for reading/writing event data to the user's calendar?
Searching the forums I see that this is a much desired feature by many developers but I haven't seen any indication as to when (or even if) this need will be addressed.
Thanks in advan...