[android-developers] How to add text in ImageButton

2009-04-19 Thread guishenl...@gmail.com
Hi all, I want to use an imagebutton in my application, but only a button with image can not indicate its function clearly. If there are some text beside the button, I think everything will be more explicit. But I don't know how to add text in an imagebutton in Android.Can anyone help me w

[android-developers] Re: Calling method of Listactivity from Activity

2009-04-19 Thread Yogi
Thanks for your quick response. I want to call the method of ListActivity from Activity class. Code is as below: MyActivity.java--- public class MyAcivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCre

[android-developers] ACPI or APM

2009-04-19 Thread tiwana
Does android uses ACPI or APM powe management standard? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscri

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-19 Thread Ask
Can DexClassLoader solve this above problem?? I have not downloaded early look sdk yet.. Will The application which is running on sdk 1.0 run on 1.5 without an problem?? On Apr 19, 3:37 pm, Ask wrote: > fadden, > >  >but rather why are you getting the > > >NullPointerException. > >     I am gett

[android-developers] Is there any way to send a email in service in background.

2009-04-19 Thread sunwrt
Hi, Any guy know Is there any way to send a email in service in background. I used K9 email. It seems K9 does not work Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: API to delete SIM contacts & Messages AND erasing the SD card contents

2009-04-19 Thread tsreddy
Hi Android Engineers/framework Engineers, please answer my questions. It is very important for me to finisg my application. Your help will be higly appriciated. Regards Surendra On Apr 16, 5:02 pm, Surendra Reddy T wrote: > Hi, > > Is there any API which can delete the contacts and messages on

[android-developers] Re: using custom data in message handler

2009-04-19 Thread DevilMayCry
Thats a good work around thanks :) On Apr 20, 9:43 am, Greg Krimer wrote: > The Message object contains two int fields arg1 and arg2 in addition > to the what field to store extra data. To pass a boolean value within > the message I would make use of of arg1 by mapping true to one and > false to

[android-developers] Re: using custom data in message handler

2009-04-19 Thread Greg Krimer
The Message object contains two int fields arg1 and arg2 in addition to the what field to store extra data. To pass a boolean value within the message I would make use of of arg1 by mapping true to one and false to zero. On Apr 18, 9:40 am, DevilMayCry wrote: > Hi All , > I am calling a remote s

[android-developers] RequestLayout?

2009-04-19 Thread Peter Carpenter
Hello all, I'm really tearing my hair out trying to make a Spinner component behave with an EditText as it's child rather than a TextView. The problem I've getting is that everytime I select an item from the drop down list, I lose the focus ring from the EditText. The cursor is still there, b

[android-developers] Question regarding adding a view that can overlap other views in the layout/activity.

2009-04-19 Thread rch
Is it possible to add a view dynamically that overlaps other views in the layout. I have Linear Layout defined for the activity. As part of the Layout I have a custom View. The content changes dynamically and sizes appropriately based on the content size, with fill_parent for width and wrap_conte

[android-developers] Re: How to send AT command to the modem ?

2009-04-19 Thread Nio
Hi Jude, Can you call the function getdefaultphone()? It can get the gsm default phone, and via this it can call the function invokeOemRilRequestStrings(). Hi David, If so, then what is invokeOemRilRequestStrings supposed to do? I think this is a extendable interface for OEM to call to send AT

[android-developers] Could title bar of activity listen to click event?

2009-04-19 Thread milton
Hi all I would like to make my activity do something when user clicked the title bar. But I could not find any information about how to manipulate the title bar. Please kindly give me some advices. Thanks in advance. Regards Milton --~--~-~--~~~---~--~~ You recei

[android-developers] API Demos Voice Recognition App crashes

2009-04-19 Thread zlu
I get this error when clicking on the speak button. 04-19 19:59:29.181: ERROR/ActivityThread(567): Failed to find provider info for android.server.checkin 04-19 19:59:29.181: DEBUG/ActivityManager(567): Received spurious death notification for thread android.os.binderpr...@436dcac0 04-19 19:59:29

