[android-developers] CheckinTask time correction

2010-09-13 Thread tom
Now I found one very curious issue, If I can access internet (WIFI, 3G), and change date/time 2010 year to 2011 year, after while, system automaticlly update my date/time 2011 to 2010 year. In fact I had disable the automatic update date/time function in setting. following is my log, GMS had done

[android-developers] Re: Monkey usage with Scripts/Network Control not working

2010-09-13 Thread Tez
Monkey network control working correctly. Must be careful about scaling co-ordinates while using it. I hope this post helps others when they have problems. Cheers, Earlence On Sep 12, 11:21 pm, Tez earlencefe...@gmail.com wrote: count= number of events speed= in ms start data

[android-developers] Re: Edittext Cursor and Highlight Problem

2010-09-13 Thread SurtaX
Does anyone have any solutions to this at all? On Sep 2, 12:56 am, SurtaX garylo@gmail.com wrote: I am trying to implement a textview which has select text/copy and paste functionality. I tried to do this by making an Edittext with the following properties. I currently have the following

[android-developers] ContentObserver not working

2010-09-13 Thread Sohan badaya
Hi All, I want to write a code that will notify me whenever my database changes. For example I write a code that extends ContentObserver class and overrieds onChange() method. and in registration time i am giving url Contacts.People.CONTENT_URI. so i want when some modify contacts onChange()

Re: [android-developers] CheckinTask time correction

2010-09-13 Thread Dianne Hackborn
Er... turn off the automatic update date/time option, if that is what you want. Not sure what else you are looking for about how to remove it. As for why this is done... generally, as users, we find it nice that our device knows the time without us doing anything, and since with a network

[android-developers] Question on Intents?

2010-09-13 Thread Arpit
I have the a scenario where number of Activites are invoked: Activity A -- Activity B -- Browser Activity -- Activity C... By Browser Activity I mean, Activity B will do the following: String url = http://example.com;; startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); On Activity

Re: [android-developers] Question on Intents?

2010-09-13 Thread Dianne Hackborn
You probably can't avoid this. The browser is somewhat special in its implementation, and doesn't even go on your back stack. (It is singleTask.) One thing you could try, if activity B and C are your own, if you give them the same taskAffinity then you could maybe set it up so the launch of C

[android-developers] Re: Question on Intents?

