android

How to Create Customize layout?

Hai All, How to create Customize Layout in Android ? My plbm is i m dispalying Images in grid view, when the user reached the last image in the gird view , It must display " click here to View More Images" Message. ...

version with 1.5 to run on device with version 2.1

I am a beginner to android, just i am developing android applications and testing in on htc magic(version 1.5). Will it bring any problem on running with higher version of android devices. Thanks for reply in Advance ...

Android: Open Browser with Supplying Session Cookie

Hi, I'm currently looking for a way to launch the default browser application on Android and pass a session cookie to it. My application communicates with an external API over which I have no control using HttpClient, then passes the user to the site for the final stages. I am aware that this is probably possible using a WebView, Howe...

Android OPenGL+ XML integration...

I'm making a media player application in android where one part of my screen has a animation which is made in OpenGL (ofcourse with Android/JAVA).....So my screen consists of 2 parts: 1) Left hand side consists of all the widgets (using xml). 2) Right hand side consists of the animation made in OpenGL. I'm able to make the Gui (xml ...

Create a mobile app that listens to incoming phone call events

As the title suggests, I would like to create a mobile app that runs in the background and catches "incoming call" events. Moreover I would like to use a Cross-Platform Development Tool to do this. I looked at three tools: PhoneGap, Rhomobile and Appcelerator. But I couldn't find any documentation or examples that suggest they support s...

Android App should NOT launch on receiving Intent.

Hi, I have written an Android Application and the generated .APK file I uploaded in Android Market. So, a User can download that apk and install in his device.How can I restrict my apk to launch , if he calls from other application through Intent. That means my application should not respond to any intents from other outside Applicatio...

Receiver instantiation

Hi, What happens if I set android:enabled="false" in Receiver tag of AndroidManifest file....?? BroadcastReceiver no more useful..,It can't receive the intents which matches its IntentFilter....? ...

Android OnLongClickListener strange / unreliable behaviour

Hi there :) I'm currently fighting against the OnLongClickListener on Android Api Lvl 8. Take this code: this.webView.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { System.out.println("long click"); return true; } }); It works perfectly. I can press anywh...

android: default language set to asian

hello, why is the default language set in my android emulator some asian language? where can i set the keyboard to english? thanks! ...

how to set zoom control garvity via coding in android

Hi friends, i am using zoom control in webview using webview.getSettings().setBuiltInZoomControls(true); this zoom control only displayed in layout left,i want to zoom control display in center of the screen,how to set zoom control gravity in coding don't like xml zoom control coding... Thanks all ...

Newbie problem: Unable to launch Android application in console

Hi, as a newbie, I tried out the HelloAndroid example at developer.android.com. After apgrading the UI to XNL layout as described, I get these error messages in the console log: [2010-08-26 11:44:49 - HelloAndroid] WARNING: Application does not specify an API level requirement! [2010-08-26 11:44:49 - HelloAndroid] Device API version is...

addJavascriptInterface : object method not found

I wrote new example similar to WebView Demo and registered my Java object with addJavascriptInterface() to webview. and in Java script I am able to call java methods. Later, I modified android browser code and tried to add Object to javascript,in a same way. but object members are not accessible in javascript and I get runtime error li...

How to set horizontal scroll menu bar.

friend's, I have task to set menus in horizontal scrolling with images at two ends to show availability of menus. I did it by using gallery view, but i need to place an seperator (Vertical Line) between menus,i can't able to get the seperator in between the gallery. How can i get it. i need the view below -----------------------...

I get Parent directory of file is not writable for an SDCard export

I have this code: public static class ExportDatabaseFileTask extends AsyncTask<String, Void, Boolean> { private Context ctx; /** * */ public ExportDatabaseFileTask(Context ctx) { super(); this.ctx = ctx; } // automatically done on worker thread (separate from UI thread) protected Boole...

Using intent to use Camera in android

hi, I am using the following code to use camera by using intent. In the parameter of intent i am passing ndroid.provider.MediaStore.ACTION_IMAGE_CAPTURE. It is able to open camera. But the problem is that it stops unxepectedly... The problem is that it gives null pointer exception on OnActivityResults... I have used the below code... pu...

android emulator access server in local network

hello, i am having difficulties to have my android app running in the emulator to connect to servers in my local network. i am getting a java.net.UnknownHostException but the servers are resolvable fine from the machine where the emulator is run. thanks for any help on this topic! ...

HDPI and MDPI Problem

Hi all, All these days i used to test my application on my HTC Legend (2.1 OS) only, and i had all my images resources in drawable-hdpi folder.. and everything worked fine and today i wanted to test my Application on Android 1.5, so i recreated all the images with lower resolution and kept it under drawable-mdpi folder, so now i have H...

how can i find latitude and longitude using address?

i want show the location in google map... i have address...anybody help me to get the latitude and longitude using the address... ...

Android: WebView's method goBack() shows a blank page

Hi, I have an android application that loads web pages in an activity with a WebView. I am using the retrieving the page manually and using WebView's loadDataWithBaseURL to display it on screen. Everything there is fine. Now, i am trying to override the Back button press to simulate going back in the WebView history stack. I am able to...

VerifyError, or using overridePendingTransition while maintaining compatibility?

I've got an application that uses overridePendingTransition to do some custom animations upon transitioning from one activity to the other. This was made available in Android 2.0, but I want to make the application work on Android 1.6. I figured if I just checked that android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.DONU...