Hi,
I am new to Android and have been working on an app that needs to get all of the user's contact's phone numbers. Apparently the code I have does not work with the 2.1 SDK. So far here is the code I am using:
String[] projection = new String[] { Phone.NUMBER };
Cursor c = managedQuery( Phone.CONTENT_URI, projection, null, null, n...
i have created a grid view of some images in android sdk (2.1).i need to get the byte array of the image selected and do manipulations(such as to change the LSB).can anyone help with the suggestions or code?
thanks in advance
...
I have an editText in the status bar ,when writing in the editext field ,I want to show the soft Keyboard . I try to use the InputMethodManager,but can't work.how can I make it work?
any suggestion?
...
I have a problem with android version 2.1. It looks like a bug.
I attached an OnScrollListener to my listView.
I'm using the method onScrollStateChanged(AbsListView view, int scrollState) for monitoring the scroll's state of my listview.
The scrollstate could assume 3 value (taken from the documentation):
SCROLL_STATE_FLING: The use...
Hi,
I have a problem with ACTION_CALL intent from my service on
Motorola Milestone after upgrade to 2.1 - update1 firmware version.
I have a very simple (worked before) code.
Intent dialIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel://"
+ dialOutNumber));
dialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(d...
Hello, i recently customized the UI of my tabs by setting a backgroundResource on each tab, then switch between selected / unselected depending on which tab is currently in focus. I got one problem though, there seems to be a white border that comes with the tabwidget by default that stretches over to the other (unselected) tabs at the b...
After performing a Menubar> Project> Clean...
I get the following error in the errorlog:
Java Model Exception: Java Model Status [gen [in MyApp] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:502)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246...
HI All
, i want to giv max and minimum limit of seekbar to 50 and 20 respectively.
seekbar has a direct option top provide max value,but how can i set its minimum value to 20 rather than 0??
regards
...
I have a minimal program that does little more than let me set two preferences (an int and a String) using Android's PreferenceActivity. So I have an xml file that defines my preferences, and an activity that extends PreferenceActivity. My main activity has an options menu that launches my preference activity. All of that works great. I ...
Hello.
At the moment I am searching for an easy and supported way of adding contacts in Android up from SDK level 7. (when some kind of data like the phone number is available) I looked at the default contact application and found "Intent.ACTION_INSERT_OR_EDIT" which is used for adding a new contact (or adding a number to a contact fro...
Hello guys,
I'm starting with android, and the app I'm developing is gonna need custom widgets look (glossy buttons, animated backgrounds etc.),
I've googled for any external libraries to achieve this and did not find anything.
let me guess, the only way to this is by painly extending base view classes and overriding onDraw etc. ?
...
Hello,
Is there any way to get the details of media files that is executed in android(default) media player?
Thanks,
Nithin
...
Is it possible to invoke native SMIL player on Android 2.1? Can you please provide a code sample or a pointer to relevant info?
Thanks a lot
...
I am using viewflipper for fling gesture recognition everything works fine for 2.0 and prior but in 2.2 and 2.1 it throws exception as "java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper" below is full debug trace.
java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipp...
How do i define a following layout in my xml file:
I hope you got it from image that i want to display TextView1 on 1st Row, and in 2nd Row, TextView2 on Left and TextView3 on Right side.
How do i define this layout?
i know the layout_gravity attribute but not getting success, so pls share your code
...
Hello,
I am trying to write an app that requires the LED flash to go into torch mode. The problem is, Android 2.1 does not support this mode and therefore I cannot support the platform yet. Wouldn't be an issue, but I am writing it for my fiance and her Epic 4G only has 2.1 right now. I found some code samples that use some undocumen...
I have create a canvas in android and inside that i have multiple bitmap images.not i want to make these images click able.
I have tried following things so far..
I tried to add bitmap in image view as imageview has a setOnClickListner
but i think ImageView can't be added into Canvas , so i dropped this idea. because even Bitmap itself...
same code anyDensity=false works fine for device with display resolution 320*480, but images are displayed pixelerate in device with display resolution 480*800.
...
AS I am beginer in android
in my android applicationas as i have my own sqlitedatabase as "data.db"stored it in an asset folder but when i am running it i am getting error of activity (com.db) is forcedfully closed
when i debbuged it i found that debbuger is pointing to the throw new error{"unable to create"} below is my code for
Databas...
Hi Friends,
I have been struggling with this problem for many days. please help me..
In my android application i am trying to download images from remote server dynamically ( no of images dynamically come ). for downloading all images it is taking 30 to 40 seconds mean time user has to wait to see the activity . But it is the worst ca...