[android-developers] Adding Turn by Turn directions to google maps

2009-06-04 Thread chrispix
I would really like to incorporate turn-by-turn directions to our application, but it appears to be against the TOS. Is there any way to get permission from Google to allow this for our application? I have what looks like one other app allow this interface. Thanks, Chris.

[android-developers] Force Close on startActivityForResult since 1.5 update on phones but not emulator

2009-06-04 Thread tgustafson
Hello everyone, I have a period tracking program (P O Tracker) that was working without issues seemingly until the 1.5 update roll out. The code is modified version of the NotePadV2 example code and uses its basic DB functionality and overall structure. I have updated my SDK to 1.5 and

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread sheik
Hi... Is it possible for an activity to avoid destroy mode ... and make activity in pause mode instead... Kindly let me know.. thanks regards sheik On Jun 3, 7:45 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: use onkeylistener check if keycode matches back start ur service

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Saurav Mukherjee
hi, try to get the instance of AudioManager by using the code: Context.getSystemService(Context.AUDIO_SERVICE) n then try and use the methods given... i guess that'll work... provide appropriate control buttons/graphical interfaces for the same... visit:

[android-developers] ISO2022JP-UTF-8(unicode) conversion

2009-06-04 Thread Hiro
HI, HT-03A will be release to the market in Japan, I'm lookig forward to it. Then I wonder whether String class support following charset type. String unicode = new String(jis); try { unicode = new String(unicode.getBytes(ISO2022JP), ISO2022JP); } catch (Exception e) { unicode =

[android-developers] Menu should be on the Image

2009-06-04 Thread android.vinny
Hi every one Can Any body help me how to create this screen which i have attached as a enclosed as a attachment how to cod ethis can any body give the clues for that any source example regarding this thanks in advance --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread Desu Vinod Kumar
Here I'm enclosed the Image On Thu, Jun 4, 2009 at 12:20 PM, android.vinny vinny.s...@gmail.com wrote: Hi every one Can Any body help me how to create this screen which i have attached as a enclosed as a attachment how to cod ethis can any body give the clues for that any source example

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Sujay Krishna Suresh
i don't think its possible as of now... its handled by the os... so i guess it might not be possible in the future as well... but i hv heard of DONT_KILL_APP somewhere... i think its a flag... try searchin for it On Thu, Jun 4, 2009 at 11:45 AM, sheik sheik...@gmail.com wrote: Hi... Is

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread Sujay Krishna Suresh
this is very much possible by setting the image as the background with the help of proper layouts jus use buttons for each menu item... On Thu, Jun 4, 2009 at 12:21 PM, Desu Vinod Kumar vinny.s...@gmail.comwrote: Here I'm enclosed the Image On Thu, Jun 4, 2009 at 12:20 PM, android.vinny

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread Saurav Mukherjee
acc to me its a very simple linear layout with orientation set as vertical, the first child is a bitmap, the next is a list view or a table layout for the menu and the last child is another bitmap... thats the easiest way to implement the view shown in the pic! On Thu, Jun 4, 2009 at 12:20 PM,

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread guna
Use Image buttons as each list item..background as a imageView.. On Thu, Jun 4, 2009 at 12:27 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: acc to me its a very simple linear layout with orientation set as vertical, the first child is a bitmap, the next is a list view or a

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread Desu Vinod Kumar
can any source code example regarding that availabel please give me the link thanks good ideas i got . On Thu, Jun 4, 2009 at 12:31 PM, guna gunaz...@gmail.com wrote: Use Image buttons as each list item..background as a imageView.. On Thu, Jun 4, 2009 at 12:27 PM, Saurav

[android-developers] how to convert Picture object to Bitmap object?

2009-06-04 Thread jerryfan2000
Hi , I am trying to figure out how to do convertion of Picture object generated by webView to Bitmap for later JPEG encoding and saving to local f/s. I tried to create a bitmap from pre created Picture object by BitmapFactory.decodeStream and failed. Seems like Picture object is unreconginzed

[android-developers] Re: Adding Turn by Turn directions to google maps

