android

How to connect a layout view with an activity

in my main view i have public class PlayersActivity extends Activity { ViewFlipper flipper; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.playercontainer); flipper = (ViewFlipper) findViewById(R.id.flip...

Android - Bringing Activity to Foreground via the Call Button (Green Key)

Hi all, I currently have an application that naturally gets pushed to the background when the home key is pressed. The activity losses focus but continues running in the background. So I want to know is it possible to bring the application back to the foreground when the user presses the green key (call button) on the device? ...

Is it possible to download Android SDK components without using the Android SDK management utility?

During the installation of my Android SDK, I am getting stuck during the process where the manager goes out and downloads all the revisions of the APIs and the SDKs. It is potentially due to a socket issue that typically occurs when a database query is called and there are a large number of TCP connections... according to googling my er...

OAuth + Twitter on Android: Callback fails

My Android application uses Java OAuth library, found here for authorization on Twitter. I am able to get a request token, authorize the token and get an acknowlegement but when the browser tries the call back url to reconnect with my application, it does not use the URL I provide in code, but uses the one I supplied while registering wi...

Couldn't get connection factory client

This is so wierd, i got this error: ERROR/MapActivity(258): Couldn't get connection factory client everything worked fine, it's all of a sudden, how come that happens? i know my api key is fine, coz one month ive been using it perfectly. how come all of a sudden it doesnt show me up the map activity, and posting that error in the logcat...

How to use TextWatcher without EdtiText?

Hi, I need to pop a software keyboard and listen by the TextWatcher interface. I don't want any widget do be displayed, I need to do the thinks by myself. I haven't find how to do that without creating an EditText widget instance. My idea has been to create EditText widget and keep it hidden. EditText e = (EditText)((Activity)vv.getCo...

how to give time gap between two activities in android?

this is my code.I used one one popup message while clicking on button for that i used Toast after that i want to move next screen Button Replybutton = (Button) findViewById(R.id.Reply); Replybutton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { EditText Rep...

Crash observed in Sample Android Plugin for Plugin Scriptability

Hi, I am trying to make the sample plugin scriptable. I observed browser crash at the statement *v = obj; in the below code. NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) { if (variable == NPPVpluginScriptableNPObject) { void *v = (void *)value; PluginObject obj = (PluginObje...

How to add icon/image to listitem of ListView

I have created listview by using arrayadpter i add arraryadapter to listview contaning string array but i m unable to add icon to eatch listitem help me out... ...

Android: Reusable code to create multiple DatePickers

Hi all, Still early days on my Android development journey but I'm wanting to streamline the creation of DatePickers as outlined in the "Hello, Date Picker" tutorial (link to tutorial). I've created a class which extends Activity that accepts a few layout references in a bundle and is then supposed to handle the DatePickers. I then st...

update contact details on Android

I would like my code to update contact details (like name, phone number, email, organization details, etc) in the android contact book. I was successful in modifying a few (name, phone number and email to be specific) but not all. Whenever I try to update the organization details (Contacts.Organizations.COMPANY and Contacts.Organization...

How to read file from phone's internal memory in android?

I have downloaded a file from HttpConnection using the FileOutputStream in android and now its being written in phone's internal memory on path as i found it in File Explorer /data/data/com.example.packagename/files/123.ics Now, I want to open & read the file content from phone's internal memory to UI. I tried to do it by using the Fil...

Amazon rest call via android

I would like to perform rest calls to Amazon API from Android. Amazon demands that all ws calls will be authenticated using HMAC signatures (Hash-based Message Authentication Code). I'm missing a similar object to Apache Base64 object to sign my request. Is there a simple way to do that in Android, or even better is there an Android clie...

Listview Row Overlap Problem

I just updated my app and I am getting some odd complaints from people who update it. I am only getting complaints from people with non-stock android phones (phones that manufacturers have modified...HTC phones, cliq, pulse, etc), other phones like the Droid, Nexus work fine. My app (Photo Frame Deluxe) has a list in it with a Image View...

Retrieving Device Information on Android

My program is targeting Android 1.5. I would like to retrieve system information about the device itself. I have found very few helpful classes by searching the APIs. the best I've found so far is the Runtime class and a few Build.* system properties. I would like to be able to get information like the total amount of memory on the d...

Is it possible in Android Market to delete an existing FREE app and reupload it again as a PAY app?

I have an app I am offering for free for now. At some point, I want to be able to change it to a pay app. The market doesn't allow a free app to become for-pay and doesn't allow for-pay apps to be priced at 0$. So is it possible to just delete the original app and then reupload it as a for-pay app ? It's okay in my case if users aren't...

Android: Jumping effect of Status Bar

Hi everybody I have a problem with my app. I use the full screen option like so: public void setFullscreen() { requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } But, later during the game, when I show the Ale...

Android Moto Droid 2.0.1 Home Screen

Modify Current Home to 9 panels without changing anything else about the Desktop. Is this possible? ...

Android - dialer icon gets placed in recently used apps after finish()

In my application I detect the out going call when a call is dialled from the dialer or contacts. This works fine and I then pop up a dialog saying I have detected the call and then the user presses a button to close the dialog which calls finish() on that activity. It all works fine except that when I then hold the home key to bring u...

android open url from code

How to open an URL from code in the built-in web browser rather than within my application ? I tried this : Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strURL)); startActivity(myIntent); but I got an Exception : "No activity found to handle Intent{action=android.intent.action.VIEW data =www....