[android-developers] Re: Is there a command to find out the pid of all process running on the emulator?

2009-03-17 Thread mercury xu
Hi ying As I know, you can check what's happen on your emulator from the Eclipse' DDMS,at the IDE left‘s list . You can find them. Anyway, you want to show those information on your program or just check it? IF run in your emulator.maybe you can try process as following

[android-developers] Re: ADT Layout Editor

2009-03-17 Thread Xavier Ducrohet
Hi, This will probably come in the version following the plugin released with cupcake. Note that even though you cannot use the add button to add your custom classes to your layout, you can add them from the XML edit view. In most cases, custom views are properly rendered by the graphical

[android-developers] Re: Support from Developers

2009-03-17 Thread Mariano Kamp
I think it would be beneficial to see replies to comments, especially from the developer. Amen! It would also be good if you could see the other comments/ratings of the commenter. Just to get an idea if it is a prick or a concerned user. On Mon, Mar 16, 2009 at 3:45 PM, Alexander

[android-developers] Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread EboMike
I'm currently hosting an app on my own server so my beta testers can test it. I've set up the apk MIME type to be application/ vnd.android.package-archive, and when I try to download the app from the emulator, it downloads the 53KB apk file and installs it. When I try to do the same thing from a

[android-developers] Re: Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread Al Sutton
Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see

[android-developers] Re: Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread Michael Krehan
Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it on an ADP1 and a G1, both on the T-Mobile network, and it didn't work. The emulator worked fine. The

[android-developers] Re: Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread Al Sutton
If you want to send me a link off list I'll see what I can find. Al. Michael Krehan wrote: Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it

[android-developers] Re: global object? (singleton, intends, db)

2009-03-17 Thread Cyril Jaquier
Hi, in order to communicate with the server I need a huge global object (class with some hashmaps). all my activities (about 10) need that huge global object. wich options do I have? I am thinking about passing the object using intends and about the possibility to make the object a

[android-developers] Re: global object? (singleton, intends, db)

2009-03-17 Thread Al Sutton
Have you actually benchmarked using the database against alternatives? You may find that although you consider the database slow it's the fastest option you have when compared to serialization methods. Al. DaRolla wrote: hello, in order to communicate with the server I need a huge global

[android-developers] global object? (singleton, intends, db)

2009-03-17 Thread DaRolla
hello, in order to communicate with the server I need a huge global object (class with some hashmaps). all my activities (about 10) need that huge global object. wich options do I have? I am thinking about passing the object using intends and about the possibility to make the object a

回复: [android-developers] Re: How to re ad the file in sdcard?

2009-03-17 Thread Jiang
Sorry, you need to write like: FileInputStream is = new FileInputStream(/sdcard/your_file); --- 09年3月17日,周二, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: 回复: [android-developers] Re: How to read the file in sdcard? 收件人: android-developers@googlegroups.com 日期: 2009,317,周二,5:17下午

[android-developers] Transferring paid apps G1 - HTC Magic

2009-03-17 Thread Carl Whalley
With the imminent arrival of the Magic I was wondering what impact this would have on both end users and developers who want to transfer their apps over, or may even have both handsets for whatever reason. Is there a licensing provision for it? A means via software? This will become more of an

[android-developers] How the use same instances when launching application twice ?

2009-03-17 Thread Derek
Hi, Is it possible to re-use all the instances of Activities and Services when an application is launched twice. For instance: 1/ I start my application APP1. Some activities are launched and a service is started. 2/ I click Home device button 3/ I can see the icon the launch again my

[android-developers] Re: TextView

2009-03-17 Thread Mr.No
Nobody knows how to set the text in a TextView underlinded within the code? On 16 Mrz., 12:11, Mr.No f.hi...@arcor.de wrote: Thx, but its static, i wonna also change the text within the code. On 16 Mrz., 11:59, manoj manojkumar.m...@gmail.com wrote: Define a string value in strings.xml as

[android-developers] Re: Redistributing the eclipse plugins