2010-09-13 Thread AJ
Hi Arpit, Check lainch modes of an activity (http://developer.android.com/guide/ topics/manifest/activity-element.html#lmode) and the flag FLAG_ACTIVITY_NEW_TASK Thanks, AJ On Sep 13, 11:51 am, Arpit robin.ca...@gmail.com wrote: I have the a scenario where number of Activites are invoked:

Re: [android-developers] Every few hours Eclipse + ADT runs out of resources...

2010-09-13 Thread Xavier Ducrohet
in ADT 0.9.8, we've fixed a (big) memory leak happening in the layout editor. I suggest you update (0.9.8 was released on Wednesday). Let me know if this still happens. Xav On Sun, Sep 12, 2010 at 2:38 PM, mmo mmo...@gmail.com wrote: When I am developing for Android and repeatedly running

[android-developers] Re: How to reduce padding between cells in TableLayout

2010-09-13 Thread William Ferguson
Anyone? On Sep 12, 10:43 pm, William Ferguson william.ferguson...@gmail.com wrote: I have a 3*3 TableLayout that contains buttons. But I cannot seem to remove the spacing between the buttons in the Table. Setting pading to zero for the buttons has no effect. Setting padding and

Re: [android-developers] Re: any tool in android to find memory leak and code optimization

2010-09-13 Thread Xavier Ducrohet
On Sun, Sep 12, 2010 at 1:22 PM, Samsyn d...@synthetic-reality.com wrote: I believe DDMS has much of what you need. For code profiling, search for 'TraceView' * you will want to add some UI to your app to let you toggle tracing on and off, so you can capture samples while your code is doing

[android-developers] Map Application available on Android Emulator

2010-09-13 Thread cool.manish
Hi, I need some information regarding Map application. I have seen one map application on sdk 1.6 and above. Questions are: 1. Will it be available on all android phones? 2. Can I call this application from my application? If yes then how? I dont know how to call another class. I think, I

[android-developers] Re: How to reduce padding between cells in TableLayout

2010-09-13 Thread skink
On 13 Wrz, 09:17, William Ferguson william.ferguson...@gmail.com wrote: Anyone? On Sep 12, 10:43 pm, William Ferguson william.ferguson...@gmail.com wrote: I have a 3*3 TableLayout that contains buttons. But I cannot seem to remove the spacing between the buttons in the Table.

[android-developers] Disabling the USB port?

2010-09-13 Thread Tez
Hi, Is it possible to disable the USB port? Even if the device is physically connected to a host computer via USB cable, no logical connection should be established. What are the sources/programmatic way of doing this? Cheers, Earlence -- You received this message because you are subscribed to

[android-developers] Re: any tool in android to find memory leak and code optimization

2010-09-13 Thread Tez
You can also PMD for code analysis/optimization. -E On Sep 13, 12:20 pm, Xavier Ducrohet x...@android.com wrote: On Sun, Sep 12, 2010 at 1:22 PM, Samsyn d...@synthetic-reality.com wrote: I believe DDMS has much of what you need. For code profiling, search for 'TraceView' * you will want

[android-developers] Re: OpenGL lockups in 2.2

2010-09-13 Thread Robert Green
Jeremy, It happened to me quite a bit on both 2.1 and 2.2 on every device. It's surely a defect of Android but so far no one has been able to track it down. It's a tough one, very difficult to reproduce reliably. It tends to happen more often in certain cases for reasons unknown to me right

[android-developers] Re: How to reduce padding between cells in TableLayout

2010-09-13 Thread William Ferguson
Thanks. It turns out that a button's default 9 patch background has large chunks of blank space at the side and bottom. No wonder changing the button padding wasn't having any effect. On Sep 13, 5:29 pm, skink psk...@gmail.com wrote: On 13 Wrz, 09:17, William Ferguson

[android-developers] Re: OpenGL lockups in 2.2

2010-09-13 Thread Robert Green
I'm sorry - let me clarify something. When I said, quite a bit, I mean that it happened to me on both versions at least once on every device I tested on. To quantify better, it happened maybe a total of 20 times in about 400 hours of play testing. It happens more often to others according to

[android-developers] Re: I am getting the PVMFInfoUnderflow while playing the video from youtube

2010-09-13 Thread manoj
Hi All, Actually, what happens is that, the video (from youtube.com) is playing fine for very few seconds (20 to 30 secs). Later I observed the below PVMFInfoUnderflow in log, and from then it got stopped sudden playing the video. Could some one please respond? Thanks, Manoj. manoj wrote: Hi

[android-developers] how do i draw the direction arrow on the map

2010-09-13 Thread dadada
hi all, question as above. right now, i am creating a class extending mylocationoverlay. then, i override the draw method. is this the correct method? because after i rewrote the draw method, the map tile cannot render. please advise. Thanks! bryan -- You received this message because you

[android-developers] Re: any tool in android to find memory leak and code optimization

2010-09-13 Thread MarcoAndroid
I found DDMS not sufficiently detailed to find memory leaks, so I use MAT. For full step-by-step instructions on finding memory leaks and using MAT, I suggest this post: http://ttlnews.blogspot.com/2010/01/attacking-memory-problems-on-android.html On Sep 12, 10:09 pm, Sohan badaya

[android-developers] Live Wallpaper WIN DEATH upon restart

2010-09-13 Thread HaMMeReD
I'm getting a WIN DEATH message on shutdown from one of my live wallpapers. Since this occurs at shutdown the user doesn't really notice, it does however reset the lwp to the default paper upon the next restart. Pertinent log message afaik follows. I/PackageManager( 120): Removing non-system

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
Thanks for that! Excellent code. But I have a problem! When I try to do the following: private MyService service=null; private ServiceConnection svcConn=new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder binder) {

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Kostya Vasilyev
Donal, No, a service is a service, and a binder is a binder. The binder you get in the callback is the binder returned by the service's onBind. This example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/LocalService.html has a binder

[android-developers] Re: is there a way to access the system camera?

2010-09-13 Thread dadada
thank you that what i wanted. Thanks Taylor. On Sep 11, 1:13 am, Taylor Perkins taylo...@gmail.com wrote: Check out the intents that allow you to access system function. I think the one you are talking about is the following: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

[android-developers] Re: canvas woe

2010-09-13 Thread dadada
Thanks Kostya. it works. So I everytime i onDraw(), i will create new path() and of course .reset(). Thank you. On Sep 12, 11:33 pm, Kostya Vasilyev kmans...@gmail.com wrote: Seems like you apply transformations to mPath over and over again, without resetting. Try moving the code that

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
Monday morning coding! :) I return my aidl definition in my service's onBind: @Override public IBinder onBind(Intent arg0) { Log.d(XXX, Status: onBind Called); return myServiceStub; } IBinder myServiceStub = new IMyService.Stub(){ //aidl methods }; And

