android

Error during compiling android source code using make command

Hi, I m trying build android source code 1.6. I got following error. frameworks/base/core/java/com/avaya/endpoint/socialnetwork/TwitterService.java:198: package IListTwitterService does not exist private final IListTwitterService.Stub myListTwitterServiceStub = new IListTwitterService.Stub() { ...

Set custom keyboard for android application

Hi, i know that there is the possibility to set a special keyboard with these attributes. But i need my own keyboard as default. How can i do that? How can my app change the settings? As an example, let's say: i want the example SoftKeyboard as default for my app. Is that even possible? Thanks for your efforts :) ...

Own sync adapter for Android?

The press release of Android 2.0 states that the new release supports sync adapters so that emails and calendars cannot only be synced with gmail and exchange. However, there is no information available online how to write such a sync adapter. Has anyone tried it and some example code available? ...

Android stack size

How can i get and change the stack size (even for the main thread) of my Android application. ...

android command-line

How can i specify command-line parameter when I launch an android application ? 1- With Eclipse 2- Directly from the phone ...

How to set geographical coordinates on pictures for Google Android ?

Hi, I'm currently developping an application to manage my pictures on an Android phone. I developped an algorithm to classify the pictures based on the geographical coordinates (latitude, longitude) of each photo. To test my application on the android emulator in Eclipse, I manually imported a bunch of photos from my computer to the SD...

Login to facebook in android using REST API

I develop facebook application in android i want to log in to facebook via HTTPClient , teh user give me username and password and then i connect to facebook.com/login i want to make like this code http://stackoverflow.com/questions/1409220/facebook-getting-incorrect-signature-104-when-getting-session-key/1795229#1795229 but in andro...

Removing Widget from Home Screen when Uninstalled

When my application is uninstalled, the widget stays on the HOME screen and gives an error message "problem loading widget". How do I remove the widget when my application is uninstalled? Is there an attribute in the manifest that I am missing? I have tried asking on the Google Android groups, but they take so long to approve and then...

Changing Widget Layout Programmatically

Let's say that I have two layouts for a widget: Layout1 and Layout2. The default for the widget is Layout1, but I allow the user to choose which layout they want the widget to be. So if the user changes to Layout2, how do I programmatically change the layout to Layout2? There isn't a setContentView method for widgets like there is for...

How do I bypass the "Complete Action Using ..."

Hey guys, I have a question related to choosing an application programmatically when shown the dialog "Complete Action Using" in Android. An example would be as follow: In my code, I have this statement startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=98yl260nMEA"))); I will then shown a...

Accessing Videos AND Photos on Android 1.5 +

So I'm trying to allow the user to pick a particular piece of media with my Android Application using the method described here: http://stackoverflow.com/questions/550905/access-pictures-from-pictures-app-in-my-android-app It works great, except for the fact that I can seemingly only choose between either Video or Photo to present the u...

JNI: NoSuchFieldError

Output of: javap -s SomeClass public org.someapp.SomeClass$_data data; Signature: Lorg/someapp/SomeClass$_data; Definition of SomeClass in Java: class SomeClass { private class _data { byte[] something = new byte[1234]; } public _data data; } Definition of native function in Java: public static native int Na...

How can I switch the activity of the content of a tab in Tabhost

Hi, I have created a TabHost and in 1 of the tab, I have added the content using mTabHost.addTab(mTabHost.newTabSpec("tab1") .setIndicator(getString(R.string.dialerIconLabel), getResources().getDrawable(R.drawable.ic_tab_dialer)) .setContent(intent)); Is it possible for me to ...

Android - AppWidgets, AlarmManager and AsyncTask

I'm not having much luck with updating an app widget with AlarmManager generated broadcasts. Here's what I do: Initializing AlarmManager on AppWidgetProvider#onEnabled AlarmManager alarms = (AlarmManager) context.getSystemService( Context.ALARM_SERVICE); alarms.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemC...

Android: how to move standard elements (like EditText) by touch event?

I can override onTouchEvent, but there is no x and y coordinates to set in the EditText or usual View. ...

android window translucent

How can I specify programmatically the windowIsTranslucent attribute for an Window's Activity ? ...

Can we create IM clients other than GTalk using Smack api in Android?

Hi For the past two weeks, i am working to create an application ,which is used to communicate with all Messengers in android.I am using Smack api for that, and now i can able to connect to the GTalk.Now trying to connect it to the Yahoo messenger.But it is throwing some execption. I want to know whether we can create Yahoo IM client us...

Android title bar size

How can I get the size of the title bar of an activity and the size of the system bar? ...

android.widget.AnalogClock set time

Is there a way to have the android.widget.AnalogClock display a preset time? I don't want to create a custom AnalogClock, I just want the regular one to display a time to my liking. ...

Android: Dynamically close the virtual keypad though code?

How can you dynamically close the virtual keypad through code? All I want to do is close it when the user clicks an "Ok" button because it is not closing itself even though the button now has focus. ...