[android-developers] Building different versions of an app -- best practice?

2009-04-19 Thread Edward Falk
What is the best way to release two versions of an application? E.g. a free version with limited features, and a paid version with the full feature set. #ifdef would be the ideal way to do this, but Java doesn't support it. Could I do something like: try { import com.foo.myapplication.E

[android-developers] Can't touch on the screen when adding view in arrayadapte

2009-04-19 Thread aby
Hi, I want to add some views in each row of list view. When I add text view and image view in getView() of ArrayAdapter,it works.But after I add other kind of views (like Check Box and Image Button...),I can't select the list row touching down screen directly, I only can select by key down, up a

[android-developers] Can't touch on the screen when adding view in arrayadapter

2009-04-19 Thread aby
Hi, I want to add some views in each row of list view. When I add text view and image view in getView() of ArrayAdapter,it works. But after I add other kind of views (like Check Box and Image Button...), I can't select the list row touching down screen directly, I only can select by key down, up

[android-developers] Re: How to access "shared data/settings" across multiple application? ContentProvider or SharedPreferences?

2009-04-19 Thread APLY
Hi, Thanks a lot. I get it! On Apr 18, 12:58 am, Dianne Hackborn wrote: > Are you talking about two applications as in your title or two components as > in your text?  If the latter, there is no reason to use a ContentProvider; > just use whatever is easiest since they share the same file sys

[android-developers] Re: Add to patch libsql.so to support complex text rendering

2009-04-19 Thread Mark Murphy
Laonux wrote: > As far as I am concerned to render the complex texts, e.g Lao, Thai, > Khmer, and others, one must add or hack some files in the library > particularly of 'libsgl.so'. This involves positioning of the vowels, > semivowels, tone marks, and other characters. > > I was wondering if a

[android-developers] Add to patch libsql.so to support complex text rendering

2009-04-19 Thread Laonux
Hi all, As far as I am concerned to render the complex texts, e.g Lao, Thai, Khmer, and others, one must add or hack some files in the library particularly of 'libsgl.so'. This involves positioning of the vowels, semivowels, tone marks, and other characters. I was wondering if anyone could tell

[android-developers] Re: HTTP Post

2009-04-19 Thread Aakash Patel
Here is some code that I am using in my app that is using HttpAuth and was a JSON RPC client, It should be very easy to configure it to your needs. public static final String HORDE_URI = "http://10.0.0.60:80";; public static final String RPC_PATH = "/mail/rpc.php"; public static final String US

[android-developers] Re: HTTP Post

2009-04-19 Thread Aakash Patel
Here is some code that I am using in my app that is using HttpAuth and was a JSON client, It should be very easy to configure it to your needs. public static final String HORDE_URI = "http://10.0.0.60:80";; public static final String RPC_PATH = "/mail/rpc.php"; public static final String USER_

[android-developers] Re: HTTP Post

2009-04-19 Thread Aakash Patel
Here is some code that I am using in my app that is using HttpAuth and was a JSON client, I'm sure you can easily configure it to your needs. If you need anymore help just ask :-) public static final String HORDE_URI = "http://10.0.0.60:80";; public static final String RPC_PATH = "/mail/rpc.ph

[android-developers] Re: HTTP Post

2009-04-19 Thread Aakash Patel
Here is some code that I am using in my app that is using HttpAuth and was a JSON client, I'm sure you can easily configure it to your needs. If you need anymore help just ask :-) public static final String HORDE_URI = "http://10.0.0.60:80";; //<-- base url public static final String RPC_PATH

[android-developers] HTTP Post

2009-04-19 Thread xspotlivin
I'm trying to do an HTTP Post, but I'm having a lot of trouble. I have a server running on my computer. I know the URL needs to be my IP address and port number. How do you create a URL object out of an IP address and port number? I also have some headers and such that I need to put on the post me

[android-developers] Re: Problems deleting an audio file using a media content uri