2009-03-17 Thread danielolsson
On 16 Mar, 22:37, Ralf ralfo...@gmail.com wrote: With the usual I'm not a lawyer disclaimer applied, I'd think yes as long as you comply with the EPL and thus redistribute that part using the EPL. However you'd have to carefully choose your wording to make it clear this is not the original

Re: 回复: [android-developers] Re: How to rea d the file in sdcard?

2009-03-17 Thread AlexNguyen
Thanks for your help! --Alex On Mar 17, 5:22 pm, Jiang webs...@yahoo.cn wrote: Sorry, you need to write like: FileInputStream is = new FileInputStream(/sdcard/your_file); --- 09年3月17日,周二, Jiang webs...@yahoo.cn 写道: 发件人: Jiang webs...@yahoo.cn 主题: 回复: [android-developers] Re: How to read

[android-developers] Store log messages on adp1

2009-03-17 Thread Michael Bollmann
Is it possible to configure the ADP1 to keep the last 5mb(for example) of log messages especially when it's not connected to a development machine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Determine images at runtime - getResources().getIdentifier()

2009-03-17 Thread Tommaso
Hi all, in my application I have a table that stores information for symbols. These symbols have to be displayed, so also the source, the *.png, is stored in each row. These symbols are loaded randomly at runtime. How do I get the the image(s) to be loaded?

[android-developers] Re: InstrumentationTestRunner on G1

2009-03-17 Thread sukumar bhashyam
hi Fred, CheckJNI has nothing to do with testRunner. Din't remember the exact cause why it was not running on phone. But, it started working after sometime( might be problem with my code ). Sukumar. On Tue, Dec 30, 2008 at 3:12 PM, sukumar bhashyam.suku...@gmail.com wrote: hi, I'm facing

[android-developers] Re: Help using autocomplete in my database.....

2009-03-17 Thread aljo
Thanks... your program worked... Thank you for your help... Just one question... If what I understand is correct, your program queries only the first column of the table... If I query the second column which is the _id column, it still looks into the name column and displays the content of the

[android-developers] Reg: Porting of camera code with android source code

2009-03-17 Thread alok Yadav
Hi , I am porting camera code with the android source code .I am following all the procedure but while doing ant, i am getting following error. ** [r...@localhost CameraApiTest_alok]# /usr/bin/ant Exception in thread main java.lang.NoClassDefFoundError:

[android-developers] Re: Testing Android Game on real device: please help

2009-03-17 Thread TjerkW
I cannot follow only 1 thread there, it is all-threads or threads with a specific keyword. What i want is to only follow certain threads.. (sorry to be so off-topic) On 15 mrt, 17:46, Stoyan Damov stoyan.da...@gmail.com wrote: Go

[android-developers] Re: GridView ImageView and performance

2009-03-17 Thread ifuller1
Thanks gesh - as suggested the problem was related to recycling. Preformance is pretty good now, sadly my images keep shuffling but given your recent input this should be easy to fix. On Mar 15, 10:03 pm, Gesh geo...@neofonie.de wrote: I'm currently using the ImageAdapter from the Hello

[android-developers] Re: Determine images at runtime - getResources().getIdentifier()

2009-03-17 Thread Tommaso
I solved it, the parameter must be: getPackageName()+:drawable/+symbolIdentifier Still the question: How can it be done better? Thanks, Tommaso On 17 Mrz., 11:44, Tommaso nuccio.tomm...@gmail.com wrote: Hi all, in my application I have a table that stores information for symbols. These

[android-developers] Re: Vibrator device simulation in the emulator

2009-03-17 Thread David Turner
Hello, The vibrator is not currently emulated by the Android emulator at this point. On Mon, Mar 16, 2009 at 8:07 PM, Prem Thilagar prem...@gmail.com wrote: Hi I am trying to actually simulate a vibrator device inside the emulator .A timed_output driver for the vibrator was created and i am

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread deepdr...@googlemail.com
I would expect that the attribute android:launchMode=singleTask (notice the lower case s) on the Activity does what you want. How do you determine this doesn't work? -- http://www.deepdroid.com On 17 Mrz., 10:26, Derek cram.de...@gmail.com wrote: Hi, Is it possible to re-use all the