2009-06-04 Thread Cédric Berger
On Thu, Jun 4, 2009 at 08:12, chrispix chris...@gmail.com wrote: I would really like to incorporate turn-by-turn directions to our application, but it appears to be against the TOS. Is there any way to get permission from Google to allow this for our application? I have what looks like one

[android-developers] Re: Writing text on images in Android

2009-06-04 Thread jagtap.jj
Well here is my tut http://www.anddev.org/viewtopic.php?p=22718#22718 Thank you jagtap --~--~-~--~~~---~--~~ 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] Re: EditText Auto Focused in Tab

2009-06-04 Thread Tim H.
Hi, My answer was Descendant focusability property on the parent view. This controls whether or not, or how, descendants take focus... I needed blocksDescendants: http://developer.android.com/reference/android/view/ViewGroup.html#FOCUS_BLOCK_DESCENDANTS Hope this helps someone, it took me

[android-developers] Re: ACTION_PACKAGE_INSTALL intent does not work

2009-06-04 Thread ParanoidAndroid
Many thanks :-) On 2 Jun., 23:09, patrick patrick.boul...@gmail.com wrote: u need permission to use PACKAGE_INSTALL... but to set PACKAGE_INSTALL permission, u need system right. If u set Intent.VIEW instead of PACKAGE_INSTALL, it will launch the ui to ask user if he want to install the apk.

[android-developers] A question on Intents.

2009-06-04 Thread aayush
Hello, I had some conceptual doubts about Intents. Let me explain it with respect to one of my upcoming applications: The application will be having three major logical facets: The call control part, registration part and subscriptions (to a resource on the remote server). I am thinking of

[android-developers] Intent.DATE_CHANGED and Intent.TIME_CHANGED correct behaviour?

2009-06-04 Thread adamphillips12
Just wondering if the those two intents are working as intended? From my testing I'm getting that, DATE_CHANGED only broadcasts if the system date is changed to some time in the future? It never seems to broadcast if I set the date to the past (in Date time settings). Is the correct? If so, the

[android-developers] Re: A question on Intents.

2009-06-04 Thread Peli
Hi, You do not need to specify an intent filter with action and data. You can use directly the component and class names in your intent. Peli www.openintents.org On Jun 4, 10:02 am, aayush abhatnagar192...@gmail.com wrote: Hello, I had some conceptual doubts about Intents. Let me explain it

[android-developers] Re: A question on Intents.

2009-06-04 Thread aayush
a slight clarification to my question: I will use the component to provide the class name..but from the documentation the component is determined by looking at the other information in the intent (the action, data/type, and categories etc) and matching that with a component that can handle it.

[android-developers] Re: A question on Intents.

2009-06-04 Thread adamphillips12
I'm not quite sure what you're asking but it seems you are not in full understanding of Intents. The action field is just a string value used with BroadcastReceivers and their IntentFilter, it is as named, the description of what action to take, it is not for the launching of Services or even

[android-developers] Re: ListView OnItemClickListener no callback

2009-06-04 Thread Tom
Thanks for your reply. In fact I want that each items are focusable and selectable AND checkboxes only selectable. I want to add a context menu for each items. Is it possible? On 3 juin, 19:29, Romain Guy romain...@google.com wrote: You can't, it's one or the other. If you put a focusable

[android-developers] Re: Strange MP3 Problem - Streaming MediaPlayer

2009-06-04 Thread SurtaX
bump On Jun 3, 10:10 pm, SurtaX garylo@gmail.com wrote: Hi I've had no trouble with playing other pieces of mp3 from a url. But for some reason when clicking this from a webview (browser) or connecting with MediaPlayer does not work. It is just a mp3 file

[android-developers] How to get bitmap infomation before decode an image file?

2009-06-04 Thread quill
Hi all, I want to know an image's width before decode it, so that I can set Options.inSampleSize if the image is too large. Any advice to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: A question on Intents.

2009-06-04 Thread aayush
Thank you Adam, you answered my question. I just needed to start my services from one master service. A registration service may need to keep registered to the network for a finite amount of time (ranging from 1 hour to even a week ! ) The registration lifetime is governed by the server, so