2009-04-19 Thread Marco Nelissen
Query the Uri for the MediaStore.Audio.Media.DATA column. It contains the path to the file. On Sun, Apr 19, 2009 at 1:59 PM, estivenrpo wrote: > > mm, ok, thanks but, how do i delete a uri media file manually? > > I only have the uri string: "content://media/external/audio/media/ > 149" and i

[android-developers] Re: WebView and https post problem

2009-04-19 Thread Evgeny V
LoadData and loadUrl returns exected data but WebView displays it incorrect. private void LoadPayPal2() { WebView webContent = (WebView)findViewById(R.id.textFromPayPal); HttpParams httpParams1 = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParams1, 1);

[android-developers] Re: Problem installation Android Development Tools

2009-04-19 Thread tweitzel
Had the same problem a couple of hours ago: Failed to prepare partial IU: [R]com.android.ide.eclipse.ddms 0.8.0.v200809220836-110569. In the Eclipse log file (/.metadata/.log) I found: !ENTRY org.eclipse.equinox.p2.metadata.generator 2 0 2009-04-19 19:17:15.101 !MESSAGE An error occurred while l

[android-developers] Re: Problems deleting an audio file using a media content uri

2009-04-19 Thread estivenrpo
mm, ok, thanks but, how do i delete a uri media file manually? I only have the uri string: "content://media/external/audio/media/ 149" and i don't know how to create a file object with that. I have tried: File fileToDelete = new File(new URI("content://media/external/audio/ media/149")); file

[android-developers] variable tooltips

2009-04-19 Thread andrew
Sometimes when I am debugging in eclipse I can see the variable value in the tooltips and sometimes I can't, it just shows me the type. Does anyone know what I am doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] Stressing the Contacts sync to death (acore again...)

2009-04-19 Thread Jonas Petersson
Dear experts, As hinted earlier, I've hacked up a little service called "Zap's Hitta" (available for free on the Market) which basically takes the incoming phone number and pulls various info from public phone catalogs (only 2 implemented so far) to both show more details about who calls you i

[android-developers] Re: A simple question about a particular intent...

2009-04-19 Thread Mark Murphy
Hans wrote: > I have seen that before, but that would require you to run a service > in the background (or always have an activity running) to constantly > to monitor those changes instead of what you're supposed to use, which > is a broadcast receiver... "Supposed to use" assumes a certain use c

[android-developers] Re: A simple question about a particular intent...

2009-04-19 Thread Hans
On Apr 19, 3:28 pm, Mark Murphy wrote: > At least in 1.1r1, I think you're supposed to use PhoneStateListener and > its onServiceStateChanged() method: I have seen that before, but that would require you to run a service in the background (or always have an activity running) to constantly to mon

[android-developers] Re: ImageView 's layout_width and layout_height

2009-04-19 Thread Mark Murphy
Lucius Fox wrote: > Do I need to set the height/width specifically for my ImageView to > match my backgroundDrawable? Or it will pick up automatically. ImageView scales the image to fit the view size, not the other way around. I would assume you need to tell the ImageView's layout the new size to

[android-developers] Re: A simple question about a particular intent...

2009-04-19 Thread Mark Murphy
Hans wrote: > Surely, this is an intent that is meant be used as it is the only > intent I can find mention of anywhere (newsgroups, web, et cetera) > that will notify you of switches in your service state. At least in 1.1r1, I think you're supposed to use PhoneStateListener and its onServiceStat

[android-developers] ImageView 's layout_width and layout_height

2009-04-19 Thread Lucius Fox
Hi, I have created a ImageView BitmapDrawable bitmapDrawalbe = new BitmapDrawable(); ImageView imageView = new ImageView(this); imageView.setBackgroundDrawable(bitmapDrawalbe); where BitmapDrawable has an attribute of 'Bitmap' and its getWidth and getHeight are: public

[android-developers] A simple question about a particular intent...

2009-04-19 Thread Hans
I'm stumped simply trying to find out information on the following intent: "android.intent.action.SERVICE_STATE" Now, looking at the naming schema used, it would suggest, since Android is 'sort of' Java that this would be something found in the intent class (since action is not a child class) an