[android-developers] Re: Transferring paid apps G1 - HTC Magic

2009-03-17 Thread Jean-Baptiste Queru
If those apps were downloaded from Android Market, just be sure to sign into the new device with the same Google account and re-download the apps there (they'll be listed in Market - My Downloads). JBQ On Tue, Mar 17, 2009 at 1:48 AM, Carl Whalley carl.whal...@googlemail.com wrote: With the

[android-developers] Re: Store log messages on adp1

2009-03-17 Thread Jean-Baptiste Queru
As far as I know this is not run-time configurable. JBQ On Tue, Mar 17, 2009 at 3:21 AM, Michael Bollmann michael.bollm...@googlemail.com wrote: Is it possible to configure the ADP1 to keep the last 5mb(for example) of log messages especially when it's not connected to a development

[android-developers] jarsigner jar sign apk update

2009-03-17 Thread Maxence Warzecha
Hi all, This is what I did : - I signed my apk. - I published my apk. - I updated my application. - I sign my new apk file succesfully (**with an other keystore**). - I upload my new apk. - When poeple what to install updated version, they receive message look like apk file was not signed

[android-developers] Re: jarsigner jar sign apk update

2009-03-17 Thread Stoyan Damov
Of course you should sign your updated app with the same keystore, think about it - if this wasn't the case, I could make an app which claims to be yours, sign it with my own key and push a bogus update. On Tue, Mar 17, 2009 at 2:47 PM, Maxence Warzecha war...@gmail.com wrote: Hi all, This

[android-developers] Re: jarsigner jar sign apk update

2009-03-17 Thread Maxence Warzecha
Hi XD! Ok I understand. I will be aware about that. On 17 mar, 13:51, Stoyan Damov stoyan.da...@gmail.com wrote: Of course you should sign your updated app with the same keystore, think about it - if this wasn't the case, I could make an app which claims to be yours, sign it with my own key

[android-developers] I need to use jbossall-client.jar

2009-03-17 Thread DaRolla
hello, I need to use some jars inside android. well, most of them work. It seems that the standard java compiled jars are decompiled and compiled into dalvik format (for example Log4J.jar). The only jar that makes troubles is jbossall-client.jar. Eclipse console says: Attempt to include a

[android-developers] R.id.icon missing?

2009-03-17 Thread Fred Grott(shareme)
I have a problem.. Frist my envir0onment: -Ubuntu 8.10 -Eclipse 3.4.2/ADt 0.8 android SDk 1.1.r1 R.id.icon reference i snto showing upo.. my R java file shows: public static final class id { public static final int all_apps=0x7f050006; public static final int

[android-developers] Re: R.id.icon missing?

2009-03-17 Thread Fred Grott(shareme)
never mind, needed to add android. prefix On Mar 17, 8:23 am, Fred Grott(shareme) fred.gr...@gmail.com wrote: I have a problem.. Frist my envir0onment: -Ubuntu 8.10 -Eclipse 3.4.2/ADt 0.8 android SDk 1.1.r1 R.id.icon reference i snto showing upo.. my R java file shows:  public static

[android-developers] Re: Thumbnails

2009-03-17 Thread Gaurav
One point is still left, can we have duplicate thumbnails of same kind. Say I have an Image, can there be two thumbnails of micro kind of the same image? - No, right? On Mar 17, 4:52 am, Dave Sparks davidspa...@android.com wrote: We have a number of issues with metadata that need to be sorted

[android-developers] Re: jarsigner jar sign apk update

2009-03-17 Thread dillirao malipeddi
when you want to update application in the device it checks for the previous key info with modifications. it wont allow you to sign same application with different signs if you want to use different keys you must change your package name of your application then it wont give error. otherwise it

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread dillirao malipeddi
when you create a new intent set flag as your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivity(your_intent); On Tue, Mar 17, 2009 at 2:56 PM, Derek cram.de...@gmail.com wrote: Hi, Is it possible to re-use all the instances of Activities and Services when an application

[android-developers] Understand Broadcast and Intent with Dalvik process

2009-03-17 Thread Kenny Yu
Does anyone know if sendBroadcast(intentA) will bring intents to all Dalvik processes? For example, process android.process.acore behaves sendBroadcast(new intentA). Will the intentA be received in com.android.camera? We think android.process.acore and com.android.camera are zygoted to two

[android-developers] Re: Bitmap Memory

2009-03-17 Thread bra...@gmail.com
Well Im sorry - but this is a memory leak. Watching the core its obvious that the actual memory is being freed but when an attempt is made to use that memory the vm buffer still thinks the memory is in use. I have to say this is probably one of the worst bugs I have come across and it should be

[android-developers] OnDraw in Listview

2009-03-17 Thread vovkab
Hello I made my own widget by extended listview. How to draw over list? When i draw in Overridden OnDraw method it's showing behind the list items, but i need to draw over. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: GridView ImageView and performance

2009-03-17 Thread Streets Of Boston
I had similar issues. I managed to fix the performance of the list- view, but i ran into memory issues. My app downloads images from Smugmug, images that are 'front-page' images of galleries/albums. First, my app needed to get the information about the album, to get the image-id of the album's

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Kenny
Reading the file frameworks/base/telephony/java/com/android/internal/ telephony/gsm/SMSDispatcher.java, you can find handleSendComplete( ) has a PendingIntent to send. I don't understand PendingIntent well, only seeing the LOG code saying SMS send complete. Broadcasting intent ... Is this

[android-developers] Re: Intercepting outgoing sms

2009-03-17 Thread Kenny
I think check database seems not feasible. Seer, I posted a rely to you about SMSDispatcher class. Take a look, there may be certain intent sent there. Kenny On Mar 16, 9:44 pm, Kenny yxw...@gmail.com wrote: Sms should have provider, through which you may put your SMS to database, I think.

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-17 Thread Kenny
Thanks for your update. So you exactly have done two things: 1. Call SmsManager::sendTextMessage( ) 2. Put the sent SMS to its database via ContentResolver::insert( ) Kenny On Mar 17, 6:42 am, Seer gilligan.ch...@gmail.com wrote: i have been trying to do the same thing and just worked it out.  

[android-developers] Re: Paid applications and market feedback/rating

2009-03-17 Thread StefanK
There is probably a possibility to still keep the ratings if you leave the app free, let it expire (or go to a limited functionality after a several days or so). If users want to get it back to full features - they have to buy an unlock key. The unlock key is nothing more than a paid application

[android-developers] Re: Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread EboMike
I tried it again this morning and it works now. I guess T-Mobile keeps a cached file for 24 hours or so. At this point, I'm positive that the problem lies with T-Mobile: a) it works from within the emulator, b) I don't see a hit in the accesslog when I try to download it, c) it works after 24

[android-developers] Re: Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread Jean-Baptiste Queru
It'd be great if you could leave a note about your findings at http://code.google.com/p/android/issues/detail?id=1085 Thanks, JBQ On Tue, Mar 17, 2009 at 8:13 AM, EboMike ebom...@gmail.com wrote: I tried it again this morning and it works now. I guess T-Mobile keeps a cached file for 24

[android-developers] need help on --core-library

2009-03-17 Thread DaRolla
hello, I need to build a java.beans.PropertyChangeListener which is part of JDK (rt.jar) but not part of Dalvik. Trying to copy the sources to my Application I get this: Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include

[android-developers] Re: Keystores

2009-03-17 Thread linkmaster_6
thank you very much then. im just screwed then lol On Mar 16, 4:16 pm, Ralf ralfo...@gmail.com wrote: On Mon, Mar 16, 2009 at 12:34 AM, Kenny yxw...@gmail.com wrote: Not helping you, but I wonder what keystore is for? where to get some docs? thank you very much,

[android-developers] rebooting from application

2009-03-17 Thread Dan Raaka
Can application initiate rebooting the phone? Doing some thing like below doesn't seem to help .. Intent i = new Iintent(); i.setAction(Intent.ACTION_REBOOT); sendBroadcast(i); and having in the manifest .. uses-permission android:name=android.permission.REBOOT / gives the following the error

[android-developers] CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread zeeshan
Hi Android Experts, why CheckBox is always null. please find the error in my code: xml- CheckBox id=@+id/checkbox android:layout_width=wrap_content android:layout_height=wrap_content / code file- package com.reblogr.reblogrclient; public class Test extends

[android-developers] problem occur while writing andro id.provider.Settings.Secu­re.ENABLED_INPUT_METHODS

2009-03-17 Thread nighteagle
I have a problem while writing android.provider.Settings.Secure.ENABLED_INPUT_METHODS in my application. It will throw a security exception: 03-17 17:43:15.717: ERROR/AndroidRuntime(6950): java.lang.SecurityException: Cannot write secure settings table 03-17 17:43:15.717:

[android-developers] Build application with Android OS source code

2009-03-17 Thread Eng. Ahmed Abo El Ella
Hi all I write this tip for helping people working with Android OS source code. I created my own -Java Android- application. I developed it under windows eclipse I downloaded the source code of Android OS and successfully build it under Linux Ubuntu I wanted to insert my application into

[android-developers] Queue and Display Call Log, Names Only

2009-03-17 Thread iPaul Pro
I am trying to construct a simple app that allows me to see my call log, displaying names only, in a simple_list_item_1. I am totally new to Java and Android and this is really the first step in creating my first app. Here's what I've got (go easy, please): Manifest: ?xml version=1.0

[android-developers] TrackBall

2009-03-17 Thread cruiseru...@gmail.com
I know that emulation of trackball to DPAD do not work so good, then i decide use trackball. I override onTrackBallEvent but I have problem .It has good reaction for action move ... when I track left, it goes left, when I track right, it goes right, but I can't stop it .When I unpress ..

[android-developers] How to setclip of a view

2009-03-17 Thread 单单
There is another post asked this question. A guy give a solution using invalidate(int, int, int, int). But this seems work only once -- the drawing right after the invalidate. After that time of drawing, every repaint will draw the whole view. I need a real setClip permanent. Any help will be

[android-developers] Re: need help on --core-library

2009-03-17 Thread Stoyan Damov
I'll try to pull a magic now and guess what you're trying to do -- are you trying to get FreeTTS to work in your app? :P On Tue, Mar 17, 2009 at 6:01 PM, DaRolla netzprofi.ma...@googlemail.com wrote: hello, I need to build a java.beans.PropertyChangeListener which is part of JDK (rt.jar)

[android-developers] Re: Determine images at runtime - getResources().getIdentifier()

2009-03-17 Thread Gesh
well you can use the other parameters of that method instead of building the string yourself, but that's just for better readability, no real improvement there. otherwise there is no better method. cheers, gesh. On Mar 17, 12:29 pm, Tommaso nuccio.tomm...@gmail.com wrote: I solved it, the

[android-developers] Re: WiFi Emulator

2009-03-17 Thread Justin (Google Employee)
The emulator does not support WiFi. Also note that a retail G1 is perfectly suitable for development. There are pluses and minuses to both the ADP1 and the G1, most of which I'm sure you can find explored in different threads on this forum. Cheers, Justin Android Team @ Google On Mar 17, 7:06

[android-developers] Editing / Modifying Stock Google Apps

2009-03-17 Thread ipersaud
Where can I find the source code / project files to the Pattern Unlock feature so I can customize it in my own way? I don't even know if this is possible or allowable but I'm new to the group, read the forum rules but wasn't sure where to post a question like this.

[android-developers] DatePicker to looks like regular Calendar

2009-03-17 Thread marwooj
Hi, Is there a simple way to make DatePicker looks like that one from http://www.droiddraw.org/widgetguide.html regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] can not call a java method from javascript using addJavascriptInterface()

2009-03-17 Thread sherwin huang
hi I'm trying to call a java method from javascript using addJavascriptInterface(); but seems does not work, it always display failure; java code: public class WebTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle

[android-developers] code to mute using the MODIFY_AUDIO_SETTINGS permission

2009-03-17 Thread Beth
Hi, At the end of my AndroidManifest xml file you find this tag: uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS/uses- permission /manifest I am using Eclipse to write code to mute notifications and I get a java.lang.SecurityException: Permission Denial from the Emulator

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread dan raaka
Try changing the id and see if it makes any difference. -Dan On Tue, Mar 17, 2009 at 9:46 AM, zeeshan genx...@gmail.com wrote: Hi Android Experts, why CheckBox is always null. please find the error in my code: xml- CheckBox id=@+id/checkbox android:layout_width=wrap_content

[android-developers] Re: Can you requery a Cursor after the database object that created it is closed?

2009-03-17 Thread iliketolearn
Any help is appreciated. On Mar 15, 8:06 pm, iliketolearn theand...@gmail.com wrote: From my own quick tests, this seems to be the case. I just wanted to confirm. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] React to uninstall of application?

