[android-developers] Re: how do I add zoom and pan features to my view easily?
that's so half baked as JDK widget,which only provides a UI without action implementation. Idealy there should be default zoom/pan implementation that could be overriden. On Jan 19, 5:00 pm, Ernest wrote: > I think android.widget.ZoomControls is only a basic UI widget.Panning > automatically is not support(android.os.handler could do it). zoomin/ > zoomout actions should be defined by yourself. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to use a content provider from other applications
Just went through a thread http://groups.google.com/group/android-developers/browse_thread/thread/9804e683c7cebfc3/fe94e57e8f6f5847?lnk=gst&q=inserting+to+database+using+SQLite#fe94e57e8f6f5847 where in some details about what a content provider does is given Could some one help with the following 1. How do i use the content provider defined to interact with an application. I mean the database defined is for use in the program only, then how can i use this content provider from another program. 2. Is there an example depicting using of content providers. How are the content providers accessed else where so tht he databases defined in it be created at run time. Need urgent help regarding how to use a content provider from other applications. Cheers, Sunit --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Play wav files in Media player
On Jan 21, 8:23 am, Dave Sparks wrote: > What is the format of the data in the WAVE file? > i play audio file of wav format. > OpenCore only supports 8- and 16-bit linear PCM. > i think that is not file problem because some time the files are able to played and some time not... > On Jan 20, 11:59 am, ena wrote: > > > plz help me outActually i want to play many file one by one in > > media player.im using that code > > > MediaPlayer melodyPlayer=MediaPlayer.create(context, resID); > > melodyPlayer.seekTo(0); > > melodyPlayer.start(); > > > but after same time i get Error > > > 01-20 23:12:01.785: ERROR/AudioTrack(24): Could not get control block > > 01-20 23:12:01.785: ERROR/AudioSink(24): Unable to create audio track > > 01-20 23:12:01.785: ERROR/audiothread(24): Error creating AudioTrack > > 01-20 23:12:01.876: WARN/PlayerDriver(24): > > PVMFInfoErrorHandlingComplete > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): create failed: > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): java.io.IOException: > > Prepare failed.: status=0x > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > > android.media.MediaPlayer.prepare(Native Method) > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > > android.media.MediaPlayer.create(MediaPlayer.java:169) > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > > org.isol.MyCustomButton$1.onClick(MyCustomButton.java:89) --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] HttpURLConnection Timeout does not work
Hi, I intend to stop a http connection once it times out. Here is my code. It seems that the setting is not working. Any comments? - HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestProperty("Connection", "close"); conn.setConnectTimeout(1000 * 10 * 60); // timeout after 10 minutes - 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button On Map
As I learned from your below details that you are able to create Google Map Application. I am trying to do that but not able to use Mapview in application. Can you please give some details about how to bring up the simplest Google Map Application ? Regards, _-_Mayank Rana_-_ On Jan 21, 6:06 am, Cadge wrote: > Its ok I figured out how to pin buttons to GeoPoints so all is fine > now. > > On Jan 20, 8:17 pm, Cadge wrote: > > > > > Currently I have a MapView and an Itemized overlay which displays > > different locations on the map. > > > When one of these locations is "tapped" the onTap method creates a new > > Overlay object which draws an empty speech bubble (the type you would > > find normally on google maps). > > > What I want to do is then populate this empty speech bubble with some > > buttons but I am unsure how to do the following: > > > 1) Get a reference to a button from an xml file in the Overlay class > > ( can't use findViewById() as it isn't an Activity? ). > > > 2) Pin a button so it stays with the speech bubble. > > > Would it be best to create a new layout which contains buttons and > > place this over the speech bubble? Is that even possible?- Hide quoted text > > - > > - Show quoted text - --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TimeZone Data from GPS coordinates
Hi, i am looking for the same problem...did u get any solution regarding this issue...if u can share on this issue it would be helpful.. thanks, regards, sheik On Jan 1, 4:28 am, Kekoa wrote: > I am looking for a way to get the timezone of any given GPS > coordinates. I can't find anything useful in the API docs. > > Does anyone know how to accomplish this? Is there some sort of API > that will give me timezone data for a GPS position, or even for common > places, such as USA states, Canadian provinces. I can reverse-geocode > and get the city, state, and country, so if there's some data out > there that will work with that information that's what I'd like to > use. > > I'd rather not use a web service as I don't want too much delay. > > As a last resort I may have to come up with a list myself... It seems > like this would be a very useful feature in the mostly empty > android.util.TimeUtils class. > > Thanks, > Kekoa --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Launching customized destop application at Android Boot
Hello All, Wanted to know if we can launch a customized desktop application when Android boots up? Warm Regards, Raghu --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: save image file in sqlite db
can any one help me.. is there any data type in sqlite through which i can save images directly from a particular url into sqlite available in android can some one provide sample codes... On Jan 20, 10:19 am, And-Rider wrote: > I want to save images from a particular URL into the sqlite db and > then display it from the database..Can anyone tell me as how i could > do that --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing preferences
so if your package name is "com.mycompany.myapp" the file name is "com.mycompany.myapp_preferences" --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing preferences
SharedPreferences preferences = this.getSharedPreferences (PREFERENCE_FILE_NAME, MODE_PRIVATE); where PREFERENCE_FILE_NAME = package_name_preferences without the xml extension.(default) You can find the file by running " adb shell" 1. cd /data/data/your_application_package/shared_prefs Hope this helps, Chander On Jan 20, 7:24 am, "Ivan Soto" wrote: > Hi, I'm having a hard time trying to understand how the preferences activity > works. > Right now I have an activity for my preferences using a XML layout that has > this: > > > > > android:key="checkbox_preference" > > android:title="Use light skin" > > android:summary="Use a white interface instead of the > default one." /> > > > > The thing is that everything I do in the preferences are saved. I can reboot > the emulator and I can access the preferences. I want to know how can I > access this key from another activity on my application. > > this is my activity: > > public class Config extends PreferenceActivity > implementsOnSharedPreferenceChangeListener{ > > �...@override > > protected void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > addPreferencesFromResource(R.layout.config); > > } > > public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, > String key) { > > // Nothing here. > > } > } --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Beginner
Download BuzzOff from marketplace: http://buzzoff.wikidot.com/ On Jan 20, 6:29 am, Sam Bender wrote: > Hi, this is my first post and I might as well let you know that I have > just a little bit of experience in java. Also I'm 15. I just got a G1 > and I want to create an application to turn of the ringer volume off > at 7:57am and back on at 3:00pm on weekdays > Its been to long and I am very confused with most of this android > specific stuff. > I was wondering if someone could show me an example of how to do this. > I have eclipse running with plugins and the sdk installed on Ubuntu. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] About using MAP Api
Hi All, I am developing Google Map Application on Emulator ( I found that Google Map is not open source , but emulator has map application on it.) Can anyone explain about below things? 1, What is Google Map API Key ? I got couple of it, but it didn't help. 2, How to use MapView APIs to develop Application? 3, I am able to see GPS location information on Text Box on Emulator (i.e. application which displays location data in TextBox), but If I am trying to use MAP APIs it gives errors saying that " Unexpected errors has happened". I am refering this article about it: http://www.devx.com/wireless/Article/39239/0/page/3 Thanks in Advance. Regards, _-_Mayank Rana_-_ --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Tmobile Android touch screen not working after 2 minutes broswing.
I tried the hard-reset. Still the same problem. Called TMobile support. The guys was nice, and told me will send my replacement. Cost me 10 bucks for shipping... Guys, thanks for helping me. Elf On Jan 18, 11:05 pm, elf wrote: > I tried couple of sites. They may have JavaScripts. I don't intend to > run any background services. But may be some of the applications I > downloaded tried to get a piece of my phone's memory. That's a good > clue, I will try to uninstall all of them and run some tests of the > browser. Will send back the update > > Thanks > Elf > > On Jan 18, 8:29 pm, Torgny wrote: > > > > > Does the site you browse have a lot of JavaScript and other intensive > > things? How many windows do you have open? It could be that you're > > just using up all the memory of your phone since the browser does tend > > to be a memory hog. Try turning off JavaScript and images as a test > > and see if you can reproduce the error. Also, do you have any services > > running in the background as you are browsing? > > > On Jan 18, 2:23 pm, elf wrote: > > > > Hi, > > > I got a Android phone from TMobile. Thetouchscreenstops working > > > after I used the google browser for 2 minutes each time. After > > > reboot, every thing will go back to normal, and that’s reason I > > > suspected it is caused by O.S. instead of hardware. > > > > Any one have same problem? > > > > Thanks. > > > Elf- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can not access to the system properties store?
Thank you for your reply. Do you mean the Settings application is considered to be part of the system? If so, it should be able to change the system properties, right? I am not writing my own application; just modified the original Settings application. I need a system-wide place to store the configured properties and it should be able to be accessed by programs without activity or service context (like method in the Environment class). Could you tell me how to do that? Thanks. On 1月21日, 上午11時28分, Dianne Hackborn wrote: > There are a number of things that settings does that normal apps can't, and > this is probably one of them. We generally consider settings to be part of > the system, not an application. > > On Tue, Jan 20, 2009 at 6:34 PM, Brian 1143 wrote: > > > I am modifying the Settings application, and needing to access the > > system properties. By using android.os.SystemProperties.get, I can > > read the system properties. However, I can not set the system > > properties back with android.os.SystemProperties.set. This function > > has no return and the system properties never get changed. Why? > > Is there any permission required? > > > Thanks. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to play youtube videos in an Android application?
Thanks Michael for the reply. Can I also run the YouTube video with the SDK?. Regards On Jan 20, 11:06 pm, kolby wrote: > You can send a VIEW intent with the video uri. TheYouTubeappon the > G1 should pick it up. > > Michael > > On Jan 20, 11:31 am, RTM wrote: > > > Hi, > > Are you able to run theYouTubevideo with an Android Application?. > > I guess due to lack of Flash support in Android browser, we are not > > able to playYouTubevideos. Is there any way we can overcome this? > > > Regards > > > On Dec 3 2008, 9:37 pm, Dipin wrote: > > > > Is there any way to play ayoutubevideo in an Android application? > > > Using MediaPlayer or VideoView can we play ayoutubevideo? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to share classes between different Android projects?
Thanks Juan, that looks like what I need. On Tue, Jan 20, 2009 at 8:04 PM, jtaylor wrote: > > Try Java Build Path > Libraries > Add External Class Folder. > > > - Juan T. > > On Jan 20, 12:29 pm, luke wrote: > > I have two projects that share classes in a third project. Eclipse > > happily allows me to reference these external classes when I am > > developing the two dependant projects (as long as the Java Build Path > > is set up right), but when I try launching the dependant projects, the > > external classfiles are not copied into the .apk for some reason, so > > at runtime I get unsatisfied link errors. I don't want to have to > > maintain multiple copies of the same source file, or even have a copy > > of these external classfiles in the dependant projects. I also want > > to avoid adding an extra build step where I build the external > > classfiles, package them up in a .jar file and include them in the > > dependant projects. > > > > How can I get the Android SDK to simply put a copy of any referenced > > (non-SDK, non-project) external classes in the .apk at build time? > > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can not access to the system properties store?
...so, um.. "Any app on the mobile device can be replaced or extended -- even core components such as the dialer or home." It does say 'on the mobile device', even. (from http://code.google.com/android/) On Tue, Jan 20, 2009 at 10:28 PM, Dianne Hackborn wrote: > There are a number of things that settings does that normal apps can't, and > this is probably one of them. We generally consider settings to be part of > the system, not an application. > > On Tue, Jan 20, 2009 at 6:34 PM, Brian 1143 wrote: > >> >> I am modifying the Settings application, and needing to access the >> system properties. By using android.os.SystemProperties.get, I can >> read the system properties. However, I can not set the system >> properties back with android.os.SystemProperties.set. This function >> has no return and the system properties never get changed. Why? >> Is there any permission required? >> >> Thanks. >> >> > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. > > > > > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: flash plug-in for android on x86
..right. So clearly, he doesn't mean "on the g1." As far as flash for the x86, I don't believe there is a flash plugin for the android browser on x86. Gotta ask adobe for it. On Tue, Jan 20, 2009 at 10:24 PM, mawei1981 wrote: > > G1's CPU is arm, not X86 > > On Jan 20, 9:38 am, 李亮亮 wrote: > > Hi all, > > Is it possible to use linux version flash player plug-in on x86 for > android > > x86 version? > > > > > -- > > > From: "ke zeng" > > > Sent: Monday, January 19, 2009 2:35 PM > > > To: > > > Subject: [android-beginners] Re: :: Flash Games > > > > >> Not yet, adobe have given some demos about flash player 10 on android, > > >> but I can't find where to download them. > > > > >> On Mon, Jan 19, 2009 at 2:27 PM, Imran wrote: > > > > >>> Hi All..#!! > > > > >>> i am flash developer so i am planning for developing flash games > > >>> for android. but i want to know does Android Support flash > > >>> now...?? > > > > >>> Cheers, > > >>> Imran > > > > >> -- > > >> BR > > >> Zeng Ke > > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to judge a file/directory is a symbol link
Hello, guys. I need to traverse all files recursively in the specified path, but I found a directory is a symbol link to its parent/ancestor, so the traversal behavior never completes. My question is how to judge a file/directory is a symbol link. Thanks a lot. BR, -John ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting cellular network data
android.net.NetworkInfo http://code.google.com/android/reference/android/net/NetworkInfo.html - Juan T. On Jan 14, 11:07 pm, UAE wrote: > Hi, > > I would like to know if its possible to get low-level information > related to the cellular network, as I would like to use them in an app > I am willing to design. I have searched the APIs and this and other > discussion boards, but I cant seem to find any info regarding that. > Would someone please enligh me on this? It seems that this is > confidential information but for an open source phone, this shouldn't > be. > > Thank you for your time --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: cant studying android
I would check if those links are legal. Authors don't usually give their books away for free like that. - Juan T. On Jan 20, 9:10 am, Shuvo wrote: > Well I am also new in Android , you can download some good Android > books for free , I am providing the links > > 1. Professional Andoid Application Development > :http://www.netbks.com/programming/general-programming-programming/pro... > > 2. Android , A Programmars Guide > :http://www.netbks.com/programming/general-programming-programming/and... > > 3. Android Essentials > :http://www.netbks.com/programming/general-programming-programming/and... > > thank you for being an Androidian ... best of luck > > Shuvo > Bangladesh University of Engineering and Technology ( BUET ) > rejwan.shuvo.googlepages.com > > On Jan 20, 6:36 pm, msmsmukesh wrote: > > > Hi all,I cant understand anything from android. First what we do for > > studying android. > > > Thanks, > > Mukesh --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with simpleCursorAdapter, ListView backed by a managed cursor
In a TabActivity I have a tab with a ListView. I manage the visibility of a View for when the list is empty, done after filling the list, whenever I know the backing data changes. When the list is empty (empty View is visible) and the activity is paused, and while paused the backing SQLlite table gets filled, when my activity resumes the ListView gets filled with the new database rows (managed cursor requery?) but I haven't had the chance to set the visibility of the empty View, so it's still there. I can figure out how to do this with some persistent data from pause to resume, but I'm wondering if there's a 'cleaner' and automatic way of achieving this in Android. 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Play wav files in Media player
OpenCORE also supports wav files with A-law and mu-law format. On Jan 21, 8:23 am, Dave Sparks wrote: > What is the format of the data in the WAVE file? > > OpenCore only supports 8- and 16-bit linear PCM. > > On Jan 20, 11:59 am, ena wrote: > > > plz help me outActually i want to play many file one by one in > > media player.im using that code > > > MediaPlayer melodyPlayer=MediaPlayer.create(context, resID); > > melodyPlayer.seekTo(0); > > melodyPlayer.start(); > > > but after same time i get Error > > > 01-20 23:12:01.785: ERROR/AudioTrack(24): Could not get control block > > 01-20 23:12:01.785: ERROR/AudioSink(24): Unable to create audio track > > 01-20 23:12:01.785: ERROR/audiothread(24): Error creating AudioTrack > > 01-20 23:12:01.876: WARN/PlayerDriver(24): > > PVMFInfoErrorHandlingComplete > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): create failed: > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): java.io.IOException: > > Prepare failed.: status=0x > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > > android.media.MediaPlayer.prepare(Native Method) > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > > android.media.MediaPlayer.create(MediaPlayer.java:169) > > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > > org.isol.MyCustomButton$1.onClick(MyCustomButton.java:89) > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] G1 Bluetooth stack
I know that T-Mobile's G1 running Android supports multiple bluetooth profiles, however, does the G1 currently support multiple devices to be connected and utilized at the same time? Does/Will the Android SDK support the use of bluetooth devices in this manor or are we bound to many profiles but only one active? Scenario: Both my wife and I have G1 phones, and both are usually found inside the Golla pouches that we purchased but while driving those pouches become quite the bother when you want to know who calls before you answer. So my solution was to think, bracelet/watch & headset combo and now we have the phone still in the pouch and my eyes still on the road. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error: Read and parse xml file
"public void characters(char ch[], int start, int length) { if(this.in_mytag){ myParsedExampleDataSet.setExtractedString(new String(ch, start, length)); } } " change code to: "public void characters(char ch[], int start, int length) { if(this.in_mytag&&(new String(ch,start, length)! =null||!"".equals(new String(ch,start, length{ myParsedExampleDataSet.setExtractedString(new String (ch,start, length)); } } " ok? On Jan 19, 12:14 pm, Sabi wrote: > Hi Moto, > > The code of my ExampleHandler.java file as: > > package s.s; > > import org.xml.sax.Attributes; > import org.xml.sax.SAXException; > import org.xml.sax.helpers.DefaultHandler; > > public class ExampleHandler extends DefaultHandler{ > > // === > // Fields > // === > > private boolean in_outertag = false; > private boolean in_innertag = false; > private boolean in_mytag = false; > > private ParsedExampleDataSet myParsedExampleDataSet = new > ParsedExampleDataSet(); > > // === > // Getter & Setter > // === > > public ParsedExampleDataSet getParsedData() { > return this.myParsedExampleDataSet; > } > > // === > // Methods > // === > �...@override > public void startDocument() throws SAXException { > this.myParsedExampleDataSet = new ParsedExampleDataSet(); > } > > �...@override > public void endDocument() throws SAXException { > // Nothing to do > } > > /** Gets be called on opening tags like: > * > * Can provide attribute(s), when xml was like: > * */ > �...@override > public void startElement(String namespaceURI, String localName, > String qName, Attributes atts) throws SAXException { > if (localName.equals("outertag")) { > this.in_outertag = true; > }else if (localName.equals("innertag")) { > this.in_innertag = true; > }else if (localName.equals("mytag")) { > this.in_mytag = true; > }else if (localName.equals("tagwithnumber")) { > // Extract an Attribute > String attrValue = atts.getValue("thenumber"); > int i = Integer.parseInt(attrValue); > myParsedExampleDataSet.setExtractedInt(i); > } > } > > /** Gets be called on closing tags like: > * */ > �...@override > public void endElement(String namespaceURI, String localName, > String qName) > throws SAXException { > if (localName.equals("outertag")) { > this.in_outertag = false; > }else if (localName.equals("innertag")) { > this.in_innertag = false; > }else if (localName.equals("mytag")) { > this.in_mytag = false; > }else if (localName.equals("tagwithnumber")) { > // Nothing to do here > } > } > > /** Gets be called on the following structure: > * characters */ > �...@override > public void characters(char ch[], int start, int length) { > if(this.in_mytag){ > myParsedExampleDataSet.setExtractedString(new String(ch, > start, length)); > } > } > > } > > Please check this code and help me. > > Thanks, > Dinesh Sharma --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Development Phone Setup - Vodafone India
Hello All, I am trying to setup the phone using vodafone connection but its unable to sign up google services. It says there is a problem in connecting to the Google services. Please help me in setting up the android development phone. Thanks in advance --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with onTouchEvent
I'm trying to intercept onTouchEvent and use the movement to set the number of seconds on a simple timer. The idea is that if you touch your finger on the screen and move left or right, up or down the counter will move higher or lower. My code works but for some reason the increments are not smooth. Down movements are short and jerky compared to up movements for example. I'm having a hard time finding any reason for this. My code follows: @Override public boolean onTouchEvent(MotionEvent event) { Message m = new Message(); m.what = timer.GUIUPDATEIDENTIFIER; switch (event.getAction()) { case MotionEvent.ACTION_DOWN: startX = (int)event.getX(); startY = (int)event.getY(); return true; case MotionEvent.ACTION_MOVE: endX = (int)event.getX(); endY = (int)event.getY(); if((endY - startY) < 0) { this.mySecondsTotal += 1; } else { this.mySecondsTotal -= 1; } if((endX - startX) < 0) { this.mySecondsTotal -= 1; } else { this.mySecondsTotal += 1; } startX = (int)event.getX(); startY = (int)event.getY(); if (this.mySecondsTotal < 0) this.mySecondsTotal = 0; DEFAULTSECONDS = this.mySecondsTotal; this.myYogaViewUpdateHandler.sendMessage(m); return true; case MotionEvent.ACTION_UP: endX = (int)event.getX(); endY = (int)event.getY(); return true; } return false; } --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
Assume I'm a idio^H^H^H^Hn00b and explain it to me, please. I don't see what you do. On Tue, Jan 20, 2009 at 10:27 PM, Dianne Hackborn wrote: > This is the cause as shown in the stack crawl: > > E/AndroidRuntime( 583): Caused by: java.lang.NullPointerException > E/AndroidRuntime( 583): at org.apache.harmony.luni.util. > FloatingPointParser.parseDouble(FloatingPointParser.java:254) > E/AndroidRuntime( 583): at > java.lang.Double.parseDouble(Double.java:332) > E/AndroidRuntime( 583): at > com.faberfedor.tagyourworld.MainMap$SitesOverlay.(MainMap.java:275) > E/AndroidRuntime( 583): at > com.faberfedor.tagyourworld.MainMap.onCreate(MainMap.java:141) > E/AndroidRuntime( 583): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) > E/AndroidRuntime( 583): at > android.app.ActivityThread.performLaunchActivity( > > > On Tue, Jan 20, 2009 at 6:51 PM, Faber Fedor wrote: > >> >> >> On Tue, Jan 20, 2009 at 9:11 PM, Mark Murphy wrote: >> >>> That is probably the bottom of the stack trace. I'm interested in the >>> top. >> >> >> I've pasted the output of logcat, trimmed beneath my sig. Unfortunately, >> the top of the stack trace reads: >> >> E/AndroidRuntime( 583):at >> android.app.Instrumentation.callActivityOnCreate(Instrumentation.ja >> va:1122) >> E/AndroidRuntime( 583):at >> android.app.ActivityThread.performLaunchActivity(ActivityThread.jav >> a:2103) >> E/AndroidRuntime( 583):... 11 more >> >> >> which I take to mean we're not going to find out. :-) >> >> So I'm going to try doing this all over again, more methodically, tomorrow >> on my Linux box. >> >> -- >> >> Faber Fedor >> Cloud Computing New Jersey >> http://cloudcomputingnj.com >> >> >> --- BEGIN LOGCAT OUTPUT >> >> D/AndroidRuntime( 583): Shutting down VM >> W/dalvikvm( 583): threadid=3: thread exiting with uncaught exception >> (group=0x40010e28) >> E/AndroidRuntime( 583): Uncaught handler: thread main exiting due to >> uncaught exception >> E/AndroidRuntime( 583): java.lang.RuntimeException: Unable to start >> activity >> ComponentInfo{com.faberfedor.tagyourworld/com.faberfedor.tagyourworld.MainMap}: >> java.lang.NullPointerException >> E/AndroidRuntime( 583): at >> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140) >> E/AndroidRuntime( 583): at >> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2156) >> E/AndroidRuntime( 583): at >> android.app.ActivityThread.access$1800(ActivityThread.java:112) >> E/AndroidRuntime( 583): at >> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) >> E/AndroidRuntime( 583): at >> android.os.Handler.dispatchMessage(Handler.java:88) >> E/AndroidRuntime( 583): at android.os.Looper.loop(Looper.java:123) >> E/AndroidRuntime( 583): at >> android.app.ActivityThread.main(ActivityThread.java:3742) >> E/AndroidRuntime( 583): at >> java.lang.reflect.Method.invokeNative(Native Method) >> E/AndroidRuntime( 583): at >> java.lang.reflect.Method.invoke(Method.java:515) >> E/AndroidRuntime( 583): at >> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) >> E/AndroidRuntime( 583): at >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) >> E/AndroidRuntime( 583): at dalvik.system.NativeStart.main(Native >> Method) >> E/AndroidRuntime( 583): Caused by: java.lang.NullPointerException >> E/AndroidRuntime( 583): at >> org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:254) >> E/AndroidRuntime( 583): at >> java.lang.Double.parseDouble(Double.java:332) >> E/AndroidRuntime( 583): at >> com.faberfedor.tagyourworld.MainMap$SitesOverlay.(MainMap.java:275) >> E/AndroidRuntime( 583): at >> com.faberfedor.tagyourworld.MainMap.onCreate(MainMap.java:141) >> E/AndroidRuntime( 583): at >> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) >> E/AndroidRuntime( 583): at >> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2103) >> E/AndroidRuntime( 583): ... 11 more >> I/Process ( 54): Sending signal. PID: 583 SIG: 3 >> I/dalvikvm( 583): threadid=7: reacting to signal 3 >> I/dalvikvm( 583): Wrote stack trace to '/data/anr/traces.txt' >> I/Process ( 583): Sending signal. PID: 583 SIG: 9 >> I/ActivityManager( 54): Process com.faberfedor.tagyourworld (pid 583) >> has died. >> --- END LOGCAT OUTPUT >> >> >> >> > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. > > > > > > -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ You received this message because yo
[android-developers] Re: Can not access to the system properties store?
There are a number of things that settings does that normal apps can't, and this is probably one of them. We generally consider settings to be part of the system, not an application. On Tue, Jan 20, 2009 at 6:34 PM, Brian 1143 wrote: > > I am modifying the Settings application, and needing to access the > system properties. By using android.os.SystemProperties.get, I can > read the system properties. However, I can not set the system > properties back with android.os.SystemProperties.set. This function > has no return and the system properties never get changed. Why? > Is there any permission required? > > Thanks. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black
Oh wait, I completely missed the part where you wrote: "without starting preivew first" You have to start preview first. In theory, you can call takePicture() from the first preview callback, or from the auto-focus callback. In practice, due to a bug in the G1 camera driver, you have to wait for the second preview callback. On Jan 20, 9:44 am, Pascal Merle wrote: > On the G1! > > On 20 Jan., 18:22, Dave Sparks wrote: > > > Is this on the emulator or on G1? > > > On Jan 18, 12:40 pm, Pascal Merle wrote: > > > > I am standing a bit in the dark with the android.hardware.Camera > > > class. > > > > What I tried to do is taking a picture without starting preview first: > > > Camera mCamera = Camera.open(); > > > mCamera.takePicture(null, null, mPictureCallback); > > > > In the callback routine I get JPEG data of fixed length, always 52K > > > long. It has the right resolution but it's all black (independent of > > > the real object!!). Do you know if this is a bug? Do I need to start a > > > preview before taking a picture? Can this be done from within a > > > service (no activity)? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
This is the cause as shown in the stack crawl: E/AndroidRuntime( 583): Caused by: java.lang.NullPointerException E/AndroidRuntime( 583): at org.apache.harmony.luni.util. FloatingPointParser.parseDouble(FloatingPointParser.java:254) E/AndroidRuntime( 583): at java.lang.Double.parseDouble(Double.java:332) E/AndroidRuntime( 583): at com.faberfedor.tagyourworld.MainMap$SitesOverlay.(MainMap.java:275) E/AndroidRuntime( 583): at com.faberfedor.tagyourworld.MainMap.onCreate(MainMap.java:141) E/AndroidRuntime( 583): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) E/AndroidRuntime( 583): at android.app.ActivityThread.performLaunchActivity( On Tue, Jan 20, 2009 at 6:51 PM, Faber Fedor wrote: > > > On Tue, Jan 20, 2009 at 9:11 PM, Mark Murphy wrote: > >> That is probably the bottom of the stack trace. I'm interested in the top. > > > I've pasted the output of logcat, trimmed beneath my sig. Unfortunately, > the top of the stack trace reads: > > E/AndroidRuntime( 583):at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.ja > va:1122) > E/AndroidRuntime( 583):at > android.app.ActivityThread.performLaunchActivity(ActivityThread.jav > a:2103) > E/AndroidRuntime( 583):... 11 more > > > which I take to mean we're not going to find out. :-) > > So I'm going to try doing this all over again, more methodically, tomorrow > on my Linux box. > > -- > > Faber Fedor > Cloud Computing New Jersey > http://cloudcomputingnj.com > > > --- BEGIN LOGCAT OUTPUT > > D/AndroidRuntime( 583): Shutting down VM > W/dalvikvm( 583): threadid=3: thread exiting with uncaught exception > (group=0x40010e28) > E/AndroidRuntime( 583): Uncaught handler: thread main exiting due to > uncaught exception > E/AndroidRuntime( 583): java.lang.RuntimeException: Unable to start > activity > ComponentInfo{com.faberfedor.tagyourworld/com.faberfedor.tagyourworld.MainMap}: > java.lang.NullPointerException > E/AndroidRuntime( 583): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140) > E/AndroidRuntime( 583): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2156) > E/AndroidRuntime( 583): at > android.app.ActivityThread.access$1800(ActivityThread.java:112) > E/AndroidRuntime( 583): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) > E/AndroidRuntime( 583): at > android.os.Handler.dispatchMessage(Handler.java:88) > E/AndroidRuntime( 583): at android.os.Looper.loop(Looper.java:123) > E/AndroidRuntime( 583): at > android.app.ActivityThread.main(ActivityThread.java:3742) > E/AndroidRuntime( 583): at > java.lang.reflect.Method.invokeNative(Native Method) > E/AndroidRuntime( 583): at > java.lang.reflect.Method.invoke(Method.java:515) > E/AndroidRuntime( 583): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) > E/AndroidRuntime( 583): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) > E/AndroidRuntime( 583): at dalvik.system.NativeStart.main(Native > Method) > E/AndroidRuntime( 583): Caused by: java.lang.NullPointerException > E/AndroidRuntime( 583): at > org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:254) > E/AndroidRuntime( 583): at > java.lang.Double.parseDouble(Double.java:332) > E/AndroidRuntime( 583): at > com.faberfedor.tagyourworld.MainMap$SitesOverlay.(MainMap.java:275) > E/AndroidRuntime( 583): at > com.faberfedor.tagyourworld.MainMap.onCreate(MainMap.java:141) > E/AndroidRuntime( 583): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) > E/AndroidRuntime( 583): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2103) > E/AndroidRuntime( 583): ... 11 more > I/Process ( 54): Sending signal. PID: 583 SIG: 3 > I/dalvikvm( 583): threadid=7: reacting to signal 3 > I/dalvikvm( 583): Wrote stack trace to '/data/anr/traces.txt' > I/Process ( 583): Sending signal. PID: 583 SIG: 9 > I/ActivityManager( 54): Process com.faberfedor.tagyourworld (pid 583) has > died. > --- END LOGCAT OUTPUT > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--
[android-developers] Re: how to by-pass the Android Dev Phone 1 activation screen?
pull up the sim card, you will feeling good. On Jan 17, 10:37 pm, winter wrote: > Hello, > > I got a Android Dev Phone 1 from U.S and now staying in China with > China Mobile. I don't plan to use any GPRS connection and only want to > use the voice and wifi feature of the phone for development work. > > I wonder if I can by-pass annoying APN setting screen? I don't > understand why this is mandatory? > > Any help would be greatly appreciated. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: flash plug-in for android on x86
G1's CPU is arm, not X86 On Jan 20, 9:38 am, 李亮亮 wrote: > Hi all, > Is it possible to use linux version flash player plug-in on x86 for android > x86 version? > > > -- > > From: "ke zeng" > > Sent: Monday, January 19, 2009 2:35 PM > > To: > > Subject: [android-beginners] Re: :: Flash Games > > >> Not yet, adobe have given some demos about flash player 10 on android, > >> but I can't find where to download them. > > >> On Mon, Jan 19, 2009 at 2:27 PM, Imran wrote: > > >>> Hi All..#!! > > >>> i am flash developer so i am planning for developing flash games > >>> for android. but i want to know does Android Support flash > >>> now...?? > > >>> Cheers, > >>> Imran > > >> -- > >> BR > >> Zeng Ke --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Play wav files in Media player
What is the format of the data in the WAVE file? OpenCore only supports 8- and 16-bit linear PCM. On Jan 20, 11:59 am, ena wrote: > plz help me outActually i want to play many file one by one in > media player.im using that code > > MediaPlayer melodyPlayer=MediaPlayer.create(context, resID); > melodyPlayer.seekTo(0); > melodyPlayer.start(); > > but after same time i get Error > > 01-20 23:12:01.785: ERROR/AudioTrack(24): Could not get control block > 01-20 23:12:01.785: ERROR/AudioSink(24): Unable to create audio track > 01-20 23:12:01.785: ERROR/audiothread(24): Error creating AudioTrack > 01-20 23:12:01.876: WARN/PlayerDriver(24): > PVMFInfoErrorHandlingComplete > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): create failed: > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): java.io.IOException: > Prepare failed.: status=0x > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > android.media.MediaPlayer.prepare(Native Method) > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > android.media.MediaPlayer.create(MediaPlayer.java:169) > 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at > org.isol.MyCustomButton$1.onClick(MyCustomButton.java:89) --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Camera Focus Facility
Sounds like you might have some sequencing issues. Did you call startPreview first? On Jan 20, 2:51 pm, "mobilek...@googlemail.com" wrote: > Hi, thanks for the hint! I've tried that but I got this: > > java.io.IOException: autoFocus failed > > I registered the callback in CameraActivity.surfaceCreated() method. > > Could you advice on how to get that working? Thank you! > > On Jan 20, 5:09 pm, Dave Sparks wrote: > > > Camera.autoFocus(cb); > > > where cb is a callback function you supply that tells you focus is > > successful or not. > > > On Jan 20, 5:27 am, "mobilek...@googlemail.com" > > > wrote: > > > Hi, > > > > My app is struggling to take focused shots. Is there a built in > > > facility that sets an auto-focus property on the camera, so it > > > automatically takes clear and focused images. I've noticed that > > > feature in numerous well-known apps such as ShopSavvy, > > > CompareEverywhere, etc. > > > > Could you advise on how to achieve that? > > > > Thank you. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
On Tue, Jan 20, 2009 at 9:11 PM, Mark Murphy wrote: > That is probably the bottom of the stack trace. I'm interested in the top. I've pasted the output of logcat, trimmed beneath my sig. Unfortunately, the top of the stack trace reads: E/AndroidRuntime( 583):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.ja va:1122) E/AndroidRuntime( 583):at android.app.ActivityThread.performLaunchActivity(ActivityThread.jav a:2103) E/AndroidRuntime( 583):... 11 more which I take to mean we're not going to find out. :-) So I'm going to try doing this all over again, more methodically, tomorrow on my Linux box. -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --- BEGIN LOGCAT OUTPUT D/AndroidRuntime( 583): Shutting down VM W/dalvikvm( 583): threadid=3: thread exiting with uncaught exception (group=0x40010e28) E/AndroidRuntime( 583): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 583): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.faberfedor.tagyourworld/com.faberfedor.tagyourworld.MainMap}: java.lang.NullPointerException E/AndroidRuntime( 583): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140) E/AndroidRuntime( 583): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2156) E/AndroidRuntime( 583): at android.app.ActivityThread.access$1800(ActivityThread.java:112) E/AndroidRuntime( 583): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) E/AndroidRuntime( 583): at android.os.Handler.dispatchMessage(Handler.java:88) E/AndroidRuntime( 583): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 583): at android.app.ActivityThread.main(ActivityThread.java:3742) E/AndroidRuntime( 583): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 583): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 583): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) E/AndroidRuntime( 583): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) E/AndroidRuntime( 583): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 583): Caused by: java.lang.NullPointerException E/AndroidRuntime( 583): at org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:254) E/AndroidRuntime( 583): at java.lang.Double.parseDouble(Double.java:332) E/AndroidRuntime( 583): at com.faberfedor.tagyourworld.MainMap$SitesOverlay.(MainMap.java:275) E/AndroidRuntime( 583): at com.faberfedor.tagyourworld.MainMap.onCreate(MainMap.java:141) E/AndroidRuntime( 583): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) E/AndroidRuntime( 583): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2103) E/AndroidRuntime( 583): ... 11 more I/Process ( 54): Sending signal. PID: 583 SIG: 3 I/dalvikvm( 583): threadid=7: reacting to signal 3 I/dalvikvm( 583): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 583): Sending signal. PID: 583 SIG: 9 I/ActivityManager( 54): Process com.faberfedor.tagyourworld (pid 583) has died. --- END LOGCAT OUTPUT --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can not access to the system properties store?
I am modifying the Settings application, and needing to access the system properties. By using android.os.SystemProperties.get, I can read the system properties. However, I can not set the system properties back with android.os.SystemProperties.set. This function has no return and the system properties never get changed. Why? Is there any permission required? 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how android connects to a specific AP?
no reply? Anyone knows how to connect to a specific access point? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
Forgive the lengthy response. You probably know all of this already and we're just getting hung up on nomenclature... Faber Fedor wrote: > It'd be the top line in the stack trace, after the exception > name/message. > > > Are you talking in DDMS? I can't get threads or the heap working in there. I'm talking about the stack trace. The exception. Use adb logcat, DDMS, Eclipse, I don't care -- it's the place that tells you "this thing went blooey" and shows you all the methods, from the particular line that had the exception up the call stack, where you were at the time. > And while I am ActivityThread.performLaunchActivity, the exception gets > thrown. That is probably the bottom of the stack trace. I'm interested in the top. For example, from http://www.devdaily.com/java/edu/pj/pj010009/pj010009.shtml java.io.FileNotFoundException: fred.txt at java.io.FileInputStream.(FileInputStream.java) at java.io.FileInputStream.(FileInputStream.java) at ExTest.readMyFile(ExTest.java:19) at ExTest.main(ExTest.java:7) In this case, ExText.readMyFile is the line that triggered the exception. However, the exception itself occurred two calls deeper, in the bowels of java.io.FileInputStream's constructor. For many exceptions, this isn't that big of an issue -- you can think of ExText.readMyFile as being "where the exception occurred". For NullPointerException, though, it really helps to know the the line in which the exception was raised -- the first line reported below the exception. Why? Because *that's* the line that attempted to access a null object. So, rolling all the way back to your code, if the first line in the stack trace below the exception is the line you cited (map.getOverlays().add(new SitesOverlay(marker));), then you know that *that line* attempted to use a null object, meaning that either map or map.getOverlays() returns a null. If, however, there are other lines between the exception and the above-quoted statement, that means your code may have *passed in* a null, and so either marker is null or somehow SitesOverlay is having problems and can't be instantiated. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
On Tue, Jan 20, 2009 at 8:41 PM, Mark Murphy wrote: > > Faber Fedor wrote: > > 4. Is the exception precisely on that line, or on a nested call? > > > > > > How do I tell the difference? > > It'd be the top line in the stack trace, after the exception name/message. Are you talking in DDMS? I can't get threads or the heap working in there. Right before I execute the line, I see my MainMap.onCreate at the top of the stack with Instrumentation.callActivityOnCreate just below it. As soon as I step over it, it looks like my stack has been entirely replaced; at the top of the stack are several calls related to ActivityThread, looks like it's launching a new Activity. And while I am ActivityThread.performLaunchActivity, the exception gets thrown. -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
Faber Fedor wrote: > 4. Is the exception precisely on that line, or on a nested call? > > > How do I tell the difference? It'd be the top line in the stack trace, after the exception name/message. If, however, there are a few Android source lines, then yours, then your statement triggered the exception, but the exception itself happened somewhere in something you called. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugging geolocations services
On Tue, Jan 20, 2009 at 8:25 PM, Emmanuel wrote: > > Isn't it more secure to output your log in a txt file in your SD card, > so you don't have to bother with any limit ? The traceview that was mentioned seems to do that by default. Besides, I was planning on putting my log file on the SD card anyway. -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
On Tue, Jan 20, 2009 at 8:21 PM, Mark Murphy wrote: > > Various random ideas, and forgive me if you thought of these already: > > 1. Blow away R.java, assuming you copied it over with the rest of your > code, and rebuild. > > 2. I assume your code is in a new directory tree > (src/com/faberfedor/tagyourworld) that matches your namespace...right? > Did/verified both of those before writing to y'all... 3. If you somehow copied over compiled classes when you set up your new > Eclipse project, get rid of those too and make sure it rebuilds all from > scratch. > I assume that was the stuff in the bin directory I blew away, right? > 4. Is the exception precisely on that line, or on a nested call? How do I tell the difference? > If it > is precisely on that line, and if map and marker are confirmed to exist, > then map.getOverlays() must be what's returning null. Now why would it do that? > 5. Are you still inheriting from MapActivity? Yeah. As I said, the only thing(s) that changed are the package name strings. :-? -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugging geolocations services
Isn't it more secure to output your log in a txt file in your SD card, so you don't have to bother with any limit ? Emmanuel http://androidblogger.blogspot.com/ On Jan 21, 2:22 am, Mark Murphy wrote: > > So I log everything to file, take my Android out for a walk, come back > > home, plug it in and Eclipse/DDMS will read the log file? Cool! > > Yup. I assume there's some limit to how much logging information is > held, but I don't know what that limit is. It's fairly generous, though. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugging geolocations services
> So I log everything to file, take my Android out for a walk, come back > home, plug it in and Eclipse/DDMS will read the log file? Cool! Yup. I assume there's some limit to how much logging information is held, but I don't know what that limit is. It's fairly generous, though. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing package names fubars the map overlays?
Faber Fedor wrote: > This is odd. I need to make my code pretty, so the first thing I want > to do is to change the all the strings 'com.appspot.lbtdl' to > 'com.faberfedor.tagyourworld'. I change every string in all the > directories using the Perl 'pie' technique. Then I put the code into a > new directory, create a new Eclipse project and run it. > > For some reason, my code now crashes with a NullPointerException in my > MapView on the line > > map.getOverlays().add(new SitesOverlay(marker)); > > If I comment it out, the programs runs; wrongly, but it runs. Both map > and marker have values/content/attributes/whatever you say a non-null > object has. > > I've diffed every file in the project and the *only* thing different is > the changing of my package name strings and the dir structure under src/. > > Any ideas? Various random ideas, and forgive me if you thought of these already: 1. Blow away R.java, assuming you copied it over with the rest of your code, and rebuild. 2. I assume your code is in a new directory tree (src/com/faberfedor/tagyourworld) that matches your namespace...right? 3. If you somehow copied over compiled classes when you set up your new Eclipse project, get rid of those too and make sure it rebuilds all from scratch. 4. Is the exception precisely on that line, or on a nested call? If it is precisely on that line, and if map and marker are confirmed to exist, then map.getOverlays() must be what's returning null. 5. Are you still inheriting from MapActivity? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugging geolocations services
On Tue, Jan 20, 2009 at 7:48 PM, jtaylor wrote: > > Log everything with this. Then it shows up in Logcat in Eclipse (or > DDMS). So I log everything to file, take my Android out for a walk, come back home, plug it in and Eclipse/DDMS will read the log file? Cool! -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Changing package names fubars the map overlays?
This is odd. I need to make my code pretty, so the first thing I want to do is to change the all the strings 'com.appspot.lbtdl' to 'com.faberfedor.tagyourworld'. I change every string in all the directories using the Perl 'pie' technique. Then I put the code into a new directory, create a new Eclipse project and run it. For some reason, my code now crashes with a NullPointerException in my MapView on the line map.getOverlays().add(new SitesOverlay(marker)); If I comment it out, the programs runs; wrongly, but it runs. Both map and marker have values/content/attributes/whatever you say a non-null object has. I've diffed every file in the project and the *only* thing different is the changing of my package name strings and the dir structure under src/. Any ideas? -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button On Map
Its ok I figured out how to pin buttons to GeoPoints so all is fine now. On Jan 20, 8:17 pm, Cadge wrote: > Currently I have a MapView and an Itemized overlay which displays > different locations on the map. > > When one of these locations is "tapped" the onTap method creates a new > Overlay object which draws an empty speech bubble (the type you would > find normally on google maps). > > What I want to do is then populate this empty speech bubble with some > buttons but I am unsure how to do the following: > > 1) Get a reference to a button from an xml file in the Overlay class > ( can't use findViewById() as it isn't an Activity? ). > > 2) Pin a button so it stays with the speech bubble. > > Would it be best to create a new layout which contains buttons and > place this over the speech bubble? Is that even possible? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to share classes between different Android projects?
Try Java Build Path > Libraries > Add External Class Folder. - Juan T. On Jan 20, 12:29 pm, luke wrote: > I have two projects that share classes in a third project. Eclipse > happily allows me to reference these external classes when I am > developing the two dependant projects (as long as the Java Build Path > is set up right), but when I try launching the dependant projects, the > external classfiles are not copied into the .apk for some reason, so > at runtime I get unsatisfied link errors. I don't want to have to > maintain multiple copies of the same source file, or even have a copy > of these external classfiles in the dependant projects. I also want > to avoid adding an extra build step where I build the external > classfiles, package them up in a .jar file and include them in the > dependant projects. > > How can I get the Android SDK to simply put a copy of any referenced > (non-SDK, non-project) external classes in the .apk at build time? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugging geolocations services
On Jan 20, 6:20 pm, "Faber Fedor" wrote: > I wrote some reverse geocoding, geolocation and proximity alert routines for > my little Android app. I took my Android out with me when running errands > to test my routines; they're kinda hard to test from my couch. Half of them > didn't work. > > What's the best way to debug something like this? Sprinkle a bunch of > printf statements (or whatever you call them in Java) throughout the app? > Log everything to the sdcard? Write a toggleable view (is that even > possible?) that acts as a console? > > Suggestions? > Log everything with this. Then it shows up in Logcat in Eclipse (or DDMS). android.util.Log http://code.google.com/android/reference/android/util/Log.html To show times when methods were called use Traceview. It might be helpful for the location methods. Traceview: A Graphical Log Viewer http://code.google.com/android/reference/traceview.html - Juan T. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: distributing my app to friends
On Tue, Jan 20, 2009 at 6:31 PM, Mark Murphy wrote: > > You can host it on a Web site, and so long as it is served up with the > magic MIME type, it'll install directly on their G1 if they click the link > to it from the G1's browser: Cool. > application/vnd.android.package-archive > > Or you can email them the APK, give it to them on CD/SD/thumb drive, have > them enter the hex bytes into DEBUG,or other... > Wait! Android has a DEBUG command?! ;-) -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: distributing my app to friends
> How do I distribute my app to some friends who have G1s (yea, I'm looking > at > you, Scott!) for QA testing and feedback? Candygram! ;-) > My app certainly isn't ready to > be put into any of the marketplaces. I don't have a problem giving out > the > source code, but I'd prefer to give him a nice binary file to install. > Besides, I can see problems with keystore.debug and compiling and the > like. You can host it on a Web site, and so long as it is served up with the magic MIME type, it'll install directly on their G1 if they click the link to it from the G1's browser: application/vnd.android.package-archive Or you can email them the APK, give it to them on CD/SD/thumb drive, have them enter the hex bytes into DEBUG, or otherwise get them the APK. But then, they'll need the SDK or other software in order to get the APK onto the device and install it. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] distributing my app to friends
How do I distribute my app to some friends who have G1s (yea, I'm looking at you, Scott!) for QA testing and feedback? My app certainly isn't ready to be put into any of the marketplaces. I don't have a problem giving out the source code, but I'd prefer to give him a nice binary file to install. Besides, I can see problems with keystore.debug and compiling and the like. How did the people who've already released code QA it? -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Debugging geolocations services
I wrote some reverse geocoding, geolocation and proximity alert routines for my little Android app.I took my Android out with me when running errands to test my routines; they're kinda hard to test from my couch. Half of them didn't work. What's the best way to debug something like this? Sprinkle a bunch of printf statements (or whatever you call them in Java) throughout the app? Log everything to the sdcard? Write a toggleable view (is that even possible?) that acts as a console? Suggestions? -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] equivalent of AWT's FontMetrics
I want to find out the width of a string if it is put into a TextView. I see the graphcis.Paint.FontMetrics. How do I get this from a TextView? How do I determine the width of a string from 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SurfaceHolder.lockCanvas(dirtyRectangle) bug?
Has anyone ever tried to invalidate a portion of the screen successfully without seeing flickering? I have a portion of the screen (on a SurfaceView) which changes rarely and I don't want to draw this portion if possible because it saves ~16% of all drawing code. So I keep a flag whether I should lock the entire canvas (if this part of the screen is dirty) or a part of it (if it's not). Well, *something* surely happens, but not what I'd expect: 1. The non-dirty part of the screen starts flickering as I stop drawing it. 2. Visually (i.e. I can't prove it by taking a screenshot via Eclipse's DDMS plugin - everything looks fine), it appears that 2 frames are drawn continuously one on top of the other - the current one, and the previous. I appreciate *any* hints, even "don't do it, it doesn't work", so I can concentrate on something more meaningful. Cheers, Stoyan --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Camera Focus Facility
Hi, thanks for the hint! I've tried that but I got this: java.io.IOException: autoFocus failed I registered the callback in CameraActivity.surfaceCreated() method. Could you advice on how to get that working? Thank you! On Jan 20, 5:09 pm, Dave Sparks wrote: > Camera.autoFocus(cb); > > where cb is a callback function you supply that tells you focus is > successful or not. > > On Jan 20, 5:27 am, "mobilek...@googlemail.com" > > wrote: > > Hi, > > > My app is struggling to take focused shots. Is there a built in > > facility that sets an auto-focus property on the camera, so it > > automatically takes clear and focused images. I've noticed that > > feature in numerous well-known apps such as ShopSavvy, > > CompareEverywhere, etc. > > > Could you advise on how to achieve that? > > > Thank you. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sensors don't work on partial wake lock
The accelerometer turns off when the screen is off. I'm guessing this is a bug but I haven't seen it logged. Am I missing something? Perhaps the power management features need some improvement - the ability to specify what components are needed during a partial_wake_lock so that power can be conserved as efficiently as possible. BTW, there is a bug logged noting that onSensorChanged() continues to be called for the orientation sensor (during sleep) but the values are not being updated. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Long click focus in expandable lists
I have an expandable list with a context menu that can be accessed by long clicking any of the children. The view template used to create the children consists of 2 nested linear layouts with a textView inside the second one. There's more to the GUI than that, but this is sufficient to cause the bug to appear. As long as the groups and children only contain a text field everything works fine. However if I add a button before my textView, long clicks are not received anymore. I can fix this by flagging the inner Linear Layout as LongClickable. The top most one does not need this to work. Doing this allows me to receive longClick events again, however the visual feedback of long clicks (the slow orange to white gradient) is gone. Nothing happens visually when I hold down, however I do eventually receive the event. The weird thing is that the visual feedback still happens fine in focus mode. It's only invisible in touch mode. Does anyone have any idea what I can do to fix this? Here's the xml http://schemas.android.com/apk/res/ android" android:layout_height="wrap_content" android:layout_width="fill_parent" android:orientation="vertical" android:longClickable="true" android:focusableInTouchMode="true" android:focusable="true"> --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Animated GIFs (and Marquee) into Android's WebView: a performance question.
Hello. I know there are different people asking this question on the web: "Why are Animated GIFs (and Marquee, and probably also Blink) disabled into the Android WebView?". I digged into the C++ and the Java side: clearly the WebPreferences object that is used to configure the WebView doesn't expose all the C+ + interface, where a method to "enable" the feature is in place. My first reaction is a reasoning: probably there is some performance issues, so they prefer to loose this small thing... Even though I don't really see where a user could run a page with a GIF "so much" to drain the battery and "overtake the CPU", I assumed that the Googlers know better then me. But then I discovered something funny: the Google Apps for Mobile, on startup, they have a "busy animated icon". How they do that? I faked the User-Agent from Firefox and, with the great Firebug, caught the small piece of code that does the trick. It's a "CANVAS". This means that the animation is programmed in Javascript. Ok. Now my question is: isn't this approach of doing the animation worse than doing with an Animated Gif? I mean, I could understand that clearing and re-drawing a small part of the browser buffer repeatedly (with a GIF) can be "cpu-bound" for a mobile device (even thought I do the same thing on S60 device and I never had this impression at all, even with other WebKit based browsers). BUT, that' the question, isn't it even more CPU-bound doing it with Javascript? The redrawing is there anyway. And there is also the computation of the Javascript. With a normal GIF, a lot of optimization in this are made inside the C+ + part: here is all left to Javascript. I hope a Google could answer this question. Cheers --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashs when accessing sd card settings
I am having this issue, as well. Nice fresh install following all of the instructions online, nothing strange about my system. I thought it was something I did, but I get the exact same issue. I even went so far as to download an sd img someone else had built, in case I was doing that wrong. It's so easy I'm not sure how I could, but still. Robert --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: problem with binding to a service from a BroadcastReceiver
You can't do this, because binding is async and your receiver is no longer active after returning from the receive function. On Tue, Jan 20, 2009 at 11:41 AM, CJ wrote: > > my idea was quite simple, it includes an activity, a > BroadcastReceiver, and a local service. > i try to bind to the service from either the activity or the > BroadcastReceiver. > the problem is: > if i call binding from the activity, everything looks fine. > but, if i call binding from the BroadcastReceiver, it always come back > with an exception (security not allowed, smth like that). > > can anybody help? btw, because this is a loal service, i did not > define any permission in the manifest.xml. should i? > > many thanks > CJ > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing the "Battery Info" activity (or any system general activity)
This is not a part of the SDK so don't be surprised if this breaks in a future release. On Tue, Jan 20, 2009 at 2:02 PM, euroq wrote: > > I'll answer my own question. > >ComponentName toLaunch; >toLaunch = new ComponentName("com.android.settings", >"com.android.settings.BatteryInfo"); >Intent intent = new Intent(Intent.ACTION_MAIN); >intent.addCategory(Intent.CATEGORY_LAUNCHER); >intent.setComponent(toLaunch); >intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK >| > Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); >context.startActivity(intent); > > > On Jan 20, 10:09 am, euroq wrote: > > Hello all. > > > > I want to be able to show the Battery Info activity in my app, which > > shows things such as the exact level, battery health, etc.. This is > > an activity nested in the Settings of Android; the code is here: > > > > http://git.source.android.com/?p=platform/packages/apps/Settings.git;... > > > > I'm not sure how I can get it, though a few applications such as Power > > Manager, Any Cut, etc. show this screen as well. I found in the > > source code of Settings this intent in a file called > > testing_settings.xml: > > > > > android:title="@string/testing_battery_info"> > > > android:targetPackage="com.android.settings" > > > > android:targetClass="com.android.settings.BatteryInfo" /> > > > > > > But I don't know how to use it. I would guess from the fact that Any > > Cut has a list of activities, that a list of said activities exists > > somewhere, and therefore an easy way to access them exists, but I > > haven't found it. > > > > Thanks! > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Are you localizing an app? Do you want to be?
About the androidxml2po converter: I made one and wrote about it here: http://groups.google.com/group/openintents/browse_thread/thread/84d7b059d0b15390?hl=en. On 18 jan, 16:10, "Evgeny V" wrote: > I have asked the almost same question > here:http://groups.google.com/group/android-developers/browse_thread/threa... > > Hopefully next SDK will support *application scope *(not regional > scope) localization. > I can't see Now any ways to implement multilanguage application except > manually implementation. > > Thanks > > On Sun, Jan 18, 2009 at 3:04 PM, madcoder wrote: > > > I'm curious how this will impact me and others like me who are English- > > speakers but staying in a foreign country. I live in Thailand, and I > > often deal with many 'localization' problems. > > > For example, when I log onto Google groups, it references the > >http://groups.google.co.th/, and all the menus are in Thai script. I > > have to manually change the URL to '.com', then it's readable. > > Fortunately, this is one of the 'easier-to-fix' problems. > > > I hope your localization takes into account the users selected > > country, not the country they are currently located in. > > > 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing the "Battery Info" activity (or any system general activity)
I'll answer my own question. ComponentName toLaunch; toLaunch = new ComponentName("com.android.settings", "com.android.settings.BatteryInfo"); Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setComponent(toLaunch); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); context.startActivity(intent); On Jan 20, 10:09 am, euroq wrote: > Hello all. > > I want to be able to show the Battery Info activity in my app, which > shows things such as the exact level, battery health, etc.. This is > an activity nested in the Settings of Android; the code is here: > > http://git.source.android.com/?p=platform/packages/apps/Settings.git;... > > I'm not sure how I can get it, though a few applications such as Power > Manager, Any Cut, etc. show this screen as well. I found in the > source code of Settings this intent in a file called > testing_settings.xml: > > android:title="@string/testing_battery_info"> > android:targetPackage="com.android.settings" > > android:targetClass="com.android.settings.BatteryInfo" /> > > > But I don't know how to use it. I would guess from the fact that Any > Cut has a list of activities, that a list of said activities exists > somewhere, and therefore an easy way to access them exists, but I > haven't found it. > > 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Market for paid Apps - Identifying customers
Once the market opens for paid apps - will we developers be able to see email addresses of paying customers? Or, will there be some other way to identify legit purchases, so, if we receive support requests via email, will there be a way to tell whether the request comes from a paying customer? 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: fitness or workout program
There is also JogTracker that has been out for quite some time. This program tracks your runs and integrates with a website as well. http://www.jogtracker.com";>www.jogtracker.com On Jan 20, 3:14 pm, Yossi wrote: > Buddy Runner was released. Check on the market > > www.buddyrunner.com > > On Dec 20 2008, 12:21 pm, Yossi wrote: > > > > > I'm working on an app that will allow to track and monitor your > > workout progress both on the device and on a web site. > > First app will be for runners and planned to be shipped in a few > > weeks. > > In case you have any feature requests I would be happy to know about > > them. > > > Yossi > > > On Dec 19, 11:10 pm, "Xavier Mathews" wrote: > > > > What does the app do let you watch work out on the phone or time you > > > while you run or tell you what and when to eat for the day??? Ihave > > > never heard of this app.. > > > > On 12/19/2008, Mark K wrote: > > > > > I think there's a new one at the app store 'WorkItOut' don't know > > > > anything else about. Please be kind to the developers, we are after > > > > all just giving away software. > > > > > Mark > > > > > On Dec 18, 5:12 am, Peli wrote: > > > >> What would you expect from a fitness or workout program? > > > > >> I've outlined a possible version > > > >> here:http://groups.google.com/group/openintents/browse_frm/thread/2a07c31b... > > > > >> That one would be loosely based on our Timesheet application > > > >> (http://www.openintents.org/en/node/153) - just instead of tracking > > > >> jobs one would track a workout program that one could load from a > > > >> file. Would this be something you would be looking for, or did you > > > >> have something completely else in mind? > > > > >> Peli > > > > >> On Dec 17, 6:41 pm, Dave wrote: > > > > >> > I've been waiting for someone to create a workout or fitness program. > > > >> > Anything in the works?- Hide quoted text - > > > > >> - Show quoted text - > > > > -- > > > Xavier A. Mathews > > > Student/Browser Specialist/Developer/Web-Master > > > Client Based Tech Support Specialist > > > Hazel Crest Illinois > > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com > > > "Fear of a name, only increases fear of the thing itself."- Hide quoted > > > text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting cellular network data
Just because its an open source phone doesn't mean that every component is open source. It would be nice if it was. Who is the vendor of the chipset used to communicate over the network? thats what you want if I'm not mistaken. - Original Message - From: "UAE" To: "Android Developers" Sent: Tuesday, January 20, 2009 4:13 PM Subject: [android-developers] Re: Getting cellular network data Its strange that even people who know about the phones INTERNAL architecture wont answer this question (and others like it), although the phone is known to be AN open source phone where no restrictions apply to the freedom of control you have over it. On Jan 15, 8:07 am, UAE wrote: > Hi, > > I would like to know if its possible to get low-level information > related to the cellular network, as I would like to use them in an app > I am willing to design. I have searched the APIs and this and other > discussion boards, but I cant seem to find any info regarding that. > Would someone please enligh me on this? It seems that this is > confidential information but for an open source phone, this shouldn't > be. > > Thank you for your time --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashs when accessing sd card settings
And here is the log: E/AndroidRuntime( 342): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 342): java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.deviceinfo.Memory}: java.lang.NullPointerException E/AndroidRuntime( 342): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2504) E/AndroidRuntime( 342): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2519) E/AndroidRuntime( 342): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2159) E/AndroidRuntime( 342): at android.app.ActivityThread.access$1800(ActivityThread.java:112) E/AndroidRuntime( 342): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) E/AndroidRuntime( 342): at android.os.Handler.dispatchMessage(Handler.java:88) E/AndroidRuntime( 342): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 342): at android.app.ActivityThread.main(ActivityThread.java:3742) E/AndroidRuntime( 342): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 342): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 342): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) E/AndroidRuntime( 342): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) E/AndroidRuntime( 342): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 342): Caused by: java.lang.NullPointerException E/AndroidRuntime( 342): at com.android.settings.deviceinfo.Memory.updateMemoryStatus(Memory.java:169) E/AndroidRuntime( 342): at com.android.settings.deviceinfo.Memory.onResume(Memory.java:88) E/AndroidRuntime( 342): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1224) E/AndroidRuntime( 342): at android.app.Activity.performResume(Activity.java:3360) E/AndroidRuntime( 342): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2491) E/AndroidRuntime( 342): ... 12 more On Sun, Jan 11, 2009 at 12:54 PM, Mariano Kamp wrote: > Sorry, accidently sent the mail to early. > > The first sentence should have read: "When I open the settings screen for > the sd card (sd card & phone storage) the emulator crashs with "The > application Settings (process com.android.settings) has stopped > unexpectedly. Please try again". > > > On Jan 11, 2009, at 12:51 PM, Mariano Kamp wrote: > > Hi, >> >> when I open the settings screen in the emulator it crashs ... >> >> This happens no matter if I start the emulator with my own image using >> -sdcard or without this switch. I "wiped" the user data. >> >> Anything else I can reset? Anybody else experiencing it? >> >> Cheers, >> Mariano >> > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting cellular network data
Its strange that even people who know about the phones INTERNAL architecture wont answer this question (and others like it), although the phone is known to be AN open source phone where no restrictions apply to the freedom of control you have over it. On Jan 15, 8:07 am, UAE wrote: > Hi, > > I would like to know if its possible to get low-level information > related to the cellular network, as I would like to use them in an app > I am willing to design. I have searched the APIs and this and other > discussion boards, but I cant seem to find any info regarding that. > Would someone please enligh me on this? It seems that this is > confidential information but for an open source phone, this shouldn't > be. > > Thank you for your time --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Rotation Redux (2nd try)
Hello All: I asked this before and did not get an answer, so let me try again, simpler: On the G1... What can cause an activity to NOT rotate to landscape when the phone is opened? (I want it to rotate.) No android:screenOrientation is set, and the activity is destroyed and recreated, but the new layout is still portrait. Thanks -- Ward --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Button On Map
Currently I have a MapView and an Itemized overlay which displays different locations on the map. When one of these locations is "tapped" the onTap method creates a new Overlay object which draws an empty speech bubble (the type you would find normally on google maps). What I want to do is then populate this empty speech bubble with some buttons but I am unsure how to do the following: 1) Get a reference to a button from an xml file in the Overlay class ( can't use findViewById() as it isn't an Activity? ). 2) Pin a button so it stays with the speech bubble. Would it be best to create a new layout which contains buttons and place this over the speech bubble? Is that even possible? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: fitness or workout program
Buddy Runner was released. Check on the market www.buddyrunner.com On Dec 20 2008, 12:21 pm, Yossi wrote: > I'm working on an app that will allow to track and monitor your > workout progress both on the device and on a web site. > First app will be for runners and planned to be shipped in a few > weeks. > In case you have any feature requests I would be happy to know about > them. > > Yossi > > On Dec 19, 11:10 pm, "Xavier Mathews" wrote: > > > > > What does the app do let you watch work out on the phone or time you > > while you run or tell you what and when to eat for the day??? Ihave > > never heard of this app.. > > > On 12/19/2008, Mark K wrote: > > > > I think there's a new one at the app store 'WorkItOut' don't know > > > anything else about. Please be kind to the developers, we are after > > > all just giving away software. > > > > Mark > > > > On Dec 18, 5:12 am, Peli wrote: > > >> What would you expect from a fitness or workout program? > > > >> I've outlined a possible version > > >> here:http://groups.google.com/group/openintents/browse_frm/thread/2a07c31b... > > > >> That one would be loosely based on our Timesheet application > > >> (http://www.openintents.org/en/node/153) - just instead of tracking > > >> jobs one would track a workout program that one could load from a > > >> file. Would this be something you would be looking for, or did you > > >> have something completely else in mind? > > > >> Peli > > > >> On Dec 17, 6:41 pm, Dave wrote: > > > >> > I've been waiting for someone to create a workout or fitness program. > > >> > Anything in the works?- Hide quoted text - > > > >> - Show quoted text - > > > -- > > Xavier A. Mathews > > Student/Browser Specialist/Developer/Web-Master > > Client Based Tech Support Specialist > > Hazel Crest Illinois > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com > > "Fear of a name, only increases fear of the thing itself." --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Play wav files in Media player
plz help me outActually i want to play many file one by one in media player.im using that code MediaPlayer melodyPlayer=MediaPlayer.create(context, resID); melodyPlayer.seekTo(0); melodyPlayer.start(); but after same time i get Error 01-20 23:12:01.785: ERROR/AudioTrack(24): Could not get control block 01-20 23:12:01.785: ERROR/AudioSink(24): Unable to create audio track 01-20 23:12:01.785: ERROR/audiothread(24): Error creating AudioTrack 01-20 23:12:01.876: WARN/PlayerDriver(24): PVMFInfoErrorHandlingComplete 01-20 23:12:01.886: DEBUG/MediaPlayer(316): create failed: 01-20 23:12:01.886: DEBUG/MediaPlayer(316): java.io.IOException: Prepare failed.: status=0x 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at android.media.MediaPlayer.prepare(Native Method) 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at android.media.MediaPlayer.create(MediaPlayer.java:169) 01-20 23:12:01.886: DEBUG/MediaPlayer(316): at org.isol.MyCustomButton$1.onClick(MyCustomButton.java:89) --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] problem with binding to a service from a BroadcastReceiver
my idea was quite simple, it includes an activity, a BroadcastReceiver, and a local service. i try to bind to the service from either the activity or the BroadcastReceiver. the problem is: if i call binding from the activity, everything looks fine. but, if i call binding from the BroadcastReceiver, it always come back with an exception (security not allowed, smth like that). can anybody help? btw, because this is a loal service, i did not define any permission in the manifest.xml. should i? many thanks CJ --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with ItemizedOverlay
Thanks, but it is not the populate method(), I call this. The exception occurs strangely from time to time with the Overlay working perfectly before. On 18 Jan., 15:40, Miroslav Slobodnik wrote: > I think that you forget to call populate() method. You can call it for > example in the constructor. > > On Jan 18, 12:08 pm, Huebi wrote: > > > Hi, > > > I use the ItemizedOverlay to display POIs. From time to time I get the > > following exception: > > > 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): > > java.lang.ArrayIndexOutOfBoundsException > > 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at > > com.google.android.maps.ItemizedOverlay.getIndexToDraw > > (ItemizedOverlay.java:203) > > 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at > > com.google.android.maps.ItemizedOverlay.draw(ItemizedOverlay.java:232) > > 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at > > com.google.android.maps.Overlay.draw(Overlay.java:175) > > 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at > > com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42) > > 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at > > com.google.android.maps.MapView.onDraw(MapView.java:450) > > > As the POIs are reloaded, I have to replace the Overlays. I create a > > new ItemizedOverlay and set it to the overlays List of the MapView > > within a synchronized block. In addition, the getOverlays() method is > > supposed to return a synchronized List. But somehow this still is > > messed up. Any ideas? > > > Cheers > > Huebi > > --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Blocked TextView - URLSpan ...
I mad an error while posting before: ..android:id="@+id/urlresult" must be ..android:id="@+id/ urltextview".. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Blocked TextView - URLSpan ...
Hi, i tried to make a textview with clickable url links. It's blocked, but only if I preset the text e.g. like ..android:text="www.google.de".. then the view is clickable (on view startup the text will be overwitten by my program, so it's invisible): program.xml: --- ... program.java: -- ... private String myUrl = ""; ... public void onCreate(Bundle icicle) { ... TextView tv = (TextView)findViewById(R.id.urltextview); String myDisplayString = getTextToDisplay(); // myDisplayString contains no url tv.setText( myDisplayString, TextView.BufferType.SPANNABLE ); SpannableString myString = (SpannableString)tv.getText(); myString.setSpan(new URLSpan( myUrl ), pos1, pos2, Spannable.SPAN_INCLUSIVE_EXCLUSIVE); } private String getTextToDisplay() { ... myUrl = ""; ... return displayText; } How can I solve this mysterious behavior without presetting the text value in the layout file ? CU --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: taking picture from emulator, if pc having webcam
Have a look at this solution: http://www.tomgibara.com/android/camera-source Peli www.openintents.org On Jan 20, 12:57 pm, jalandar wrote: > is it possible to take photo with emulator's camera?, if the pc(on > emulator is there) having web cam > thank you --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to play youtube videos in an Android application?
You can send a VIEW intent with the video uri. The YouTube app on the G1 should pick it up. Michael On Jan 20, 11:31 am, RTM wrote: > Hi, > Are you able to run the YouTube video with an Android Application?. > I guess due to lack of Flash support in Android browser, we are not > able to play YouTube videos. Is there any way we can overcome this? > > Regards > > On Dec 3 2008, 9:37 pm, Dipin wrote: > > > Is there any way to play ayoutubevideo in an Android application? > > Using MediaPlayer or VideoView can we play ayoutubevideo? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I detect if the user has started my app again?
You might look into onNewIntent() -- called when an activity is resumed because of a new intent balachmar wrote: Well, I thought so too! But onResume() is called both when the menu disappears and when the user open the program again by clicking on the icon. Same goes for onRestart(). Cheers On Jan 19, 10:58 pm, "Faber Fedor" wrote: Isn't that what onResume() and onPause are for? On Mon, Jan 19, 2009 at 4:24 PM, balachmar wrote: Hi, I want a countdowntimer to halt on a menu and also when the user goes from that menu to another activity. When the user comes back from that activity or when the menu is closed, the timer should still halt. However when the user went to the home screen and clicks on the icon again, I want the timer to restart. So my question is, is there a way to detect if the user has just opened your application, or if the user comes back from another activity or menu? Thanks in advance, Willem Ligtenberg -- Faber Fedor Cloud Computing New Jerseyhttp://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to get Available Device RAM
Between Linux and Dalkvik's VM "available device RAM" is pretty meaningless. What are you wanting to accomplish. On Tue, Jan 20, 2009 at 7:44 AM, android_soft wrote: > > Hi All, > Anyone knows how to get the available Device RAM through an API ? > I am not looking for - Runtime.getInstance().freeMemory() > > Thanks in advance, > Chander > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: JMI and android
Note that native code is not supported in the SDK at this point, and any app using native code has a good chance of breaking in the future. This discussion does not belong on android-developers, because this is not a part of the SDK. On Tue, Jan 20, 2009 at 9:10 AM, FranckLefevre wrote: > > > Hi All, > > Note that it is already possible to create complete apps using JNI. > > This video ( http://www.youtube.com/watch?v=PYkwHjc6wyo ) shows a > Kaleido based ODP (on device portal) running as a Android app without > any specific change in the framework itself. Exactly the same app > runs fine on ADP, being installed as a regular APK. > > It's even possible to take advantage of almost all the Android > services using BeanShell as a scripting engine from the native code. > This is actually what we do on that application that accesses the > Android's phonebook for instance. > > That also means that the same appliaction (excepted its thin porting > layer) runs on both the G1 and an iPhone. > > > Franck. > > > > > On Jan 20, 12:40 am, David Turner wrote: > > Android's Dalvik VM uses JNI internally to access all the yummy native > > libraries on the system. > > A future native development kit (no ETA yet) will allow you to write your > > own native code accessible through JNI. > > Or you can start right now by rebuilding from the official open-source > tree > > (though you won't be able to deploy these apps to other phones easily) > > > > > > > > On Mon, Jan 19, 2009 at 9:22 AM, arnouf wrote: > > > > > It was JNI but JMI exists (Java Metadata Interface). > > > > > Arnaud > > > > > On Jan 9, 7:32 pm, "Fred Grott(shareme)" wrote: > > > > I think he meant JNI > > > > > > On Jan 9, 11:17 am, "David Turner" wrote: > > > > > > > hello, > > > > > > > JMI what ? > > > > > > > On Fri, Jan 9, 2009 at 3:05 PM,arnouf > wrote: > > > > > > > > Hi guys! > > > > > > > > A simple question: Is JMI supported by Android? > > > > > > > > Regards- Hide quoted text - > > > > - Show quoted text - > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android source code
Hi, this group is for discussion about programming with the SDK. Discussion about working with the source code should be in android-platform or one of the related groups. On Tue, Jan 20, 2009 at 3:47 AM, Fathi wrote: > > hello every one > > i want to ask a question about the android source code > - after building the code how and where can i test the builded > version, and what files that i need from teh builded version > > please, i will appreciate if any one can answer me > > Thanks > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black
On the G1! On 20 Jan., 18:22, Dave Sparks wrote: > Is this on the emulator or on G1? > > On Jan 18, 12:40 pm, Pascal Merle wrote: > > > I am standing a bit in the dark with the android.hardware.Camera > > class. > > > What I tried to do is taking a picture without starting preview first: > > Camera mCamera = Camera.open(); > > mCamera.takePicture(null, null, mPictureCallback); > > > In the callback routine I get JPEG data of fixed length, always 52K > > long. It has the right resolution but it's all black (independent of > > the real object!!). Do you know if this is a bug? Do I need to start a > > preview before taking a picture? Can this be done from within a > > service (no activity)? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About using findViewById
Check R.Java after you build to see whether is is listed under other like drawable .. -Dan On Jan 20, 2:21 am, mak wrote: > Hi All, > > I am trying to create small simple application on emulator. > I want to create button and display with some click event. > I am not able to use findViewById method with R.id.abc. > It always gives error as R.id cannot be resolved. > > Any working example ?? > > Regards, > _-_Mayank Rana_-_ --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: audio recording to split (small) files without dropping or overlapping samples
This discussion is moving beyond the charter of android-developers (which is about developing Android applications with the SDK). A better place for this is android-discuss or maybe android-framework. FYI, neither the G1 or the emulator use ALSA drivers. On Jan 18, 3:11 pm, "Matt Flax" wrote: > Oh, OK. > > thanks for the info. > > Actually I like your idea, however we are implementing a more professional > grade sound level meter. > It is implemented using signal processing filters and integrators. > > For that reason, we require access to the actual samples. > > it seems that the only way to get this happening at the moment would be to > hack the device and use the ALSA sound driver. > What do you think ? > > thanks > Matt > > On Sat, Jan 17, 2009 at 6:44 PM, Dave Sparks wrote: > > > > > > > OK, now I see where you going with it. :) > > > What you want is coming in Cupcake. There is a streaming interface for > > audio input and output that gives you an array of audio samples you > > can do your signal processing on. > > > If you need something for SDK 1.0, there is a MediaRecorder function > > called getMaxAmplitude(). You should be able to get what you want by > > writing the audio file to /dev/null and calling into getMaxAmplitude > > periodically. Take a look at the source code for SoundRecorder on > > android.git.kernel.org. > > > On Jan 16, 3:20 pm, "Matt Flax" wrote: > > > we are implementing a sound level meter. For privacy reasons, we don't > > want > > > the audio lying around on the disk. > > > > We could do it on the fly without recording to disk, however I don't > > think > > > that is possible with the sdk ... is it ? > > > > Matt > > > > On Fri, Jan 16, 2009 at 12:16 PM, Dave Sparks > >wrote: > > > > > I am pretty sure that won't work. Why do you want to record a bunch of > > > > small audio files without dropping samples? > > > > > On Jan 14, 7:52 pm, flatmax wrote: > > > > > Hi there, > > > > > > Has anyone managed to record audio to small files without dropping > > > > > samples between ? > > > > > > perhaps it is possible to use two recorders which toggle between > > > > > recording states ... when on is recording, the other is priming and > > > > > waiting to record ... > > > > > > Something like : > > > > > > //declare two recorders > > > > > MediaRecorder recorder1 = new MediaRecorder(); > > > > > MediaRecorder recorder2 = new MediaRecorder(); > > > > > > /// continuously prime, start and stop the two streams so one is > > > > > always capturing ... > > > > > > //prime and start recorder1 - this is the loop roll in > > > > > recorder1.setAudioSource > > > > > recorder1.setOutputFormat > > > > > recorder1.setAudioEncoder > > > > > recorder1.setOutputFile > > > > > recorder1.prepare > > > > > recorder1.start > > > > > > while (1){ > > > > > > //prime and start recording from recorder2 > > > > > recorder2.setAudioSource > > > > > recorder2.setOutputFormat > > > > > recorder2.setAudioEncoder > > > > > recorder2.setOutputFile > > > > > recorder2.prepare > > > > > > //wait a certain ammount of time to allow capture > > > > > sleep > > > > > > recorder2.start > > > > > > recorder1.stop > > > > > recorder1.reset > > > > > > //prime recorder1 > > > > > recorder1.setAudioSource > > > > > recorder1.setOutputFormat > > > > > recorder1.setAudioEncoder > > > > > recorder1.setOutputFile > > > > > recorder1.prepare > > > > > > //wait a certain ammount of time to allow capture > > > > > sleep > > > > > > /// switch recorders > > > > > recorder1.start > > > > > > recorder2.stop > > > > > recorder2.reset > > > > > > } > > > > > > recorder1.release(); > > > > > recorder2.release(); > > > > --http://www.flatmaxstudios.com > > --http://www.flatmaxstudios.com --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to share classes between different Android projects?
I have two projects that share classes in a third project. Eclipse happily allows me to reference these external classes when I am developing the two dependant projects (as long as the Java Build Path is set up right), but when I try launching the dependant projects, the external classfiles are not copied into the .apk for some reason, so at runtime I get unsatisfied link errors. I don't want to have to maintain multiple copies of the same source file, or even have a copy of these external classfiles in the dependant projects. I also want to avoid adding an extra build step where I build the external classfiles, package them up in a .jar file and include them in the dependant projects. How can I get the Android SDK to simply put a copy of any referenced (non-SDK, non-project) external classes in the .apk at build time? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Playing encrypted video.
There is no support for this use case right now. On Jan 19, 5:23 am, RunX wrote: > Thanks for the fast reply. > > The file is encrypted and I don't want to save the unencrypted file > and open that. > How could I do that? > > Thanks, >RunX > > On Jan 14, 8:35 pm, rktb wrote: > > > If you have already opened the file for encryption, and have a file > > descriptor, you could pass that with setDataSource. > > > -Ravi > > > On Jan 14, 1:17 pm, RunX wrote: > > > > Hi, > > > > I want to play anencryptedvideo file. > > > Currently, I use the method - setDataSource(String videoPath) in order > > > to play videos. > > > But when the file isencryptedI need to open the encryption before > > > passing it to the media player. > > > > How can I do that? > > > Maybe there is a way to set a memory file as a data source. > > > > Thanks for your help, > > >RunX- Hide quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: need help for MediaRecorder
I think the problem is your path, you need a leading slash: private String Path_Name = "/sdcard/audio4"; On Jan 17, 11:25 pm, "haze...@gmail.com" wrote: > hey hi, > i'm doing a similar program for my school too, but i cant make it to > work. do you think you can help me? i think i have the code written > correctly, and i have added the permission too. please help. thanks > > package capstoneProject.AudioRecording; > > import android.app.Activity; > import android.media.MediaRecorder; > import android.os.Bundle; > import android.view.View; > import android.widget.Button; > import android.widget.EditText; > > public class AudioRecording extends Activity { > /** Called when the activity is first created. */ > > private Button buttonRecording, buttonStopRecording; > private EditText textRecording, textStopRecording; > private String Path_Name = "sdcard/audio4"; > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > textRecording = (EditText) findViewById(R.id.text1); > textStopRecording = (EditText) findViewById(R.id.text2); > buttonRecording = (Button) findViewById(R.id.buttonRecording); > buttonStopRecording = (Button) findViewById > (R.id.buttonStopRecording); > buttonRecording.setOnClickListener(new clicker()); > buttonStopRecording.setOnClickListener(new clicker()); > } > > class clicker implements Button.OnClickListener { > public void onClick(View v) > > { > MediaRecorder audioRecorder = new MediaRecorder(); > > if(v==buttonRecording){ > > //textRecording.setText("Recording"); > //textStopRecording.setText(""); > > > audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); > audioRecorder.setOutputFormat > (MediaRecorder.OutputFormat.THREE_GPP); > audioRecorder.setAudioEncoder > (MediaRecorder.AudioEncoder.AMR_NB); > audioRecorder.setOutputFile(Path_Name); > audioRecorder.prepare(); > audioRecorder.start(); // Recording is now started > } > > if(v==buttonStopRecording){ > textStopRecording.setText("Stop Recording"); > textRecording.setText(""); > audioRecorder.stop(); > audioRecorder.reset(); // You can reuse the object > by going > back to setAudioSource() step > audioRecorder.release(); // Now the object cannot be > reused > > //String tag, label; > //TimingLogger timeRecord = new TimingLogger(tag, > label); > > } > > } > > } > > } --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Documentation of MediaPlayer error codes
We are working on improving media player error codes for the next major SDK release. On Jan 19, 3:58 am, Allan Beaufour wrote: > Hey > > Do anybody know if there is some documentation of the MediaPlayer > error codes somewhere. The docs only has two of them, and I'm getting > at least four other ones :) > > -- > Allan Beaufour --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.hardware.Camera - JPEG image of correct size but always black
Is this on the emulator or on G1? On Jan 18, 12:40 pm, Pascal Merle wrote: > I am standing a bit in the dark with the android.hardware.Camera > class. > > What I tried to do is taking a picture without starting preview first: > Camera mCamera = Camera.open(); > mCamera.takePicture(null, null, mPictureCallback); > > In the callback routine I get JPEG data of fixed length, always 52K > long. It has the right resolution but it's all black (independent of > the real object!!). Do you know if this is a bug? Do I need to start a > preview before taking a picture? Can this be done from within a > service (no activity)? --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Raw audio from the microphone?
This API will be available in a future release. On Jan 16, 5:22 pm, jjbunn wrote: > Snap - me too! I'm interested in the answer to this as well. And, if > access to > the raw audio buffers is available, a knowledge of what format the > audio data in would be essential. > > I'd prefer not to have to write the data to a file and then read the > file, since this will be too slow. > > Julian > > On Jan 15, 9:49 pm, Ben Dodson wrote: > > > Hi, > > > I'm trying to build a training tool to help strengthen certain vocal > > issues. I'm hoping to do some basic pitch/tone analysis. I've been > > looking around, and it doesn't seem easy to get access to rawaudio > > data (wav file)? Is this the case? > > > Thanks, > > Ben --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: missing javax audio?
We haven't released a Cupcake SDK yet. Docs will come when the SDK is published. On Jan 17, 6:17 pm, peter cowan wrote: > static audio buffers and PCM streamin should do what i need. i don't > see any javadoc api for the new cupcake features on the android site, > can you point to where this code is located (ie: what package)? > > -peter > > have you written up this FAQ? > On Jan 7, 6:50 pm, Dave Sparks wrote: > > > Thereisnoplantosupportjavax.sound. I guess I need to writeup a > > media FAQ because this question gets asked repeatedly. > > > Cupcake hassupportfor streaming PCM audio in and out of Java. It > > also supports static buffers, i.e. load a buffer with sound data and > > trigger (one-shot) or loop. Both static and streamed buffers havesupportfor > > pitch and volume controls. > > > On Jan 7, 1:19 pm, Pv wrote: > > > > Any update on anyone gettingjavax.sound.sampled (or something > > > similar) working? > > > > Pv > > > > On Nov 23 2008, 12:49 am, MichaelEGR wrote: > > > > > Greets... Wow.. good thread and discussion thus far. Best and most > > > > recent audio thread I've seen. > > > > > I am an audio/graphics professional and my first project, for kicks, > > > > is to port my desktop Java Quake3 class game engine to Android and > > > > OpenGL ES as a test of well my ability to get Q3 tech playing with ES > > > > and Android and it didn't take long to realize the state of audio in > > > > SDK 1.0_r1 is not suitable for lots of audio stuff I'd like to > > > > accomplish in general and some novel features for my port (IE voice > > > > chat with desktop clients from built in mic on G1, etc; fun!). We'll > > > > see how the Q3 port turns out; gonna hack a file based push to talk > > > > feature most likely via MediaRecorder; delayed audio w/ this though > > > > and only one way to desktop clients to show proof of concept. > > > > > I specifically did not adopt or even look at Android until a handset > > > > device was released and the SDK hit 1.0 simply because I knew the > > > > platform probably would not be complete and I don't have the time / > > > > desire to work around incomplete APIs / implementation (yes, was > > > > correct on that; for audio at least; lots of gold to be had elsewhere; > > > > seriously, kudos Android team et al, I haven't been this excited in a > > > > while about a new tech!). So, yes, lets continue to discuss how to > > > > solve the audio issue that encroaches on all of us who want > > > > performance audio on Android and all 'droid devices in general. I will > > > > throw in my two cents on how I _am_ (not would be) solving it after > > > > dealing with the woes and inadequacies of Java Sound on the desktop > > > > _for years_ from an API perspective to simply incomplete > > > > implementations on various platforms and JVM versions. (Java Sound - > > > > Write once, test everywhe... oh wait you mean it doesn't fully work on > > > > platform at all?.?. gah!!!) > > > > > One solution on the desktop has been to ditch Java Sound andsupport > > > > PortAudio (www.portaudio.com) via JNI. I propose that Android can also > > > > provide the best and most _portable_ audio solution not only on the G1 > > > > and other devices, but _future_ hardware that supports Android by > > > > adopting PortAudio and exposing a lean and mean API to developers that > > > > then can be further extended with higher level APIs for purpose built > > > > processes (speech detection / Jspeex port / DSP processing, even a > > > >javax.soundimplementation built _on top_ of PortAudio, etc). What is > > > > needed is simple and efficient raw audio I/O functionality at the > > > > core; PortAudio provides this and only this! For file I/O it's not a > > > > bad idea tosupportLibsndfile (http://www.mega-nerd.com/libsndfile/). > > > > Between PortAudio & Libsndfile raw hardware and file based audio I/O > > > > can be solved by time tested open source solutions. > > > > > Now... I mentioned future hardware supporting Android... I just so > > > > happen to be developing an embedded audio hardware product that > > > > focuses on advanced spatial processing (think large scale 2D and 3D > > > > sound arrays; I have a 32 speaker hemisphere setup at my facility in > > > > SF for instance; check here for those interested in an overview I > > > > published for the recent AES conference in SF w/ picts & equipment > > > > specifications > > > > --http://research.egrsoftware.com/conferences/2008/aes2008/) > > > > and after finally dipping into Android (IE G1 & SDK 1.0 finally > > > > available and in my hands) I've decided unanimously and almost > > > > instantly to ditch my previous path which was Analog Devices Blackfin/ > > > > Sharc based processors running uClinux and am switching to the TI > > > > OMAP3 3550 and Android as the processor/stack. In doing this I already > > > > am adopting PortAudio on my future Android based hardware and this is > > > > how I presentlyplanto expose audio I/O to Android de
[android-developers] Re: Equalizer...
At this time, there is no mechanism to get at the raw audio after it is decoded. On Jan 19, 11:03 am, Valeria wrote: > Hi everyone, > > I'm developing a multimedia player and I want to create an equalizer > in it , but I can't find any information about how to do it. Could > anyone help me? I think I read some time ago it could be implemented > in Android... am I wrong? Thanks in advance... > > Bye --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fwd: Audio Streaming
I think you may need to remove the @hide directives in the new API's. I can't help you with the Eclipse plug-in though, I still use VI and make. :) On Jan 20, 3:17 am, Breno wrote: > Hey Tez, > >it's not only a .jar...you need to : > > 1) download source code > 2) Compile it ("make") > 3) Create SDK ("make sdk") > > It's quite easy. The problem is that you cannot use this new SDK in > Eclipse, because conflicts between the SDK and the Eclipse plugin. > There is a way to generate this plugin using the source code, but this > is what i'm trying to figure out > > Cheers > > Breno > > On Jan 20, 2:14 am, Tez wrote: > > > Hi, > > > I noticed in your post that you were successful in building the new > > sdk. I have been trying to accomplish the same thing. Could you send > > me the jar that you compiled or maybe only the cupcake branch source > > code? > > > Cheers, > > Earlence > > > On Jan 19, 9:18 pm, "Breno T.Minzon" wrote: > > > > Hey Dave, > > > > I downloaded the android source code and this already has Cupcake > > > branch > > > merged into main. I compile and made the sdk ("make sdk") with success. > > > But > > > now i need the eclipse plugin compatible with this version of this > > > "custom" > > > sdk. Note that i just downloaded and compile. I need to work with audio > > > streaming, and in our prototype we walked around, but now, we really need > > > this feature. So i'm trying to use it. I looked the source, and, > > > apparently, > > > Cupcake solves our needs... > > > I try this > > > link,http://review.source.android.com/5290/diff/201/z474cb3132ea0f2114f9e5..., > > > but when i import the projects into my workspace, many compile errors > > > appear. I think that there is a lot of new functions and classes, that > > > eclipse plugin doesn't detect...So, how can i build successfully the > > > eclipse > > > plugin? > > > > Thanks a lot > > > > Breno > > > > On Jan 17, 5:44 am, Dave Sparks wrote:> OK, now > > > I see where you going with it. :) > > > > > What you want is coming in Cupcake. There is astreaminginterface > > > > foraudioinput and output that gives you an array ofaudiosamples you > > > > > can do your signal processing on. > > > > > If you need something for SDK 1.0, there is a MediaRecorder function > > > > called getMaxAmplitude(). You should be able to get what you want by > > > > writing theaudiofile to /dev/null and calling into getMaxAmplitude > > > > periodically. Take a look at the source code for SoundRecorder on > > > > android.git.kernel.org. > > > > > On Jan 16, 3:20 pm, "Matt Flax" wrote: > > > > > > we are implementing a sound level meter. For privacy reasons, we don't > > > want > > > > > theaudiolying around on the disk. > > > > > > We could do it on the fly without recording to disk, however I don't > > > think > > > > > that is possible with the sdk ... is it ? > > > > > > Matt > > > > > > On Fri, Jan 16, 2009 at 12:16 PM, Dave Sparks > > >wrote: > > > > > > > I am pretty sure that won't work. Why do you want to record a bunch > > > > > > of > > > > > > smallaudiofiles without dropping samples? > > > > > > > On Jan 14, 7:52 pm, flatmax wrote: > > > > > > > Hi there, > > > > > > > > Has anyone managed to recordaudioto small files without dropping > > > > > > > samples between ? > > > > > > > > perhaps it is possible to use two recorders which toggle between > > > > > > > recording states ... when on is recording, the other is priming > > > > > > > and > > > > > > > waiting to record ... > > > > > > > > Something like : > > > > > > > > //declare two recorders > > > > > > > MediaRecorder recorder1 = new MediaRecorder(); > > > > > > > MediaRecorder recorder2 = new MediaRecorder(); > > > > > > > > /// continuously prime, start and stop the two streams so one is > > > > > > > always capturing ... > > > > > > > > //prime and start recorder1 - this is the loop roll in > > > > > > > recorder1.setAudioSource > > > > > > > recorder1.setOutputFormat > > > > > > > recorder1.setAudioEncoder > > > > > > > recorder1.setOutputFile > > > > > > > recorder1.prepare > > > > > > > recorder1.start > > > > > > > > while (1){ > > > > > > > > //prime and start recording from recorder2 > > > > > > > recorder2.setAudioSource > > > > > > > recorder2.setOutputFormat > > > > > > > recorder2.setAudioEncoder > > > > > > > recorder2.setOutputFile > > > > > > > recorder2.prepare > > > > > > > > //wait a certain ammount of time to allow capture > > > > > > > sleep > > > > > > > > recorder2.start > > > > > > > > recorder1.stop > > > > > > > recorder1.reset > > > > > > > > //prime recorder1 > > > > > > > recorder1.setAudioSource > > > > > > > recorder1.setOutputFormat > > > > > > > recorder1.setAudioEncoder > > > > > > > recorder1.setOutputFile > > > > > > > recorder1.prepare > > > > > > > > //wait a certain ammount of time to allow capture > > > > > > > sleep > > > > > > > > /// switch recorders > > > > > > > recorder1.start > > > > > > > > recorder2.stop > > > > > > > re
[android-developers] Re: JMI and android
Hi All, Note that it is already possible to create complete apps using JNI. This video ( http://www.youtube.com/watch?v=PYkwHjc6wyo ) shows a Kaleido based ODP (on device portal) running as a Android app without any specific change in the framework itself. Exactly the same app runs fine on ADP, being installed as a regular APK. It's even possible to take advantage of almost all the Android services using BeanShell as a scripting engine from the native code. This is actually what we do on that application that accesses the Android's phonebook for instance. That also means that the same appliaction (excepted its thin porting layer) runs on both the G1 and an iPhone. Franck. On Jan 20, 12:40 am, David Turner wrote: > Android's Dalvik VM uses JNI internally to access all the yummy native > libraries on the system. > A future native development kit (no ETA yet) will allow you to write your > own native code accessible through JNI. > Or you can start right now by rebuilding from the official open-source tree > (though you won't be able to deploy these apps to other phones easily) > > > > On Mon, Jan 19, 2009 at 9:22 AM, arnouf wrote: > > > It was JNI but JMI exists (Java Metadata Interface). > > > Arnaud > > > On Jan 9, 7:32 pm, "Fred Grott(shareme)" wrote: > > > I think he meant JNI > > > > On Jan 9, 11:17 am, "David Turner" wrote: > > > > > hello, > > > > > JMI what ? > > > > > On Fri, Jan 9, 2009 at 3:05 PM,arnouf wrote: > > > > > > Hi guys! > > > > > > A simple question: Is JMI supported by Android? > > > > > > Regards- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: taking picture from emulator, if pc having webcam
No, this is not supported. On Jan 20, 3:57 am, jalandar wrote: > is it possible to take photo with emulator's camera?, if the pc(on > emulator is there) having web cam > thank you --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Camera Focus Facility
Camera.autoFocus(cb); where cb is a callback function you supply that tells you focus is successful or not. On Jan 20, 5:27 am, "mobilek...@googlemail.com" wrote: > Hi, > > My app is struggling to take focused shots. Is there a built in > facility that sets an auto-focus property on the camera, so it > automatically takes clear and focused images. I've noticed that > feature in numerous well-known apps such as ShopSavvy, > CompareEverywhere, etc. > > Could you advise on how to achieve that? > > Thank you. --~--~-~--~~~---~--~~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---