[android-developers] Re: Low Latency Audio is gettting worse not better
What numbers? What are you running and how? Can I duplicate your findings using standard dev tools? On Jan 18, 4:04 pm, Anton Persson don.juan...@gmail.com wrote: Doug, the Case in point shows that hardware is not the issue... Using a STANDARD Linux audio engine (Pulse) showed 10 times improved latency figures on the Galaxy Nexus compared the default Android engine... This phone is not using cutting edge audio hardware! With those numbers doing what I want is definitely possible! So This is definitely caused by Googles software! regards Anton On Jan 18, 2012 8:47 AM, Doug beafd...@gmail.com wrote: I would hazard a guess that a vast majority of consumer mobile devices are already not suitable hardware for whatever your pro audio requirements are. It's hard enough to find a regular consumer priced PC audio board that had low latency audio and low noise. You pretty much have to buy special hardware. It sounds like there is a fire burning underneath you to get something to work. If so, you might want to hire a consulting firm to investigate what it really takes to get pro quality audio out of a mobile device. My guess is that you'd have to commission both the hardware and a customized Android kernel. Doug On Dec 11 2011, 2:48 pm, Bh1 boosthardw...@gmail.com wrote: However the real question is after three years of constant development why has audio latency got worse across the board instead of better? Is it even worth anyones time to try to get something better in place as there appears to be an agenda to make sure that android is not suitable for pro audio requirements. -- 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 -- 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: remove view event
You are highly unclear on this. Does your parent class catch an event, is doing something with it and you want to remove this? Override the related method of the parent class to catch the event in the child class and do nothing in this method. If this is not what you want, try articulating your question. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- 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] Share my Contact
Hi there, I am trying to build an application to share contacts via NFC. The thing is that I can easily share the contacts I have on my agend using Intent.Action_PICK, but I cannot get mine, since is not in that list. Obviously I can add my own contact, but it doesn´t make sense to me. I guess there must be another way to get my own information, but I cannot figure it out. I would appreciate any suggestion. Thanks a lot, Gorka -- 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
Re: [android-developers] Re: can I change the images after some minutes period
Dear : Thanks for your quickly response. I'm just beginning to learn Android. Could you give me an example? Thanks. BR, Mark 2012/1/18 skink psk...@gmail.com mark2011 wrote: Dear All : I want to display some images during a period of time. I use sleep to delay the time want to change another image. But It always displays the last image. Is there anyone can help me? Thanks. BR, Mark use http://developer.android.com/reference/android/os/Handler.html pskink -- 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 -- 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
Re: [android-developers] I'm starting my first real app questions and sound
In order to avoid the phone from sleeping you need a WakeLock. Take a look here - http://developer.android.com/reference/android/os/PowerManager.html As for the plugged in usb part you can look here - http://stackoverflow.com/questions/5283491/android-check-if-device-is-plugged-in On 19/1/2012 7:33 πμ, Simon Jackson wrote: So with an example loaded, what needs to be changed to make the icon and all identifying app text be renamed to myapp? I need to create audio samples (by algorithm) on the fly to play through the speaker, and need to prevent the screen from dimming and sleeping/locking while plugged in usb, is this possible? Cheers Jacko -- 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 -- 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
Re: [android-developers] Re: can I change the images after some minutes period
Dear Jack : Thanks for your response. I just set image resources into another image. BR, Mark 2012/1/19 JackN j...@jacknorth.com did you invalidate your view after changing the image? On Jan 18, 4:01 am, mark2011 androidmark2...@gmail.com wrote: Dear All : I want to display some images during a period of time. I use sleep to delay the time want to change another image. But It always displays the last image. Is there anyone can help me? Thanks. BR, Mark -- 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 -- 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: Multicast Receive
Did you get the solution for 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] how to installing Android 2.3.6 (Gingerbread) on Huawei U8150 IDEOS
hey there, pliz help me to install android 2.3.6 (Gingerbread) on *Huawei U8150 IDEOS *which is running on the default *Android 2.2.1 (Froyo).* Any help pliz clearly indicating the procedures Thank you. Be good to not only people but also machines -- 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: TTS not working
Here is the logcat output 01-19 14:55:32.967: INFO/ActivityManager(51): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.infy.tts/.TTS } 01-19 14:55:33.126: INFO/ActivityManager(51): Start proc com.infy.tts for activity com.infy.tts/.TTS: pid=346 uid=10027 gids={} 01-19 14:55:33.416: INFO/jdwp(346): received file descriptor 20 from ADB 01-19 14:55:33.547: DEBUG/ddm-heap(346): Got feature list request 01-19 14:55:34.016: DEBUG/AndroidRuntime(346): Shutting down VM 01-19 14:55:34.016: WARN/dalvikvm(346): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 01-19 14:55:34.016: ERROR/AndroidRuntime(346): Uncaught handler: thread main exiting due to uncaught exception 01-19 14:55:34.037: ERROR/AndroidRuntime(346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.infy.tts/com.infy.tts.TTS}: java.lang.RuntimeException: Binary XML file line #13: You must supply a layout_height attribute. 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.os.Handler.dispatchMessage(Handler.java:99) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.os.Looper.loop(Looper.java:123) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.ActivityThread.main(ActivityThread.java:4203) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at java.lang.reflect.Method.invokeNative(Native Method) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at java.lang.reflect.Method.invoke(Method.java:521) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at dalvik.system.NativeStart.main(Native Method) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): Caused by: java.lang.RuntimeException: Binary XML file line #13: You must supply a layout_height attribute. 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java: 3434) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3513) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java: 1265) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java: 1191) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.view.LayoutInflater.rInflate(LayoutInflater.java:619) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 313) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.Activity.setContentView(Activity.java:1620) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at com.infy.tts.TTS.onCreate(TTS.java:25) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364) 01-19 14:55:34.037: ERROR/AndroidRuntime(346): ... 11 more 01-19 14:55:34.057: INFO/Process(51): Sending signal. PID: 346 SIG: 3 01-19 14:55:34.067: INFO/dalvikvm(346): threadid=7: reacting to signal 3 01-19 14:55:34.096: INFO/dalvikvm(346): Wrote stack trace to '/data/ anr/traces.txt' 01-19 14:55:35.657: INFO/Process(346): Sending signal. PID: 346 SIG: 9 01-19 14:55:35.676: INFO/ActivityManager(51): Process com.infy.tts (pid 346) has died. 01-19 14:55:35.737: WARN/UsageStats(51): Unexpected resume of com.android.launcher while already resumed in com.infy.tts 01-19 14:55:35.857: WARN/InputManagerService(51): Window already focused,
Re: [android-developers] Share my Contact
dear try this might b it will helps u to built or manage yr contacts...!! http://developer.android.com/resources/samples/ContactManager/index.html -- Ever+ Never- @kh!l R@v@l (+91-96388-66691) (+91-74052-63600) -- 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] honeycomb sample download
I wish to download honeycomb sample download for 3.x . Could you please let me know where i could download? -- 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
Re: [android-developers] Re: TTS not working
dear , U can't use directly those source code at yr emulator ..!! -- 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
Re: [android-developers] Re: How to test Activity, which is run in the separate process (android.process=:process in the manifest file)
Hello, Thanks for the replies! Just out of interest, what do you mean by 'test?' - I mean GUI Robotium test - ActivityInstrumentationTestCase2 etc. Which should be run from the shell ot the CI Server. Just remove the process attribute from your manifest while testing - I have tried, but by this way we are able only to run the application, then it crashes without separate process.. It has near 10 activities with separate process, if I remove all of them it doesn't work anyway.. But looks like it is only the direction we can find any solution. I said that it is bug only because of it is illogical to have a huge testing infrastructure and cool big apps which are not testable due to the are no way to get control over the Activities which is run in a separate process.. Please advise, is there any possible solution? Best regards, Yahor On Wed, Jan 18, 2012 at 8:45 AM, Diego Torres Milano dtmil...@gmail.comwrote: Just remove the process attribute from your manifest while testing and re-enable it when exporting a production APK. Probably you have to remove others as well (i.e. debuggable), so why bother. On Jan 17, 2:03 am, Kristopher Micinski krismicin...@gmail.com wrote: Just out of interest, what do you mean by 'test?' Do you mean, run in eclipse with the 'test' functionality in that IDE? Or perhaps you mean under something like monkeyrunner.. Depending on what you want to test, I don't see what your problem is, which I suspect is why few people responded. True, if something is running in a separate process it's not as easy to debug it, you could always attack a debugger to the other process, but this isn't a bug in Android, per se. P.s., there have been so many people on this list lately with here, I've found an obvious bug in android that doesn't really make sense, please think deeply before you blame a highly trusted framework (/system/framework/etc...) On Tue, Jan 17, 2012 at 1:54 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Anyone? On Tue, Jan 10, 2012 at 5:12 PM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, After the week of hard workaround I didn't find any possible solution to test Activity if it is run with specified android.process=:process param (private, isolated process). Please help to find any possible solution to understand how to test such Activities. Is it Android bug, that Activities in the separate process are not testable? :( Any help is highly appreciated. Best regards, Yahor -- 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 -- Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients -- 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 -- 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 installing Android 2.3.6 (Gingerbread) on Huawei U8150 IDEOS
this is a forum about android development. Good bye. On 19 Jan., 10:29, Omollo Ateng omollo.at...@gmail.com wrote: hey there, pliz help me to install android 2.3.6 (Gingerbread) on *Huawei U8150 IDEOS *which is running on the default *Android 2.2.1 (Froyo).* Any help pliz clearly indicating the procedures Thank you. Be good to not only people but also machines -- 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
Re: [android-developers] Re: how to installing Android 2.3.6 (Gingerbread) on Huawei U8150 IDEOS
isn't that not development? I have an app for emergency i have tested it with Froyo, i want to test it with Gingerbread. Just help if you can help if you cannot then quit! On Thu, Jan 19, 2012 at 1:02 PM, sell.bergstr sell.bergst...@googlemail.com wrote: this is a forum about android development. Good bye. On 19 Jan., 10:29, Omollo Ateng omollo.at...@gmail.com wrote: hey there, pliz help me to install android 2.3.6 (Gingerbread) on *Huawei U8150 IDEOS *which is running on the default *Android 2.2.1 (Froyo).* Any help pliz clearly indicating the procedures Thank you. Be good to not only people but also machines -- 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 -- Be good to not only people but also machines -- 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] Moving from one activity to previous activities.
My application consists of 2 activities and 1 list activity. List activity -- list of titles from google rss feed. 2nd activity -- shows the details of the item. 3rd activity -- WebView , which shows the content of the url. From the 3rd activity i want to go back to list activity and show the previous contents when the back key is pressed. How it is done? -- 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: Samsung Galaxy S2 (2.3.4) and Arduino ADK
What about Android 4 on SG2? Does it supports ADK? -- 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: Low Latency Audio is gettting worse not better
here: http://arunraghavan.net/2012/01/pulseaudio-vs-audioflinger-fight/ (Round 4: Latency) On Jan 19, 9:07 am, Doug beafd...@gmail.com wrote: What numbers? What are you running and how? Can I duplicate your findings using standard dev tools? -- bdk -- 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 iterate Class
I need to get the MediaRecorder.AudioSource constants list, es. CAMCORDER DEFAULT MIC VOICE_CALL VOICE_COMMUNICATION VOICE_DOWNLINK VOICE_RECOGNITION DEFAULT VOICE_UPLINK and their INT value. How to do it inside a for each? 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] WebView error
i get some error when i try to display the contents of a url. The error shown by log cat is : 01-19 17:33:00.999: E/webkit(838): illegal format for expires: Thursday, 19-January-2012 12:11:30 GMT -- 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
Re: [android-developers] Re: Low Latency Audio is gettting worse not better
Doug, I had the link to the stuff I'm referring to in my first post: http://arunraghavan.net/2012/01/pulseaudio-vs-audioflinger-fight/ Just to clarify a misunderstanding here too, these are note MY findings.. I am only referring to the work of Arun Raghavan, who did the analysis... As a side note - my application runs also on the Open Moko phone. With much lower latency, with a really ancient CPU... (ARM920) So it's laughable if we can't get better numbers on todays high end phones! /Anton On Thu, Jan 19, 2012 at 9:07 AM, Doug beafd...@gmail.com wrote: What numbers? What are you running and how? Can I duplicate your findings using standard dev tools? On Jan 18, 4:04 pm, Anton Persson don.juan...@gmail.com wrote: Doug, the Case in point shows that hardware is not the issue... Using a STANDARD Linux audio engine (Pulse) showed 10 times improved latency figures on the Galaxy Nexus compared the default Android engine... This phone is not using cutting edge audio hardware! With those numbers doing what I want is definitely possible! So This is definitely caused by Googles software! regards Anton On Jan 18, 2012 8:47 AM, Doug beafd...@gmail.com wrote: I would hazard a guess that a vast majority of consumer mobile devices are already not suitable hardware for whatever your pro audio requirements are. It's hard enough to find a regular consumer priced PC audio board that had low latency audio and low noise. You pretty much have to buy special hardware. It sounds like there is a fire burning underneath you to get something to work. If so, you might want to hire a consulting firm to investigate what it really takes to get pro quality audio out of a mobile device. My guess is that you'd have to commission both the hardware and a customized Android kernel. Doug On Dec 11 2011, 2:48 pm, Bh1 boosthardw...@gmail.com wrote: However the real question is after three years of constant development why has audio latency got worse across the board instead of better? Is it even worth anyones time to try to get something better in place as there appears to be an agenda to make sure that android is not suitable for pro audio requirements. -- 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 -- 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 -- 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
Re: [android-developers] Re: NFC Secure Element
Hi All, I am getting This ATR now : *3B 8A 80 01 00 31 C1 73 C8 40 00 00 90 00 90*, which I have read in this group that it is for SmartMX. I am looking into writing onto it but so far I am getting 63 00 response(which means error) I am trying to load., authenticate the keys and then read -write and then read back from the SmartMX (Secure Element). *Here is my list of commands : * FF82006006 // load keys FF86050100026000 // authenticate FFB210 //read sector 2 FFD6000210 // write sector 2 FFB210 // read sector 2 again I followed this -- http://www.nfc-reader.com/NFC-smart-card-reader/ACR122-API-Manual/API_ACR122.pdf My main aim is to get the notification programatically or any logs that comes out as the result of doing this.I will try sending these by combining them in APDUs from the application code.I think that will be possible.If successfull I will plan the next step.PLz assist me on this. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Fri, Jan 13, 2012 at 1:54 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, I am gettign an ATR : A card is present. ATR: 3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 *FF 40* 00 00 00 00 D4 . I dont htink it emulated the card.Does it.For 1k/4k Mifare Classic Card it has to be 00 01(Mifare 1k) or 00 02(Mifare 1k) instead of *FF 40* .PLz correct my understanding.I have used the patches to enable to the phone in Card emulation mode. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Fri, Jan 6, 2012 at 11:24 AM, s.rawat imsaurabhra...@gmail.com wrote: Yes you are correct, now it looks fine and I can see the options getting ticked on the NFC Setting UI.But i was getting the segmentation fault as well.Plz find attached the logs( showing the logs at the boot time ).It shows the stack trace as well. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Thu, Jan 5, 2012 at 6:04 PM, s.rawat imsaurabhra...@gmail.com wrote: Sure I will try that and post the results ! ..pain is temporary.quitting lasts forever.. 2012/1/5 Fernando Miguélez fernando.migue...@gmail.com Saurabh, After reflashing my phone and verifying that the NFC toggle option was available also in main Wireless Settings Screen, and after examining your problem I reached the conclusion that your generated image does not include NFC support, only the settings screen. I reviewed the patches and *there was a bug. *The NFC was not enabled in building proccess because the wrong file was patched (device.mk instead of device_base.mk). Sorry for the incovenience. I have just updated the patches and uploaded to http://forum.xda-developers.com/showthread.php?p=17965091 . Could you please check from the beginning that now the patches are completely correct by rebuilding the image? It is safe to apply again over the patches files, since the changes apply to another file. On Thu, Jan 5, 2012 at 9:31 AM, s.rawat imsaurabhra...@gmail.comwrote: I did re-flashing from the patched Android Source and again the same thing.Here are the logcat logs on clicking the NFC Settings : D/dalvikvm( 298): GC_EXPLICIT freed 91K, 45% free 3160K/5703K, external 4731K/5234K, paused 290ms I/ActivityManager( 106): Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.WirelessSettings } from pid 493 D/dalvikvm( 493): GC_EXTERNAL_ALLOC freed 55K, 50% free 2933K/5831K, external 2878K/3220K, paused 20ms E/NFC ( 493): could not retrieve NFC service I/ActivityManager( 106): Displayed com.android.settings/.WirelessSettings: +351ms D/dalvikvm( 493): GC_EXTERNAL_ALLOC freed 43K, 49% free 3022K/5831K, external 3171K/3241K, paused 21ms I/ActivityManager( 106): Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.nfc.NfcSettings } from pid 493 I/ActivityManager( 106): Displayed com.android.settings/.nfc.NfcSettings: +261ms Any clue on this. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. 2012/1/4 Fernando Miguélez fernando.migue...@gmail.com Well, options are enabled in cascade. The problem comes because the first option is not enabled. Besides, if you look at the Wireless Settings screen, there is only the NFC Settings option, but not the one that lets you enalbe/disable NFC directly from that screen. That is beacuse the Nfc service in not available. Connection to a computer in debug mode will draw some light. Instead of compiling the whole image again I suggest you to compile just the Nfc.apk system application and replace the original one. You must remount /system partition in read/write mode and overwrite the apk inside /system/app. Then you must kill the nfc service by means of DDMS view of the ADT (you must connnect the phone in debug mode and since you have compiled in userdebug mode you will see all the running proccesses). The service will
[android-developers] Re: how to installing Android 2.3.6 (Gingerbread) on Huawei U8150 IDEOS
no, its not about development. Test your app in the emulator. On 19 Jan., 11:13, Omollo Ateng omollo.at...@gmail.com wrote: isn't that not development? I have an app for emergency i have tested it with Froyo, i want to test it with Gingerbread. Just help if you can help if you cannot then quit! On Thu, Jan 19, 2012 at 1:02 PM, sell.bergstr sell.bergst...@googlemail.com wrote: this is a forum about android development. Good bye. On 19 Jan., 10:29, Omollo Ateng omollo.at...@gmail.com wrote: hey there, pliz help me to install android 2.3.6 (Gingerbread) on *Huawei U8150 IDEOS *which is running on the default *Android 2.2.1 (Froyo).* Any help pliz clearly indicating the procedures Thank you. Be good to not only people but also machines -- 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 -- Be good to not only people but also machines -- 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
Re: [android-developers] Re: NFC Secure Element
Hallo Saurabh, I am getting This ATR now : *3B 8A 80 01 00 31 C1 73 C8 40 00 00 90 00 90* , which I have read in this group that it is for SmartMX. Correct, that's the PC/SC ATR for the SmartMX. I am looking into writing onto it but so far I am getting 63 00 response(which means error) I am trying to load., authenticate the keys and then read -write and then read back from the SmartMX (Secure Element). *_Here is my list of commands : _* FF82006006// load keys FF86050100026000// authenticate FFB210//read sector 2 FFD6000210// write sector 2 FFB210 // read sector 2 again I followed this -- http://www.nfc-reader.com/ NFC-smart-card-reader/ACR122-API-Manual/API_ACR122.pdf I would guess, that the reader automatically performed protocol selection up to ISO 14443-4 / APDU layer. In that state it is not possible to access the MIFARE part of the chip with reader-side MIFARE emulation. You could try the example on page 12ff of this document. br, Michael -- 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
Re: [android-developers] Re: No Video but audio present when using MediaPlayer on the emulator
In your AVD Manager, you define how large of a virtual SD card to have in the AVD. It's called SD Card. You then transfer files to it using the DDMS File Manager, or via the adb push command. On Thu, Jan 19, 2012 at 2:54 AM, rperi...@yahoo.com rperi...@yahoo.com wrote: Okay I'm still stuck trying to figure out how to use the SD card filesystem on the emulator. I followed the instructions in the documentation and created a sd card image using mksdcard. However, I cannot figure out how to push the test.mp4 file on to the image. The documentation mentions mtools but I cannot seem to find a version for Windows - all the downloads seem to be for Unix. Any ideas? On Jan 18, 3:57 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jan 18, 2012 at 2:45 AM, rperi...@yahoo.com rperi...@yahoo.com wrote: Thanks again for the reply. I actually subscribed to your books - they are well written. Thanks! I downloaded the video sample and tried to run it but the screen remains blank. However I suspect it is becuase it cannot find the file. It seems like it is designed run the file test.mp4 on an SD card on a real device. Or a test.mp4 file on the emulated SD card on an emulator. It still will not play well in an emulator, but the lack of the MP4 file will not stop you. Can I make the sample work on the emulator. Yes. Put a file named test.mp4 in the emulated SD card on the emulator. The specific MP4 file I used in those screenshots is the Documentaries and You video from here: http://www.law.duke.edu/cspd/contest/finalists/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Re: how to installing Android 2.3.6 (Gingerbread) on Huawei U8150 IDEOS
On Thu, Jan 19, 2012 at 5:13 AM, Omollo Ateng omollo.at...@gmail.com wrote: isn't that not development? I have an app for emergency i have tested it with Froyo, i want to test it with Gingerbread. Just help if you can help if you cannot then quit! You are on the wrong list. This list has nothing to do with upgrading devices. Please contact your device manufacturer or carrier for assistance. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] WebView error
Off the cuff, it sounds like a misconfigured Web server. That is not a valid format for the HTTP Expires header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html On Thu, Jan 19, 2012 at 7:03 AM, Raneez rane...@gmail.com wrote: i get some error when i try to display the contents of a url. The error shown by log cat is : 01-19 17:33:00.999: E/webkit(838): illegal format for expires: Thursday, 19-January-2012 12:11:30 GMT -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] How to iterate Class
You create your own collection of the values, then iterate over them. On Thu, Jan 19, 2012 at 6:38 AM, Giuseppe porcelli.giuse...@gmail.com wrote: I need to get the MediaRecorder.AudioSource constants list, es. CAMCORDER DEFAULT MIC VOICE_CALL VOICE_COMMUNICATION VOICE_DOWNLINK VOICE_RECOGNITION DEFAULT VOICE_UPLINK and their INT value. How to do it inside a for each? 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Moving from one activity to previous activities.
On Thu, Jan 19, 2012 at 5:32 AM, Raneez rane...@gmail.com wrote: My application consists of 2 activities and 1 list activity. List activity -- list of titles from google rss feed. 2nd activity -- shows the details of the item. 3rd activity -- WebView , which shows the content of the url. From the 3rd activity i want to go back to list activity and show the previous contents when the back key is pressed. Please allow the BACK button to go to the previous activity, since that is a meaningful activity. Please do not break the user's expectation of what the BACK button does. If you are using an action bar (native, ActionBarSherlock, etc.), having your logo in the upper-left go to the initial activity may make sense. To do that, add FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_SINGLE_TOP to the Intent you use with startActivity() when they tap that logo. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] honeycomb sample download
http://developer.android.com/sdk/index.html The samples will be an available option for you from the SDK Manager, once you have that set up. On Thu, Jan 19, 2012 at 4:39 AM, Navindian navind...@gmail.com wrote: I wish to download honeycomb sample download for 3.x . Could you please let me know where i could download? -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] How to measure activity load time
Use Traceview to measure performance of your code. On Wed, Jan 18, 2012 at 11:29 PM, PMS sreenivas...@gmail.com wrote: I have an application. some activity/screens are taking more time to load, So i am looking for a tool/ some solution to measure each screen/ activity to measure load time and response time for any action in the screen like button click etc., -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 in Asynctask Execution in standby mode
Hi friends, I am using AsyncTask concept to download data from server. private class DownloadTask extends AsyncTaskVoid,Void,String { private ProgressDialog progressDialog; @Override protected void onPreExecute() { super.onPreExecute(); progressDialog = new ProgressDialog(ActivityTab.this); progressDialog.setProgress(10); progressDialog.setSecondaryProgress(32); progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); progressDialog.setMessage(Downloading...); progressDialog.show(); } protected String doInBackground(Void... params) { String result= ; result = download(); return result; } protected void onPostExecute(String result) { if(progressDialog.isShowing()) progressDialog.dismiss(); Toast.makeText(getApplicationContext(), +result.toString(),Toast.LENGTH_LONG).show(); } } in download button click i called new DownloadTask().execute(); This is working well. the thing is if device goes to standby mode (Screen goes off) while showing this downloading.. progressbar mean my application getting force closed. it says like IllegalStateException. how to solve this probelm? it is there any way to prevent screen from locking untill complete this download process? please help me. -- 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 implement scrolling for custom layout?
I have looked into the listview and abslistview classes of android. Scrolling in not initiating a call on onMeasure or onLayout, but only invalidate. For some reason I am not been able to debug these classes (can put breakpoint only in abslistview but not listview). Where does children laid out when scrolling starts (layoutChildren is not getting called by a call to invalidate)? -- 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:SDK update issue
sorry mark it is allowing me to download only sdk16. I need to download the samples of this sdk16 atleast..but it is not moving forward. On Thu, Jan 19, 2012 at 6:25 PM, Mark Murphy mmur...@commonsware.comwrote: http://developer.android.com/sdk/index.html The samples will be an available option for you from the SDK Manager, once you have that set up. On Thu, Jan 19, 2012 at 4:39 AM, Navindian navind...@gmail.com wrote: I wish to download honeycomb sample download for 3.x . Could you please let me know where i could download? -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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
Re: [android-developers] Problem in Asynctask Execution in standby mode
Async Task are UI Threads, probably that's the reason.. try creating Threads from any bound Services to perform the download and retreive the download status from service and update that in the UI whenever required.. On Thu, Jan 19, 2012 at 7:17 PM, sktniran sktniranjanad...@gmail.comwrote: Hi friends, I am using AsyncTask concept to download data from server. private class DownloadTask extends AsyncTaskVoid,Void,String { private ProgressDialog progressDialog; @Override protected void onPreExecute() { super.onPreExecute(); progressDialog = new ProgressDialog(ActivityTab.this); progressDialog.setProgress(10); progressDialog.setSecondaryProgress(32); progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); progressDialog.setMessage(Downloading...); progressDialog.show(); } protected String doInBackground(Void... params) { String result= ; result = download(); return result; } protected void onPostExecute(String result) { if(progressDialog.isShowing()) progressDialog.dismiss(); Toast.makeText(getApplicationContext(), +result.toString(),Toast.LENGTH_LONG).show(); } } in download button click i called new DownloadTask().execute(); This is working well. the thing is if device goes to standby mode (Screen goes off) while showing this downloading.. progressbar mean my application getting force closed. it says like IllegalStateException. how to solve this probelm? it is there any way to prevent screen from locking untill complete this download process? please help me. -- 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 -- 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: honeycomb gallery sample download
I am not getting the available packages as shown in this link. http://developer.android.com/sdk/adding-components.html#UpdatingComponents On Thu, Jan 19, 2012 at 7:39 PM, Navindian navind...@gmail.com wrote: sorry mark it is allowing me to download only sdk16. I need to download the samples of this sdk16 atleast..but it is not moving forward. On Thu, Jan 19, 2012 at 6:25 PM, Mark Murphy mmur...@commonsware.comwrote: http://developer.android.com/sdk/index.html The samples will be an available option for you from the SDK Manager, once you have that set up. On Thu, Jan 19, 2012 at 4:39 AM, Navindian navind...@gmail.com wrote: I wish to download honeycomb sample download for 3.x . Could you please let me know where i could download? -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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
Re: [android-developers] Problem in Asynctask Execution in standby mode
On Thu, Jan 19, 2012 at 7:47 AM, sktniran sktniranjanad...@gmail.comwrote: my application getting force closed. it says like IllegalStateException. how to solve this probelm? What's the stack trace? it is there any way to prevent screen from locking untill complete this download process? Maybe, but that should not be necessary. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Dom parsing in to listview
On Thu, Jan 19, 2012 at 7:42 AM, arun kumar arun.kata...@gmail.com wrote: am able to get the data from the server..the data i want to show in the Customlist view using Dom parser...i atached the code and log error http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 Increase frame rate (fps) from onPreviewFrame??
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network(TCP), but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps and my image size is 4- 6 kb what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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
Re: [android-developers] How to Increase frame rate (fps) from onPreviewFrame??
Could you do this group a favor and stop asking the same question every 2 days? Hmmm? Thanks. https://groups.google.com/groups/profile?show=moreenc_user=lar4IxsAAADNYP7nVARJZ-sgplZcu2aEW0rZFdfcaar5x5y0kptMbAgroup=android-developers - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: honeycomb gallery sample download
Make sure you are on the current edition of the tools. On Thu, Jan 19, 2012 at 9:28 AM, Navindian navind...@gmail.com wrote: I am not getting the available packages as shown in this link. http://developer.android.com/sdk/adding-components.html#UpdatingComponents On Thu, Jan 19, 2012 at 7:39 PM, Navindian navind...@gmail.com wrote: sorry mark it is allowing me to download only sdk16. I need to download the samples of this sdk16 atleast..but it is not moving forward. On Thu, Jan 19, 2012 at 6:25 PM, Mark Murphy mmur...@commonsware.com wrote: http://developer.android.com/sdk/index.html The samples will be an available option for you from the SDK Manager, once you have that set up. On Thu, Jan 19, 2012 at 4:39 AM, Navindian navind...@gmail.com wrote: I wish to download honeycomb sample download for 3.x . Could you please let me know where i could download? -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
RE: [android-developers] How to Increase frame rate (fps) from onPreviewFrame??
I am really sorry, but i need it and i not get the appropriate answer. Sorry again. From: treking...@gmail.com Date: Thu, 19 Jan 2012 08:49:50 -0600 Subject: Re: [android-developers] How to Increase frame rate (fps) from onPreviewFrame?? To: android-developers@googlegroups.com Could you do this group a favor and stop asking the same question every 2 days? Hmmm? Thanks. https://groups.google.com/groups/profile?show=moreenc_user=lar4IxsAAADNYP7nVARJZ-sgplZcu2aEW0rZFdfcaar5x5y0kptMbAgroup=android-developers - TreKing - Chicago transit tracking app for Android-powered devices -- 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 -- 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] Is possible use AlarmManager to schedule run a Service
I use this code to to schedule run Service. AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); Intent i = new Intent(this, MyService.class); PendingIntent pintent = PendingIntent.getService(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT); alarmManager.set(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime() + RECHECK_INTERVAL, pintent); It works. But when I kill the app in task manager. Alarm doesn't run it again. Why? Where is problem? -- 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: Is possible use AlarmManager to schedule run a Service
Because all pending alarms for an app are removed when it is killed (force closed). So don't kill your app. -- 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
Re: [android-developers] Re: How to implement scrolling for custom layout?
Have you looked at AbsListView.OnScrollListener? http://developer.android.com/reference/android/widget/AbsListView.html#setOnScrollListener(android.widget.AbsListView.OnScrollListener) As for breakpoints, perhaps the framework sources you use for debugging are not quite the same as used by the device. -- Kostya 19 января 2012 г. 17:49 пользователь harvinder res...@gmail.com написал: I have looked into the listview and abslistview classes of android. Scrolling in not initiating a call on onMeasure or onLayout, but only invalidate. For some reason I am not been able to debug these classes (can put breakpoint only in abslistview but not listview). Where does children laid out when scrolling starts (layoutChildren is not getting called by a call to invalidate)? -- 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 -- 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
Re: [android-developers] Re: App installs on emulator but not on device
On Thu, Jan 19, 2012 at 9:31 AM, J Handal jhand...@gmail.com wrote: [?] Hi Madlymad, Please can you explained more in detail,Are you meaning unknown Sources? [?] You could also change the device settings to accept all application even the developer signed files! -- 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=en341.gif342.gif
Re: [android-developers] How to Increase frame rate (fps) from onPreviewFrame??
On Thu, Jan 19, 2012 at 8:55 AM, Muhammad UMER muhammad.ume...@hotmail.comwrote: I am really sorry, but i need it and i not get the appropriate answer. Well, sorry, but if no one has presented an appropriate answer at this point, than continuing to post the same question over and over is not likely to change things. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: App installs on emulator but not on device
[?] Hi Madlymad, Please can you explained more in detail,Are you meaning unknown Sources? [?] You could also change the device settings to accept all application even the developer signed files! -- 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=en341.gif342.gif
[android-developers] Re: No Video but audio present when using MediaPlayer on the emulator
Okay I got it done using the DDMS file manager. I have to say your original thoughts about reasons for the video not playing is absolutely correct. With your app I can also hear the audio but cannot see any video. I can also see the all the control buttons and the progress bar. I do not get the control buttons on my app but in my app I'm using the MediaPlayer directly - not through MediaController. I guess I will need to move to using a real device. On Jan 19, 4:49 am, Mark Murphy mmur...@commonsware.com wrote: In your AVD Manager, you define how large of a virtual SD card to have in the AVD. It's called SD Card. You then transfer files to it using the DDMS File Manager, or via the adb push command. On Thu, Jan 19, 2012 at 2:54 AM, rperi...@yahoo.com rperi...@yahoo.com wrote: Okay I'm still stuck trying to figure out how to use the SD card filesystem on the emulator. I followed the instructions in the documentation and created a sd card image using mksdcard. However, I cannot figure out how to push the test.mp4 file on to the image. The documentation mentions mtools but I cannot seem to find a version for Windows - all the downloads seem to be for Unix. Any ideas? On Jan 18, 3:57 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jan 18, 2012 at 2:45 AM, rperi...@yahoo.com rperi...@yahoo.com wrote: Thanks again for the reply. I actually subscribed to your books - they are well written. Thanks! I downloaded the video sample and tried to run it but the screen remains blank. However I suspect it is becuase it cannot find the file. It seems like it is designed run the file test.mp4 on an SD card on a real device. Or a test.mp4 file on the emulated SD card on an emulator. It still will not play well in an emulator, but the lack of the MP4 file will not stop you. Can I make the sample work on the emulator. Yes. Put a file named test.mp4 in the emulated SD card on the emulator. The specific MP4 file I used in those screenshots is the Documentaries and You video from here: http://www.law.duke.edu/cspd/contest/finalists/ -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price!- 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] How can I get a user-defined sysproperty in an Android app?
How can I get a user-defined sysproperty in an Android app? In a plain Java app I can do something like: target name=run depends=git.revision java classname=main fork=true sysproperty key=git.revision value=${git.revision}/ /java /target And in main.java I do: String gitSha1 = System.getProperty(git.revision); But how can I do this in an Android App? I can get predefined system properties like java.specification.vendor etc. but I don't know how to attach my userdefined sysproperty to the dex generation. I can also get around this by generating a source file containting the properties, but I was hoping for a more suitable method. -- 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
Re: [android-developers] How can I get a user-defined sysproperty in an Android app?
On Fri, Jan 20, 2012 at 1:14 AM, petter petter.gus...@gmail.com wrote: How can I get a user-defined sysproperty in an Android app? In a plain Java app I can do something like: target name=run depends=git.revision Looks more like Ant than plain Java... And in main.java I do: String gitSha1 = System.getProperty(git.revision); But how can I do this in an Android App? I can get predefined system properties like java.specification.vendor etc. but I don't know how to attach my userdefined sysproperty to the dex generation. Calling System.setProperty() on startup? (the property will only be visible to the app process). -- 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
Re: [android-developers] How can I get a user-defined sysproperty in an Android app?
On Thu, Jan 19, 2012 at 11:14 AM, petter petter.gus...@gmail.com wrote: How can I get a user-defined sysproperty in an Android app? There is no such concept in Android. In a plain Java app I can do something like: target name=run depends=git.revision java classname=main fork=true sysproperty key=git.revision value=${git.revision}/ /java /target And in main.java I do: String gitSha1 = System.getProperty(git.revision); But how can I do this in an Android App? You don't, because you aren't in control of the VM. I can get predefined system properties like java.specification.vendor etc. but I don't know how to attach my userdefined sysproperty to the dex generation. You don't, because userdefined sysproperty has nothing to do with dex generation any more than it does stock Java VM bytecode generation. As you note, in standard Java, you are defining system properties via command-line arguments -- there are no command-line arguments for SDK apps. I can also get around this by generating a source file containting the properties, but I was hoping for a more suitable method. You could generate a resource file containing the properties (e.g., an XML resource). Or, generate an asset file containing the properties. Or, drop the properties entirely. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Re: TTS not working
Try reading the log cat Caused By On Thu, Jan 19, 2012 at 3:30 AM, Prathamesh prathame...@gmail.com wrote: 01-19 14:55:34.037: ERROR/AndroidRuntime(346): Caused by: java.lang.RuntimeException: Binary XML file line #13: *You must supply a layout_height attribute.* - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Problem in Asynctask Execution in standby mode
Yes there is some thing called Wake Lock which you need to acquire and release as per your need On Thu, Jan 19, 2012 at 8:00 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 7:47 AM, sktniran sktniranjanad...@gmail.comwrote: my application getting force closed. it says like IllegalStateException. how to solve this probelm? What's the stack trace? it is there any way to prevent screen from locking untill complete this download process? Maybe, but that should not be necessary. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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] javax.management
Dear All, Just noticed that javax.management is not available on Android. Any substitute recommendation? 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
Re: [android-developers] javax.management
On Thu, Jan 19, 2012 at 10:54 AM, Jan Burse janbu...@fastmail.fm wrote: Just noticed that javax.management is not available on Android. Any substitute recommendation? What is javax.management and what do you need from it? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] threading : two independent events
Hi mark, I feel I explained things loosely. Let me get into the specifics. I have an application which does two things - collects GPS data and sends to server in the backend and on frontend shows a website(contains my customized maps). I am trying to get things work simultaneously and it works fine on emulator but when I tested it on the real device - samsung galaxy ace; the thing worked. Now, here is the problem - if I analyze the data, though the application started the GPS location finder but never sent anything to server. The website loads once partially and then afterwards the whole application is hung. I tried to incorporate threading and Asynctask class but no solution - gave Application Not Responding(ANR) error. Would like if anyone could refer to similar examples or suggest a solution. Code : = public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //downloading the website setupWebView(); //getting the GPS coordinates and sending to server getLocation(); } private void getLocation() { LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); String provider = locationManager.getBestProvider(criteria,true); locationManager.requestLocationUpdates(provider, 1, 0, this); } private void setupWebView(){ webView = (WebView) findViewById(R.id.webview); webView.setWebViewClient(new HelloWebViewClient()); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(MAP_URL); } = Thanks. -vishal garg On Sat, Jan 14, 2012 at 5:25 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jan 14, 2012 at 1:41 AM, vishal garg vishal17g...@gmail.com wrote: I have an android app code where 1) 1st process : checks for user location constantly after every t minutes. 2) 2nd process : displays an image on the screen Why are these two processes? 99.99% of Android applications do not need more than one process. There is nothing in this description that would justify the cost to the user in CPU, RAM, and battery from your decision. The processes are independent and but the code gets stuck in the first process as a result of which second process does not load. I am thinking of using threading to resolve but unable to understand/find documentation. Please help. Please ask specific questions, not just please help. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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 -- 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] content provider
I have an application that stores files to the SD card of the device. If I want to sync that data with the google cloud, do i need to write a content provider, or is there some other way to share the data? -- 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
Re: [android-developers] content provider
A content provider would have nothing much to do with it. If you wish to upload files, upload them. If you wish to download files, download them. There is nothing in the Android SDK that is a sync this directory of stuff with this online counterpart. I'm not even aware of a third-party solution for that, though I seem to recall there was some work going on for a git client library. On Thu, Jan 19, 2012 at 12:53 PM, Ab Caballero a...@mac.com wrote: I have an application that stores files to the SD card of the device. If I want to sync that data with the google cloud, do i need to write a content provider, or is there some other way to share the data? -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 get a user-defined sysproperty in an Android app?
On Jan 19, 5:19 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jan 20, 2012 at 1:14 AM, petter petter.gus...@gmail.com wrote: How can I get a user-defined sysproperty in an Android app? In a plain Java app I can do something like: target name=run depends=git.revision Looks more like Ant than plain Java... Correct. Ant building a plain java app. And in main.java I do: String gitSha1 = System.getProperty(git.revision); But how can I do this in an Android App? I can get predefined system properties like java.specification.vendor etc. but I don't know how to attach my userdefined sysproperty to the dex generation. Calling System.setProperty() on startup? (the property will only be visible to the app process). I need to pass them from ant to my app somehow. ISeems like file generation is the best option. -- 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 get a user-defined sysproperty in an Android app?
On Jan 19, 5:20 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jan 19, 2012 at 11:14 AM, petter petter.gus...@gmail.com wrote: How can I get a user-defined sysproperty in an Android app? There is no such concept in Android. In a plain Java app I can do something like: target name=run depends=git.revision java classname=main fork=true sysproperty key=git.revision value=${git.revision}/ /java /target And in main.java I do: String gitSha1 = System.getProperty(git.revision); But how can I do this in an Android App? You don't, because you aren't in control of the VM. I can get predefined system properties like java.specification.vendor etc. but I don't know how to attach my userdefined sysproperty to the dex generation. You don't, because userdefined sysproperty has nothing to do with dex generation any more than it does stock Java VM bytecode True. I was thinking there was a hook already to generate userdefined properties, e.g. using a properties file or similar. generation. As you note, in standard Java, you are defining system properties via command-line arguments -- there are no command-line arguments for SDK apps. I can also get around this by generating a source file containting the properties, but I was hoping for a more suitable method. You could generate a resource file containing the properties (e.g., an XML resource). Or, generate an asset file containing the properties. This is probably the simplest way. Or, drop the properties entirely. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: content provider
Hi, Mark. there seems to be documentation about using the SyncAdapter for this type of operation but that the implementation requires ContentProviders. Ideally, my app would be able to sync with the cloud on some basis, say hourly, the same way sugarsync does with my phone, table and laptop. Am I misunderstanding the role of the SyncAdapter? On Jan 19, 9:56 am, Mark Murphy mmur...@commonsware.com wrote: A content provider would have nothing much to do with it. If you wish to upload files, upload them. If you wish to download files, download them. There is nothing in the Android SDK that is a sync this directory of stuff with this online counterpart. I'm not even aware of a third-party solution for that, though I seem to recall there was some work going on for a git client library. On Thu, Jan 19, 2012 at 12:53 PM, Ab Caballero a...@mac.com wrote: I have an application that stores files to the SD card of the device. If I want to sync that data with the google cloud, do i need to write a content provider, or is there some other way to share the data? -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] javax.management
On Thu, Jan 19, 2012 at 12:03 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 10:54 AM, Jan Burse janbu...@fastmail.fm wrote: Just noticed that javax.management is not available on Android. Any substitute recommendation? What is javax.management and what do you need from it? http://docs.oracle.com/javase/1.5.0/docs/api/javax/management/package-summary.html But echoing, what do you need from it? Typically when Android does not include something, it's because those things don't make sense w.r.t the Android way of doing things. kris -- 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
Re: [android-developers] Re: content provider
I think you seem to be misunderstanding the use of content providers in Android. In Android, there is a heavily sandboxed model. If you write an app, there are a variety of ways that you can persist information. SharedPreferences, files on SD, databases, just to name a few. However, in theory apps should not be allowed to touch other apps' data (however you will note this is not the case on either a rooted device or some situations in which you put files on the SD card, etc..). A content provider solves the problem of presenting a common interface to external apps who might want to interface with your app to exchange data, it's not intended for interfacing with things like external web services. This isn't to say it wouldn't be of utility if you wanted to exchange data with another app on the device that synced data with the server, or a number of other uses you might envision in this scenario. But in brief, if you want to sync with an external service, you don't want to be using a content provider, you want to be using some library which will do communication with the server using whatever protocol you need (restfully, etc...) kris On Thu, Jan 19, 2012 at 1:11 PM, Ab Caballero a...@mac.com wrote: Hi, Mark. there seems to be documentation about using the SyncAdapter for this type of operation but that the implementation requires ContentProviders. Ideally, my app would be able to sync with the cloud on some basis, say hourly, the same way sugarsync does with my phone, table and laptop. Am I misunderstanding the role of the SyncAdapter? On Jan 19, 9:56 am, Mark Murphy mmur...@commonsware.com wrote: A content provider would have nothing much to do with it. If you wish to upload files, upload them. If you wish to download files, download them. There is nothing in the Android SDK that is a sync this directory of stuff with this online counterpart. I'm not even aware of a third-party solution for that, though I seem to recall there was some work going on for a git client library. On Thu, Jan 19, 2012 at 12:53 PM, Ab Caballero a...@mac.com wrote: I have an application that stores files to the SD card of the device. If I want to sync that data with the google cloud, do i need to write a content provider, or is there some other way to share the data? -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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
Re: [android-developers] Re: content provider
On Thu, Jan 19, 2012 at 1:11 PM, Ab Caballero a...@mac.com wrote: there seems to be documentation about using the SyncAdapter for this type of operation but that the implementation requires ContentProviders. You are welcome to use AbstractThreadedSyncAdapter and kin. They do not actually do any syncing. Transport is up to you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 developers] bluetooth insecure connection still requests pairing on my ICS
I own a Nexus S and it's currently running ICS 4.0.3 (OTA from T- Mobile). I have my own application which does Bluetooth connection stuff using Insecure method to ignore the boring pairing process. After when I updated my Android OS to ICS 4.0.3, my app is requesting for a pairing with the Bluetooth device even though I'm using createInsecureRfcommSocketToServiceRecord method. I already changed API to 4.0.3 for the application but I cannot find any clear answer to this type of problem. I observed LogCat and the BondState goes from 10 to 11 when the device requests for pairing. If I do the pairing for once, it does not ask for pairing of course but it is not listed under paired device on the Android system. Also, in this case, the BondState goes from 10 to 12 when it successfully connects to the device. Anyone has advice or idea to this matter? 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] Android codesearch replacement?
Now that Google code search is shut down, how are Android developers compensating for their loss of queries like the following? http://www.google.com/codesearch#/exact_package=android http://www.google.com/codesearch#cZwlSNS7aEw/ The announcement(*) says: If ChromiumOS or Android are important to you, reach out to whatever contacts you have at Google *now* and let them know! I am reaching out. (*) https://groups.google.com/group/google-code-search/browse_thread/thread/fa2e2908c47df068 -- 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] change fastscroll overlay size
I have a ListView which has fastscrolling enabled with the index to my data being between 1 and 4 characters long. Unfortunately, the 4 character index text is wider than the fastscroll overlay. I'd like to change the width of the fastscoll overlay. I see fastscroll_overlay_size defined in dimens.xml and used by FastScroller.java, but I don't see something like setFastscrollOverlaySize(). I don't suppose there is an easy way to change the overlay size programmatically that I'm missing? Thanks- Elliot -- 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: content provider
Thanks folks On Jan 19, 11:06 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jan 19, 2012 at 1:11 PM, Ab Caballero a...@mac.com wrote: there seems to be documentation about using the SyncAdapter for this type of operation but that the implementation requires ContentProviders. You are welcome to use AbstractThreadedSyncAdapter and kin. They do not actually do any syncing. Transport is up to you. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Copyright question: Can I remix a Final Fantasy song and use it in my game?
For example, if I remix battle themes from Final Fantasy series and use it in my game. Will I get into copyright problem? I'd be more than happy to put some credit text like this in my game: Battle theme originally composed by Nobuo Uematsu, remixed by [my name here] I also saw a top game on Android Market using music(ending theme) from Chrono Trigger. It's a zuma-type game sitting on the Top Free page in the Android Market. So I believe this is doable...? 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
Re: [android-developers] Copyright question: Can I remix a Final Fantasy song and use it in my game?
On 1/20/2012 4:08 AM, hzakimoto wrote: For example, if I remix battle themes from Final Fantasy series and use it in my game. Will I get into copyright problem? I'd be more than happy to put some credit text like this in my game: Battle theme originally composed by Nobuo Uematsu, remixed by [my name here] I also saw a top game on Android Market using music(ending theme) from Chrono Trigger. It's a zuma-type game sitting on the Top Free page in the Android Market. So I believe this is doable...? Thanks in advance! Ask your lawyer. I bet he'll tell you No you can't 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
Re: [android-developers] Copyright question: Can I remix a Final Fantasy song and use it in my game?
I also saw a top game on Android Market using music(ending theme) from Chrono Trigger. It's a zuma-type game sitting on the Top Free page in the Android Market. So I believe this is doable...? The answer is probably: This is technically illegal but this game hasn't been pulled from the market because the market is very big and nobody has reported a copyright violation yet, if anybody ever does, then this app will probably be pulled very quickly. The market tends to take a hard line on copyright inquires, and doesn't side with the developer too well, you can read through this list's archives to find the horror stories... kris -- 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
Re: [android-developers] Copyright question: Can I remix a Final Fantasy song and use it in my game?
On Thu, Jan 19, 2012 at 2:08 PM, hzakimoto hzakim...@gmail.com wrote: I also saw a top game on Android Market using music(ending theme) from Chrono Trigger. It's a zuma-type game sitting on the Top Free page in the Android Market. Which game? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 make soft keyboard enter button say “Search” in 3.2?
I tried to use EditText's attribute android:imeOptions=actionSearch combined with android:inputType=text but have no luck. Also i tried to set attributes from code: EditText edt = (EditText) findViewById(R.id.editText1); edt.setImeOptions(EditorInfo.IME_ACTION_SEARCH); edt.setInputType(InputType.TYPE_CLASS_TEXT); Problem present at Motorola Xoom with firmware version 3.2 and at emulators -- 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 manually dispatch key event for power button in android
Hi, I want to dispatch key event for Power button programatically.I tried following line of code but its not working.. dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_POWER)); But this is not working.. Any help on this most welcome.. Thanks Regards, Ashiq Sayyad -- 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] Accounts required to publish application on Android Market Place
Hi, I'm new in this field and need help in the account setup please, I already search for an answer, but didn't get one, and I didn't take the risk to register and try (I need to register with the correct email) we are going to create a developers account with Android/Google, we already have Google checkout merchant account and Gmail account, but they are registered with different email, is it required to have all accounts with the same email? Our Google checkout account registered with email : (xxx@company- name.com) Gmail Account with email: (company-n...@gmail.com) we are going to register: (y...@company-name.com) for the Android account can we use these 3 account for publishing applications on Android market? If there is a complete tutorial (written tutorial or video or screenshots, anything can help) shows account setup step by step, please provide me the link. 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] DevicePolicyManager LockNow problem
I have checked the lockNow implementation in API demos tried the same thing in my app. But I am not able to lock the device(Google nexus) Is there any restriction on this API call for thrid party application? isAdminActive() method is returning me false... One more doubt,how to implement screen lock functionality for below 2.3 devices as there in no direct APIS for tat.. Awaiting for help Thanks Regards, Ashiq Sayyad -- 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 webview retain form data when orientation changes
How to retain the form data in the webview after the change the orientation ? I have used onSaveInstanceState() and I have restored the previous state using restoreState(savedInstanceState). This successfully restores the previous state before the change in orientation but it does not restore the data in the text box of the form in the webview. What should be done to retain the data in the text box of the forms in webview after the change in orientation ? Note: I would not be using android:configChanges=keyboardHidden| orientation as I need keyboard input for my application after orientation changes. 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] Augmented Reality
I am working on Augmented Reality from last 7 days.I implement AndAR API library for this purpose.My problem is creating marker.I used some online marker generator.But all has one limitation that every pattern should have black border around it otherwise it will not make a pattern. This is limitation is barrier for my app.I want to detect Physical object like real bulb. If i make pattern for bulb by putting it on black square paper then marker generator generate pattern and AndAR detect bulb with background black square,But if i remove background image then it do not able to detect bulb. My aim to detect physical bulb.And physical bulb does not have any black border around it.So how to make pattern for physical object and then detect 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] Android Custom Streaming Media Player
I have an application that streams videos from my server. The files end in .mp4 and play fine in the default android player. The thing is I don't get enough out of the ads displayed on the app as the time of the user spent on my app is very less compared to the time spent while watching videos. So, I was thinking of integrating my own custom video player to the app I made and display banner ads in it while the video is streaming. How can this be done? 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 does Chronometer work??
before you call chrono.start(), try adding a tick listener: chrono.setOnChronometerTickListener(new OnChronometerTickListener() { @Override public void onChronometerTick(Chronometer chronometer) { long elapsedTime = (System.currentTimeMillis() - chronometer.getBase()) / 1000; String currentTime = Utils.verboseTime(elapsedTime); chronometer.setText(currentTime); } }); On Jan 18, 4:55 am, rachana govilkar rachana.govil...@gmail.com wrote: Hello All, Using MediaRecorder I could capture Video.But I want to show timer to the user exactly same as it shown in built-in Camera app. So i implemented Chronometer logic private Chronometer chrono; chrono = (Chronometer)findViewById(R.id.chronometer1); chrono.setBase(SystemClock.elapsedRealtime()); chrono.start(); but no luck. Can anybody help me on this issue?? -- 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] Share file or an variable between 2 apps
Hello all, Been searching about the following subject but did not find anything usefull. Hopefully there is someone who knows the answer to my question (my school assignment: Share a file or variable between 2 apps using the same UID I read a lot of controdicting posts on the internet, and that it's not supposed to be used by normal developers. I want to write data on app 1 and read it from app 2, just by using sharedUserID and direct access to the variable or file. I need to have proof for my school assignment that the same UID in both Android apps can let them communicate. Will someone who is not normal (aka Android super expert) and knows the secrets of UID, please tell me how Been searching for long... Big thanks in advance =) Chihwah Li PS: my only demo apps is: 2 apps with the same package name then access the file from 2nd app. But this demo is useless because the 2nd app is de-installed because it's using the same packet name -- 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] startActivity crash in Android graph view
hi all, I have a code but it doesn't work ! can you please help me on it? it will show graph in android field. but startActivity doesn't work !! can anyone help me please ? int DataCnt = 6; SortedData[][] //This is an 2D array --- [[FASTWEB-2012, -66, 0], [FASTWEB-1-001CA2B8E818, -85, 0], [FASTWEB-2012, -66, 5], [FASTWEB-1-001CA2B8E818, -85, 5], [FASTWEB-2012, -66, 10], [FASTWEB-1-001CA2B8E818, -85, 10]] TerminalCount[][] This is an 2D array --- [[FASTWEB-2012, 3], [FASTWEB-1-001CA2B8E818, 3]] XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset(); XYMultipleSeriesRenderer mRenderer = new XYMultipleSeriesRenderer(); switch (TermDimenSnRow) //suppose I have TermDimenSnRow = 2 { case 1: break; case 2: TimeSeries series2 = new TimeSeries(WiFi 1); TimeSeries series3 = new TimeSeries(WiFi 2); for( int i2 = 0; i2 DataCnt; i2++) { if(TerminalCount[0][0].equals(SortedData[i2][0])) { int WifiRSSIVal = (Integer.parseInt(String.valueOf(SortedData[i2] [1]))); int WifiTimeVal = (Integer.parseInt(String.valueOf(SortedData[i2] [2]))); series2.add(WifiRSSIVal, WifiTimeVal); } } for( int i3 = 0; i3 DataCnt; i3++) { if(TerminalCount[1][0].equals(SortedData[i3][0])) { int WifiRSSIVal = (Integer.parseInt(String.valueOf(SortedData[i3] [1]))); int WifiTimeVal = (Integer.parseInt(String.valueOf(SortedData[i3] [2]))); series3.add(WifiRSSIVal, WifiTimeVal); } } dataset.addSeries(series2); XYSeriesRenderer renderer2 = new XYSeriesRenderer(); mRenderer.addSeriesRenderer(renderer2); dataset.addSeries(series3); XYSeriesRenderer renderer3 = new XYSeriesRenderer(); mRenderer.addSeriesRenderer(renderer3); break; case 3: break; - - - - - case 10: break; Intent intent = ChartFactory.getLineChartIntent(context, dataset, mRenderer, Graph 1); this.startActivity(intent); //I have tried here by this (startActivity(intent)) -- 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] neiboringcellinfo SAMSUNG Galaxy GT-S5830
hi, can any one let me know, does SAMSUNG Galaxy GT-S5830, support to work withneiboringcellinfo or not? when I am trying to work with it, its just crashing the code :( can you please help me on it? or I should use any other emulator to work with it? which emulator is that? otherwise should I have to buy a new phone to work with neiboringcellinfo ? which mobile will bw good for it? thnx ! -- 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 SDK proxy settings
Hi guys, I am new to the android programming. I installed the adt plugin in Spring Source Tool Suite, but I am unable to fetch the updates when I start sdk manager.exe . At the time I installed the ADT plugin, I was using a proxy address. But now I am using .pac file for the proxy settings. Is there any way to fetch the updates by specifying this .pac file anywhere in the IDE or sdk manager . Please help to resolve this issue. I've been stuck in this stage for more than 3 days. --skipjack-- -- 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
Re: [android-developers] Re: Accelerometer not working when screen turns off
I found that if I'm connected with USB and watching Logcat my accelerometer sensor is still firing even when the screen is off. When I run the same program with out the USB connected the sensor stop a few seconds after the screen goes dark. I wonder if there is a work around here waiting to be found. Can you fool the phone into thinking it is connected to USB? -- 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
Re: [android-developers] Re: Service Being paused on screen off.
I found the same thing. The accelerometer still fires when the screen is off but connected to USB and logcat. There might be a work around here somewhere. I'm just not savy enough to figure it out. Andyone else care to hack 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
Re: [android-developers] File encryption using AES
It seams like you encrypted the files as one file . maybe you can stop the encryption after one file is encrypted ,and restart the encryption when the followed file comes in. sorry for my poor english . 2012/1/17 chander mohan.c...@gmail.com Hi all, I am making a File encryption application,i am using AES encryption for doing this. In this, i listed all files stored on the SD card and then i gave a checkbox infront of files. 1- User can select multiple files and on clicking ENCRYPT, these files will be encrypted in .enc format, i am storing files for passing into encryption algorithm in an Array List. 2- But now i am decrypting the files in reverse order, i have to decrypt all files which are selected by user from .enc extension to their orignal extension. how i can move forward to do this, tell me the best way for doing decryption here? i am confused here at this point, how i decrypt to orignal extension. Please suggest me the way so that i can move forward. 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 -- 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 Multiline Textbox Inside Flash WebView - Cannot Insert Linebreak with Enter Key
Hey, It's been a week and still haven't found a solution. Bumping this to see if anyone knows a workaround? On Jan 14, 5:07 pm, Elad Nava eladn...@gmail.com wrote: I am facing a very strange bug with Flash rendering in Android. **The enter key in the soft keyboard does not insert a line-break into the focused textarea in Flash.** To reproduce: please visit this URL via your android browser:http://tinyurl.com/826nd6a The original URL:http://www.flashwonderland.com/control-components/textarea.html That page contains an example of a multi-line textarea in Flash. Try editing this textarea via Android and inserting a line break. Nothing happens when you press the return key in the soft keyboard. :- ( This is what I'm trying to solve. I have tried feeding KeyEvents to the WebView with different keyCodes, I tried 13 (ASCII line break), 66 (Android Enter key), nothing actually made a line-break appear in the code. When I tried other keyCodes (for example, a letter) the letter was appended to the textarea as expected. It seems as if the flash object blocks all line- breaks. I even tried feeding a line-break event via jQuery to the flash object, but couldn't get it to work. Does anyone know how to work around this bug? **Reproduction code:** public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); TestView = new WebView( this ); TestView.getSettings().setPluginsEnabled(true); TestView.getSettings().setJavaScriptEnabled(true); setContentView( TestView ); TestView.loadUrl( http://www.flashwonderland.com/control- components/textarea.html ); } -- 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
Re: [android-developers] Re: Service Being paused on screen off.
I didn't see the original thread you're responding to, so what's your question? As in you want your service to stop using resources when the screen is off, or the opposite. In one of those situations you can hold a wake lock to keep the cpu on, but not the screen, I believe. kris On Thu, Jan 19, 2012 at 11:18 AM, crennie cmren...@gmail.com wrote: I found the same thing. The accelerometer still fires when the screen is off but connected to USB and logcat. There might be a work around here somewhere. I'm just not savy enough to figure it out. Andyone else care to hack 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 -- 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: Copyright question: Can I remix a Final Fantasy song and use it in my game?
Marble Blast: https://market.android.com/details?id=com.ezjoynetwork.marbleblast And here's the song mentioned: http://www.youtube.com/watch?v=m1qbVI9iTBU They didn't use the song directly though. It's obvious they remix it. (The original song is a 16 bit sound from SNES system) Directly using the song is obviously illegal. But what if I remix the song myself? I'm also a musician. Thanks again! On Jan 20, 3:26 am, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 2:08 PM, hzakimoto hzakim...@gmail.com wrote: I also saw a top game on Android Market using music(ending theme) from Chrono Trigger. It's a zuma-type game sitting on the Top Free page in the Android Market. Which game? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] How to manually dispatch key event for power button in android
This would do you no good. Not only can't you attack the device by simulating a power button press, but you cannot respond to power button events. On Wed, Jan 18, 2012 at 7:11 AM, ashiq sayyad ashiqsay...@gmail.com wrote: Hi, I want to dispatch key event for Power button programatically.I tried following line of code but its not working.. dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_POWER)); But this is not working.. Any help on this most welcome.. Thanks Regards, Ashiq Sayyad -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?
Directly using the song is obviously illegal. But what if I remix the song myself? I'm also a musician. Nobody here can give you legal advice, that's for a lawyer to do. In my opinion this will still be considered illegal, almost certainly, but -- as I said -- I'm not a lawyer kris -- 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
Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?
I would recommend you make your own music... These types of music are so simple! Just copy the structure of the song... And apply your own keys :) -- 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
Re: [android-developers] How to manually dispatch key event for power button in android
Why are you trying to do this anyway? kris On Thu, Jan 19, 2012 at 3:56 PM, Mark Murphy mmur...@commonsware.com wrote: This would do you no good. Not only can't you attack the device by simulating a power button press, but you cannot respond to power button events. On Wed, Jan 18, 2012 at 7:11 AM, ashiq sayyad ashiqsay...@gmail.com wrote: Hi, I want to dispatch key event for Power button programatically.I tried following line of code but its not working.. dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_POWER)); But this is not working.. Any help on this most welcome.. Thanks Regards, Ashiq Sayyad -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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
Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?
You're assuming that they didn't pay for the right to use that song. If you pay the copyright holder, you don't necessarily have to credit them. Whether or not you credit is up to the agreement you have with the copyright holder. Anyway, this is a question of law not Android, so it doesn't belong on this list. Go talk to a lawyer. On 1/20/2012 4:50 AM, hzakimoto wrote: Marble Blast: https://market.android.com/details?id=com.ezjoynetwork.marbleblast And here's the song mentioned: http://www.youtube.com/watch?v=m1qbVI9iTBU They didn't use the song directly though. It's obvious they remix it. (The original song is a 16 bit sound from SNES system) Directly using the song is obviously illegal. But what if I remix the song myself? I'm also a musician. Thanks again! On Jan 20, 3:26 am, TreKingtreking...@gmail.com wrote: On Thu, Jan 19, 2012 at 2:08 PM, hzakimotohzakim...@gmail.com wrote: I also saw a top game on Android Market using music(ending theme) from Chrono Trigger. It's a zuma-type game sitting on the Top Free page in the Android Market. Which game? - TreKinghttp://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?
On Thu, Jan 19, 2012 at 2:50 PM, hzakimoto hzakim...@gmail.com wrote: Directly using the song is obviously illegal. But what if I remix the song myself? Plagiarism is obviously illegal, but what if I re-arranged the words myself? I'm also a musician. Then come up with your own music? As has been stated, you need a lawyer. This is way off-topic for this list. In general, if you have to ask is this OK?, it's probably best to assume it's not. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] startActivity crash in Android graph view
On Tue, Jan 17, 2012 at 9:23 PM, Asad asad.norrkop...@gmail.com wrote: but startActivity doesn't work !! http://www.catb.org/~esr/faqs/smart-questions.html doesn't work!! is useless. Try explaining your crash, or posting a stacktrace, for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 2.3.4 Sony Xperia Neo GPS strange problem
Up On 6 Gen, 19:32, Mtx4 marco89.rosan...@gmail.com wrote: Hello i have an XperiaNeowith android 2.3.4 and the last build from Sony. There is a strange gps issue (i think a bug). Every 5 minutes the signal gps drops for few seconds without reason. This happen every 5:00 minutes without exception. It is not important the quality or intensity of the signal, it drops anyway, with all software (maps, sygic, navigon, gps status etc). My phone settings are as follows: Gsm only, data connection off, roaming data off, my sim is disabled for traffic data, so no internet connection. Somewhere I read is the agps try to connect and keep data, but if is so, it is a bug, agps must not work during navigation. And now the strange thing, when i set Flight Mode ON, the gps work properly without problem !!! It is absolutely perfect and precise. Why this situation? -- 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
Re: [android-developers] Android webview retain form data when orientation changes
On Wed, Jan 18, 2012 at 11:07 AM, IndianDragon developerdra...@gmail.comwrote: How to retain the form data in the webview after the change the orientation ? Not sure if it's the best solution, but you could use onRetainNonConfigurationInstance() to keep the same WebView instance alive across Activity changes. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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