android

Some packages were found but are not compatible updates

I have trouble in installing the Android SDK to Eclipse at the course of registering available packages. What should I do :P ...

How to tile a drawable file in ImageView?

Like the title. I have a small drawable file, but the ImageView is much larger than it. How I can fill it without left any extra space? Thanks in advance. ...

E-book reader application for android 1.6

I am planning to develope an ebook reader application for android 1.6. Although it is said to be an e-book reader, i would like that application to read a stack of jpeg files and read as an e-book. By working like that, is it possible to add TOC and search features like other e-book reader applications? ...

eclipse won't create adt project due to 'access denied'

I installed JavaEE, JDK, Eclipse 3.5.x (Galileo), the Android Starter SDK, and the current ADT all with no problems. However, when I try to walk through the 'Hello Android' tutorial, I bring up the New Android Project wizard, fill it in and hit 'Finish'. After a moment, it comes back with a message saying there was a problem at path X...

How to load images from SDCard into Image Switcher?

Does anyone has the example of loading images from the sdcard to Image Switcher? I'm a beginner of android here. Willing to learn. ...

Android - how to intercept a form POST in android WebViewClient on API level 4

I have a WebViewClient attached to my WebView like so: webView.setWebViewClient(new MyWebViewClient()); Here is my implementation of MyWebViewClient: private class MyWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { webView.loadUrl(url); return true; } } I g...

OnTouch in MapView only fires the first time.

I'm trying to implement a double-tap zoom like function in my MapView. The event always fires the first time, but never subsequent times. Below is my code. I have a feeling it has something to do with the map controller getting lost after the first time the event is fired. import android.os.Bundle; import android.view.MotionEvent; impor...

My app just crashed, how can I get the crash log?

I am testing my app on my actual device, and it seems like there is a memory leak. The app has crashed after a couple of hours. How can I pull up the log of the crash? I plugged my phone in via USB and tried: adb logcat -v but I get the following message in my terminal: - waiting for device - error: more than one device and emulator...

Implement gridview in Viewflipper

I have custom gridview with icon & text, gridview is displayed in 2 columns now i want to implement it using viewflipeer i.e every time I fling, it has to display a cell each time. when i fling to left, it has to show left cell item, like wise left,right, top, bottom can any body help?? Thanx in advance Chiranjeevi ...

How can I rename my android device?

It has a really long cryptic name. I want to rename it to something shorter. ...

Get Configured Email Account In Android 1.5

Hi All I need to Detect My android Device is configured with email or not in Android 1.5. i have Seen the class AccountManager but it is useful for only 2.0 not 1.5. Please any one tell what is class for 1.5 to Detect the Email Client of Device ...

Android SyncAdapter use case

What we are doing currently? We have some structured, textual data on a server which is exposed using web services(RESTful). My application polls this server regularly(AlarmManagerService) to fetch the data and save it on local database(sqlite). Also, a user is authenticated and authorized beforehand for access. Questions: There is...

Thread Error needs to be found

I am placing a code below, I have created a local Thread and getting Error at the last Closing Braces, Can anybody please sort it out for me. Thread dt = new Thread(this){ public void run() { Looper.prepare(); GetCurrentLocation loc = new GetCurrentLocation(RestaurantFinder.this); loc.setLocParams(); ...

Does Android kill local variables after some time?

I seem to be getting a crash after a long period of time on my device: E/AndroidRuntime( 1115): FATAL EXCEPTION: main E/AndroidRuntime( 1115): java.lang.RuntimeException: Unable to resume activity {org.stocktwits.activity/org.stocktwits.activity.Main}: java.lang.NullPointerException E/AndroidRuntime( 1115): at android.app.ActivityThr...

How to hide virtual keyboard in android

i used this code InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(EditView.getWindowToken(), 0); this code works fine in a class which extends Activity but i need to hide virtual keyboard in a class which extends LinearLayout. ...

Can I copy-paste this code snippet into my Public Domain app?

I find this code useful and want to copy-paste it into my application which is licensed as public domain. It is the Android blog, they often show useful code snippets. There is no way to contact the author, and the only license info I can see is "©2008 Google Inc. All rights reserved." Should I: Stop worrying and just copy-paste? Rei...

Renaming package and version names of Android project in eclipse

Hi, I have an Android project created in eclipse.I want to slightly modify this(package names,etc) and make another app.I want both apps to be installed on phone.How to take care of versioning an app name.How should i go about renaming package and project names? Thanks Dheepak ...

broadcast receiver for missed call in android.

Hi, can anyone know what is the intent for missed call. Actually i want to send sms on missed call and incomming call in my application. ...

output buffer empty until tcpdump is killed.

I am running the tcpdump on my android emulator and since the tcpdump is running in the background there isnt any data in the buffer and hence the application is stuck at this point. here is the part of the code: else if (tcpdumpButton.isChecked()) { try { Process process1 = Runtim...

Handlers in Android Programming

Hello All! I have got to know that the Handlers are basically used to Run the Small Section of Code and etc... But I didn't got the exact scenerio about when particularly It is Ideal to use the Handlers! Any Help??? Thanks, david ...