2009-03-17 Thread Marcus
Hi, my app stores some data on the sd-card. But when my app is going to be uninstalled, this data will be left. Is there a possibility to react on the uninstall intent of the user and delete the data? --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Thumbnails

2009-03-17 Thread todd
Yes, you can have both thumbnail types. It's just another row in the DB. The kind fields would be different for the micro and mini rows. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Support from Developers

2009-03-17 Thread Alexander
As a side note, I found a good example of really interesting support, at least on the internet (on the phone is a different issue). I really like the system at getsatisfaction.com - it is a bit social networking for me, but then again, it might be the type of support system that the users of the

[android-developers] Re: Storing images as blob in sqlite

2009-03-17 Thread My3
And-Rider, Even I am facing same problem,am trying to load the image using webview which is throwing this error: xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x %02x Can you please let me know how did you solve this. On Feb 27, 11:59 pm, And-Rider rahulregunat...@gmail.com

[android-developers] Injecting HTTP header into all requests issued by the emulator

2009-03-17 Thread Greg Krimer
Hi everyone, Is there an easy way to inject a header into all HTTP request sent from the emulator, including HTTP requests made by my app and also by the built-in web browser? I need this ability to model the behavior of a carrier gateway. I tried running the emulator through Fiddler as a proxy

[android-developers] Re: the imageview object supports which formats images other than png and jpg

