[android-developers] Communicating between servlet and activity
Hi all, I am running a servlet on iJetty that uses startActivity(intent) to start an activity. I can send data to the activity through Bundles but not sure how to send data back from the activity. I cannot use the startActivityForResult since the servet extends the HttpServlet. It has however the app context: android.content.Context androidContext = (android.content.Context)config.getServletContext().getAttribute(org.mortbay.ijetty.context); For now I am using my own implementation of shared mem on the SDCard but that's not a standard method I want to keep around. Any ideas on how this can be accomplished? A singleton class or extend the Application class? The two classes (servlet and activity) are in two separate projects. 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: Determining audio decoders available
Hi Mark, 1,This is only sample code demonstrate how to do it. As I have notified, it even *may not pass compile*. 2,Do you think any OEM who support some kind of codec, But distribute a device without a built-in corresponding media player ?? One thing more, My sample code could also detect if any 3rd apps installed on the device has implements the codec. On Aug 24, 12:57 pm, Mark Murphy mmur...@commonsware.com wrote: There are a couple of flaws here: 1. /sdcard is probably invalid. 2. This only detects if there is a player advertising that it handles audio/wma files. This does not mean that the player is correct, nor does it mean that anything other than the player can play WMA files (e.g., via MediaPlayer) On Tue, Aug 23, 2011 at 9:10 PM, James 030440...@163.com wrote: Of course there is: --- -- Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.fromFile(new File(/sdcard/test.wma)); intent.setDataAndType(data, audio/wma); ListResolveInfo resolveInfos= getPackageManager().queryIntentActivities (intent, 0); boolean wmaCodecReady=resolveInfos.size()0; --- --- the above code may not pass compile and is just FYI. Hope it helps! On Aug 24, 6:40 am, b0b pujos.mich...@gmail.com wrote: Is there a sensible way to detect if a particular audio decoder which may or may not be present depending on manufaturers, is available (for example: WMA) ? Right now I'm asking the user. There has to be a better way ? -- 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 Android 3.1 Programming Books:http://commonsware.com/books -- 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: image won't show
Hi, Why you don't do something like that : String imageUrl = file:///android_asset/smiley.png; WebView wv = new WebView(this); // or findViewById in your case wv.loadUrl(imageUrl); On Aug 23, 9:49 pm, bob b...@coolgroups.com wrote: Anyone know why this image won't show? WebView wv = (WebView) findViewById(R.id.widget30); String html = htmlbodyimg src=\file:///android_asset/smiley.png \/body/html; wv.loadData(html, text/html, utf-8); -- 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] Live video streaming over website
Hello Everyone, Can any one tell me it's possible to do live video streaming from android phone to over web (For ex. i have web site where i put some link like link1, link2 and other on click of any link it open my live cam if i open my phone camera for video receding ) In short I want to show my phone camera video over my web site. Thanks in advance!!! -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- 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: Giving licenses as present.
Yes, by refunding them, in effect, you terminate the business relationship with that customer. I've done this to one customer who had given me a bad rating and, even after I helped her and solved her issue (by her own admission), she still refused to revise the comment. So I refunded her and she can no longer use the app. On Aug 23, 10:43 pm, Adam Ratana adam.rat...@gmail.com wrote: Ahh so you mean when we refund someone's purchase it DOES revoke their license? -- 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] Live video streaming over website
Yes this is possible easily in Android. On Wed, Aug 24, 2011 at 12:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hello Everyone, Can any one tell me it's possible to do live video streaming from android phone to over web (For ex. i have web site where i put some link like link1, link2 and other on click of any link it open my live cam if i open my phone camera for video receding ) In short I want to show my phone camera video over my web site. Thanks in advance!!! -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- 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 3.2 with WXGA (720x1280) resolution bugs in portrait.
I think you are forgetting the System Bar at the bottom, it is always there and it is 48 pixels high On Aug 23, 11:14 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi... I noticed that if I run my app on android 3.2 sdk with a 720x1280 resolution I have some important bugs. If I run the app in landscape (720x1280) the getHeight() and getWidth() from my canvas is correct returning 720 and 1280. If I run the same code in portrait mode (1280x720), getHeight() return 1232 and getWidth() returns 768. Obviosuly the portrait mode results are wrong and this breaks some of my canvas logic. also a simple write on canvas like this: g.drawText(internal use only + getWidth(), 2, getHeight()-2, paint); is drawn in a wrong way, the text is abnormal and stretched. Is this a SDK bug only or what? 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] Socket programming android
What is the best way for send request body to server socket and take response from server socket. -- 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 exit application
i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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 exit application
Go to google and type this.i know you will get this question response by someone else but not a way to ask basic question on this developer grp. try to RD on google first. On Wed, Aug 24, 2011 at 12:49 PM, GopalaKrishnan D gopall...@gmail.comwrote: i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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: Determining audio decoders available
In fact want to determine if MediaPlayer supports playback of WMA. Now that I think of it, the Android background music scanner must have that info somewhere, to index files it can manage. On Aug 24, 8:38 am, James 030440...@163.com wrote: Hi Mark, 1,This is only sample code demonstrate how to do it. As I have notified, it even *may not pass compile*. 2,Do you think any OEM who support some kind of codec, But distribute a device without a built-in corresponding media player ?? One thing more, My sample code could also detect if any 3rd apps installed on the device has implements the codec. On Aug 24, 12:57 pm, Mark Murphy mmur...@commonsware.com wrote: There are a couple of flaws here: 1. /sdcard is probably invalid. 2. This only detects if there is a player advertising that it handles audio/wma files. This does not mean that the player is correct, nor does it mean that anything other than the player can play WMA files (e.g., via MediaPlayer) On Tue, Aug 23, 2011 at 9:10 PM, James 030440...@163.com wrote: Of course there is: --- -- Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.fromFile(new File(/sdcard/test.wma)); intent.setDataAndType(data, audio/wma); ListResolveInfo resolveInfos= getPackageManager().queryIntentActivities (intent, 0); boolean wmaCodecReady=resolveInfos.size()0; --- --- the above code may not pass compile and is just FYI. Hope it helps! On Aug 24, 6:40 am, b0b pujos.mich...@gmail.com wrote: Is there a sensible way to detect if a particular audio decoder which may or may not be present depending on manufaturers, is available (for example: WMA) ? Right now I'm asking the user. There has to be a better way ? -- 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 Android 3.1 Programming Books:http://commonsware.com/books -- 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 best identify my App?
Identification of my apps is proving difficult across developer page, buyers market pages, eclipse project name, phone app name, apk name. 1) My developer page does not give package names and is non- searchable. I have many apps. 2) The app name string for the phone and app name in buyers market can be different. 3) The eclipse project name can be different from all the other names. Also many versions all needing names. 4) The buyers name in market does not always retrieve the right app form the buyers app name. 5) The version name only allows 30 chars - too small to store my package names 6) The apk name is just another name for me to cope with... Use the package name? No...If I know the package name it does not help finding the app on my developers page because the developer page does not name the package anywhere AFAIK. So I cannot think up a good naming method. Anyone got a full-proof way of identifying apps. There may be a simple way, but I cannot see it arrrgg. -- 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 exit application
System.exit(0) is not recommended because it messes up when a user brings the app back after a short pause. Horrible things can happen to what you've got in memory. Its not a clean or consistent memory wipe IMO. I think you have to work with the idea that activities are held in memory for a time in the case of a return by the user to the app. It is sometimes hard to deal with, but in my experience, I simply have to go with it. I end up using onStop() and onStart() sometimes. And it can get complicated. Sorry if this is not the answer you wanted to hear as I expect you want a complete close of the app and all its memory contents. There might be a way of doing that but I don't know it and System.exit(0 is too unpredictable to use AFAIK. On Aug 24, 8:19 am, GopalaKrishnan D gopall...@gmail.com wrote: i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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: BitmapFactory.decodeStream() blocking
Also, don't forget to consumeContent() on the HttpEntity you're reading. The doc suggests that it's required. Doug -- 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: Determining audio decoders available
On Aug 23, 11:38 pm, James 030440...@163.com wrote: 2,Do you think any OEM who support some kind of codec, But distribute a device without a built-in corresponding media player ?? One thing more, My sample code could also detect if any 3rd apps installed on the device has implements the codec. Your code still doesn't actually detect if the codec is available. It just detects if ANY activity in ANY application installed on the system (built-in or from the market) declares that it can handle the mime type audio/wma (which could be a lie). Also, some activities could declare that they accept audio/* which matches audio/wma, without actually doing WMA decoding. Or maybe it does WMA, but not the version expected (7? 8? 9?). Doug -- 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 exit application
Hello, I had same issue, found a solution and post it in the blog: http://softteco.blogspot.com/2011/07/how-to-close-activity-and-all-children.html Do not forget to say thanks in comments if this info is useful! :) Happy coding (: Best regards, Yahor On Wed, Aug 24, 2011 at 11:01 AM, Droid rod...@gmail.com wrote: System.exit(0) is not recommended because it messes up when a user brings the app back after a short pause. Horrible things can happen to what you've got in memory. Its not a clean or consistent memory wipe IMO. I think you have to work with the idea that activities are held in memory for a time in the case of a return by the user to the app. It is sometimes hard to deal with, but in my experience, I simply have to go with it. I end up using onStop() and onStart() sometimes. And it can get complicated. Sorry if this is not the answer you wanted to hear as I expect you want a complete close of the app and all its memory contents. There might be a way of doing that but I don't know it and System.exit(0 is too unpredictable to use AFAIK. On Aug 24, 8:19 am, GopalaKrishnan D gopall...@gmail.com wrote: i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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: Determining audio decoders available
Hi b0b,as to decoder capabilities, There's java class in the source code which lists all supported codec. But It's hidden so probably you'd better not use it. If you've got android source code on hand. please view framework/base/ media/java/android/media/DecoderCapabilities.java for detailed info. On Aug 24, 3:34 pm, b0b pujos.mich...@gmail.com wrote: In fact want to determine if MediaPlayer supports playback of WMA. Now that I think of it, the Android background music scanner must have that info somewhere, to index files it can manage. On Aug 24, 8:38 am, James 030440...@163.com wrote: Hi Mark, 1,This is only sample code demonstrate how to do it. As I have notified, it even *may not pass compile*. 2,Do you think any OEM who support some kind of codec, But distribute a device without a built-in corresponding media player ?? One thing more, My sample code could also detect if any 3rd apps installed on the device has implements the codec. On Aug 24, 12:57 pm, Mark Murphy mmur...@commonsware.com wrote: There are a couple of flaws here: 1. /sdcard is probably invalid. 2. This only detects if there is a player advertising that it handles audio/wma files. This does not mean that the player is correct, nor does it mean that anything other than the player can play WMA files (e.g., via MediaPlayer) On Tue, Aug 23, 2011 at 9:10 PM, James 030440...@163.com wrote: Of course there is: --- -- Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.fromFile(new File(/sdcard/test.wma)); intent.setDataAndType(data, audio/wma); ListResolveInfo resolveInfos= getPackageManager().queryIntentActivities (intent, 0); boolean wmaCodecReady=resolveInfos.size()0; --- --- the above code may not pass compile and is just FYI. Hope it helps! On Aug 24, 6:40 am, b0b pujos.mich...@gmail.com wrote: Is there a sensible way to detect if a particular audio decoder which may or may not be present depending on manufaturers, is available (for example: WMA) ? Right now I'm asking the user. There has to be a better way ? -- 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 Android 3.1 Programming Books:http://commonsware.com/books -- 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] Activity remains in focus for some time after calling finish()
Hello, Try to use this solution, in our corporate blog: http://softteco.blogspot.com/2011/07/how-to-close-activity-and-all-children.html It helps me to solve issue the issue how to close entire application. Happy coding (: Best regards, Yahor On Wed, Aug 24, 2011 at 8:35 AM, tushar sahni tusharsahn...@gmail.comwrote: Hi I have to support multiple resolutions for the game that i have to develop,How can i do this,One Resolution is 320*480 and other is 480 x 800 pixels I have added the following lines in the manifest for supporting to multiple screens supports-screens android:resizeable=true android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true/ If anyone has worked on it can he/she have a look on it Regards Tushar -- 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 exit application
Very simple. If you are sure you are done, You could just kill yourself using android.os.process.killProcess(android.os.Process.myPid()); It's the same as linux shell command kill. On Aug 24, 3:19 pm, GopalaKrishnan D gopall...@gmail.com wrote: i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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: getOrientation() madness
Hello, I had the same issue with determination of orientation for different devices: xoom, samsug galaxy tab, and samsung galaxy tab 10.1 The main trick, is that devices has theirs own 'natural'/'default' orientation. This orientation has index 0. For 10.1 samsung it is LANDSCAPE. For samsung galaxy tab it is PORTRAIT. So, devices can have different orientation, when returning orientation index 0. I have investigated and implemented the best way for determination of orientation: http://softteco.blogspot.com/2011/08/universal-way-to-detect-landscape-mode.html :-D Easy and useful. If you find the reason why it is not the best solution - please let me know in comments. Best regards, Yahor On Tue, Aug 23, 2011 at 7:22 AM, Chris crehb...@gmail.com wrote: For real fun, try last minute checkins before a release comprised entirely of misleading deprecation annotations. Great fun. -- 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: Determining audio decoders available
Yeah I found it and it is what I need. Unfortunately System.loadLibrary(media_jni) fails on UnsatisfiedlinkException, probably because it is a system lib. Maybe this can be workarounded using native code and dlopen() but we're getting into more and more hairy territory. If only google in its immense wisdom had provided MediaPlayer.isMimeTypeSupported()... On Aug 24, 10:25 am, James 030440...@163.com wrote: Hi b0b,as to decoder capabilities, There's java class in the source code which lists all supported codec. But It's hidden so probably you'd better not use it. If you've got android source code on hand. please view framework/base/ media/java/android/media/DecoderCapabilities.java for detailed info. On Aug 24, 3:34 pm, b0b pujos.mich...@gmail.com wrote: In fact want to determine if MediaPlayer supports playback of WMA. Now that I think of it, the Android background music scanner must have that info somewhere, to index files it can manage. On Aug 24, 8:38 am, James 030440...@163.com wrote: Hi Mark, 1,This is only sample code demonstrate how to do it. As I have notified, it even *may not pass compile*. 2,Do you think any OEM who support some kind of codec, But distribute a device without a built-in corresponding media player ?? One thing more, My sample code could also detect if any 3rd apps installed on the device has implements the codec. On Aug 24, 12:57 pm, Mark Murphy mmur...@commonsware.com wrote: There are a couple of flaws here: 1. /sdcard is probably invalid. 2. This only detects if there is a player advertising that it handles audio/wma files. This does not mean that the player is correct, nor does it mean that anything other than the player can play WMA files (e.g., via MediaPlayer) On Tue, Aug 23, 2011 at 9:10 PM, James 030440...@163.com wrote: Of course there is: --- -- Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.fromFile(new File(/sdcard/test.wma)); intent.setDataAndType(data, audio/wma); ListResolveInfo resolveInfos= getPackageManager().queryIntentActivities (intent, 0); boolean wmaCodecReady=resolveInfos.size()0; --- --- the above code may not pass compile and is just FYI. Hope it helps! On Aug 24, 6:40 am, b0b pujos.mich...@gmail.com wrote: Is there a sensible way to detect if a particular audio decoder which may or may not be present depending on manufaturers, is available (for example: WMA) ? Right now I'm asking the user. There has to be a better way ? -- 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 Android 3.1 Programming Books:http://commonsware.com/books -- 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] SMS Notifications
Hello, I think it is not possible. Because there are could be another applications listen to the sms broadcast. Please update this thread if you find a solution. Best regards, Yahor On Tue, Aug 23, 2011 at 8:46 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I developed a service application which receives and send SMS in background.When SMS received or send a notification is displaying.So, i want to disable that notification through application.So, please any one can help me. Thanking you, Nageswara rao. -- 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] ERROR/FFMpegMediaPlayer(3889): AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s.
Android is not allowing me to place the large video on surface, it's Android - firmware(Video view) limitation, so resolving this issue need codec interface for place video on surface. i am trying to integrate codec using JAVA JNI. i am using ffmpeg library for video codec interface, that works but facing some issues. Audio is running but video not appear on surface view. C++ video view library is not getting two values sws_format_name(c- srcFormat), sws_format_name(c-dstFormat) so error. error msg occur:08-23 18:12:29.002: ERROR/FFMpegMediaPlayer(3889): AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s. NOTE:Here unavailability of c-dstFormat this value it's not going switch statement for accelerate the video.For more information review the attached document. Error Block resign: if (t) return t; av_log(c, AV_LOG_WARNING, No accelerated colorspace conversion found from %s to %s.\n, sws_format_name(c-srcFormat), sws_format_name(c-dstFormat)) ; switch (c-dstFormat) { case PIX_FMT_RGB48BE: case PIX_FMT_RGB48LE:return yuv2rgb_c_48; case PIX_FMT_ARGB: case PIX_FMT_ABGR: if (CONFIG_SWSCALE_ALPHA c-srcFormat == PIX_FMT_YUVA420P) return yuva2argb_c; case PIX_FMT_RGBA: case PIX_FMT_BGRA: return (CONFIG_SWSCALE_ALPHA c- srcFormat == PIX_FMT_YUVA420P) ? yuva2rgba_c : yuv2rgb_c_32; case PIX_FMT_RGB24: return yuv2rgb_c_24_rgb; case PIX_FMT_BGR24: return yuv2rgb_c_24_bgr; case PIX_FMT_RGB565: case PIX_FMT_BGR565: case PIX_FMT_RGB555: case PIX_FMT_BGR555: return yuv2rgb_c_16; case PIX_FMT_RGB444: case PIX_FMT_BGR444: return yuv2rgb_c_12_ordered_dither; case PIX_FMT_RGB8: case PIX_FMT_BGR8: return yuv2rgb_c_8_ordered_dither; case PIX_FMT_RGB4: case PIX_FMT_BGR4: return yuv2rgb_c_4_ordered_dither; case PIX_FMT_RGB4_BYTE: case PIX_FMT_BGR4_BYTE: return yuv2rgb_c_4b_ordered_dither; case PIX_FMT_MONOBLACK: return yuv2rgb_c_1_ordered_dither; default: assert(0); Please help me , i will very thankful of you. please confirm me error resign. -- 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 exit application
Its not always so simple to use android.os.process.killProcess(android.os.Process.myPid()); to close your app. 1) You cannot detect when the home button has been pressed so when to call killProcess? If you are lucky calling it in onStop() somehow may work but that can get very difficult if you have many activities. 2) Some processes are not stopped by it. I could not use it when service threads and other non-ui threads were spun up - didn't stop them. Threads 'in progress' at the time can bring app back to life after killProcess() called. On Aug 24, 9:29 am, James 030440...@163.com wrote: Very simple. If you are sure you are done, You could just kill yourself using android.os.process.killProcess(android.os.Process.myPid()); It's the same as linux shell command kill. On Aug 24, 3:19 pm, GopalaKrishnan D gopall...@gmail.com wrote: i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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 get the view size after orientation changed
Hi, Am 23.08.11 19:05, schrieb Dianne Hackborn: You need to participate in the view hierarchy as a layout manager, do get the onSizeChanged() calls and such. Code like this is almost guaranteed to be broken. If you want to do stuff based on view layout, implement a layout manager. thank you for your answer... but it doesn't make sense for me :-( View.getHeight() is the right way to get the height of a View, right? Activity.onConfigurationChanged(Configuration newConfig) is the right way to stay informed that the configuration has changed, right? But the combination of both are wrong? I only want to know the size of an ImageView after the change of the device orientation. I need this to calculate a Matrix for this ImageView. Ralph -- 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] com.android.quicksearchbox search history cleaner
Hi Friends, I want to clean search history of com.android.quicksearchbox programmatically. Did you guys implement it in past? or having any idea to start? My purpose is to make an app which can clean search history oh the quicksearchbox (the common one at home screen). Please help me. thanks in advance. regards vinay -- 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: Trouble programmatically setting default value of a Preference
You should do something like: public void onCreate() { addPreferencesFromResource(R.xml.prefs); CheckBoxPreference pref = (CheckBoxPreference) findPreference(blargh); if(pref != null) { pref.setChecked(true); } } On Aug 23, 11:24 pm, b0b pujos.mich...@gmail.com wrote: I have a simple CheckBoxPreference blargh defined in an XML file. I want to programatically set its default value with code like this which does not work in subclass of PreferenceActivity: public void onCreate() { addPreferencesFromResource(R.xml.prefs); findPreference(blargh).setDefaultValue(true); } I would expect with code above that the first time the activity is displayed, the checkbox preference is checked due to true set as the default value. This isn't the case, it is unchecked. (In code above I force default value to true but in reality this is a computed value). I made sure to uninstall the app before reinstalling it to ensure first run conditions. What I'm doing wrong ? What's the correct way to dynamically set a default value for a preference loaded from XML ? -- 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 exit application
http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 On Wed, Aug 24, 2011 at 3:19 AM, GopalaKrishnan D gopall...@gmail.comwrote: i tried finish(); and System.exit(0); if i use any one means only current activity closed its not close entire app Which code i want to use close or exit entire app. -- ~* Regards* *GopalaKrishnan D* -- 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 Android App Developer Books: http://commonsware.com/books -- 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: Determining audio decoders available
On Wed, Aug 24, 2011 at 4:39 AM, b0b pujos.mich...@gmail.com wrote: If only google in its immense wisdom had provided MediaPlayer.isMimeTypeSupported()... Yes, it's a stunning omission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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: Determining audio decoders available
In the meantime the abomination belows works. I know: ...private api...might breakevil...don't do this What's really missing is a public API to enumerate decoders and their capabilities (in particular is decoding supported over HTTP). public Boolean isWMASupported() { try { Class decoderCapabilitiesClass = Class.forName(android.media.DecoderCapabilities); Class audioDecoderClass = Class.forName(android.media.DecoderCapabilities$AudioDecoder); Object constants[] = audioDecoderClass.getEnumConstants(); if(constants == null || constants.length == 0) return null; Object AUDIO_DECODER_WMA = constants[0]; Method getAudioDecodersMethod = decoderCapabilitiesClass.getMethod(getAudioDecoders); List decoders = (List)getAudioDecodersMethod.invoke(null); for(Object decoder : decoders) { if(decoder.equals(AUDIO_DECODER_WMA)) return true; } return false; } catch (Exception e) { return null; } } On Aug 24, 12:51 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 24, 2011 at 4:39 AM, b0b pujos.mich...@gmail.com wrote: If only google in its immense wisdom had provided MediaPlayer.isMimeTypeSupported()... Yes, it's a stunning omission. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 it possible to do android application with Java SWING
Hi Friends, Is it possible to do android application with java swing concept. If it is possible, can anyone give me a example. Most of the comments in web said that there is no possible to integrate java swing in android application. Even i did a sample application using java swing in android, I am getting forceclose error. -- Thanks for Previous Replies. -- 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] Is it possible to do android application with Java SWING
There is no support for SWING in Android, though if you are interested in adding it you are welcome to extend the Android framework. On Wed, Aug 24, 2011 at 4:56 PM, HariRam hariram1...@gmail.com wrote: Hi Friends, Is it possible to do android application with java swing concept. If it is possible, can anyone give me a example. Most of the comments in web said that there is no possible to integrate java swing in android application. Even i did a sample application using java swing in android, I am getting forceclose error. -- Thanks for Previous Replies. -- 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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 it possible to do android application with Java SWING
Thanks, Do you have any reference for android with swing. -- 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: Is it possible to do android application with Java SWING
I just stated that Android does not support it. How would I give references for it? On Wed, Aug 24, 2011 at 5:32 PM, Mr RAM hariram1...@gmail.com wrote: Thanks, Do you have any reference for android with swing. -- 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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: using MapView to display wallstreet
I found a good starting point (based on as suggested by TreKing) here: http://groups.google.com/group/android-developers/browse_thread/thread/a41394bdccf43ef8/8a37fbc16fd3d674#8a37fbc16fd3d674 guich -- 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] what are the best practices for good coding skills and classes, methods, and variables naming +android
what are the best practices for good coding skills and classes, methods, and variables naming +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
[android-developers] [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4
Hello, I have some coordinates to show them as markers in map, plus, i want to display an AlertDialog descritpion when i tap on each marker, 3 of 4 markers well shows an AlertDialog but no the correct description, the 4th force closes the application with this logcat error: 08-24 12:28:35.942: ERROR/AndroidRuntime(241): android.database.CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4 Abd here is the code: @Override protected boolean onTap(int index) { db = openHelper.getWritableDatabase(); String[] columns_descri = new String[] {COL_DESCRI}; Cursor cur = db.query(true, TABLE_COORD, columns_descri,null, null, null, null, null, null); cur.moveToPosition(index); String description = cur.getString(cur.getColumnIndexOrThrow(COL_DESCRI)); AlertDialog.Builder dialog = new AlertDialog.Builder(Geo.this); dialog.setTitle(Infos.); dialog.setMessage(description); dialog.setPositiveButton(OK, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); dialog.show(); cur.close(); db.close(); return true; } Any idea please of the source of the problem? I really don't know how to solve it. Thank you for your help. -- 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: Is it possible to do android application with Java SWING
Hi All I think these two langse uses diff virtual machines and the compiled class is diff, then it is not possible 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: AsyncTask question
Thanks everyone for the information and suggestion. Regarding IntentService, what would be the advantage of using Intentservice as opposed to AsyncTask? On Aug 17, 6:10 pm, TreKing treking...@gmail.com wrote: On Wed, Aug 17, 2011 at 5:00 AM, pedramz pedra...@gmail.com wrote: What should I do here? Use IntentService instead. - 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: Is it possible to do android application with Java SWING
The language is Java in both cases, if that is what you meant. I don't know what langse is. The compiled classes will be different because Android uses the Dalvik VM and your computer runs the normal Java VM. However if someone writes the SWING framework for Android you can use it. On Wed, Aug 24, 2011 at 6:06 PM, Ratheesh Valamchuzhy android...@gmail.comwrote: Hi All I think these two langse uses diff virtual machines and the compiled class is diff, then it is not possible 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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: [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4
indexes start at 0. If you have four data points they are at index 0, 1, 2 and 3. -- 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: BitmapFactory.decodeStream() blocking
Yep, especially if keep-alive is on, calling consumeContent() can prevent a lot of trouble :-) However, the trouble I saw when not calling 'consumeContent()', was that the response of a previous request was 'bleeding' into the response of the next request. -- 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] ffmpeg jni codec issue
Hello Android Community , I am facing issue for play large video Android is not allowing me to place the large video on surface, it's Android - firmware(Video view) limitation, so resolving this issue need codec interface for place video on surface. i am trying to integrate codec using JAVA JNI. i am using ffmpeg library for video codec interface, that works but facing some issues. Audio is running but video not appear on surface view. C++ video view library is not getting two values sws_format_name(c- srcFormat), sws_format_name(c-dstFormat) so error. error msg occur:08-23 18:12:29.002: ERROR/FFMpegMediaPlayer(3889): AV_LOG_WARNING: No accelerated colorspace conversion found from %s to %s. NOTE:Here unavailability of c-dstFormat this value it's not going switch statement for accelerate the video.For more information review the attached document. Error Block resign: if (t) return t; av_log(c, AV_LOG_WARNING, No accelerated colorspace conversion found from %s to %s.\n, sws_format_name(c-srcFormat), sws_format_name(c-dstFormat)) ; switch (c-dstFormat) { case PIX_FMT_RGB48BE: case PIX_FMT_RGB48LE:return yuv2rgb_c_48; case PIX_FMT_ARGB: case PIX_FMT_ABGR: if (CONFIG_SWSCALE_ALPHA c-srcFormat == PIX_FMT_YUVA420P) return yuva2argb_c; case PIX_FMT_RGBA: case PIX_FMT_BGRA: return (CONFIG_SWSCALE_ALPHA c- srcFormat == PIX_FMT_YUVA420P) ? yuva2rgba_c : yuv2rgb_c_32; case PIX_FMT_RGB24: return yuv2rgb_c_24_rgb; case PIX_FMT_BGR24: return yuv2rgb_c_24_bgr; case PIX_FMT_RGB565: case PIX_FMT_BGR565: case PIX_FMT_RGB555: case PIX_FMT_BGR555: return yuv2rgb_c_16; case PIX_FMT_RGB444: case PIX_FMT_BGR444: return yuv2rgb_c_12_ordered_dither; case PIX_FMT_RGB8: case PIX_FMT_BGR8: return yuv2rgb_c_8_ordered_dither; case PIX_FMT_RGB4: case PIX_FMT_BGR4: return yuv2rgb_c_4_ordered_dither; case PIX_FMT_RGB4_BYTE: case PIX_FMT_BGR4_BYTE: return yuv2rgb_c_4b_ordered_dither; case PIX_FMT_MONOBLACK: return yuv2rgb_c_1_ordered_dither; default: assert(0); Please help me , i will very thankful of you. please confirm me error resign. 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
Re: [android-developers] Re: [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4
So how can i solve it? I maked cur.moveToPosition(index-1); and i have always the same problem. Any other solution please? 2011/8/24 lbendlin l...@bendlin.us indexes start at 0. If you have four data points they are at index 0, 1, 2 and 3. -- 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] Xperia™ active pressure sensor
Hi, this is a news post to make note of this blog post by SonyEricsson Developer team: http://blogs.sonyericsson.com/wp/2011/07/26/get-your-apps-to-work-with-the-xperia%E2%84%A2-active-pressure-sensor/#more-3501 Questions regarding that blog post can be asked in this thread. Kind regards /Johan, Sony Ericsson Developer program -- 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: [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4
first of all you need to use the same approach for your map annotations. When you define their index, start at 0 as well and make sure they are consecutive. Secondly, rather than using a cursor you should do a raw SQL query using your annotation index as the filter. -- 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: Sony Ericsson Xperia Active-barometer sensor spec ?
Hi, Judging from the specs when I read them, the pressure sensor will fulfill your requirements when it comes to measurement frequency and the altitude range. I do however not think that it has the resolution of 10 centimeters in altitude. Kind regards /Johan, Sony Ericsson Developer Program On Jul 3, 9:22 pm, PETR KALAFATIC petr.kalafa...@gmail.com wrote: Hi, I want to know some more info about the barometer. Full specifications would be useful (accuracy, range, measurement frequency...) I would like to use it for programming the altimeter/vario for paragliding , but it depends on the quality of the barometer. Perfect sensitivity would be measured every second, sensitivity of 10 centimeters altimeter and altitude range of 0-3500 m above sea level. 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] getFragmentManager undefined
I need to get the viewpager up and running for a project I'm working on. SDK 2.2, compatibility v4. It's all working, except... getFragmentManager() is undefined. I can't seem to see it explicitly defined anywhere in code examples. Help? 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] Emulator Compliance for Product Release?
Just a curious question, if as a developer, you find as a whole that it is necessary to make an application compliant with the emulator. Do some people actually download an app from the market with the intent on using it on their desktop away from their phone? I currently do not do testing on the emulator device, but have thought about making sure that it can run just as well there as well as on the physical hardware. What are your thoughts as a development community? -- 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] Facebook Share Crash in Android application
Hi Friends, I have a problem with Facebook publish in my android application. I implemented Facebook android SDK in my android application for publishing the updates.The application was submitted to android market on march 2011 and working fine with all Facebook activities. But from few days onward my application is getting crashed when user trying to publish a post on wall. Once the user clicked on the share button in Facebook publish window then the user able to see a progress bar for sometime then the crash occurring and user leads to get out of the application all of sudden. My question is why the crash occurring from few days? I did not done any changes in my application. Now it was in the market many are using it. The most important part of my application is Facebook posts now that is not working. I need immediate response on this. other wise I am going to loss users to my application. -- 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: getOrientation() madness
On Wed, Aug 24, 2011 at 3:37 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: I have investigated and implemented the best way for determination of orientation: http://softteco.blogspot.com/2011/08/universal-way-to-detect-landscape-mode.html That's exactly what I ended up doing, comparing height and width, which should work all the time, even through times of deprecation. Half of the four orientation values seem useless to me. All I care about is if the screen is taller than it is wide or not, that's it. Not like I'm gonna draw something different if a user holds the device upside down or not. And I seriously doubt anyone has four different views for their app.. most will have one, maybe two. -- Greg Donald -- 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 retrieve images from a sql database?
The field type for image column is BLOB. And I have no idea what that means. I am trying to figure out a way to retreive BLOB data into my Android application and display it on the screen. On Aug 23, 9:39 pm, lbendlin l...@bendlin.us wrote: so you have an existing database. Can you look at the relevant table with the Firefox SQLite Manager plugin (on your computer) and see which field type is used for the image column? -- 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: Determining audio decoders available
Are you sure that AUDIO_DECODER_WMA will always be the 0th indexed object in the constants array? I haven't looked at the code, and I haven't tried getting at an enum via reflection. That's the big thing that leaps out at me (besides the private APIs issue you mention). On Wed, Aug 24, 2011 at 7:13 AM, b0b pujos.mich...@gmail.com wrote: In the meantime the abomination belows works. I know: ...private api...might breakevil...don't do this What's really missing is a public API to enumerate decoders and their capabilities (in particular is decoding supported over HTTP). public Boolean isWMASupported() { try { Class decoderCapabilitiesClass = Class.forName(android.media.DecoderCapabilities); Class audioDecoderClass = Class.forName(android.media.DecoderCapabilities$AudioDecoder); Object constants[] = audioDecoderClass.getEnumConstants(); if(constants == null || constants.length == 0) return null; Object AUDIO_DECODER_WMA = constants[0]; Method getAudioDecodersMethod = decoderCapabilitiesClass.getMethod(getAudioDecoders); List decoders = (List)getAudioDecodersMethod.invoke(null); for(Object decoder : decoders) { if(decoder.equals(AUDIO_DECODER_WMA)) return true; } return false; } catch (Exception e) { return null; } } On Aug 24, 12:51 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 24, 2011 at 4:39 AM, b0b pujos.mich...@gmail.com wrote: If only google in its immense wisdom had provided MediaPlayer.isMimeTypeSupported()... Yes, it's a stunning omission. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 Android Training in Oslo: http://bit.ly/fjBo24 -- 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] getFragmentManager undefined
With the Compatibility Library, you should be using getSupportFragmentManager(). On Wed, Aug 24, 2011 at 9:43 AM, Wieger Aaron Visser aaron.vis...@gmail.com wrote: I need to get the viewpager up and running for a project I'm working on. SDK 2.2, compatibility v4. It's all working, except... getFragmentManager() is undefined. I can't seem to see it explicitly defined anywhere in code examples. Help? 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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: getFragmentManager undefined
Yeah, if you are using the compatibility lib, you need to look for getSupportFragmentManager(), not getFragmentManager() -blake On Aug 24, 9:43 am, Wieger Aaron Visser aaron.vis...@gmail.com wrote: I need to get the viewpager up and running for a project I'm working on. SDK 2.2, compatibility v4. It's all working, except... getFragmentManager() is undefined. I can't seem to see it explicitly defined anywhere in code examples. Help? 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: getFragmentManager undefined
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] larger layout
Hello, I am a newbie to android development. So please be nice. The layout in something like angry birds. Where the layout is bigger than the screen. And you can scroll back and forth. 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: Downloading Files Directly in Webview without it opening the browser
I think it is a webview issue. I agree with you, Kris. Lewis On Aug 19, 2:13 am, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Aug 18, 2011 at 9:53 AM, Raziel23x raziel...@gmail.com wrote: I do not want to hide it i want it to download inside the application itself not have it when a link is clicked launch the web browser and download the file off the browser Ah, so your problem is that you need access to the files? Yes, I think if I were you, I'd instead use something like a listview, then when someone clicks an object, in the handler download the object and store it somewhere (like the sd card.) Will that work? 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
[android-developers] Send Binary sms to any device - without SmsManager
Hi All. Is there a way to send binary sms to any cellphone ? SmsManager - sendDataMessage send binary sms to another Android device in a specific port. I need to send it to any device. Should i try NDK to do this ? 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] Run Ping on Android
Hello Guys I've got a problem. I can't run ping on emulator, even rooted, only in my Galaxy 5. Using this procedure: proc = Runtime.getRuntime (). exec (su); DataProc = new DataOutputStream DataOutputStream (proc.getOutputStream ()); dataProc.writeBytes (exec ping www.google.com-c 2 \ n); I get the response in the device, but in the emulator no have answers. I need of the statistics generated by ping. Can anyone help me? tnks a lot. -- 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 communicate flash between android
Hi! I am developing game and education contents written in Flash. I think Flash utility can give all application program without changing a lot. Simple modification of it is very powerful. But 1 problem comes to me. When Flash contents want to be used API function, How can I approach it? Specially Flash contents want to use 'getSerialNumber method' ,How can I do it? I want to have protect lock on the flash contents that i wrote by using the serial number of the product. Please send me the way to solve it. -- 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] Passing data back from Renderscript......
Has anyone found a method for passing data back to the framework from renderscript? It's clear from the documentation that modifications to allocated memory are one-way operations i.e. modifications in the framework can be sync'd to the script, but not vice versa. I have been experimenting with rsSendToClient() which allows you to specify a void * buffer to the client-side. This actually works, but unfortunately the RenderScript.RSMessageHandler class defines its data member as an int[] rather than a byte[] making it difficult to pass any data other than integers. Is there a better way of getting data out of renderscript? 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] Android not responding(ANR) is there in which file.
Which file actually contain ANR -- 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] Error in AVD
when i go launch AVD it comes this error [2011-08-19 13:26:09 - Mytest] Android Launch! [2011-08-19 13:26:09 - Mytest] adb is running normally. [2011-08-19 13:26:09 - Mytest] Performing com.hasi.work.mymain activity launch [2011-08-19 13:26:09 - Mytest] Automatic Target Mode: launching new emulator with compatible AVD 'mydroid' [2011-08-19 13:26:09 - Mytest] Launching a new emulator with Virtual Device 'mydroid' /*this is error line*/ [2011-08-19 13:26:09 - Emulator] invalid command-line parameter: soft \New. [2011-08-19 13:26:09 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'. [2011-08-19 13:26:09 - Emulator] please use -help for more information plz help me to solve 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] Is there possibility to compress the audio and video file programmatically?
I am recording the video through intent,it is taking 3mb for 30sec.I want send it to server and retrieve it list to play it is taking more time to send the video file to server and play it.So I think by compressing it we can reduce the size of same video.Then it may take less time.I did not find any solution for compressing the video. Is there possibility to compress the audio and video file programmatically? Thanks in advance. Teja. -- 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] [openGL ES 1.1] [Texture compression] etc1 mipmap
When I activate the mipmaping on uncompressed texture, all is working perfectly. When I do it on ETC1 texture, the texture is blank, certainly because the complete set of mipmaps was not given. The code is very simple and works on iPhone (with PVR compression, of course). It doesn't work on Android. The mipmap was build with an external tool on PC, and past together. I stop making mipmap at the size of 4, because glCompressedTexImage2D return an opengl error if I try to use lower sizes. Here is the code I use (and works well on iPhone !!) for(u32 i=0; i=levels; i++) { size = KC_TexByte(pagex, pagey, tex_type); // return the size in byte of a such texture (type = GL_ETC1_RGB8_OES) glCompressedTexImage2D(GL_TEXTURE_2D, i, type, pagex, pagey, 0, size , ptr); pagex = MAX(pagex/2, 4); pagey = MAX(pagey/2, 4); ptr += size; KC_Error();// test openGL error } -- 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] File saved from MediaRecorder does not play in VLC
Hi, I'm trying to figure out a way to play back on my Mac the audio file I recorded on Android. Here's the code I'm using mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mRecorder.setOutputFile(mFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); try { mRecorder.prepare(); } catch (IOException e) { System.out.println(prepare() failed); System.out.println(e.getMessage()); } mRecorder.start(); And then, I mount the phone in Debug mode, grab the file from the SD card, and copy it on my desktop. If I try to play that file in VLC (Version 1.1.11 The Luggage (Intel 64bit)) nothing happens, the file does not want to play. Any ideas why this happens? How could I record audio that I would be able to play on my desktop? Vivi. -- 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] pmem mmap fails second time onwards when it is done multiple times
hi, this is my forst post. If i'm doing anything wrong please correct me. Issue: in cameraservice handlepreview for a specific feature we need to unregister and register buffers(ISurface::BufferHeap) for preview LayerBuffer. i am trying to unregister the buffers for a copule of milliseconds(30) and re-register the same buffers(heap).I have added few logs for debugging. step 1: cameraservice registerbuffers for first time process 85:mediaserver. E/CameraService(85): --- CameraService::Client::registerPreviewBuffers before msurface- registerbuffers heap id =41 base =0x41547000 size =3702784 and from systemserver process(951) E/IMemory ( 951): ---mmap with base(0x498a5000) size(3702784) and fd(213) and acess(1) . step 2: camera service unregister buffers for first time:(donot delete/ destroy pmem from mediaserver process E/CameraService( 85): CameraService::Client::handlePreviewData unregisterBuffers E/IMemory ( 951): ---m-unmap with base(0x498a5000) size(3702784) and fd(213) step3: register preview buffers again E/CameraService(85): --- CameraService::Client::registerPreviewBuffers before msurface- registerbuffers heap id =41 base =0x41547000 size =3702784 E/IMemory ( 951): cannot map BpMemoryHeap (binder=0x308b78), size=3702784, fd=206 (Invalid argument). I've verified size and offset are proper. I'm not sure of the restriction of pmem mapping accross processes. I have verified /proc/pid/fd from mediaserver fd looks fine. from systemserver process i could see fd(213) which is unmapped still exists. is it expected behaviour?? and when we mmap second time it's getting new fd(206)...is it an error?. Please ask me if more information is required. -- 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] Face Feature Detection Nose,Mouth,etc..
So android has this great FaceDetector class which tells you where faces are, but i was wondering if anyone knows of any good code that can tell me where the nose and mouth are? and also the maybe the bounds of the actual head? I've looked around the net a lot and found a lot of math-heavy papers with Greek characters that i don't get much... 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] Repaint MainActivity through Service
Hello, I use my Main Activity to paint Text. Now Ive a Service in Background that listens to a bluetooth device. If a button on the device is pressed I insert values in the local database and want to repaint the correct value in my Main Activity. Everything works fine - just the repaint does not work, because i cant call the invalidate() method from my Service. I tried with a BroadCastReceiver but i think i misunderstood something. -- This is my Method in my Service ControllerService private void insertToDB(int iWert, char c) { if(zt.getJoystickMoved().x == iWert) { sendOrderedBroadcast(i,null); Log.i(Broadcast,send!); //in this block i want to notify the Activity } } -- Here is my Main Activity public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); registerReceiver(resetReceiver, new IntentFilter(my.intent.INTENT_NAME)); } public BroadcastReceiver resetReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Log.i(Broadcast, got Broadcast!); MainActivity.this.cc.invalidate(); //cc.invalidate() repaints my Activity //cc is a View with the paint Logic inside this.setResultCode(Activity.RESULT_OK); } } My Broadcast Receiver in my Main Activity does not receive anything ... I hope someone could help me with my Problem. -- In my AndroidManifest is this code ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/ android package=com.zaehlwert.countV1 android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=10 / uses-permission android:name=android.permission.VIBRATE/ uses-permission android:name=android.permission.BLUETOOTH / uses-permission android:name=android.permission.BLUETOOTH_ADMIN / application android:icon=@drawable/icon android:label=@string/app_name android:name=com.test.data.ListHelper activity android:name=.MainActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / action android:name=my.intent.INTENT_NAME/ category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:label=PreferencesActivity android:name=PreferencesActivity/activity activity android:name=ZtPreferencesActivity android:label=ZtPreferencesActivity/activity activity android:name=customizePreferences/activity activity android:name=ControllerActivity/activity service android:name=com.test.services.ControllerService/ service activity android:name=BatteryActivity/activity /application /manifest -- 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] videoaudio conferencing apps
hello, I'm beginner in android. Looking for video conferencing apps. 1) More than 7 way video conferencing 2) More than 10 way audio conferencing. Is it available please sent the links or else help me to start the coding. I'm stuck with my project -- 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] Error while compiling apk through ant, Settings.System.putInt
Heey how is everybody?? i'm a beginner in android world, i saw some lessons how to make you own app but i got some errors, hope that you can help me to fix them here is my .java file package com.KR.MySettings; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import android.widget.Button; import android.widget.TextView; public class SettingsActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button UpdateSystemSetting = (Button)findViewById(R.id.updatesystemsetting); UpdateSystemSetting.setOnClickListener(new Button.OnClickListener(){ @Override public void onClick(View arg0) { android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE, 0); android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS, 10); android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.ACCELEROMETER_ROTATION, 0); android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.TRANSITION_ANIMATION_SCALE, 0); android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.BUTTON_KEY_LIGHT, 0); }}); } } and when i try to compile it using this command line: C:\KR ant debug i used to get his error message compile: [javac] C:\Program Files\Android\android-sdk\tools\ant \main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 2 source files to C:\Brightness\bin\classes [javac] C:\Brightness\src\com\KingRuin\MySettings \SettingsActivity.java:27:cannot find symbol [javac] symbol : variable BUTTON_KEY_LIGHT [javac] location: class android.provider.Settings.System [javac] android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.BUTTON_KEY_LIGHT, 0); [javac] ^ [javac] 1 error but when i delete this line from the source code android.provider.Settings.System.putInt(getContentResolver(),android.provider.Settings.System.BUTTON_KEY_LIGHT, 0); everything went ok, but i need that line so what is the porblem please?? thanks alot -- 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] TextToSpeech / OnUtteranceCompletedListener not working
I'm having a problem with the OnUtteranceCompletedListener in TextToSpeech. In execution of the code below, the listener is registered successfully, but OnUtteranceCompleted is never executed. I tried this with both the Eclipse emulator (2.3) and an HTC phone (2.2). I saw some earlier reports of the same problem, and wondered if there's been any progress in resolving it. import java.util.HashMap; import android.app.Activity; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener; import android.util.Log; import android.widget.Toast; public class SpeechSynthesis extends Activity implements TextToSpeech.OnInitListener, OnUtteranceCompletedListener { private static final String TAG = SpeechSynthesis; private TextToSpeech tts; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.e(TAG, Starting SpeechSynthesis); tts = new TextToSpeech(this, this); } // end onCreate public void onInit(int status) { Toast.makeText(this, onInit, Toast.LENGTH_SHORT).show(); if (status != TextToSpeech.SUCCESS) { Log.e(TAG, TTS failed to initialize+status); return; } int result = tts.setOnUtteranceCompletedListener(this); if (result != TextToSpeech.SUCCESS){ Log.e(TAG, Failed setOnUtteranceCompletedListener); return; } HashMapString, String map = new HashMapString, String(); map.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, some ID stuff); tts.speak(Hello there, TextToSpeech.QUEUE_FLUSH, map); } // end onInit public void onUtteranceCompleted(String utteranceId) { Toast.makeText(this, onUC, Toast.LENGTH_SHORT).show(); } // end onUtteranceCOmpleted } // end SpeechSynthesis -- 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: HTTPGet synchronous or asynchronous call???
start a thread to do 2011/8/19 William Ferguson william.ferguson...@gmail.com Wrap the call in a Runnable that you hand off to another Thread. Or any of dozens of other ways of executing async. On Aug 19, 3:44 pm, Atik atik0...@gmail.com wrote: Hi Kumar, Thanks for the useful answer but can you please more elaborate on it. how we can make it asychronous??? Thanks in advance... Atik On Aug 19, 10:06 am, Kumar Bibek coomar@gmail.com wrote: By itself it is a synchronous call. You will have to make it asychronous. *Thanks and Regards, Kumar Bibek* *http://techdroid.kbeanie.comhttp://www.kbeanie.com* On Fri, Aug 19, 2011 at 10:35 AM, Atik atik0...@gmail.com wrote: Hi, we have HTTPGet in android so we can communicate with the server to get the response when we send a request. i am using that in XML parsing, so but i want to know whether HTTPGet is a synchronous call or a synchronous call ??? Please help me out with more explanation. i have googled it on internet also, but unable to find the satisfactory answer. Thanks Atik -- 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 -- [wu.kunting] -- 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] Accessing Home Screen
Hi, I am wondering if i can switch between Home Screens to the right and left programmatically through a service for example. If not, would it be possible if i created my own Home Screen?!?! 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
Re: [android-developers] navigate to anotherapp activity
ThankQ Appahollcs On Fri, Aug 19, 2011 at 11:49 PM, Appaholics raghavs...@appaholics.inwrote: http://tinyurl.com/4xgevk8 This is the last link I am sending you. Use Google unless you get an error or have some not so common problem. Thanks On Fri, Aug 19, 2011 at 11:45 PM, rambabu mareedu rambabu.mare...@gmail.com wrote: but sir using this code Intent in=new Intent(getApplicationContext(),Demo.class); i can go demo.class activity within same application ..but want to go some other application activity On Fri, Aug 19, 2011 at 11:42 PM, Appaholics raghavsood@appaholics i .in wrote: Use an intent to launch your new activity. On Fri, Aug 19, 2011 at 11:41 PM, rambabu mareedu rambabu.mare...@gmail.com wrote: that means iam in one activity i want navigate to another app activity i want the code how to navigate On Fri, Aug 19, 2011 at 11:33 PM, Appaholics raghavs...@appaholics.inwrote: So what should we do about it? You haven't asked a specific question, just stated your intention. Thanks On Fri, Aug 19, 2011 at 11:29 PM, rambabu mareedu rambabu.mare...@gmail.com wrote: hi all.i want to navigate fron one app to another app screen ..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 unsubsc toribe 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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] SoapFault - faultcode: 'a:DeserializationFailed' faultstring: 'The formatter threw an exception while trying to deserialize the message: There was an error while trying to deseria
Hi, I am facing problem in calling my webservice InsertUserInformation operation: My webservice can be accessed using below URL: https://www.enmapps.com/Services/MobileCloudService.svc?wsdl MY MainActivity Class code is as follows: package com.test.android; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.*; import android.util.Log; public class MainActivity extends Activity { /** Called when the activity is first created. */ private static final String NAMESPACE = http://tempuri.org/;; private static final String URL = https://www.enmapps.com/Services/MobileCloudService.svc;; private static final String SOAP_ACTION = http://tempuri.org/ IMobileCloudService/; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); InsertUserInformation(); GetEmailIdOfUser(); } private void InsertUserInformation() { Button toggleButton = (Button)findViewById(R.id.Button01); toggleButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { String METHOD_NAME = InsertUserInformation; UserInfo userInfo = new UserInfo(); userInfo.NameIdentitifer=ni; userInfo.IdentityProvider=ip; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); PropertyInfo pi1 = new PropertyInfo(); pi1.setName(userInfo); pi1.setType(userInfo.getClass()); pi1.setValue(userInfo); // pi1.setNamespace(NAMESPACE); request.addProperty(pi1); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); envelope.addMapping(request.getNamespace(),userInfo,userInfo.getClass()); AndroidHttpTransport androidHttpTransport =new AndroidHttpTransport(URL); //HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); try { //androidHttpTransport.call(SOAP_ACTION, envelope); TrustManagerManipulator.allowAllSSL(); androidHttpTransport.call(SOAP_ACTION+METHOD_NAME, envelope); SoapObject resultsRequestSOAP = (SoapObject) envelope.getResponse(); if(resultsRequestSOAP!=null) Log.i(Response:: , resultsRequestSOAP.toString()); } catch (Exception e) { e.printStackTrace(); } // TODO Auto-generated method stub } }); } } Also, My UserInfo class code is as follows: package com.test.android; import java.util.Hashtable; import org.ksoap2.serialization.KvmSerializable; import org.ksoap2.serialization.PropertyInfo; public class UserInfo implements KvmSerializable{ public String AddressLine1=; public String BusinessPhoneNumber=; public String City=; public String CompanyName=; public String Country=; public String Email=; public String IdentityProvider=; public String NameIdentitifer=; public String PersonalPhoneNumber=; public String State=; public String StreetAddress=; public String UserName=; public String Version=; public String ZipCode=; public UserInfo(){} public UserInfo(String addressLine1, String businessPhoneNumber, String city, String companyName, String country, String email, String identityProvider, String nameIdentitifer, String personalPhoneNumber, String state, String streetAddress, String userName, String version, String zipCode) { AddressLine1 = addressLine1; BusinessPhoneNumber = businessPhoneNumber; City= city; CompanyName = companyName; Country = country; Email = email; IdentityProvider = identityProvider; NameIdentitifer = nameIdentitifer; PersonalPhoneNumber = personalPhoneNumber; State = state; StreetAddress = streetAddress; UserName = userName; Version = version; ZipCode = zipCode; } @Override public Object getProperty(int arg0) { // TODO
[android-developers] Larger screen
Hello, I am new to android development. I would like to have a screen that is similar to angry birds. Where the screen is larger than the view-able area. and the user can move a viewable section around a bigger area. I don't really want 2 layouts. where a swipe moves between the 2. (Not sure if angry birds does that.) But I would like the user to move slowly around a bigger area. thanks for any help -- 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] In-App Billing Question
I am attempting to integrate in app billing in an application. My billing service binds to Google's service fine, but when I send the CHECK_BILLING_SUPPORTED request, I always receive a RESULT_BILLING_UNAVAILABLE. My phone's main account is set up as a test account, and I have uploaded the APK (but not published) to the market. The bundle is sending API_VERSION = 1. Any ideas? -- 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 change the media volume and keep the notification in bar even when music is paused in mediaplayer service?
Hi everyone, I am kind of new to programming. I want to develop a music player app with a service that plays music in the background. Is there a way to keep the notification in bar and change the media volume even when the music in paused? 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: Simulate GPS Failure
Parking garages have worked very well to block GPS and other signals in my experience. Nathan: How do you do a mock location provider? -- Lew On Tuesday, August 23, 2011 6:12:05 PM UTC-7, davemac wrote: You might try holding it inside your kitchen oven (oven not turned on of course). - dave On Aug 23, 9:07 pm, burton miller burton...@gmail.com wrote: I'm not sure about the type of failure, because it does not happen in my code - it happens in the advertiser's code, and some of my users are getting a dialog telling them that 'GPS is failing.' My code fails gracefully on location problems :) If I can repro it, then I can determine which advertiser it is, and contact them. That is a serious bug. I'll try the metal building trick. Maybe a parking garage. On Aug 23, 4:26 pm, Nathan critt...@crittermap.com wrote: On Aug 23, 3:08 pm, burton miller burton...@gmail.com wrote: I have an app that uses ads for revenue. And one of my ad vendors is putting up a show-stopper dialog when GPS is on, but fails. I can't tell which one it is. How do you simulate GPS failure (while enabled)? Any ideas? What type of failure? Failure to receive a position update? Real GPS or network location? If real GPS, try it inside a building with a metal roof, like a mall. You could also do a mock location provider. -- 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: [Force Close]CursorIndexOutOfBoundsException: Index 4 requested, with a size of 4
You mean that i add a List of String in the class that extends ItemizedOverlay(like the list of geopoints)? Then make a raw query and pass the index as parameter on the ontap(index) function? public class ItemizedOverlayPerso extends ItemizedOverlayOverlayItem { private ListGeoPoint points = new ArrayListGeoPoint(); private ListString descri= new ArrayListString(); Thank you for your help. 2011/8/24 lbendlin l...@bendlin.us first of all you need to use the same approach for your map annotations. When you define their index, start at 0 as well and make sure they are consecutive. Secondly, rather than using a cursor you should do a raw SQL query using your annotation index as the filter. -- 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] Android not responding(ANR) is there in which file.
Use adb logcat, DDMS, or the DDMS perspective in Eclipse. IIRC, there should be a stack trace that will indicate where the ANR occurred. If not (it has been a very long time since I got an ANR and did not know what caused it), you may have to sprinkle Log statements or breakpoints in your code to track it down. On Fri, Aug 19, 2011 at 3:11 AM, Nireesha Yarlagadda yarlicu...@gmail.com wrote: Which file actually contain ANR -- 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 Android Training in Oslo: http://bit.ly/fjBo24 -- 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 volume change listener
Hello Is there any way to listen for volume changes with an android service and react to that? Btw how do the google music app allow the user to control the media volume even when the music is playing in the background? 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] Problem displaying Google Latitude location badge in Android WebView
I'm having trouble getting a Google Latitude location badge to display correctly in an Android WebView. I am expecting something like this: http://dl.dropbox.com/u/4234644/Capture.JPG with a map image/photo. But I am getting this: http://dl.dropbox.com/u/4234644/device-2011-08-16-203442.jpg without a map image/photo. As you can see my location is being reported but I don't get the map or photo. Here is my code: - public void displayBadge() { AlertDialog.Builder aboutAlert = new AlertDialog.Builder(this); aboutAlert.setTitle(Expander Dip Switch Settings); aboutAlert.setIcon(R.drawable.icon); WebView browser = new WebView(this); browser.setBackgroundColor(0); String html = iframe src=\http://www.google.com/latitude/ apps/badge/api?user=? type=iframemaptype=roadmapz=10\ width= \150\ height=\250\ frameborder=\0\/iframe; browser.loadData(html, text/html, utf-8); aboutAlert.setView(browser); aboutAlert.setNeutralButton(Close, null); aboutAlert.show(); } A simple url (maps.google.com) will display various screen elements but again no map. Any ideas would be gratefully received. Best regards -- 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] camera preview - android
I am implementing a simple camera app and I see this in developer site: After taking a picture, preview display will have stopped. To take more photos, call startPreview() again first I am calling: camera.stopPreview(); camera.release(); in surfaceDestroyed() which is called after takePicture(). I am not very sure where startPreview() should be called again in order to resume the preview. Any help appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to pass object as soap request in Android
How to pass Soap request for this kind of webservice WEBSERVICE CODE: Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. ' System.Web.Script.Services.ScriptService() _ System.Web.Services.WebService(Namespace:=http://tempuri.org/;) _ System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1) _ ToolboxItem(False) _ Public Class Service1 Inherits System.Web.Services.WebService Public Class InfoRequest Private NameField As String Private num1field As Integer Private num2field As Integer '''remarks/ Public Property Name() As String Get Return Me.NameField End Get Set(ByVal value As String) Me.NameField = value End Set End Property '''remarks/ Public Property num1() As Integer Get Return Me.num1field End Get Set(ByVal value As Integer) Me.num1field = value End Set End Property '''remarks/ Public Property num2() As Integer Get Return Me.num2field End Get Set(ByVal value As Integer) Me.num2field = value End Set End Property End Class Public Class InfoResponse Private totalField As Integer '''remarks/ Public Property total() As Integer Get Return Me.totalField End Get Set(ByVal value As Integer) Me.totalField = value End Set End Property End Class WebMethod() _ Public Function total(ByVal validationRequest As InfoRequest) As InfoResponse Dim resp As New InfoResponse Dim req = validationRequest Dim name As String = req.Name Dim num1 As Integer = req.num1 Dim num2 As Integer = req.num2 Dim tot As Integer = num1 + num2 resp.total = tot Return resp End Function End Class ANDROID CODE public class mas extends Activity { /** Called when the activity is first created. */ private static final String METHOD_NAME =total; private static final String NAMESPACE =http://tempuri.org/;; private static final String SOAP_ACTION =http://tempuri.org/ total; private static final String URL =http://10.0.2.2:1743/ Service1.asmx; private TextView tv; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tv = (TextView) findViewById(R.id.tv); tv.setText(ws()); } private String ws() { String result = ; try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); System.out.println(ohaissxh); PropertyInfo quotesProperty = new PropertyInfo(); //quotesProperty.setName(Name); //quotesProperty.setValue(chris); //quotesProperty.setType(String.class); //request.addProperty(quotesProperty); request.addProperty(Name,Nas); //request.addProperty(InfoRequest,request); request.addProperty(num1,6); // request.addProperty(InfoRequest,request); request.addProperty(num2,5); /* PropertyInfo name = new PropertyInfo(); name.setName(Name); name.setValue(S); request.addProperty(name);*/ /*PropertyInfo num1 = new PropertyInfo(); num1.setName(a); num1.setValue(5); request.addProperty(num1); PropertyInfo num2 = new PropertyInfo(); num2.setName(b); num2.setValue(9); request.addProperty(num2); */ SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE ht = new HttpTransportSE(URL); ht.call(SOAP_ACTION, envelope); System.out.println(dfdjsssf); if(envelope.getResponse()!=null){ //SoapObject response = (SoapObject)envelope.bodyIn; Object response = envelope.getResponse(); result = response.toString(); } } catch (Exception e) { result = e.getMessage(); } return result; } } SOAP REQUEST: POST /Service1.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: http://tempuri.org/total; ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http:// schemas.xmlsoap.org/soap/envelope/ soap:Body total xmlns=http://tempuri.org/;
[android-developers] Adding Timestamp in Monkey Testing logs
Hi guys, Does anyone knows how to add timestamp in monkey logs just we add in logcats with attribute -v time. Ofcourse we are getting time in monkey logs but that time is total elapsed time. So can we get time of each event that when this or that event happened (for ex: 08-20 01:36:16.750 ) Thanks Test -- 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] ActivityInstrumentationTestCase2 issues - test hangs because of invalidate() call in the code I'm writing a test for
I'm implementing a test for some code I've written which I have distilled down into a sample project pasted below. The problem I am having is that the test hangs the test runner and none of the test in my test case run. I have tracked the problem down to a call to invalidate() in getChildStaticTransformation(View child, Transformation t) which I am overriding to do some scaling effects. If I comment out the call to invalidate() then the tests run. The reason I'm calling invalidate() is to ensure that the view gets redrawn after I apply the scaling effect. If I do not call invalidate() then the view dosen't look right until a user action forces the screen to get redrawn. Following is the output of the Eclipse Android Console showing where the test hangs : [2011-08-19 13:51:27 - HelloGalleryTest] -- [2011-08-19 13:51:27 - HelloGalleryTest] Android Launch! [2011-08-19 13:51:27 - HelloGalleryTest] adb is running normally. [2011-08-19 13:51:27 - HelloGalleryTest] Performing android.test.InstrumentationTestRunner JUnit launch [2011-08-19 13:51:27 - HelloGalleryTest] Automatic Target Mode: using device '428024642BF9457' [2011-08-19 13:51:27 - HelloGalleryTest] Uploading HelloGalleryTest.apk onto device '428024642BF9457' [2011-08-19 13:51:27 - HelloGalleryTest] Installing HelloGalleryTest.apk... [2011-08-19 13:51:29 - HelloGalleryTest] Success! [2011-08-19 13:51:29 - HelloGalleryTest] Project dependency found, installing: HelloGallery [2011-08-19 13:51:29 - HelloGallery] Uploading HelloGallery.apk onto device '428024642BF9457' [2011-08-19 13:51:29 - HelloGallery] Installing HelloGallery.apk... [2011-08-19 13:51:31 - HelloGallery] Success! [2011-08-19 13:51:31 - HelloGalleryTest] Launching instrumentation android.test.InstrumentationTestRunner on device 428024642BF9457 [2011-08-19 13:51:31 - HelloGalleryTest] Collecting test information [2011-08-19 13:51:32 - HelloGalleryTest] Sending test information to Eclipse [2011-08-19 13:51:32 - HelloGalleryTest] Running tests... Two questions : 1. Why is invalidate() blocking the test from running? 2. Should I be doing the scaling of my view differently that does not require invalidate() to be called? Below is the sample project code and test case I've written that exhibits the problem I have described above. HelloGallery.getChildStaticTransformation(View child, Transformation t) is the method which has the call to invalidate(). The other files included below are for completeness incase you want to try and build the project and observe the behavior I have described. #START::HELLO_GALLERY_PROJECT-FILES HelloGallery.java -- package com.hello; import android.content.Context; import android.graphics.Camera; import android.graphics.Matrix; import android.util.AttributeSet; import android.view.View; import android.view.animation.Transformation; import android.widget.Gallery; public class HelloGallery extends Gallery { private Camera mCamera = new Camera(); /** * The position (index) of the centered view in the gallery. */ public int mCenterViewPositionIndex; public HelloGallery(Context context, AttributeSet attrs) { super(context, attrs); this.setStaticTransformationsEnabled(true); } /** * {@inheritDoc} * * @see #setStaticTransformationsEnabled(boolean) */ protected boolean getChildStaticTransformation(View child, Transformation t) { t.clear(); mCamera.save(); final Matrix imageMatrix = t.getMatrix(); int position = getPositionForView(child); t.setTransformationType(Transformation.TYPE_MATRIX); if (child == getSelectedView()) { mCenterViewPositionIndex = position; t.setAlpha(1f); mCamera.translate(-20, 20, -200); } else if(((mCenterViewPositionIndex - 1) == position )) { t.setAlpha(0.5f); // no need to zoom this view. } else if((mCenterViewPositionIndex + 1) == position ) { t.setAlpha(0.5f); // no need to zoom this view. } else if(((mCenterViewPositionIndex - 2) == position )) { t.setAlpha(0.35f); mCamera.translate(0, 0, 250); } else if((mCenterViewPositionIndex + 2) == position ) { t.setAlpha(0.35f); mCamera.translate(0, 0, 250); } else if(((mCenterViewPositionIndex - 3) == position )) { t.setAlpha(0.1f); mCamera.translate(0, 0, 350); } else if((mCenterViewPositionIndex + 3) ==
[android-developers] Gallery sets position after TextView.setText()
I've got a fairly complicated layout going on that consists of 2 galleries which hold layouts themselves as the children, and also an additional timer counting down to an event. My issue is that I'm updating the countdown using a Handler that runs every 1000ms that calculates time until the event and then displays it using setText(). Whenever setText() is called, if the user is scrolling through the gallery and is halfway between views, it snaps to lock in one of the views. Some sort of invalidate going on I assume? Anyone know of a solution so that my Galleries don't snap every time the countdown updates? 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] Large numbers for getCid and getLac
Hello all, I know that someone already asked this question before :http:// groups.google.com/group/android-developers/browse_thread/thread/ b8ae536a3ae444f3# but I still don't understand fully. I hope someone can explain this to me. I retrieve the Cell Id and the location area code with : ... GsmCellLocation mGsmCellLocation = (GsmCellLocation) mTelephonyManager.getCellLocation(); mLocation.setLatitude(GPSlocation.getLatitude()); mLocation.setLongitude(GPSlocation.getLongitude()); ... If I am using 2G everything seems to be fine and the cid and lac are within the 0x border. However if I am in a UMTS network I get numbers that are quite large and far over the 0x border. Since I need reliable numbers I want to ask here what exactly is being returned in an GSM and UMTS network. I read in other threads that the large numbers are hex which makes not much sense to me. In the mentioned thread a user uses cid0x to get smaller numbers but that makes also no sense to me. I need the real cid and lac in an GSM and UMTS network. How do I retrieve it? I used different Apps from other developers like Netmonitor, Antennas, NetworkInfo, cellumap, G-Mon but somehow they also show different numbers for the Cell id and LAC. This confused me even more. Hope someone can just explain me why the numbers differ and why I get numbers that are far over the 0x border that is mentioned in the documentation: http://developer.android.com/reference/android/telephony/gsm/GsmCellLocation.html#getCid%28%29 Thanks in advance, Benjamin -- 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 append existing file in android
hi i want to add data in xml file which i already have file on sd card. so how to append data in that file??? -- 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] Use the content observer to detect changes in the ringer volume and log it?
Can someone give me a piece of code which can use the content observer to detect changes in the ringer volume and log it please?? 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] how much time android market to appear app after publishing
This is narayanan. This morning i published my application filled all the requirements details and uploaded the signed application in developer console. and the Developers console home page shows application is published but android market not showing my application till now! Dont know wats going on and now i am fed up because spend 25$ now nothing i got! -- 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] dead LCD... I need to mount the phone as an external drive
I have not installed any sort of emulator or client software, or backup assistant on the original motorola droid. the LCD is unresponsive so I cannot enable USB mode. I am running Windows but able to get LINUX installed if need be. I need to know how to remotely mount the phone as an external USB drive through command line in order to get all my stuff from the internal hard drive storage. I took my SD card out so that's not the 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] print current time date on activity
i want to make an application in which print current time date of the phone on the activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Automatic date tagging feature on capture of snap
hi, I m new in Android developer world. I want to tag a date to snap by which is capture by my camera automatically. so plz help me out frm this problem nd give explanation abt dat probelm so i can understand it better way thank u!!! -- 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: Vector
Chris is right, that gets rid of the error, but I bet it is not what bob is trying to accomplish. Chris' solution will create a Java array of 9 Vectors. I have a couple of suggestions, here: 1) Don't ever use Vectors. They are historical cruft. Use List and ArrayList 2) Don't mix generics and Java arrays. It gets weird I suspect that what bob wants is import java.util.List; public class Oracle { public static ListArticle articles; public static void init(){ articles = new ArrayListArticle(9); } } ... and you can leave the 9 out, because the ArrayList will grow as needed... -blake On Aug 23, 1:56 pm, Chris crehb...@gmail.com wrote: articles = new VectorArticle[9]; try articles = (VectorArticle[]) new Vector[9]; - C -- 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] Accessing Home Screen
On Fri, Aug 19, 2011 at 8:33 AM, Abdulla Al Chalati abou...@gmail.com wrote: I am wondering if i can switch between Home Screens to the right and left programmatically through a service for example. Not in general. If not, would it be possible if i created my own Home Screen?!?! Most likely, yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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] scrolling div makes true page flicker
If I create a scrolling div then the next time I click a link the page flickers. How can I stop the page from flickering. I can stop the page from flickering if I make the content of the div hidden or I set hardware accelerated to false. This also happens in the android honeycomb browser. Here is a same piece of html to reproduce the problem. !DOCTYPE html html head meta name=viewport content=minimum-scale=1, maximum-scale=1 style type=text/css #test { max-height: 200px; overflow-y: scroll; overflow-x:hidden; } /style /head body a href=test.htmltest/a div id=test ul lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li lihello/li /ul /div /body /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