[android-developers] Memory reserved for surfaces

2010-09-13 Thread Luca Carlon
Hi everyone! As far as I can understand, and according to what I've been told here, on some Android devices, there exists a pool of memory reserved for Surfaces which is shared by the applications. Is this correct? The exception OutOfResourcesException is related to this pool of memory coming up

[android-developers] Adding Contacts in Custom account 2.2

2010-09-13 Thread mikedroid
I created a custom account that will create my own contacts but using the ContactsContract that is new in the sdk, when i already provided values and seems like called every method and constant to be used, the only thing that shows in the EditContactActivity and ofcourse having my own account for

Re: [android-developers] Disabling the USB port?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 3:44 AM, Tez earlencefe...@gmail.com wrote: Is it possible to disable the USB port? You could fill it with glue... Even if the device is physically connected to a host computer via USB cable, no logical connection should be established. What are the

[android-developers] What is the maximum length for text datatype in SQLite?

2010-09-13 Thread Mystique
I can't seems to find this information, anyone know? -- 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 unsubscribe from this group, send email to

[android-developers] how to know an opengl method is implemented?

2010-09-13 Thread luma
I mean in runtime. Sometimes I get called unimplemented OpenGL ES API error but it can not be catched. Is there a way to figure out what function is implemented or not, in runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] What is the maximum length for text datatype in SQLite?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 6:37 AM, Mystique joven.ch...@gmail.com wrote: I can't seems to find this information, anyone know? http://sqlite.org/limits.html#max_length -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.

2010-09-13 Thread mani
Thanks Binggrae...!! Finally .apk file is generated. !! Why is it generated of engineering variants not for other variants...? Any idea ? And when i restarted the emulator i couldnt see the apk picked up automatically...!! I need to install through adb install command. Is it expected ? if the

