android

Android: Map displays on emulator(Version: Google APIs 2.1,level:7). But when uploaded into android mobile,it doesn't display

Hi All, I have done one project in android which is to display map using GOOGLE API KEY. goto: [http://mobiforge.com/developing/story/using-google-maps-android] I generated MAP API key for my system by following the procedure mentioned in above link correctly. It works well and displays map on EMULATOR. I took a BUILD of my project a...

what are the best Practices for developing applications using Titanium Framework targeting iPhone & Android?

I am planning to develop an application using Titanium Framework for iPhone and Android. Can someone list the best practices, do's and don'ts for the development using your experience with the framework? ...

MemoryInfo on ZTE Blade(Android), not working

Have been trying to find out memory usage on the android applications on the phone. Just for fun and testing. But when using the code snippet from here http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/3479710#3479710 I'm getting zero on pidMemoryInfo.getTotalPrivateDirty() pidMemoryI...

Using Eclipse for Android App: App won't install freshly because it's already on the device.

Is there any way to always do a fresh install when I'm "Running" my Android app for testing on either a real device or an emulator. It always tells me "No need to install because application is already on device", then just launches the main Intent. Any ideas? Thanks! ...

Using DatePciker with no day picker.

I want to get a DatePicker Dialog with no day picker (only year and month) for credit cards expiration in a form. I checked the DatePicker source code and it's not seem to be suporting such feature as not showing once of it's pickers. Any other widget to do it or do i have to create my own widget again... ...

add icon before the preference

I'm doing a android app. I want to add icon before the preference. I want to add icon before the title of the inner preferencescreen, checkboxpreference,... like icon|title Thank you for your help. like that picture:http://2.bp.blogspot.com/_bbZoRtK3YH8/S0QbkvWxSiI/AAAAAAAAAwI/jU9vRI50ZDw/s320/Top+Android+App+Quick+Settings+Dialogue+View...

[android]autocomplete text view problem with setAdapter

I need to create a dialog with a list containing an autocomplete text view and a button for each line. So everything is working except for the autocomplete text view. My program crashes when i tried to call the setAdapter. that's my code: private Dialog createSosteDialog() { final ArrayList<HashMap<String, String>> mylist = new ArrayL...

HelloAndroid Program

I'm new to android sdk. I started with the HelloAndroid program. I followed all specified instructions, but to my surprise, the emulator is not diplaying the "Hello Android" text. Instead the emulator looks like the one shown above(You can see "LogCat" at the bottom of the image). The Console shows msgs like, [2010-10-28 20:14:59 ...

Filter tags in LogCat (in Android Eclipse Plug-In)

There is a TextField "Filter" below the LogCat output. However, it seems to filter only the Message-column. Id like to filter Tags also. Because there are my class names. How can I achieve it? ...

Problem with ellipsesize

I have a TextView I use to display email addresses to my users <TextView android:id="@+id/profile_email" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="6dip" android:textColor="#0...

Android: FBConnect error

Hi, I am getting the following error while using a sample code of FBConnect. Earlier i was using Facebook rocket, but suddenly it started throwing some exceptions. Now when i am trying FBConnect it's also giving some errors: 10-28 20:32:29.779: ERROR/FBDialog(261): java.io.FileNotFoundException: http://www.facebook.com/login.php?conne...

What Country is the User Currently In?

I've looked around a bit on stackoverflow and Google Groups and haven't really found an answer for this exact question. I simply want to be able to know what country the user of an Android phone is currently in. I assume the TelephonyManager doesn't work if the user is using wifi only. Is this true? We've tried passing the user's cur...

Android - There is a ready Table cell editable? a

Hi, I'm looking for a table with editable cells ready to be used, for example a kind of JTable TableModel with attached. Thanks in advance ...

Comunication between Android Emulators

Hi to all, I wanted to know if it is possible the comunication between two Android Emulators started on two different machines networked. For example - Emulator A run on machine M1 - Emulator B run on machine M2 Can A and B exchange messages? If yes, what ip address do I use? Thank you very much Deborah ...

Android: How to use the Html.TagHandler?

Dear people, I am trying to build an android application for a message board. To display formatted html for the post contents I have chosen the TextView and the Html.fromHtml() method. That, unfortunately, covers only a few html tags. The unknown tags are handled by a class that implements TagHandler and has to be generated by myself. ...

How to make Android Activities aware of some background communication over Bluetooth?

I am developing an application which exchanges some data over Bluetooth (RFCOMM channel). The app will consist of few Activities that all need to be aware of exchanged data (e.g. receive it, parse it, update Activity's screen and send a response or even fire another activity based on received data). So my question is: what Android featu...

Android, programatically layout a button view?

I am trying to programatically define my program layout and add a button to it at a certain position. I am not using the layout xml as the content view. RelativeLayout mainLayout; mainLayout = new RelativeLayout(this); mainLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,android.view.ViewGroup.LayoutParams.FILL_P...

android: simulator identical to product of perticular companies

Hi, I am using the default simulator, Can I make simulator identical to some common device I mean one identical to HTC, one identical to droid motorla, one of samsung, dell, acer,..etc Here identical I mean all the features that it provide. Thanks ...

Width of LayoutParams is ignored for the outer view when set in java code (instead of xml layout)

I create a very simple activity where I create and set the view in java code instead of xml. The width I pass to the outer LinearLayout though has no effect at all (200). The view is displayed on the entire width of the screen, no matter what value I pass here. (Note that this is just sample code; I know that in a real app you don't use...

Why does the android emulator camera stop unexpectedly?

I am using Android 2.2 (API Level 8). The camera is enabled in the manifest. When I try the camera icon provided by the emulator model, it runs for a few seconds showing a gray box moving around a black and white checkerboard, then dies with the error message: Sorry! The application Camera (process com.android.camera) has stopped ...