[android-developers] Re: Advice on debug tool for I/O

2009-06-04 Thread mobilekid
Wireshark did the trick! Thanks. On Jun 3, 6:44 pm, mathiastck mathias...@gmail.com wrote: I run the emulator on my desktop, and use Wireshark filtered for http requests. http://en.wikipedia.org/wiki/Wireshark --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Saurav Mukherjee
try PictureDrawable class.. PictureDrawable pd=new PictureDrawable(String source); since this is a drwable, typecasting to Drawable, and getBitmap()... jus a suggestion... c if it works cheers! On Thu, Jun 4, 2009 at 12:45 PM, jerryfan2000 jerryfan1...@gmail.comwrote: Hi , I am trying to

[android-developers] Re: Strange MP3 Problem - Streaming MediaPlayer

2009-06-04 Thread iDeveloper
I am also facing this problem, but the mp3 I reference has a special character in the name. I am reading the URL from an XML and I don;t have any idea how to stop the special character from being converted to garbage when reading from it. On 04-Jun-09, at 2:05 PM, SurtaX wrote: bump

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Sujay Krishna Suresh
If u r talking in the context of storing a canvas to a bitmap, then i'd ask u to use the canvas constructor that takes a bitmap as arg... once ur drawing is complete, jus store this bitmap... that'll do... On Thu, Jun 4, 2009 at 2:47 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote:

[android-developers] How long this ADB?

2009-06-04 Thread raj.10788
Hi All, Now we have the adb support to install out own developed applications to the device. But after some day will this adb support to the Android Mobile Phones will be there and also this debug support will be there.? Will it be there in the release version? If any of you tell some info on

[android-developers] Re: Advice on debug tool for I/O

2009-06-04 Thread Advanceroot
But how to get all IP packages on the real device? Wireshark can do this? I tried to use a cross-compiled tcpdump, but it didn't work. 2009/6/4 mobilekid mobilek...@googlemail.com Wireshark did the trick! Thanks. On Jun 3, 6:44 pm, mathiastck mathias...@gmail.com wrote: I run the

[android-developers] IME options behavior is inconsistent across different devices

2009-06-04 Thread Matthias
Hi, I noticed that the imeOptions attribute on TextViews behaves inconsistently across different devices. For instance, setting imeOptions to normal has the following effects: 1) On the emulator and G1s running 1.5: The OSK will have a Done key and clicking it will simply close the OSK with no

[android-developers] Re: Problem with getChildCount method???

2009-06-04 Thread narendrasingh.bi...@gmail.com
What if we have to find a single view down in the list On Jun 3, 7:20 pm, Streets Of Boston flyingdutc...@gmail.com wrote: You have to do this through your BaseAdapter. Make sure that your BaseAdapter's individual elements/items have a variable that can determine if one is checked or not.

[android-developers] restart the phone to view the captured images in gallary

2009-06-04 Thread jaimin
hi. i am new to android i have devloped a camera application . it takes the the images and saved in gallary and later u upload a images into the web but when i take captured a images through my application the images is not shown in the gallary although it saved in gallary .But when i restart

[android-developers] Re: INSTALL_PARSE_FAILED_NO_CERTIFICATES error

2009-06-04 Thread android.vinny
What is meant by Pack com.object.sad INSTALL_PARSE_FAILED_NO_CERTIFICATES same error getting thanks in advance On May 18, 4:59 pm, allstars allstars@gmail.com wrote: Hi Majjunatha it works thanks On May 18, 7:52 pm, Manjunatha M man...@gmail.com wrote: Plese try uninstalling the app

[android-developers] what are the main properties the video file must have to be played in android device?

2009-06-04 Thread manoj
Hi, I have written a small video player application which plays video files from SDCard. I have put a .mp4 file into the sdcard. its properties are as follows: video codec : h.264, audio codec : AAC, FPS : 29.97 video size is : 640 * 480 pixels. I tried to play it from my application. It is

[android-developers] Notification doubt

2009-06-04 Thread Saurav Mukherjee
is there a way to read a Notification in the program (via code!!!)? --~--~-~--~~~---~--~~ 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