[android-developers] Re: ScrollView and Programmatically Scrolling

2009-04-19 Thread Arnaud Weber
Ok, i've found some kind of weird solution... It seems that fullScroll is inversed. As i wanted to go to the top of my view i need to call scrollView.fullScroll( > > ScrollView.FOCUS_DOWN); and to go to the bottom : scrollView.fullScroll( > > ScrollView.FOCUS_UP); ... weird... but that's work

[android-developers] Re: ScrollView and Programmatically Scrolling

2009-04-19 Thread Arnaudweb
Hello, I've the same problem. my scrollView contains a LinearLayout that is almost empty at the beginning. Then i fill it with other views and try immediately after to use scrollView.fullScroll(ScrollView.FOCUS_UP); This is not working... I'm guessing my fullScroll setting is executed before t

[android-developers] Re: WebView and https post problem

2009-04-19 Thread Evgeny V
Will try! Thanks On Sun, Apr 19, 2009 at 6:57 PM, Mattaku Betsujin < mattaku.betsu...@gmail.com> wrote: > Have you tried dumping the String that you sent to the WebView into a file? > Try loading that on desktop mozilla. If you still see problems there that > would mean your extraction code defin

[android-developers] Re: ReStarting An Activity From A Service

2009-04-19 Thread Mark Murphy
Mohamed Amir wrote: > Mark: The user isn't supposed to be doing anything. Just reading some > information, and it's required to see the most updated information > sent by the service. What if they are in the middle of writing a text message, or are using some other application? Why do you think

[android-developers] Re: Creation of XML

2009-04-19 Thread Mark Murphy
Sam wrote: > Hi, > I want to create XML with my own tags i want it to create at > runtime . I am unable to use Transform class of java in android is > there any other option available . > Any help would be appreciated ... Thnx in advance ... StringBuffer or StringBuilder. Or, s

[android-developers] Re: Calling method of Listactivity from Activity

2009-04-19 Thread Mark Murphy
Yogi wrote: > Can i call method of Listactivity from Activity class? That depends on what you mean. The amount of help you can get from forums like this depends on how much detail you can supply. > I have creates Intent object of myListActivity class and called > startIntent() from myActivity cl

[android-developers] adb is not detecting my android phone

2009-04-19 Thread Tushar
Hi, First time when I connected my android phone with windows XP SP3 system everything went smoothly. And after installing usb drivers from android sdk 1.1 I was able to see my device from adb by running "adb devices" command. Recently there was some software update from windows after which I s

[android-developers] Re: WebView and https post problem

2009-04-19 Thread Mattaku Betsujin
Have you tried dumping the String that you sent to the WebView into a file? Try loading that on desktop mozilla. If you still see problems there that would mean your extraction code definitely has bugs. On Sat, Apr 18, 2009 at 11:18 PM, Evgeny V wrote: > Thank you very much for feedback! > > Reg

[android-developers] Re: maps api and 1.5

2009-04-19 Thread wayne mcfadden- Red Droid
Hi Guys, The problem I think was that while trying to get this running and trying different configs, I imported the maps.jar via the class path. All you need to do is set the build target to be the Google APIs like the responses above say. Once I removed the jar from the class path, the app came

[android-developers] Re: Problems deleting an audio file using a media content uri

2009-04-19 Thread Marco Nelissen
This is a problem with the media provider: it will delete the entry from the database, but won't delete the underlying file. For now, you'll have to do that yourself. On Sat, Apr 18, 2009 at 11:01 AM, estivenrpo wrote: > > Hi guys > > I have a Uri like "content://media/external/audio/media/149"

[android-developers] How to display text and picture in a line?

2009-04-19 Thread Kaka
While user input a text including ":)", usually ":)" should be replaced and displayed a smile face here. For example, the original text: I'm happy, :) after converted: I'm happy, smile_face How to implement this? Note that , the text might be long, so this text should occupy many lines. --~--~

[android-developers] Uninstall / Signature problem on G1 device