2009-03-17 Thread My3
Even i am interested to know about this. Is there any ways to display tiff image? On Jan 31, 5:10 am, jj jagtap...@gmail.com wrote: Hello everybody     The imageview  object supports, which formats of images other than png and jpg?  Is it supporting *.jif, *.bmp. *.tiff, etc. to display them

[android-developers] Re: Support from Developers

2009-03-17 Thread Alexander
*Here's a good start of something to this end: New Google Group for just this kind of thing.. http://groups.google.com/group/android-app-distribution Thanks to Al Sutton for starting this! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread Derek
Do I need both addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); and android:launchMode=singleTask in AndroidManifest.xml ? On Mar 17, 3:04 pm, dillirao malipeddi dillir...@arijasoft.com wrote: when you create a new intent set flag as your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);  

[android-developers] orientation change crashes when ids are not unique

2009-03-17 Thread skink
hi, consider the simple layout: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical LinearLayout

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Romain Guy
You can have the same id on different widgets. What is the exception you get? On Tue, Mar 17, 2009 at 12:00 PM, skink psk...@gmail.com wrote: hi, consider the simple layout: ?xml version=1.0 encoding=utf-8? LinearLayout        xmlns:android=http://schemas.android.com/apk/res/android;    

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 18:19, Romain Guy romain...@google.com wrote: You can have the same id on different widgets. What is the exception you get? ClassCastException, it's probably the SavedStates are backed by one linear sparse array (at least i think so)

