[android-developers] Cursor for service component?

2009-06-13 Thread jagtap.jj
Hello everybody In application there is Service running in background, and appl having private database, When appl runs in back ground with service. I want to retrieve Cursor for query on appl database. For content provider having the solution, i.e. getting cursor for Service too [

[android-developers] Re: Change sdcard permission

2009-06-13 Thread Delta Foxtrot
2009/6/13 N V nithi...@gmail.com Can any help me that, How can i change the file permission that is present in the SDCARD... Normally when i insert a file to SDCARD, file has read and write permission, I want to change the permission that is read write and execute.. Is it

[android-developers] Re: How to get root access of my android phone

2009-06-13 Thread Joe Petruchi
Hi All Is there any way to get the root permission in G2 ? Regards Joe On Sat, Jun 13, 2009 at 7:15 AM, Delta Foxtrot deltafoxtrot...@gmail.comwrote: 2009/6/13 Lucius Fox lucius.fo...@gmail.com Can you please tell me how can I get root access of my android phone?

[android-developers] Re: Change sdcard permission

2009-06-13 Thread Nithin Varamballi
Hi.. Thanks for reply... Ya i agree with your point that sdcards are formatted to be fat32 and fat32 doesn't support linux permission system, Suppose if i give in my application like this /bin/sh /sdcard/myapplication, what will i get,weather i can change the permission of my application or

[android-developers] Re: How to tell when application exits?

2009-06-13 Thread Doug
Could I suggest an update to documentation then? Do you guys need a bug report to be lodged to do this kind of thing? Does this also apply to services? The documentation there also states that the service will be sent a 'courtesy' stop notification... I think things could go quite badly if the

[android-developers] Google Data APIs Client Libraries

2009-06-13 Thread Patrick
Has anyone had success using Google Data APIs Client Libraries. I can’t seem to successfully use the GData Java client libraries in an Android app. I notice that there used to be some GData access classes in the Wireless packages that have been removed. Should I be using some map data classes in

[android-developers] Re: Google Data APIs Client Libraries

2009-06-13 Thread Sujay Krishna Suresh
I also tried using it... But according to one of the developers its not usable in android (or any other mob platform) if u jus need a lil data from google then try this... This piece of code prints all methods in the class invokes the static method getAccount... try { for (Method ele :

[android-developers] Re: How to get root access of my android phone

2009-06-13 Thread Delta Foxtrot
2009/6/13 Joe Petruchi petruchi.dr...@gmail.com Is there any way to get the root permission in G2 ? If you are talking about the HTC Magic, no idea, but it isn't going to be labelled the G2 when T-Mobile starts selling it, try looking about on the XDA forum.

[android-developers] Re: Change sdcard permission

2009-06-13 Thread Delta Foxtrot
2009/6/13 Nithin Varamballi nithi...@gmail.com Ya i agree with your point that sdcards are formatted to be fat32 and fat32 doesn't support linux permission system, Suppose if i give in my application like this /bin/sh /sdcard/myapplication, what will i get,weather i can change the permission

[android-developers] how can i launch the intent to pick image from SD card?

2009-06-13 Thread Meryl Silverburgh
Hi, Can you please tell me how can i launch the intent to pick image from SD card? Thanks. --~--~-~--~~~---~--~~ 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] Intel® Atom™ Processor N270 and Mobile Intel® 945GSE Express Chipset

2009-06-13 Thread whatn...@gmail.com
The 45nm Intel(R) Atom(tm) Processor N270Δ at 1.6 GHz core speed and 2.5 W TDP is power-optimized tIntel(R) Atom(tm) Processor N270 and Mobile Intel(R) 945GSE Express Chipset o deliver robust performance/watt. This single- core processor is validated with the Mobile Intel(R) 945GSE Express

[android-developers] Re: How to tell when application exits?

2009-06-13 Thread Saurav Mukherjee
i have a round about solution: if u need the application to exit, call system.exit.. so now u know wen its gonna exits and hence now u can write the program accordingly... (wat u wanna do wen the system exits) but please do tell me if there is a straight forward way! cheers. On Sat, Jun 13,

[android-developers] How to set minimum value for SeekBar?

2009-06-13 Thread Makrand
Hello I am using SeekBar in my application, currently seek bar minimum value is zero, but as per application requirement seek bar value should not be zero. how to set minimum value for SeekBar. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: fullscreen doesn't hide Status Bar in Android SDK 1.5 R2

2009-06-13 Thread Shyam Dasgupta
i guess this group has grown too large to expect a response from the Android team.. --~--~-~--~~~---~--~~ 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] Scrollview and GestureDetector

2009-06-13 Thread SurtaX
I'm making sort of a book app. I have the text displayed as a textview in a scrollview: XML: ScrollView android:id=@+id/chatview android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView

[android-developers] Cannot get Log.isLoggable working as documented

2009-06-13 Thread westmeadboy
This is a very simple problem and I've searched to find that no one else seems to be having it, anyway... My code is something like: if (Log.isLoggable(mytag, Log.DEBUG)) { Log.d(mytag, Logged at debug level); } The documentation says that by default logging is enabled at INFO level. This

[android-developers] Manipulating WebKit Form-Data

2009-06-13 Thread sdz
Hi, is there any way to manipulate form-data of a specific website (for example fill in information in a login-field and hit the login- button). Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Where is com.android.providers.googleapps??

2009-06-13 Thread Mark Murphy
I don't find package com.android.providers.googleapps on my internal memory. There is no such package in the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

[android-developers] Re: Manipulating WebKit Form-Data

2009-06-13 Thread Mark Murphy
is there any way to manipulate form-data of a specific website (for example fill in information in a login-field and hit the login- button). Not that I am aware of. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

[android-developers] Re: Where is com.android.providers.googleapps??

2009-06-13 Thread Francesco Pace
Ehm...So, how can I read received mail from db? 2009/6/13 Mark Murphy mmur...@commonsware.com I don't find package com.android.providers.googleapps on my internal memory. There is no such package in the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-developers] Re: Manipulating WebKit Form-Data

2009-06-13 Thread sdz
sadly... thank you On 13 Jun., 13:05, Mark Murphy mmur...@commonsware.com wrote: is there any way to manipulate form-data of a specific website (for example fill in information in a login-field and hit the login- button). Not that I am aware of. -- Mark Murphy (a Commons

[android-developers] Re: Where is com.android.providers.googleapps??

2009-06-13 Thread Mark Murphy
Ehm...So, how can I read received mail from db? I am interpreting this to mean how do I access emails saved on the device. Option #1: Write your own email client and convince users to use it, as then it is your own database. Option #2: Work with the K9 team to integrate whatever you are

[android-developers] Re: How to tell when application exits?

2009-06-13 Thread Mark Murphy
Could I suggest an update to documentation then? Do you guys need a bug report to be lodged to do this kind of thing? Either a bug report (http://b.android.com) or a patch would help increase the odds that the change gets made. Does this also apply to services? There is no onTerminate() in

[android-developers] Re: Google Data APIs Client Libraries

2009-06-13 Thread peeyush varshney
Hi, Activity A is running and i start Activity B from A then start one more new Activity C from B.. Now I want to launch Activity A from C.. What should be right procedure. On Sat, Jun 13, 2009 at 12:33 PM, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: I also tried using

[android-developers] Re: In need of a developer...

2009-06-13 Thread Maps.Huge.Info (Maps API Guru)
You might want to consider figuring this out for yourself. It's not that difficult if you use the tutorial book ($35) written by Mark Murphy at http://commonsware.com/ - tutorial 17 did it for me... I wrote a similar program without much prior knowledge myself in about three days of study. Your

[android-developers] Re: How to force hierarchy change to PreferenceActivity?

2009-06-13 Thread Jason Parekh
The preference framework will refresh the UI when a preference has a UI-visible attribute changed, for example the summary. So, you can just do myPreference.setSummary(myPreference.getValue()) (assuming you want to show the selected item as the summary of the preference). On Fri, Jun 12, 2009 at

[android-developers] Checking the Hardware (Phone model) programatically

2009-06-13 Thread Gavin Aiken
Hi All, I was wondering if there is a way of finding the hardware on which the Android software stack is currently running. Specifically I'd be interested to get the processor on which the application is being run so that I can adjust the intensity of calculations performed. Thanks in advance!

[android-developers] Re: Getting my app in the featured section

2009-06-13 Thread intbt
As an aside - when I searched Apps with 'scan' your app did not appear, when I searched 'pdf' it was on the list. Good luck with your application and with Google. intbt On Jun 12, 12:39 pm, guruk ilovesi...@gmail.com wrote: just make your app so successfull that it reach 50.000 installations

[android-developers] Email App and IM App on cupcake branch

2009-06-13 Thread Lucius Fox
Hi, I download and compile cupcake branch. But the Email App and IM App (not Gmail and GTalk) is not installed on the emulator. Can you please tell me how to install Email App and IM app? Thank you. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to know how long the key is pressed?

2009-06-13 Thread patpat
here is my code public boolean onKeyUp(int keyCode, KeyEvent event) { Message m = new Message(); m.what = theGamev2.REDRAW; switch(keyCode) { case KeyEvent.KEYCODE_DPAD_CENTER: releaseTime = System.currentTimeMillis(); this.mBall.createNewCircle(pointerCurrentXCoord, 30, ((int) (releaseTime -

[android-developers] Re: How to know how long the key is pressed?

2009-06-13 Thread Mark Murphy
patpat wrote: i am using system time here to get the differencebut it doesnt work like the way i want.. i wonder is there method or concept to know how long the key is pressed?? You could try getDownTime() and getEventTime() on the KeyEvent. -- Mark Murphy (a Commons Guy)

[android-developers] Re: develop a simple game like tic toc

2009-06-13 Thread Gavin Aiken
http://bakhtiyor.com/category/30-days-of-android-apps/page/2/ If you're talking about tic-tac-toe you could look here :) Good luck On Sat, Jun 13, 2009 at 5:22 AM, jaimin jaiminmeht...@gmail.com wrote: hi. i am new to android i have develop a some e book for android mobile but i never

[android-developers] js painfully slow on 1.5

2009-06-13 Thread skink
hi, i heard somewhere that cupcake has brand new, very fast javascript engine. recently i tried to use jquery and in my opinion it's not fast: i tried local (stored in assets folder) version of smallest possible i could get (packed v1.1.2) and it seems that loading it takes ~5sec. this is when

[android-developers] Re: Bug? LocationMasfClient / GPS keeps sending updates even after locationmanager.removeupdates?

2009-06-13 Thread Brad Gies
Have you tried moving the lm.removeUpdates(locationListener); to Before the super.onPause ? Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 www.bgies.com www.truckerphone.com

[android-developers] Dialogs don't fill width in landscape mode

2009-06-13 Thread Keith Wiley
Does anyone know how to make a dialog fill the screen width in landscape mode? Setting the layout's width to fill_parent doesn't do it. It always comes up portrait width, or something suspiciously similar. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: how can i launch the intent to pick image from SD card?

2009-06-13 Thread Mark
I think you might want something like this: // start the image picker activity - the 999 is just a unique request code startActivityForResult( new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), 999); at this point, the Gallery app will start and

[android-developers] Re: File System Root '/' name has extra characters?!

2009-06-13 Thread Urs Grob
This looks like a bug. To not forget it again, please file a bug at b.android.comBest would be if you could also attach some code that reproduces the problem. Thanks for finding this (again) (Maybe this has to do with some code from harmony where also windows drives could be returned ... c:\ or

[android-developers] expandlistview user selection detection?

2009-06-13 Thread Bob
Hi, How do I handle the selection in an expandablelistview? I have tried using both the setOnItemClickListener and the setOnItemSelectedListener and neither seems to fire when I click either the parent or child level elements. Thanks, Bob SimpleExpandableListAdapter mAdapter = new

[android-developers] Re: incomingNumber - contact name - What is the right way?

2009-06-13 Thread Doug
I did some experimentation yesterday on just this topic. For a start, it was easy enough to just throw a non-specific query at the People provider and get back the values for the columns I was interested in. I don't know why, but I found that the NUMBER_KEY column has the original phone number,

[android-developers] Re: File System Root '/' name has extra characters?!

2009-06-13 Thread Urs Grob
The problem seems to be an error in porting the native code from harmony to android. In harmony there's a method that should return a string where the roots are null separated and a second null at the end.

[android-developers] Re: Why did Google Groups not post my comments?

2009-06-13 Thread Urs Grob
Someone posting for the first time gets moderated, so if that was your first post then it might have had to wait for someone letting it pass. On Sat, Jun 13, 2009 at 12:31 AM, Sundog sunns...@gmail.com wrote: Or, maybe you're a noob that needs to calm down a bit. On Jun 11, 10:14 pm, Dennis

[android-developers] Re: incomingNumber - contact name - What is the right way?

2009-06-13 Thread Doug
Wow! Turns out the query code in ContactsProvider does pretty much what I thought... it uses the Sqlite 'glob' operator, which is like 'like' (but uses '*' as wild-card... which is strange, since phone numbers could conceivably have *'s and #'s in them). Both GLOB and LIKE in Sqlite don't let you

[android-developers] Re: Listening to Double Taps in MapView

2009-06-13 Thread Georgy
I was able to make it work but now the navigation on the map is not working. any ideas? thanks On Jun 12, 3:11 pm, Georgy georgearna...@gmail.com wrote: Would please provide me a copy of your code? I don't know why I can't gget it to work. thanks On Jun 12, 2:58 pm, Keith Wiley

[android-developers] Missing application icon in All Application drawer

2009-06-13 Thread Lucius Fox
Hi, Can someone please help me understanding why in my emulator, i can * in my settings- manage application, see an entry for an application there * but i cant' find the icon for launching that in All Application. Can you please tell me how can I make my application launches on the emulator?

[android-developers] Re: Missing application icon in All Application drawer

2009-06-13 Thread Mark Murphy
Lucius Fox wrote: Can someone please help me understanding why in my emulator, i can * in my settings- manage application, see an entry for an application there * but i cant' find the icon for launching that in All Application. Can you please tell me how can I make my application launches

[android-developers] Understanding MenuCallback code

2009-06-13 Thread Daniel Dreiberg
Hi, I see this example of MenuCallback code, but i don't understand where is the reference 'ImageManager.IImage image' comes from? How is that image get created and passed it to MemuCallback? MenuItem item1 = menu.add(IMAGE_SAVING_ITEM, MENU_IMAGE_SHARE, 10,

[android-developers] Re: Understanding MenuCallback code

2009-06-13 Thread Mark Murphy
Daniel Dreiberg wrote: Hi, I see this example of MenuCallback code, but i don't understand where is the reference 'ImageManager.IImage image' comes from? How is that image get created and passed it to MemuCallback? MenuItem item1 = menu.add(IMAGE_SAVING_ITEM, MENU_IMAGE_SHARE, 10,

[android-developers] Re: Getting my app in the featured section

2009-06-13 Thread codethief
On Jun 13, 5:28 pm, intbt in...@tacberry.com wrote: As an aside - when I searched Apps with 'scan' your app did not appear, when I searched 'pdf' it was on the list. Good luck with your application and with Google. But that's rather due to the Market's search function itself. On Jun 12,

[android-developers] Re: How to force hierarchy change to PreferenceActivity?

2009-06-13 Thread yoshitaka tokusho
Thanks for helpful comment, Jason. I got an answer for this. I pasted for those who want to do similar. - protected void onCreate(Bundle savedInstanceState) { createPreferenceHierarchy(); setPreferenceScreen(mRoot); } private void createPreferenceHierarchy() { // Root

[android-developers] NinePatchDrawable as ItemizedOverlay

2009-06-13 Thread skyman
Hello, Is it possible to use stretchable graphic as pin in ItemizedOverlay? If not how can I draw NinePatchDrawable on Canvas? Regs, Skyman --- http://skyman.pl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: ClassNotFoundException

2009-06-13 Thread Mike Lanin
Of course I included. No problems earlier. I've tried it on 1.0, 1.1 and 1.5 sdk and it never worked. On 12 июн, 08:47, iDeveloper ideveloper...@gmail.com wrote: Have you included the activity in your AndroidManifest file? On 11-Jun-09, at 10:01 PM, Mike Lanin wrote: I have a problem

[android-developers] Re: incomingNumber - contact name - What is the right way?

2009-06-13 Thread Doug
Reported as bug #2983 http://code.google.com/p/android/issues/detail?id=2983 On Jun 13, 1:34 pm, Doug dougforp...@gmail.com wrote: Wow! Turns out the query code in ContactsProvider does pretty much what I thought... it uses the Sqlite 'glob' operator, which is like 'like' (but uses '*' as

[android-developers] which width and height for a 2*1 cell widget? 160*100? Bug in Widget?

2009-06-13 Thread Hastala
I use 160*100 but it becomes 3*2 cells. Is this a bug? --~--~-~--~~~---~--~~ 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

[android-developers] AbsoluteLayout deprecated Drag and Drop

2009-06-13 Thread Mooretis
I noticed that AbsoluteLayout is deprecated in the latest SDK. AbsoluteLayout is an important piece to implementing drag and drop. If it disappears in a later release, what will be the solution to implement drag and drop? --~--~-~--~~~---~--~~ You received this

[android-developers] Strategies for alerting users about new versions of your app in the appstore?

2009-06-13 Thread pawpaw17
Guys, Is there a methodology for pushing out new versions of appstore apps to customers in Android/or via the appstore? Or is this something each app needs to cook up for itself? Thanks! pawpaw17 --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How to set minimum value for SeekBar?

2009-06-13 Thread Keith Wiley
My solution in similar situations has been to set the seekbar max to the required range, not the true max, then to perform a mapping between seekbar values and underlying variables by adding/subtracting the minimum during transformation. Of course, one step further in extrapolation would

[android-developers] Preference#setSummary does not properly repaint

2009-06-13 Thread bo
When I use runtime Preference#setSummary(CharSequence) I see new value painted on the top of the old one. Looks very ugly. Is there any settings I'm missing? Behaves the same way in both 1.1 and 1.5 --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Intel Drops an ‘Atom` Brand

2009-06-13 Thread whatn...@gmail.com
The chip maker’s new Atom brand includes its Diamondville chip for low- cost laptops and its Silverthorne processor for mobile Internet devices. for more info visit http://www.intel-intel99.blogspot.com --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Scrollview and GestureDetector

2009-06-13 Thread SurtaX
bump On Jun 13, 8:18 pm, SurtaX garylo@gmail.com wrote: I'm making sort of a book app. I have the text displayed as a textview in a scrollview: XML: ScrollView           android:id=@+id/chatview           android:orientation=vertical           android:layout_width=fill_parent        

[android-developers] Re: how to get the first frame of a video file ?

2009-06-13 Thread Ty
If anyone has a clue let us know! Thanks much! On May 5, 9:34 pm, Ty ty.mcdowell...@gmail.com wrote: Apparently this was added with Cupcake.  I cannot find it.  Anyone know how to create a video thumbnail? Ty On Apr 5, 8:54 pm, Wei twc0...@gmail.com wrote: Hi Dave, Are you meaning I