[android-developers] Re: Some problems in cupcake imf

2009-04-19 Thread Lewis
Hello, I am currently trying to work with InputMethodService. Have you managed to successfully override the default keypad? I would love to see the code if I could? Thanks Lewis On Mar 27, 8:04 am, Paranoia zheny...@gmail.com wrote: i am developing an ime on android. i have some questions.

[android-developers] Re: Anybody can help me with the control style?

2009-04-19 Thread AllSet
Hi Greg, wow. Thanks a lot for such detailed information. I have been trying to do what i described above with View and Animation, just like you said. and it seems to work just fine, though currently doesn't look so good as ZoomControls :) maybe i should use some images in the Views instead

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

2009-04-19 Thread Evgeny V
Thank you very much for feedback! Regarding the loop. Of course I don't do it inside a loop. The sent code is first attempt and contains this bug. Will use BasicResponseHandler to handle result. It definitely can casue the performance probpem. Do you think the way I'm extracting the resopnse

[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

[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 a

[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 mmur...@commonsware.com wrote: I

[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 cyril.jaqu...@jaqpot.net wrote: Hi all, I would like to perform a task just before the phone is

[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 zheny...@gmail.com wrote: Thanks! the following is the log from native code. I/DEBUG ( 543): *** *** *** *** ***

[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] 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 explicitly

[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

[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

[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

[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, imgsmile_face/img How to implement this? Note that , the text might be long, so this text should occupy many lines.

[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 estiven...@gmail.com wrote: Hi guys I have a Uri like

[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

[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 evgen...@gmail.com wrote: Thank you very much for

[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

[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, some

[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: 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

[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

[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

[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)

[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] 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

[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 case.

[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 in

[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

[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));

[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 (workspace/.metadata/.log) I found: !ENTRY org.eclipse.equinox.p2.metadata.generator 2 0 2009-04-19 19:17:15.101 !MESSAGE An error

[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: 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 estiven...@gmail.com wrote: mm, ok, thanks but, how do i delete a uri media file manually? I only have the uri string:

[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

[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] 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.php;

[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

[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

[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: 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 anyone

[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 hack...@android.com 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

[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,

[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

[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

[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

[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

[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] 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

[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,

[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 gkri...@gmail.com 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

[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 surendraredd...@gmail.com wrote: Hi, Is there any API which can delete the