[android-developers] Re: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL?

2009-03-17 Thread William
I am not too familiar with how GL works. Is the performance gain happen in writing to the screen or doing the image manipulation or BOTH. I mean I know I can convert a bitmap to a texture and put it on the GL surface. Most of my code is done using canvas to draw to off screen bitmaps before i

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Romain Guy
Oh yeah, we fixed that in Cupcake. But the bottom line is: don't use the same id for Views of different types. On Tue, Mar 17, 2009 at 12:27 PM, skink psk...@gmail.com wrote: On 17 Mar, 18:19, Romain Guy romain...@google.com wrote: You can have the same id on different widgets. What is the

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread skink
On 17 Mar, 18:36, Romain Guy romain...@google.com wrote: Oh yeah, we fixed that in Cupcake. But the bottom line is: don't use the same id for Views of different types. ok, thanks for info but if i used the same ids for the same View types (for example two ListViews) how its supposed to

[android-developers] Re: SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-17 Thread Torgny Bjers
I synchronized the method and it all seems to be working fine now. Thanks for helping me with this rather obscure error. On Mar 16, 2009 7:31 PM, sm1 sergemas...@gmail.com wrote: SimpleDateFormat is known to not be thread-safe, and it's instances must be either unique to each thread or

[android-developers] Re: WebView issue...