[android-developers] How to investigate current branches?

2009-06-04 Thread Yuki
I don't know how to show branches in android repository. git branch doesn't work. below fatal: Not a git repository (or any of the parent directories): .git repo status and repo branches show only local branches.. Please tell me what to do. --~--~-~--~~~---~--~~

[android-developers] Re: restart the phone to view the captured images in gallary

2009-06-04 Thread Mark Murphy
hi. i am new to android i have devloped a camera application . it takes the the images and saved in gallary and later u upload a images into the web but when i take captured a images through my application the images is not shown in the gallary although it saved in gallary .But when i

[android-developers] 1244113800000l results in 2 different dates?

2009-06-04 Thread twan
Good morning, I'm a bit confusing on how android handles dates. On tomcat: log.debug(new SimpleDateFormat(HH:mm).format(new Date (124411380l))); results in: 13:10 On android: Log.d(TAG, new SimpleDateFormat(HH:mm).format(new Date (124411380l))); results in: 11:10 The tomcat result is

[android-developers] Re: IME options behavior is inconsistent across different devices

2009-06-04 Thread matthias
This is even more messed up than I thought: It seems as if on the HTC Magic, the constant values backing the different IME options are shifted to the right by one (so to speak). That is, if you look at the different options as described in the API docs, then for example setting actionSearch on

[android-developers] Re: Widget developer tired of Doesn't launch comments

2009-06-04 Thread Michael Elsdörfer
Can I hide the app icon from launcher after first launch? Try PackageManager.setComponentEnabledSetting(): http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName,%20int,%20int) This does work for services,

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-04 Thread Saurav Mukherjee
u call that spooky... try subtracting two dates and display them using the getter functions in Date for hours, minutes, seconds... i did that for my app, n got some really weird results... got no answers man! On Thu, Jun 4, 2009 at 5:04 PM, twan twa...@gmail.com wrote: Good morning, I'm a

[android-developers] Re: Notification doubt

2009-06-04 Thread Mark Murphy
also i want to read notifications from other programs... (that run in bg, obviously!). I do not believe there is an SDK API for examining any existing notifications, other than to cancel your own. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-developers] the sound of touch screen alsa