[android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Lidy
Hello, I have the following problem. I was developing in android using the eclipse and android-sdk-windows saved in an folder (e.g. C:\android\android-sdk_r07-windows\android- sdk-windows\ and C:\android\eclipse-pulsar-helios-win32) . But after i downloaded and installed the eclipse and

[android-developers] Adding permission in framework.

2010-09-13 Thread Rahul Garg
How can I add some permission in framework , is it any way to do this ?? -- 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 unsubscribe from this group, send email to

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Lidia G
ok, i found how to use adb kill-server, but it is thinking too much while tying to kill --- On Mon, 9/13/10, Lidy lidyp...@yahoo.com wrote: From: Lidy lidyp...@yahoo.com Subject: [android-developers] Failed to parse the output of 'adb version' ERROR To: Android Developers

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
I have managed to implement the Task in my Service now but the original problem still remains. I dont cancel the Task at all in my service, I simply play the ringtone in the postExecute method of the Asynctask if a flag is true, if its not I dont. But I get the same issue, after a couple of runs

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
Sorry I meant only the preExecute is run On Mon, Sep 13, 2010 at 1:05 PM, Donal Rafferty draf...@gmail.com wrote: I have managed to implement the Task in my Service now but the original problem still remains. I dont cancel the Task at all in my service, I simply play the ringtone in the

[android-developers] Reading SIM Card ID and Phone number from SIM Card

2010-09-13 Thread Ajmer singh
Hi I require to read the SIM Cards data from my android phone.Could any body please let me know how i can do this in Android phone. -- *Thanks and Regards Ajmer Singh* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Custom Account / Sync adapter: inability to edit contacts?

2010-09-13 Thread BoD
Hi! When creating a custom account and/or sync adapter, raw_contacts that belong to your custom account can be created. But it looks like that they then cannot be edited with the Contact app! Is this a known limitation, or a problem in my code? Thanks a lot for your help. BoD -- You

[android-developers] Re: Disabling the USB port?

2010-09-13 Thread Tez
Is there any other way that can block the USB port so that no data is transferred? Where are the corresponding source files? Cheers, Earlence On Sep 13, 3:33 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Sep 13, 2010 at 3:44 AM, Tez earlencefe...@gmail.com wrote: Is it possible to

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Lidia G
Please help me, i can't resolve this problem, and can't work . I still have the same error: [2010-09-13 14:49:27 - MopayApi3] The connection to adb is down, and a severe error has occured. [2010-09-13 14:49:27 - MopayApi3] You must restart adb and Eclipse. [2010-09-13 14:49:27 - MopayApi3]

Re: [android-developers] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-13 Thread TreKing
On Sat, Sep 4, 2010 at 6:16 AM, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: So, can you tell us which part of Google we should talk to in order to get some answer to the problem? Here's another option. Everyone with this issue should try this one:

[android-developers] Re: Adding permission in framework.

2010-09-13 Thread Tez
read the manual! On Sep 13, 4:49 pm, Rahul Garg rahul.lnm...@gmail.com wrote: How can I add some permission in framework , is it any way to do this ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-13 Thread TreKing
Everyone with this issue should try this link: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher Meanwhile my paid app % is approaching that of my free version, which is simply ridiculous, and I've dropped 3 spots in my category. How are you guys doing? Better,

[android-developers] Where has hierarchyviewer.bat gone?

2010-09-13 Thread repDetect()
After updating my SDK Tools to Rev.7 I no longer have hierarchyviewer.bat in the tools directory, any Idea anybody? Running on MS-Windows, updated ADT too (0.9.8). Found no reference on http://developer.android.com/sdk/tools-notes.html. android-sdk\tools\lib\hierarchyviewer.jar is present. Would

[android-developers] Can we use Map Application installed on Android emualtor with sdk 1.6?

2010-09-13 Thread cool.manish
Hi, I need some information regarding Map application which is installed on Android emulator 1.6. Questions are: 1. Will it be available on all android phones? 2. Can I call this application from my application? If yes then how? I dont know how to call another class. I think, I should know

Re: [android-developers] Re: is there a way to implement screenshot functionality in android

2010-09-13 Thread TreKing
On Sun, Sep 12, 2010 at 9:54 PM, argon gold argongol...@gmail.com wrote: There is a screen capture application for android. Please check it. http://www.androlib.com/android.application.net-srcz-android-screenshot-zEtD.aspx *FOR ROOT DEVICE ONLY* Some one comments on this application as

[android-developers] listview with different xml for rows

2010-09-13 Thread manigault
Hi all i want to implement listview with uses different xml layouts for rows depending on underlying item. A non optimal solution will be int getView method just to inflate every time a new view depending on the item from the adapter. Is there a better way to do this ? -- You received this

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Kostya Vasilyev
Donal, Search the list: there was a post within the last month (I think) from Romain Guy about some kind of thread race issue in AsyncTask having been fixed in Froyo (or was it post-Froyo?) - anyway, it's somewhere in the archives. -- Kostya 13.09.2010 16:07, Donal Rafferty пишет: Sorry

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Kostya Vasilyev
What are your: - Desktop OS (Windows / Mac / Linux), version and 32/64 bit-ness? - Java SDK version and bitness? - Eclipse version and bitness? -- Kostya 13.09.2010 17:00, Lidia G ?: Please help me, i can't resolve this problem, and can't work . I still have the same error: [2010-09-13

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Lidia G
Hello I have -Desktop Windows XP 32bit -JAVA 1.6 -Eclipse pulsar GALILEO for win32 bit --- On Mon, 9/13/10, Kostya Vasilyev kmans...@gmail.com wrote: From: Kostya Vasilyev kmans...@gmail.com Subject: Re: [android-developers] Failed to parse the output of 'adb version' ERROR To:

Re: [android-developers] Edittext Cursor and Highlight Problem

2010-09-13 Thread TreKing
On Wed, Sep 1, 2010 at 9:56 AM, SurtaX garylo@gmail.com wrote: I am trying to implement a textview which has select text/copy and paste functionality. Why? I just tried playing an EditText I use in my app that's basically as default as can get and I can select text, copy, and paste

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
Kostya, Thanks, that conversation can be seen here: http://groups.google.com/group/android-developers/browse_thread/thread/07ea01892ee7a5f4/9f71428217c2cd44 However the condition is in the cancel code, which I no longer use as I am running the code in a Service so I have no need to cancel it.

[android-developers] How to take care of form factor(screen size) and resoultion

2010-09-13 Thread cool.manish
If I wish to run my application on different devices with different screen size and/or resolution then how can it be achieved? For example if I have given a padding of 5px for one particular screen size. That might not look good for a device having larger or smaller screen than this device. I

Re: [android-developers] listview with different xml for rows

2010-09-13 Thread Kostya Vasilyev
There is support for this: - Override getViewTypeCount in the adapter, return how many types of views are needed. - Override getItemViewType in the adapter, return the type of view for a particular item. - ListView will take these in consideration when recycling views, getView will only

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Kostya Vasilyev
Which build of Java - 1.6 update 20 or 21? Some issues were reported with update 21, so if you are using it, can you try rolling back to update 20? The rest looks ok. -- Kostya 13.09.2010 17:41, Lidia G пишет: Hello I have -Desktop Windows XP 32bit -JAVA 1.6 -Eclipse pulsar GALILEO for

[android-developers] Re: ContentObserver not working

2010-09-13 Thread Brion Emde
From my limited usage of ContentObserver, it is used to determine when a single record of the database changes. If you want to observe many records, I believe that you need to use a DataSetObserver. Look at the source code for how SimpleCursorAdapter uses them. I'd be interested in clarification,

[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-13 Thread Pent
Meanwhile my paid app % is approaching that of my free version, which is simply ridiculous, and I've dropped 3 spots in my category. How are you guys doing? Better, same, worse? 80%-50%. Virtually all of my sales were last 6 weeks. App continues to get 4.5 stars. Pent -- You received this

Re: [android-developers] How to take care of form factor(screen size) and resoultion

2010-09-13 Thread Kostya Vasilyev
Have you read through this? http://developer.android.com/guide/practices/screens_support.html 13.09.2010 17:49, cool.manish пишет: If I wish to run my application on different devices with different screen size and/or resolution then how can it be achieved? For example if I have given a

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Kostya Vasilyev
Donal, It sort of seems like you reuse the same task over and over. What happens if you create a new task each time you need to perform the asynchronous operation? -- Kostya 13.09.2010 17:44, Donal Rafferty пишет: Kostya, Thanks, that conversation can be seen here:

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Lidia G
I don't know how to find out. Can you tell me please where to find in eclipse which build of java is used --- On Mon, 9/13/10, Kostya Vasilyev kmans...@gmail.com wrote: From: Kostya Vasilyev kmans...@gmail.com Subject: Re: [android-developers] Failed to parse the output of 'adb version' ERROR

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Kostya Vasilyev
From the command line, run java -version 13.09.2010 18:13, Lidia G ?: I don't know how to find out. Can you tell me please where to find in eclipse which build of java is used --- On *Mon, 9/13/10, Kostya Vasilyev /kmans...@gmail.com/* wrote: From: Kostya Vasilyev

Re: [android-developers] Re: Disabling the USB port?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 8:59 AM, Tez earlencefe...@gmail.com wrote: Is there any other way that can block the USB port so that no data is transferred? I sure hope not. Where are the corresponding source files? I have no idea. I work at the SDK level, and I know there's nothing much in the

Re: [android-developers] Can we use Map Application installed on Android emualtor with sdk 1.6?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 9:20 AM, cool.manish mannishga...@gmail.com wrote: Questions are: 1.  Will it be available on all android phones? No.  2. Can I call this application from my application? If yes then how? See the geo: Intent syntax described here:

[android-developers] Re: ContentObserver not working

2010-09-13 Thread Pent
onChange() method. and in registration time i am giving url Contacts.People.CONTENT_URI. That's deprecated, if you're on a super-new device maybe it doesn't work anymore ? ContentObserver definitely works in general. Try CallLog.CONTENT_URI, see if it works. I'm using that one myself

[android-developers] Re: Android 2.2 - width=device-width No Longer Working

2010-09-13 Thread bcolflesh
Parag, I'm still testing this morning - but that does seem to be the answer to my issue - thank you very much for posting! Info in the official docs: http://developer.android.com/reference/android/webkit/WebView.html Search for target-densitydpi James Short, note the entry on

Re: [android-developers] how do i draw the direction arrow on the map

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 3:35 AM, dadada ytbr...@gmail.com wrote: question as above. What is the direction arrow? You mean the indicator on the MyLocationOverlay that Google Maps shows? right now, i am creating a class extending mylocationoverlay. then, i override the draw method. is

[android-developers] Re: Disabling the USB port?

2010-09-13 Thread Chris Stratton
Compile a kernel without usb drivers. You will need root or an engineering bootloader to install it. Or you could just leave usb debugging off and decline to mount mass storage mode. Tez wrote: Is there any other way that can block the USB port so that no data is transferred? Where are the

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
Kostya, I do create a new Task as follows everytime: new SelectRingtoneTask().execute(); But I had to use Looper.prepare(); to get it to work in my Service, this could be causing an issue? Is there a proper way to use a AsyncTask in a Service without needing to call Looper.prepare();?

[android-developers] Re: how do i draw the direction arrow on the map

2010-09-13 Thread dadada
i didn't mean that compass that you can enable. i mean some graphical arrow that i can draw on top of the map. it will stay on top irregardless of zoom level. the direction arrow will show the bearing to my destination. then should it be the Overlay class? Yes i am really lost what should i

[android-developers] Re: Launch two Activities extended from another one.

2010-09-13 Thread SpaceJack
Hello, Frank! No problem, it is not something special. Here goes application . . .. . .. . . activity android:name=A intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter . . .

Re: [android-developers] Re: how do i draw the direction arrow on the map

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 9:51 AM, dadada ytbr...@gmail.com wrote: i mean some graphical arrow that i can draw on top of the map. it will stay on top irregardless of zoom level. the direction arrow will show the bearing to my destination. then should it be the Overlay class? You could add an

Re: [android-developers] Launch two Activities extended from another one.

2010-09-13 Thread TreKing
On Fri, Sep 3, 2010 at 3:26 PM, SpaceJack ss4te...@gmail.com wrote: That is I start A, then press Home key and move task back, then try to start B, but get onRestart() of my BaseClass, not onCreate(). Sounds strange. You're not doing anything funky with static variables? And what does // We

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Kostya Vasilyev
Donal, You having to call Looper.prepare makes it seem like you're not creating your task and calling its execute() from the UI thread. Is that so? The docs is actually quite clear on this, see Threading rules: http://developer.android.com/reference/android/os/AsyncTask.html 13.09.2010

Re: [android-developers] Failed to parse the output of 'adb version' ERROR

2010-09-13 Thread Lidia G
i changed to update 20, and it is still not working. I closed the eclipse run from command line adb kill-server then adb  start-server   -it says daemon started succesfully then opened the eclipse again, and there is still the same error i don't know what to do else --- On Mon, 9/13/10, Kostya

[android-developers] how do i launch google street view from app

2010-09-13 Thread dadada
hi all, question as above. I cannot find anything in the sdk regarding google street view. do we launch it from the web? please advise. thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how do i launch google street view from app

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 10:18 AM, dadada ytbr...@gmail.com wrote: I cannot find anything in the sdk regarding google street view. Really? http://developer.android.com/guide/appendix/g-app-intents.html

[android-developers] How to get Latitude and longitude information

2010-09-13 Thread Gold
Hi All, If I click the button I will show current lattitude and longitude value in textbox.. I dont know how to achieve this..! i am using htc hero emulator..! Eagerly waiting for reply.. Thanks in Advance, Gold -- You received this message

[android-developers] Displaying HTML markup in WebView

2010-09-13 Thread Neilz
Hi all. I'm receiving XML which contains elements of HTML and I want to display these to the users. Therefore, I have to set the content programmatically, rather than extract the strings from an android xml resource. I'm using a WebView to display the content, rather than TextView, as it handles

Re: [android-developers] How to get Latitude and longitude information

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 10:57 AM, Gold thangadura...@gmail.com wrote: I dont know how to achieve this..! Which part? Clicking a button? Showing the values? Getting the values? What do you have working so far?

[android-developers] Re: SQLite DB: insert VERY slow

2010-09-13 Thread String
On Sep 11, 12:10 pm, Mark Murphy mmur...@commonsware.com wrote: By default, each insert is its own transaction, involving individual flash writes, which gets slow. Batch the inserts (e.g., 100 to a transaction), and things will go more smoothly. Wow, thanks for the tip! I hadn't been

Re: [android-developers] Displaying HTML markup in WebView

2010-09-13 Thread Kostya Vasilyev
Looks like your data is a mix of HTML tags and custom tags that have meaning only for your application. On the other end, WebView works with HTML, and doesn't understand those special tags. I think one way to make it work is to transform those custom tags into HTML ones with proper

Re: [android-developers] Displaying HTML markup in WebView

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 12:10 PM, Neilz neilhorn...@gmail.com wrote: For example, the content I want to display contains definition links: pThis is a dfn title='some definition'definition/dfn/p I've been looking at this for a while now, and can't really think of a way to capture this in

[android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread String
Donal, I'm mildly surprised Mark Murphy hasn't chimed in on this himself, but here's a current post from his blog which looks relevant: http://commonsware.com/blog/2010/09/10/asynctask-screen-rotation.html HTH, String On Sep 13, 1:05 pm, Donal Rafferty draf...@gmail.com wrote: I have managed

[android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread Gold
Hi..! In my android application..after login the user has to send current position to server..! the button name currentLocation. if the user click the button current location , lattitude and longitude will be displayed in the text box

[android-developers] Re: Where has hierarchyviewer.bat gone?

2010-09-13 Thread Rick Deckard
On Mon, Sep 13, 2010 at 3:19 PM, repDetect() n6mba50...@gmail.com wrote: Would it work to restore an old hierarchyviewer.bat or download one to start the hierarchy viewer? It worked. Maybe it's just my luck to get this issue but in case someone else needs that batch file, its content is

Re: [android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 11:39 AM, Gold thangadura...@gmail.com wrote: In my android application..after login the user has to send current position to server..! the button name currentLocation. if the user click the button current location , lattitude

[android-developers] Re: Disabling the USB port?

2010-09-13 Thread Tez
If I understand you correctly, if I turn off USB debugging, Even if I connect the phone via cable, I won't be able to run commands such as adb etc. Is this correct? If so, how is USB debugging turned off? Cheers, Earlence On Sep 13, 7:47 pm, Chris Stratton cs07...@gmail.com wrote: Compile a

Re: [android-developers] Re: AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-13 Thread Donal Rafferty
Thanks, I am trying to run it on the UI thread but via the Service. Have implemented a work around for now anyway and will re visit this when I have time to study and recode it properly. Thanks On Mon, Sep 13, 2010 at 5:32 PM, String sterling.ud...@googlemail.comwrote: Donal, I'm mildly

[android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread Gold
Hi.Treking..! I am include android.location I call the method getLongitude() as well as getLatitude () .. But I didnt get any value..! but i need to show current longitude and latitude information..!

[android-developers] Setting desktop icon

2010-09-13 Thread Bret Foreman
I've got a line in my manifest that looks like this: application android:icon=@drawable/icon android:label=@string/ app_name android:debuggable=true But I see the default Android icon on the desktop instead of the one in drawable/icon. What else do I need to do? -- You received this

Re: [android-developers] Setting desktop icon

2010-09-13 Thread Mark Murphy
Try also putting it on your LAUNCHER activity. On Mon, Sep 13, 2010 at 1:04 PM, Bret Foreman bret.fore...@gmail.com wrote: I've got a line in my manifest that looks like this:    application android:icon=@drawable/icon android:label=@string/ app_name android:debuggable=true But I see the

RE: [android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread Tommy
If your using an emulated device you are going to need to set up mock locations check out this link and follow the Andrews Link in the first answer http://stackoverflow.com/questions/2531317/android-mock-location-on-device Tommy Android Mobile Phone Application Developer Database Administrator

Re: [android-developers] Re: Disabling the USB port?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 12:55 PM, Tez earlencefe...@gmail.com wrote: If I understand you correctly, if I turn off USB debugging, Even if I connect the phone via cable, I won't be able to run commands such as adb etc. Is this correct? Yes. If so, how is USB debugging turned off? The user

Re: [android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 12:00 PM, Gold thangadura...@gmail.com wrote: I am include android.location OK. That's not really useful information. I call the method getLongitude() as well as getLatitude () On *what*? .. But I didnt get any value..! What does that mean? 0? Null? An

[android-developers] Re: Disabling the USB port?

2010-09-13 Thread niko20
Tez, do you work for ATT? On Sep 13, 12:35 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Sep 13, 2010 at 12:55 PM, Tez earlencefe...@gmail.com wrote: If I understand you correctly, if I turn off USB debugging, Even if I connect the phone via cable, I won't be able to run commands

[android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread Gold
Hi..Treking, I will tell the simply way..! I need current longitude and lattitude values..! How can i get...! Please..! Thanks in advance, Gold On Sep 13,

Re: [android-developers] Re: How to get Latitude and longitude information

2010-09-13 Thread TreKing
On Mon, Sep 13, 2010 at 12:49 PM, Gold thangadura...@gmail.com wrote: How can i get...! Once again... On Mon, Sep 13, 2010 at 12:35 PM, TreKing treking...@gmail.com wrote: At this point, I'm going to direct you here http://tinyurl.com/35ud8mt.

  1   2   >