2009-03-17 Thread Marc
Bump. On Mar 11, 7:52 am, Marc gram...@gmail.com wrote: So I've got a WebView, and in its content is a phone number.  I hightlight it and click - voila, taken to the phone app. Now, all I do is add this code:                 wv.setWebViewClient(new WebViewClient() {                    

[android-developers] Re: Is there a large efficiency difference between Canvas.drawBitmap or OpenGL?

2009-03-17 Thread Jon Colverson
On Mar 17, 7:27 pm, William william.caine...@gmail.com wrote: Do I have to convert all that to GL textures or can I keep all the bitmap work and convert the final image to a texture to be drawn to the GL surface.  If I have to convert it all to the textures and draw to the textures, will

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Seer
Even if it does everything I want kenny it will not stop the system also sending the sms via the gsm network as well. Best case would be 2 sms been sent On Mar 18, 1:46 am, Kenny yxw...@gmail.com wrote: Reading the file frameworks/base/telephony/java/com/android/internal/

[android-developers] Re: Intercepting outgoing sms

2009-03-17 Thread Seer
Kenny I now have everything working apart from intercepting the sms. I can log them etc but only way I can see to intercept them is to either override smsmanager ( not possible ) or rename the isms service and place my own service in its place. My service would then call the old isms service for

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-17 Thread Seer
Thanks for your update. So you exactly have done two things: 1. Call SmsManager::sendTextMessage( ) 2. Put the sent SMS to its database via ContentResolver::insert( ) The code i gave you only adds a record to the phones sms database to say an sms has been sent and it will be visible to the

[android-developers] Re: Capturing exceptions on user's phones?

2009-03-17 Thread cnordvik
1) When an exception occurs, the application will just drop back to the home screen and the user won't actually know that an exception has occured. Any luck on sorting this out? A dialog that informs the user of the error and a report this problem button that opens the email app would be

[android-developers] adb and Eclipse list no device after 1 minute

2009-03-17 Thread Brad
When I plug in the ADP1 and do the following: $ adb devices List of devices attached HT845GZ50887device But, after connecting via the USB, my ADP1 device goes away after about a minute. I can also load an application from Eclipse to the ADP1 fine. But Eclipse lists in error in the

[android-developers] Catching clicks on xml files in the browser

2009-03-17 Thread Rohit
Hi, I am trying to intercept xml links that are clicked in the android web browser. I want my activity to handle these xml files, however I cannot seem to get this to work. Whenever I click on the xml file in the browser it just displays the xml file. Here is the entry that I have in my