2009-06-04 Thread l hx
when i use the alsa as the audio driver and build the alsa in android. i can play music well. but the sound of touch screen is not played well. sometimes it can not be played. i found that in AudioStreamOutALSA::write . the method of snd_pcm_writei(mHandle,buffer,snd_pcm_bytes_to_frames(mHandle,

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-04 Thread Blake B.
Can any of the Google team comment on this? I found similar reports on the T-Mobile discussion threads, but no work-arounds other than wipe or replace your phone. I've opened defect 2864: http://code.google.com/p/android/issues/detail?id=2864 On Jun 2, 8:32 pm, Blake B. bbuckle...@yahoo.com

[android-developers] Re: Releasing a Demo App from Paid App. Need to fork code? How do accomplish?

2009-06-04 Thread Zero
other then some serious perl magic, none i can think of. On Jun 4, 2:13 pm, twan twa...@gmail.com wrote: A interesting question there. If you don't get a answer here you might want to try the eclipse group, because the solution likely lies in eclipse. On Jun 4, 7:54 am, chrispix

[android-developers] How to read not visible elements of listview

2009-06-04 Thread narendrasingh.bi...@gmail.com
Hi guys, I have a list view which contains some 20 odd items along with a check box. Now when iam trying to delete an item by checking its checkbox, iam getting NullPointerException at below written code: CheckBox cbox= (CheckBox) view.getChildAt(j).findViewById (R.id.alarmCheck); here

[android-developers] SOS

2009-06-04 Thread Sujay Krishna Suresh
hey guys, i need to know wen actually the picasa upload service completes uploading... i need to no this bec i'm using this service to send images to picasa webalbum... is there any means to do this? i tried bindService but got back an exception sayin my app doesnt hv permission to

[android-developers] Re: How to read not visible elements of listview

2009-06-04 Thread Mark Murphy
I have a list view which contains some 20 odd items along with a check box. Now when iam trying to delete an item by checking its checkbox, iam getting NullPointerException at below written code: CheckBox cbox= (CheckBox) view.getChildAt(j).findViewById (R.id.alarmCheck); here

[android-developers] launching other apps

2009-06-04 Thread RS
Is it possible to launch other apps from my app like the application launcher or home screen do? I don't want to try a home replacement app. At least would a widget on home screen be able to launch other applications? Also can a widget on the (default) home screen receive swipe events (before

[android-developers] Re: How to read not visible elements of listview

2009-06-04 Thread narendrasingh.bi...@gmail.com
Mark, Can u plz show me some sample code how u achieved it. On Jun 4, 6:12 pm, Mark Murphy mmur...@commonsware.com wrote: I have a list view which contains some 20 odd items along with a check box. Now when iam trying to delete an item by checking its checkbox, iam getting

[android-developers] getting user information, and the accuracy of such information

2009-06-04 Thread Hamy
Hey all, I am trying to access user info on the device. I am interested in the user name, phone #, email, and ANDROID_ID. I have been using the TelephonyManager to get the phone number, and ANDROID_ID is simple to get, but could someone let me know how I am supposed to go about getting the user

[android-developers] Re: launching other apps

2009-06-04 Thread RS
yes ACTION_MAIN .. but is it expected to work when the apps are from different developers etc for the specific cases I had asked. If it works on the emulator should it be able to launch other apps on the phone too? On Jun 4, 2:32 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote:

[android-developers] Re: Problem with getChildCount method???

2009-06-04 Thread Streets Of Boston
First you have to realize that the list-item you want to find may not be visible. This means that using getChildAt on the list-view won't always work. But, if the list-item becomes visible later on, you need to make sure it'll reflect the change you made earlier for that item. I think that the

[android-developers] Re: launching other apps

2009-06-04 Thread Saurav Mukherjee
there are several Services and Settings that u can start by using the Intent class instances... like the home screen does... it uses the same concept (i m guessin that, but anyways, it is a valid way to do). as in: new Intent(String action); or new Intent().setAction(String xxx); then u start the

[android-developers] Re: How to get bitmap infomation before decode an image file?

2009-06-04 Thread Streets Of Boston
Set the Options.inJustDecodeBounds to true and call the BitmapFactory's method to get/decode your bitmap. The bitmap returned will be null, but the Options.outWidth and Options.outHeight will be set to the image's width and height in pixels. Then call the BitmapFactory's method to get/decode

[android-developers] Re: Menu should be on the Image

2009-06-04 Thread Streets Of Boston
Have you looked through the API Demoes examples that come with the SDK, on how to set your buttons' (background) images? Plenty of examples there. Have you looked at the developer.android.com site? On Jun 4, 2:50 am, android.vinny vinny.s...@gmail.com wrote: Hi every one Can Any body help me

[android-developers] Re: what is the picture format for Picture.WriteToStream?

2009-06-04 Thread Streets Of Boston
I'm not sure, but reading the documentation of Picture, it looks like that only the Picture class can read the data written by WriteToStream. It may as well be a totally proprietary format only known to the Picture class. But, i could be wrong... :) On Jun 4, 1:23 am, Jerry Fan

[android-developers] Re: A question on Intents.

2009-06-04 Thread Mark Murphy
Just a note on Services that is probably important to you. If they do not belong to the current foreground process, they are given quite a low priority rating by the OS, so they will be terminated quite soon if resources get low. Uh, are you sure about that? If the service has been started,

[android-developers] Re: launching other apps

2009-06-04 Thread RS
Oops Saurav you start answering and come up with the same question that I had on top of this thread. Anybody (from google?) with a concrete answer to my first questions? On Jun 4, 3:05 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: there are several Services and Settings that u can

[android-developers] Re: ListView OnItemClickListener no callback

2009-06-04 Thread Tom
I'm still looking for some answers :p On 4 juin, 10:29, Tom thomas.coz...@gmail.com wrote: Thanks for your reply. In fact I want that each items are focusable and selectable AND checkboxes only selectable. I want to add a context menu for each items. Is it possible? On 3 juin, 19:29,

[android-developers] Re: How to start the intent contacts with a query

2009-06-04 Thread prihei
Thank you. If i only use: Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(SearchManager.QUERY, Heiko); startActivity(intent); I get a Windo Popup to choose a action: Complete action using: - Mail - Android Market - App/Search/Query/Search Result - Browser -

[android-developers] Re: what is the picture format for Picture.WriteToStream?

2009-06-04 Thread Jerry Fan
i am actually trying to use Canvas and draw the Picture object returned from webView to it. From my understandingI the bitmap assigned during Canvas construction probably is used for combining all line drawing, text drawing, and Picture obj drawing onto it. So what I am doing is (1) Create a

[android-developers] Re: how to convert Picture object to Bitmap object?

2009-06-04 Thread Jerry Fan
Hi Sujay, Did you mean the bitmap assigned to Canvas construction is actually used for combing all kind of text, line, and picture drawing action into one piece of bitmap object? I'll try it and show you the code tomorrow. Thanks for your advice. On Thu, Jun 4, 2009 at 5:26 PM, Sujay Krishna

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread sheik
i tried ur method by considering keyevent...but i want the activity to go background ... not able to call onpause method in the keyvent method.. Kindly suggest on the above written scenario...just like how it works on MyTracks and BuddyRunner.. Hope my explaintion on the scenario is clear..if

[android-developers] playing video file from m.youtube.com

2009-06-04 Thread Harishkumar V
Hi, i have android running on beagle board. From android browser, if i go to m.youtube.com and play a video, it some time plays and some time does not. when it does not play, i got following error messages, mediaplayer: msg received = 100, ext1=-1, ext2=0 when it plays,i got the following

[android-developers] Re: Adding Turn by Turn directions to google maps

2009-06-04 Thread chrispix
So how is it that other applications are able to incorporate google maps w/ turn by turn directions? Do you know of any 3rd party open source navigation sites? I found one, but it appears to be Europe only, was based on open street map. Chris. On Jun 4, 2:17 am, Cédric Berger

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
u dont need to call on pause... if u ve overridden the function in ur activity, it'll b executed... u can use persistence (db or preferences) to save stuffs On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur method by considering keyevent...but i want the activity

[android-developers] Re: Strange MP3 Problem - Streaming MediaPlayer

2009-06-04 Thread SurtaX
I wonder if that may be related, perhaps thats not a direct link to the file and is somewhat redirected to a file which contains special characters? On Jun 4, 7:23 pm, iDeveloper ideveloper...@gmail.com wrote: I am also facing this problem, but the mp3 I reference has a special   character in

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
@sujay dude, try Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent... jus tell me if it works out for u. cheer! On Thu, Jun 4, 2009 at 8:53 PM, sheik sheik...@gmail.com wrote: i tried ur

[android-developers] Re: Fwd: Activity to service on click of BACK (arrow key on dev) and bring the same activity on click of notification

2009-06-04 Thread Saurav Mukherjee
dude, try this: Notification n=new Notification(); n.setLatestEventInfo(context, contentTitle, contentText, contentIntent); the contentIntent is the target intent tha'll b called. cheers! On Thu, Jun 4, 2009 at 9:03 PM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: u dont need

[android-developers] Re: Bug? Geo fix and sdk 1.5

2009-06-04 Thread Lex
I hooked up the emulator to the laptop's intergrated GPS receiver and drove around the block to see if that will work. When I started the application, my position was showed correctly. However, when I started moving, it hasn't changed once. DDMS shows that onLocationChanged was called only once.

[android-developers] Re: Adding Turn by Turn directions to google maps

2009-06-04 Thread Cédric Berger
On Thu, Jun 4, 2009 at 17:32, chrispix chris...@gmail.com wrote: So how is it that other applications are able to incorporate google maps w/ turn by turn directions? Do you know of any 3rd party open source navigation sites? I found one, but it appears to be Europe only, was based on open

[android-developers] Re: What's the deal with onRetainNonConfigurationInstance()?

2009-06-04 Thread matthias
Hi Mark, On Jun 4, 5:57 pm, Mark Murphy mmur...@commonsware.com wrote: onSaveInstanceState() is called in cases other than screen rotations (e.g., activity is being closed up due to low memory), and in those other cases, onRetainNonConfigurationInstance() is not used at all. yes, but

[android-developers] Re: How to read not visible elements of listview

2009-06-04 Thread narendrasingh.bi...@gmail.com
Or can u tell that how can i get the _id of a particular item selected(checked). I tried getSelectedItemId() and other methods but im not getting the appropriate _id. Plz help!!! On Jun 4, 6:27 pm, narendrasingh.bi...@gmail.com narendrasingh.bi...@gmail.com wrote: Mark, Can u plz show me some

[android-developers] Re: IME options behavior is inconsistent across different devices

2009-06-04 Thread matthias
anyone? --~--~-~--~~~---~--~~ 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] Re: G1 ManageApplications - the size of the application data does not change when ...

2009-06-04 Thread jade
I'm hoping that someone from the Google Android team can help with this problem. The vacuum command runs without errors but the space under Manage Applications for our app never decreases when items are deleted from the database and the vacuum command is run. Thus, we don't seem to have a

[android-developers] Re: restart the phone to view the captured images in gallary

2009-06-04 Thread jaimin mehta
thanks for your help On Thu, Jun 4, 2009 at 4:59 PM, Mark Murphy mmur...@commonsware.com wrote: hi. i am new to android i have devloped a camera application . it takes the the images and saved in gallary and later u upload a images into the web but when i take captured a

[android-developers] Re: What's the deal with onRetainNonConfigurationInstance()?

2009-06-04 Thread Mark Murphy
onSaveInstanceState() is called in cases other than screen rotations (e.g., activity is being closed up due to low memory), and in those other cases, onRetainNonConfigurationInstance() is not used at all. yes, but wouldn't it be more clever to have onRetainLastNonConfigurationInstance() be

[android-developers] Re: Device Update!!!

2009-06-04 Thread Georgy
Ok as I was fearing.. I reached a stage where the application works on the emulator and not on the device! For example: after giving out the long/lat to a function on the emulator it takes u to the specific location however, it doesn't do that on the device is there somethign I dk here?

[android-developers] Hardware keyboard caps state

2009-06-04 Thread Spiros
Hi, I'm writing a Greek IME, which also needs to translate hardware keypresses. I'm doing this by intercepting onKeyDown() in InputMethodService. Is there some way to find out what the caps state is (as indicated by the plain/triangle/caret cursor in the UI for lowercase/single-caps/ all-caps,

[android-developers] Re: Getting Current Location on my Device works on emulator but not on my device

2009-06-04 Thread Georgy
I am getting the same issue as iDeveloper. I tried playing around with the listener (putting 2, 200, or 2000) , but the thing is the map is not changing at all. Also, I am not getting the GPS icon on the phone screen. any luck? thanks PS: Everything is working perfectly with the emulator

[android-developers] Re: How to read not visible elements of listview

2009-06-04 Thread Streets Of Boston
Have you thought about deleting the item from the Adapter (BaseAdapter/ ListAdapter) or the array that backs the list instead? On Jun 4, 12:22 pm, narendrasingh.bi...@gmail.com narendrasingh.bi...@gmail.com wrote: Or can u tell that how can i get the _id of a particular item selected(checked).

[android-developers] Re: launching other apps

2009-06-04 Thread Jeff Sharkey
Is it possible to launch other apps from my app like the application launcher or home screen do? Yes, you just need to build the Intent correctly, either using a well-known action string with any needed data, or a strongly-named ComponentName. (The first approach of using generic action

[android-developers] Re: Releasing a Demo App from Paid App. Need to fork code? How do accomplish?

2009-06-04 Thread Robert Green
I did it in eclipse and it didn't take me over 30 minutes to get everything copied. I'm pretty sure that I copied the entire project directly, renamed it, then moved all classes to the new package, updated the Manifest and that was it. On Jun 4, 12:54 am, chrispix chris...@gmail.com wrote: We

[android-developers] Getting resource ID from Image view

2009-06-04 Thread vishal sood
Hi, Is there a way to get the resource ID of the image associated with an ImageView? Thanx --~--~-~--~~~---~--~~ 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] It is not easy to play mp4 file when I use opencore V2.03 on Android SDK 1.5

2009-06-04 Thread Mickey
I get the soure code based on opencore master V2.03 and build this source code to get system.img.I run this system.img on Android SDK 1.5 and find it is not easy to play mp4 file success.I use ApiDemos to run it and try several times it can play success one time.Compare with other opencore

[android-developers] In an ExpandableListView, how can I show one additional line (footer) at the end of the child results?

2009-06-04 Thread Jeremy Logan
I have created a custom ExpandableListAdapter and everything works properly. What I'd like to be able to do is in each of the groups add a different type of child to the end. I have tried adding 1 to the getChildrenCount() number and then testing isLastChild in the getChildView() method, but that

[android-developers] How to change default target activity of an intent

2009-06-04 Thread Joe
Hi I have an activity that registers for the same intent that standard Contacts application registers for. I want to make my activity as the default target so that Android doesn't prompt user to pick the application that should handle current intent. My activity is a private app that we are

[android-developers] Problem installing Cupcake OS update on ADP1

2009-06-04 Thread Doug H.
I am encountering a strange error when attempting to install the Cupcake (1.5) OS update on my Dev Phone 1, and I've seen no solution to it anywhere. Hopefully this group's assembled experts can help. Here's what I have done. First I download the OS update image here:

[android-developers] Re: screenBrightness of 0.0 == ???

2009-06-04 Thread Michael
I'm experiencing the same issue. This seems like a bug. I'm using .01 which seems to turn off the back light, but not the LCD itself. Basically, I need my app to be able to turn off the screen to conserve power, but I don't want the locked screen coming back when the user reactivates the phone.

[android-developers] How to use android's built in zoom controls for View or ImageView

2009-06-04 Thread John
I can use the built in zoom controls for WebView or MapView. But don't know how to access the control for View or ImageView. If the control is not implemented, can we access the bitmaps for the zoom control supporting WebView or MapView. Thanks in advanced! -John

[android-developers] Sharing common view layouts and resources across multiple Android applications (APKs)

2009-06-04 Thread Nag
I am working on developing several individual android applications. We had created common UI Layout View XMLs, classes and resources. I would like to share these common layout xml, classes and resources across all of my android applications. I dont want to duplicate them in my applications. Is

[android-developers] How to use android's built in zoom controls for View or ImageView

2009-06-04 Thread John
I can use the build in zoom control for WebView and MapView. Can we use it for View or ImageView? Or can we use the icons/bitmaps if the the zoom control is not available? Thanks! -John --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Set Ringtone

2009-06-04 Thread Nirav
How to set ringtone by using filename inplace of using its ID number. I don't want to use. Uri newUri=Uri.parse(content://media/external/audio/media/+ (String.valueOf(position+1))); Settings.System.putString(this.getContentResolver(), Settings.System.RINGTONE, newUri.toString()); Inplace of

[android-developers] Selecting and Highlighting an item in an array list by code

2009-06-04 Thread MMC2
I have a problem selecting and highlighting an item in an array list. I have successfully used myListView.setSelection(0); to position the place in the array list correctly. But I have been unable to turn on the highlight at this position. When I press the down key on the dpad the highlight

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

2009-06-04 Thread Anji
Hello fellow android developers, I am working on project where we want to display first frame of the video file along with other metadata like size,duration etc.. I am using android-sdk-windows-1.5_r1 for the development. i have found out from the forums that somebody has used

[android-developers] Is there any equivalent API/Class like in Java ME ? javax.microedition.lcdui.game.TiledLayer,Sprite. CollideWith()

2009-06-04 Thread lixinso
I wanna to create an game like plane shooting game. There are many sprite like bullet or plane, they moves every frame. There is a need to do collision detection. In JavaME , it's quite easy, just use a Sprite, and the function of .CollideWith(). Everything is OK. But in Android, there is no

  1   2   3   >