2009-04-19 Thread Huebi
Hi, I installed a development version of an app on my G1 with 1.1 firmware build TMI-RC9 128600 running through adb. I then tried to uninstall it with adb and install a newer version for which I used a different signature. This has always worked but now even after uninstalling I get a signature e

[android-developers] Re: Is there a way to navigate android SDK documentation online for multiple releases??

2009-04-19 Thread a druid
I think this would be a very good idea. This is done for some other programming languages. What Android should also do is to mention for each function /. class / method since which Android release it exists. This would allow conservative application writers to avoid new API calls in preference

[android-developers] Calling method of Listactivity from Activity

2009-04-19 Thread Yogi
Hi All. Can i call method of Listactivity from Activity class? I have creates Intent object of myListActivity class and called startIntent() from myActivity class. Please help me. Thanks in advance, Yogi --~--~-~--~~~---~--~~ You received this message because y

[android-developers] Creation of XML

2009-04-19 Thread Sam
Hi, I want to create XML with my own tags i want it to create at runtime . I am unable to use Transform class of java in android is there any other option available . Any help would be appreciated ... Thnx in advance ... --~--~-~--~~~---~--~~ You r

[android-developers] issue in emulator compare to HTC Dream

2009-04-19 Thread arnouf
Hi, I implement a OnTouchListener on an ImageView. On emulator when I use my mouse to retrieve getX, the result is still a positif number. On G1 the value is still negative doesn't seems correct For example, when I click with mouse on ImageView the getX() return 40...On G1 the same action (w

[android-developers] 1.5 preview issues / keyboard not working on lists / preferences not working

2009-04-19 Thread Mariano Kamp
Hi, I "fixed" a couple issues already to become cupcake compatible, but a couple of issues remain. One thing is that in one of my lists the keyboard still works for navigation, but not to select an item with "enter" or the Center DPAD push. I will further investigate if I can explicit

[android-developers] Re: java.lang.reflect.InvocationTargetException during calling a function of another application at runtime

2009-04-19 Thread Ask
fadden, >but rather why are you getting the >NullPointerException. I am getting null pointer exception due to the variables which are defined outside the Method which is to be invoked but inside the activity. If I will define the same variable inside the method.. application works nicely.

[android-developers] Re: how to parse and analyze the call stack of native code? any tools?

2009-04-19 Thread Freepine
hi, you can use addr2line to get back the symbol for the corresponding address, then use c++filt to demangle the symbol. -Freepine On Sun, Apr 19, 2009 at 1:45 PM, Paranoia wrote: > > Thanks! > > the following is the log from native code. > > I/DEBUG ( 543): *** *** *** *** *** *** *** *** **

[android-developers] Re: Shutdown notification?

2009-04-19 Thread AGA
I'd like to join to this question. I've tried to find some solution, however without any success. Can anyone help please? Thanks in advance, AGA On Mar 25, 4:26 pm, Cyril Jaquier wrote: > Hi all, > > I would like to perform a task just before the phone is shut down. I > thought t

[android-developers] Re: ReStarting An Activity From A Service

2009-04-19 Thread Mohamed Amir
Thank you for your answers. Marco: I will check your solution. Mark: The user isn't supposed to be doing anything. Just reading some information, and it's required to see the most updated information sent by the service. On Apr 18, 5:56 pm, "Mark Murphy" wrote: > > I have a Service that sta

[android-developers] Re: Question about animation

2009-04-19 Thread Mike Baroukh
Thanks for your answer Daniel. I had some difficulties to understand but finally, it works ! Thanks a lot. The key point is to display the final result then make an animation that start from a negative position to 0. In my case, it works without having to use "post" ... Mike daniel.benedykt

[android-developers] Re: Writting/Reading Sync settings - Possible?

2009-04-19 Thread Omer Saatcioglu
Ok. I am looking for the same thing desperately too and I think that configuring sync settings is not possible (I mean supported) Anyway, even though it is not possible, could anybody tell us why it is not? I will be very happy. Thanks, Omer On Feb 24, 1:21 pm, Abraham wrote: > HI, > > Even I'm