[android-developers] Re: Capturing exceptions on user's phones?

2009-03-17 Thread Mads Kristiansen
Well, I am using a workaround currently, which means that the application will restart. On application restart a dialog will then notify the user that a problem has occurred. The problem here is that I cannot get a context in the default exception handler (where I dump the stack trace) and thus I

[android-developers] Re: adb and Eclipse list no device after 1 minute

2009-03-17 Thread Brad Fuller
Could the answer be because a USB hub is between the computer and the ADP1? Maybe it is timing out and detaching the device? I've moved the connection from a USB hub to the computer directly and so far the ADP1 continues to be detected (according to adb devices) On Tue, Mar 17, 2009 at 2:31 PM,

[android-developers] Location.getTime() does not return milliseconds

2009-03-17 Thread Yossi
Hi, According to the decumentation, android.location.Location.getTime() returns the fix time in milliseconds. however I keep getting the time rounded to seconds (e.g. no milliseconds accuracy). Is this the 'normal' behavior or do I do something wrong? Thanks, Yossi

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Dianne Hackborn
If there are features missing from the current system (such as an actual API for applications to integrate with the low-level telephony SMS layer), you can look at adding those to the platform and contributing patches to have the feature in a future version. In that case, you can start a

[android-developers] Re: orientation change crashes when ids are not unique

2009-03-17 Thread Dianne Hackborn
Yes, the ID is used to propagate the saved state to the appropriate view in the next instance. Use different IDs. Why do you even want to use the same ID? On Tue, Mar 17, 2009 at 12:45 PM, skink psk...@gmail.com wrote: On 17 Mar, 18:36, Romain Guy romain...@google.com wrote: Oh yeah, we

[android-developers] Re-register AlarmManager events on upgrades

2009-03-17 Thread Michael Bollmann
I read that the AlarmManager looses all registered intents if case the application that registered those intents is upgraded. What is the correct approach to re-register those intents considering the user does NOT start the application after upgrading it?

[android-developers] spinner or similar selection with no selection by default

2009-03-17 Thread daniel.benedykt
Hi Is there a way to show a spinner or something similar with no selection (empty or text saying (no selection)) but when the user clicks on the spinner that item is not there anymore? Basically yo start I wanted to be empty and I have a label that says go to: and a spinner with options: a,

[android-developers] Re: Re-register AlarmManager events on upgrades

2009-03-17 Thread daniel.benedykt
Hi I have the same problem. As far as I know the only way is to set a Service to start after the installation is done. Maybe you can put a service that runs once (not really a service hehe) that it will be initiated after the installation is complete, set up the alarms and end the service.

[android-developers] Emulator not starting

2009-03-17 Thread amiz
I am running Eclipse on XP. The Emulator was running correctly but all of sudden today it hang up. I closed Eclipse, rebooted the XP, now when I invoke eclipse, it displays a ddms alert box with the message: Failed to initialize monitor thread: Unable to establish loopback connection and

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Seer
Dianne, Thanks for the reply. The problem is I am not sure there is not already an API for it. That is what i am trying to find out but no one is really responding to say there is or there is not. I find it really strange that there would not be some way of hooking into the lower layers or to do

[android-developers] Re: can not call a java method from javascript using addJavascriptInterface()

2009-03-17 Thread Diego Torres Milano
You should call window.test.incr(100) instead. -- Have you read my blog ? http://dtmilano.blogspot.com On Mar 17, 4:28 am, sherwin huang sherwin@gmail.com wrote: hi I'm trying to call a java method from javascript using addJavascriptInterface(); but seems does not work, it always  

[android-developers] Re: android.os.ServiceManager

2009-03-17 Thread Dianne Hackborn
Sorry I can't help you, I know about the framework but not the telephony layer or individual apps like SMS. On Tue, Mar 17, 2009 at 3:54 PM, Seer gilligan.ch...@gmail.com wrote: Dianne, Thanks for the reply. The problem is I am not sure there is not already an API for it. That is what i am

  1   2   >