android

About "_id" field in Android SQLite

Is the field "_id" necessary in Android SQLite? ...

How do I publish my application to the Android market?

I am new to Android development. I developed a new Android application. I would like to publish my Android application to the Android market. How can I do this? ...

how to add child to tablerow dynamically in android?

Hi all.I am new to android. I have to add table row in a dynamic manner.In that row i need to add two child(Textview).But it displays only one textview only(first one). Here is my code import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.TableR...

What happens to my existing application database when I upgrade it to new version in Android

Suppose an application stores some user related or users favorite records in its local database. When I upgrade my application, what happens to the db? As an developer, how do I prevent loss of data? ...

Change icons of checked and unchecked for Checkbox for Android

Instead of having a check mark for the icon, I want a custom star (I have checked and unchecked icons). Can this be done through a property? Or must I declare a custom widget that derives from Checkbox? ...

fake call app in android

Should I generate some kind of a call from my phone to my phone? (I don't want to show a static image that looks like an incoming call screen :( ) ...

how to avoid cache in EditText

Hi How to avoid EditText to repopulate data that is previously entered in it. ...

problem with ListActivity

The following is my code for SettingsActivity.java. The main activity starts this activity by calling onScreenSettings(this) public class SettingsActivity extends ListActivity{ static String[] main_settings = {"mode", "timeout" }; static String[] mode = { "Audio", "Video", ...

Updating Android 2.1-update1 to Froyo. I'm feeling lost

Carrier: N/A OS / build number: 2.1-update1 / ECLAIR.eng.root.20100307.043650 Hi there, I'm using a rooted N1 device for development uses only ( Thats why I have no carrier and such..) I have a build which I've compiled from the eclair source tree and flashed using fastboot. I'm trying to update to Froyo so I could pull some needed pr...

How to integrate youtube api on android?

Hi, Iam new in android can anybody tell me or give me sample code of youtube apis.actually i do not have idea how to integrate youtube api? ...

Add table row dynamically in Android?

I need to add table row by using Java code only (not XML design). In that table row I have to add two textview fields. I use the code below. TableRow tblrow=new TableRow(this); tblrow.addView(Textview1); tblrow.addView(Textview2); But it only displays Textview1. How to view both? I am new to Android. ...

Android ListView that does not scroll?

I'm trying to make a layout that is something similar to how the android market is...where say under comments there is what appears to be a ListView but it does not scroll (the whole page scroll but not the comments). I'm not sure if its even a ListView but I want something that looks like the list view (ie. have those divider bars and w...

Android -- RelativeLayout and LinearLayout -- VideoView resize issue

I am having a video resizing issue, I have to build the layout programatically, and here's my code: layout = new RelativeLayout(this); top = new RelativeLayout.LayoutParams( LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT); top.addRule(RelativeLayout.ALIGN_PARENT_TOP); RelativeLayout.LayoutParams middle = new Relativ...

is Android Email Client support pop protocols.

hi, is Android Email Client supported pop protocols. Thanks. ...

Can phone use host network when debugging on device via Eclipse/ADB?

I have a Android phone connected with host computer with USB cable. ADB runs well and I can debug application on phone. The only problem is that the App requires special network setup which I can reach on host but not mobile. Is there a way to let the device send all network operations through ADB and Host network? Thanks in advance. Ry...

understanding Activity's setContentView

I need to create all the UI programmatically "on demand", this means I can't use any XML. This is the pseudo code of what I do: View v = new MyView(); activity.setContentView(v); tabHost = new TabHost(); .... tabHost.setup(); TabSpec tabSpec = _tabHost.newTabSpec(page); tabSpec.setIndicator(title); tabSpec.setContent((T...

Intercept onOptionsItemSelected

I have a top level TabHost that implements the onCreateOptionsMenu method. And I want sub-activities (those within the tabs) to be able to intercept the options menu via onOptionsItemSelected. Like for example, in the options menu I have an item called, "Edit Note" and in one tab there is a ListView with a list of all the notes. I want t...

Load Images in ImageView in Android

Hello all, In my application....there are some images like temp1.jpg, temp2.jpg .....upto temp35.jpg, so on button clicking, i want to load one-by-one image in ImageView .... i want to do like: cnt=1; imagename="temp" + cnt + ".jpg"; cnt++; so my confusion is that "is there anyway to load an image in imageview from string(image...

Android read handset proxy settings.

If user behind proxy he can set proxy settings in android handset under 'access point option' is there a way i can read proxy settings from android handset? ...

Android - How to change grey background created by a BitmapDrawable

I'm using the follow code, to create a non-scaled, centred image as a background, in a relative layout:- RelativeLayout explosionlayout = (RelativeLayout) findViewById (R.id.explosionlayout); explosionlayout.setBackgroundColor(R.color.white); Bitmap myBitmap = BitmapFactory.decodeResource(this.getResources(), R.drawable.bomb); Bitm...