[android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??
First, thank you for your note. but that is a kind of blinded name from commercial offical name on Google Play to post on here. The point is that, So far, nobody know the solution how to solve this serious problem even on Gingerbread. Google guy must answer and announce a solution to solve this issue. Anyone else who know about this? On Sunday, June 24, 2012 7:33:52 AM UTC+9, RichardC wrote: Unless this is just a test application I would really rename your package. com.company.appname is technically legal but it is definitely not a good globally unique name. On Saturday, June 23, 2012 10:51:50 PM UTC+1, Build Account wrote: Hello. If app has well defined BackupAgent class with definition in manifest, the error suddenly occur randomly. (signed/unsiged same but maybe not debug mode). I tried find solution through web, but everybody screaming about this error with no answer. The sample reference links from Stackoverflow are below - http://stackoverflow.com/questions/7506981/how-come-i-get-classnotfoundexception-when-backupagent-tries-to-start - http://stackoverflow.com/questions/7641765/mysterious-classnotfoundexception-when-android-system-engage-backupagent - http://stackoverflow.com/questions/6147241/android-app-classnotfoundexception-for-main-activity - http://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app (and you can find more with keywords 'backupagent classnotfoundexception') Does anyone know solution to avoid this unexpected error?? (All the source code and manifest is all okay surely). Here is the log file. E/ActivityThread(1954): Agent threw during creation: java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk] W/dalvikvm(1954): threadid=1: thread exiting with uncaught exception (group=0x4001e578) E/AndroidRuntime(1954): FATAL EXCEPTION: main E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create BackupAgent com.company.appname.mybackuphelper: java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk] E/AndroidRuntime(1954): at android.app.ActivityThread.handleCreateBackupAgent(ActivityThread.java:1895) E/AndroidRuntime(1954): at android.app.ActivityThread.access$3200(ActivityThread.java:117) E/AndroidRuntime(1954): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1030) E/AndroidRuntime(1954): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(1954): at android.os.Looper.loop(Looper.java:130) E/AndroidRuntime(1954): at android.app.ActivityThread.main(ActivityThread.java:3687) E/AndroidRuntime(1954): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(1954): at java.lang.reflect.Method.invoke(Method.java:507) E/AndroidRuntime(1954): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847) E/AndroidRuntime(1954): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) E/AndroidRuntime(1954): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(1954): Caused by: java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk] E/AndroidRuntime(1954): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) E/AndroidRuntime(1954): at java.lang.ClassLoader.loadClass(ClassLoader.java:551) E/AndroidRuntime(1954): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) E/AndroidRuntime(1954): at android.app.ActivityThread.handleCreateBackupAgent(ActivityThread.java:1864) E/AndroidRuntime(1954): ... 10 more W/asset(143): Asset path /data/app/com.company.appname-1.apk is neither a directory nor file (type=1). W/PackageManager(143): Failure retrieving resources forcom.company.appname E/(143): Dumpstate /data/log/dumpstate_app_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] android group ..
hello all , i want to know what is id for group Not assign ?? to move contact to that group .. thank you .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: parsing html code into andriod page
How about htmlcleaner? On Jun 18, 2012 12:03 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: Are you talking about displaying an HTML page within your Android app? How about using WebViewhttp://developer.android.com/reference/android/webkit/WebView.html ? If you are actually talking about parsing an HTML page and generating native Android layouts with views based on the HTML code, I would strongly advise against that. What do you actually need to accomplish? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Doubt about heap size
Hi there, I have read that the maximum heap available for an app is 16M, despite that there may be higher on newer devices. Anyway on a 2.1 emulator with Eclipse/DDMS my available heap shown is just about 3M, while in my SGS2 real device shows about 5M of available heap. As you see, a lot of lower than 16M. My app runs fine on my SGS2, but it crashes complaining about not having sufficient heap memory on the emulator, and I have received a few reports with the same error on Google Play. I am currently doing an effort to decrease heap consumption, but I wonder why DDMS shows values so low and if some devices may actually have less than 16M of heap memory. My app is developed for Android 2.1+ 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] Re: After Signing Pressing App Icon Restarts App Every Time
GregAz, Have you solved this problem? I'm fighting exactly with that! Please let us know. Thanks On Friday, September 16, 2011 4:10:25 AM UTC+2, GregAZ wrote: As the title says, but I'll try to make it easier to understand. I copied a project using Windows explorer, imported it, and then used the Android menu to rename the application package. Then I ran it, worked great (just as I would expect). I signed it, uninstalled the dev version from my phone, installed the signed and noticed every time I hit the apps icon it reloads the app as if it was never opened. If I hold home and switch to it it doesn't reload. So I uninstalled it and ran the app on my phone using Eclipse and the problem wasn't there. So I signed it/zip aligned it again, put it back on the phone and once again same issue. It seems that signing and zip aligning is causing this problem. The project that copied does not have this problem. Any ideas why this would be happening? I'm targeting Android 2.1 if that helps. Steps to cause problem: 1. Export app 2. Sign it, zip align it 3. Put on phone 4. Launch app 5. Hit home to leave app 6. Press app button again (shows splash screen as if it was never opened) Doesn't happen using these steps: 1. Start app from Eclipse (install app on my phone) 2. Hit home to leave app 3. Press app button (puts me where I left it in the app) What would cause it to reload? It doesn't do it if I hold home down and switch to the app, only when pressing the apps icon. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 doesnt work
hi, when i try to open the camera in the emulator( api level 4,7,8,15). it worked once when i started working with eclipse. actually iam using a face detection app for which the camera is necessary please help regards Karan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 solve 'ClassNotFoundException' on 'BackupAgent'??
Just to make sure, are you using obfuscation, and if yes, are you sure this classname isn't altered? -- H On Jun 24, 2012 9:46 AM, Build Account newandroi...@gmail.com wrote: First, thank you for your note. but that is a kind of blinded name from commercial offical name on Google Play to post on here. The point is that, So far, nobody know the solution how to solve this serious problem even on Gingerbread. Google guy must answer and announce a solution to solve this issue. Anyone else who know about this? On Sunday, June 24, 2012 7:33:52 AM UTC+9, RichardC wrote: Unless this is just a test application I would really rename your package. com.company.appname is technically legal but it is definitely not a good globally unique name. On Saturday, June 23, 2012 10:51:50 PM UTC+1, Build Account wrote: Hello. If app has well defined BackupAgent class with definition in manifest, the error suddenly occur randomly. (signed/unsiged same but maybe not debug mode). I tried find solution through web, but everybody screaming about this error with no answer. The sample reference links from Stackoverflow are below -http://stackoverflow.com/**questions/7506981/how-come-i-** get-classnotfoundexception-**when-backupagent-tries-to-**starthttp://stackoverflow.com/questions/7506981/how-come-i-get-classnotfoundexception-when-backupagent-tries-to-start -http://stackoverflow.com/**questions/7641765/mysterious-** classnotfoundexception-when-**android-system-engage-**backupagenthttp://stackoverflow.com/questions/7641765/mysterious-classnotfoundexception-when-android-system-engage-backupagent -http://stackoverflow.com/**questions/6147241/android-app-** classnotfoundexception-for-**main-activityhttp://stackoverflow.com/questions/6147241/android-app-classnotfoundexception-for-main-activity -http://stackoverflow.com/**questions/3781151/java-lang-** classnotfoundexception-on-**working-apphttp://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app (and you can find more with keywords 'backupagent classnotfoundexception') Does anyone know solution to avoid this unexpected error?? (All the source code and manifest is all okay surely). Here is the log file. --**-- E/ActivityThread(1954): Agent threw during creation: java.lang.**ClassNotFoundException: com.company.appname.**mybackuphelper in loader dalvik.system.PathClassLoader[**/data/app/com.company.appname-**1.apk] W/dalvikvm(1954): threadid=1: thread exiting with uncaught exception (group=0x4001e578) E/AndroidRuntime(1954): FATAL EXCEPTION: main E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create BackupAgent com.company.appname.**mybackuphelper: java.lang.**ClassNotFoundException: com.company.appname.**mybackuphelper in loader dalvik.system.PathClassLoader[**/data/app/com.company.appname-**1.apk] E/AndroidRuntime(1954): at android.app.ActivityThread.** handleCreateBackupAgent(**ActivityThread.java:1895) E/AndroidRuntime(1954): at android.app.ActivityThread.** access$3200(ActivityThread.**java:117) E/AndroidRuntime(1954): at android.app.ActivityThread$H.** handleMessage(ActivityThread.**java:1030) E/AndroidRuntime(1954): at android.os.Handler.** dispatchMessage(Handler.java:**99) E/AndroidRuntime(1954): at android.os.Looper.loop(Looper.**java:130) E/AndroidRuntime(1954): at android.app.ActivityThread.** main(ActivityThread.java:3687) E/AndroidRuntime(1954): at java.lang.reflect.Method.**invokeNative(Native Method) E/AndroidRuntime(1954): at java.lang.reflect.Method.** invoke(Method.java:507) E/AndroidRuntime(1954): at com.android.internal.os.**ZygoteInit$** MethodAndArgsCaller.run(**ZygoteInit.java:847) E/AndroidRuntime(1954): at com.android.internal.os.** ZygoteInit.main(ZygoteInit.**java:605) E/AndroidRuntime(1954): at dalvik.system.NativeStart.**main(Native Method) E/AndroidRuntime(1954): Caused by: java.lang.**ClassNotFoundException: com.company.appname.**mybackuphelper in loader dalvik.system.PathClassLoader[**/data/app/com.company.appname-**1.apk] E/AndroidRuntime(1954): at dalvik.system.PathClassLoader.** findClass(PathClassLoader.**java:240) E/AndroidRuntime(1954): at java.lang.ClassLoader.** loadClass(ClassLoader.java:**551) E/AndroidRuntime(1954): at java.lang.ClassLoader.** loadClass(ClassLoader.java:**511) E/AndroidRuntime(1954): at android.app.ActivityThread.** handleCreateBackupAgent(**ActivityThread.java:1864) E/AndroidRuntime(1954): ... 10 more W/asset(143): Asset path /data/app/com.company.appname-**1.apk is neither a directory nor file (type=1). W/PackageManager(143): Failure retrieving resources forcom.company.appname E/(143): Dumpstate /data/log/dumpstate_app_error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
Re: [android-developers] camera doesnt work
On Sun, Jun 24, 2012 at 03:05:27AM -0700, karan hans wrote: when i try to open the camera in the emulator( api level 4,7,8,15). it worked once when i started working with eclipse. Are you closing the camera properly? If not, depending on the Android device (and the OS version[1]), the camera can be locked up until you reboot the device. That's what this sounds like. Be SURE you fix this before you release anything, or you will have a lot of very angry former users. Later, --jim [1] My Acer Iconia A500 tablet, under Honeycomb, would not lock up; once it upgraded to ICS, it does. -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | Tux (E Cat): DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++ spooky1...@gmail.com | T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running Mac OS X Lion | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L W C+++/C+ 30.44406N 86.59909W| I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.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
[android-developers] Re: camera doesnt work
actually iam working on windows 7 based system. i dont have an android device. so like if and when i start the avd and click on the camera button it just gives me a chequered background of black and white with a white square bouncing off the walls. sometimes wheni start the emulator the camera on top of my laptop screen/lid blinks with a blue light.however sometimes it doesnt. but in any case the camera view doesnt open up in emulator. i wonder what the problem could be. On Sunday, June 24, 2012 3:35:27 PM UTC+5:30, karan hans wrote: hi, when i try to open the camera in the emulator( api level 4,7,8,15). it worked once when i started working with eclipse. actually iam using a face detection app for which the camera is necessary please help regards Karan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: After Signing Pressing App Icon Restarts App Every Time
I solved it, at least for me. The problem is that I installed my app by downloading it from a webserver. This caused the app to restart each time. Using the command-line tool adb install -r package.apk works as expected. It gets resumed from the previous state. hope it helps. a.p. On Sunday, June 24, 2012 12:02:18 PM UTC+2, Andrea wrote: GregAz, Have you solved this problem? I'm fighting exactly with that! Please let us know. Thanks On Friday, September 16, 2011 4:10:25 AM UTC+2, GregAZ wrote: As the title says, but I'll try to make it easier to understand. I copied a project using Windows explorer, imported it, and then used the Android menu to rename the application package. Then I ran it, worked great (just as I would expect). I signed it, uninstalled the dev version from my phone, installed the signed and noticed every time I hit the apps icon it reloads the app as if it was never opened. If I hold home and switch to it it doesn't reload. So I uninstalled it and ran the app on my phone using Eclipse and the problem wasn't there. So I signed it/zip aligned it again, put it back on the phone and once again same issue. It seems that signing and zip aligning is causing this problem. The project that copied does not have this problem. Any ideas why this would be happening? I'm targeting Android 2.1 if that helps. Steps to cause problem: 1. Export app 2. Sign it, zip align it 3. Put on phone 4. Launch app 5. Hit home to leave app 6. Press app button again (shows splash screen as if it was never opened) Doesn't happen using these steps: 1. Start app from Eclipse (install app on my phone) 2. Hit home to leave app 3. Press app button (puts me where I left it in the app) What would cause it to reload? It doesn't do it if I hold home down and switch to the app, only when pressing the apps icon. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: camera doesnt work
otherwise the camera works fine with skype On Sunday, June 24, 2012 4:28:33 PM UTC+5:30, karan hans wrote: actually iam working on windows 7 based system. i dont have an android device. so like if and when i start the avd and click on the camera button it just gives me a chequered background of black and white with a white square bouncing off the walls. sometimes wheni start the emulator the camera on top of my laptop screen/lid blinks with a blue light.however sometimes it doesnt. but in any case the camera view doesnt open up in emulator. i wonder what the problem could be. On Sunday, June 24, 2012 3:35:27 PM UTC+5:30, karan hans wrote: hi, when i try to open the camera in the emulator( api level 4,7,8,15). it worked once when i started working with eclipse. actually iam using a face detection app for which the camera is necessary please help regards Karan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Activity Animation
Hello all , i want to ask why when animate activity show slow in emulater but in device show very fast .. how to make it slowly to show it to user ??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Animation
Hi, Emulator is really slow, you should not measure your app performance based on emulator results. The speed of an animation depends on the speed of the device: the faster the device, the faster the animation. You must use some kind of method to sync your animation framing so it runs at same speed on all devices. For example, if you plan to show 25 frames per second, i.e. one frame every 40 milliseconds, you may calculate the time for next frame based on System.currentTimeMillis() + 40. It should be something like: // Init this value on the constructor, for example nextFrameTiming = 0; ... // This could be wherever the image its drawn or prepared to be drawn, depending on how your code works if ( System.currenTimeMillis = nextFrameTimming ) { nextFrameTiming = System.currentTimeMillis() + 40; changeFrame(); } So you only change to a new frame as fast as once each 40 milliseconds. Note that this will be useful to make the animation slower in devices where it runs too fast, but obviously it will not made it to run faster in devices where it runs too slow due hardware limitations. On 24/06/12 14:00, ala hammad wrote: Hello all , i want to ask why when animate activity show slow in emulater but in device show very fast .. how to make it slowly to show it to user ??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Doubt about heap size
Don't mistake *maximum *heap for *available *heap. A process can have free memory in its allocated heap. This is available heap. A process' currently allocated heap space is equal or *less *than the maximum. When needed, the process can get some extra heap space until its maximum has been reached. On Sunday, June 24, 2012 5:56:08 AM UTC-4, Fran wrote: Hi there, I have read that the maximum heap available for an app is 16M, despite that there may be higher on newer devices. Anyway on a 2.1 emulator with Eclipse/DDMS my available heap shown is just about 3M, while in my SGS2 real device shows about 5M of available heap. As you see, a lot of lower than 16M. My app runs fine on my SGS2, but it crashes complaining about not having sufficient heap memory on the emulator, and I have received a few reports with the same error on Google Play. I am currently doing an effort to decrease heap consumption, but I wonder why DDMS shows values so low and if some devices may actually have less than 16M of heap memory. My app is developed for Android 2.1+ 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] Re: Permissions for System Apps (not in /data/system/packages.xml?)
Hey everyone, I checked back all the details you gave me. However, my findings are still not satisfactory. The shared UID bit turned out to be true - for some of the packages stored in /system/app/, but unfortunately not for all. System apps with a shared user ID usually get their permissions defined in a section distinct for every shared user ID. There one can also find the perms block related to that specific shared user ID. One example would be android.uid.shared, which is used by many Android OS apps. However, there are apps which do not have a shared user ID, but a user ID of their own - and still come without a perms block. One example is the /system/app/FileManager.apk package, which is preinstalled on my testing device. Every single system app not making use of a shared user ID lacks a perms block. ... so for those, I'm back to square one ;) I still don't know where their permissions are stored, and it's definitely not in the packages.xml file. Are permissions for those just granted at will, without checking the packages.xml file? Could maybe an Android dev from Google provide a statement on this matter? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Defining a TableLayout
Is this possible. Have a tablelayout with 2 rows and 4 columns. i'd like to have the 2nd column on the 2nd row to span 2 columns. A B C D A B B 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] Defining a TableLayout
Use android:layout_span to have a cell span two (or more) columns. On Sun, Jun 24, 2012 at 10:45 AM, dashman erjdri...@gmail.com wrote: Is this possible. Have a tablelayout with 2 rows and 4 columns. i'd like to have the 2nd column on the 2nd row to span 2 columns. A B C D A B B 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 Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)
On Jun 24, 10:34 am, Jason Meyer jasonmeyer...@yahoo.de wrote: However, there are apps which do not have a shared user ID, but a user ID of their own - and still come without a perms block. One example is the /system/app/FileManager.apk package, which is preinstalled on my testing device. That does not sound like a standard Android component - is it a vendor app or are you using a custom ROM? Can you post the full packages.xml block relating to 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] Execute adb commands from Java desktop applicaton
Hi, at the moment I use Runtime.getRuntime().exec(command) to execute adb commands. Is there a better way or even a library available? Kind regards, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 group ..
Try deleting all GroupMembershiphttp://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership.htmlrecords for that contact. I don't think there is a group for no group assigned. It's more the absence of group memberships that makes a contact not assigned to any group. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Permissions for System Apps (not in /data/system/packages.xml?)
I am not sure if it's a standard Android component, and indeed I guess it's not. Still, the possibility exists. However, other system apps show the same behavior regarding their packages.xml entries. Anyway, here's the whole block: package name=com.android.filemanager codePath=/system/app/ FileManager.apk flags=1 ts=1314087422000 version=1 userId=10036 sigs count=1 cert index=1/ /sigs /package I would guess that a file manager would typically at least have WRITE_EXTERNAL_STORAGE permission. Another example: The Google-provided Youtube app, also a system app as it's installed in /system/app/: package name=com.google.android.youtube codePath=/system/app/ YouTube.apk flags=1 ts=1314087422000 version=2106 userId=10031 sigs count=1 cert index=9/ /sigs /package No shared user ID, no perms block. Still, I would guess it would need INTERNET permission. One last example, which would usually require RECORD_AUDIO permission: package name=com.android.soundrecorder codePath=/system/app/ SoundRecorder.apk flags=1 ts=1314087422000 version=8 userId=10043 sigs count=1 cert index=1 key=30.../ /sigs /package -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can I remove header icon and class name?
set your activity theme open AndroidManifest.xml and add android:theme=@android:style/Theme.Black.NoTitleBar.Fullscreen in label activity after android:name 在 2012年6月24日星期日UTC+8下午11时46分45秒,Dan Lee写道: Hi. Can I remove header icon and class name in red in attachment? Thanks in advance. Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Some ideas for RDP application
On Thu, Jun 21, 2012 at 2:49 AM, Akki akshay.iitr@gmail.com wrote: I am trying to develop an android version of Remote Desktop Sharing (Remote PhoneTop Sharing)using RDP protocol and looking to implement it the same way ie making one phone a server and other the client. I would like to ask whether this is feasible or not because I think that most people use little router / wifi access point boxes with a feature called network address translation (NAT) which allows all of the devices in their home, business, or cafe to share the same external IP address. So any mobile device simply does not have a unique, routable external IP address on which it can accept incoming connections or unsolicited incoming traffic. I yes then could you please post some suggestions about how to begin with this and also could you please post some links for the same I feel like this is something where if you have to ask, you're probably in way too deep... But, do you want to have an Android device controlling a desktop? Or an Android device controlling another Android device? The second won't be possible without major firmware modifications, the first might be, but in reality also probably very difficult.. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: parsing html code into andriod page
On Sunday, June 24, 2012 4:49:16 AM UTC-5, prudhvi wrote: How about htmlcleaner? What exactly is your question? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Logging without installing app
On Fri, Jun 22, 2012 at 1:49 AM, TreKing treking...@gmail.com wrote: On Wed, Jun 20, 2012 at 3:59 PM, VC daz...@gmail.com wrote: I want this to be added as inbuilt module in kernel and flash the phone. Check the other groups that have to do with modifying the firmware. This one is for developing with the SDK. The OP might also want to look into messing around with Instrumentation, for which you won't need firmware mods, and might help out. (At least, I know some people doing a similar thing that way.) 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] Re: (html parser ) can anyone tell me why i am getting this error
If you want to get help then post: 1. The exception stack trace 2. Only the *relevant *code portions that are related to your problem 3. Some information about what you are actually doing and what your problem is. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parsing xml in given url
If you are in a hurry - and need the answer fast - you can use the same method I usually do. Check it out: http://bit.ly/Obf0Xq On Sat, Jun 23, 2012 at 6:03 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Sat, Jun 23, 2012 at 7:56 PM, TreKing treking...@gmail.com wrote: On Sat, Jun 23, 2012 at 9:02 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Please help me out in parsing xml from url You want to explain what help you actually need and what this has to do with Android specifically? http://www.catb.org/~esr/faqs/smart-questions.html Ok, sure. I actually needed the answer within sometime when I asked the question. I was given the url and was told to parse specific things in that within a particular period of time. Thats why, asked the question hurrily (without giving much specification). Well, so sorry for providing vague information about my problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Michael Banzon http://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bind onTouchEvent to an overlay?
I have problems to understand the documentation of ItemizedOverlay, so I tried to build a clickable overlay with onTouchEvent. Drawing a overlay over my googlemap works fine and add a onTouchEvent too. Now I want that the onTouchEvent only works, when I touch the overlay. In the moment it starts wherever I touch the map. package de.bodprod.rettinfo; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; import android.content.Intent; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Point; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.widget.Toast; public class BOSLstItemDetail extends MapActivity { /** Called when the activity is first created. */ private ListOverlay mapOverlays; private MapController mc; ArrayListHashMapString, Object boslst; MyOverlay polygon; private MapView mapView; private GeoPoint gP; //private MyOverlay myoverlay; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.boslst_item_detail); //SQL ID der Leitstelle abfragen Intent in = getIntent(); String id = in.getStringExtra(SQL_ID); int sql_id = Integer.valueOf(id.toString()); // Daten der Leitstelle abfragen boslst = new ArrayListHashMapString,Object(); DatabaseHandler db = new DatabaseHandler(getApplicationContext()); boslst = db.getBOSLst(sql_id); //Name der Leistelle String bosname = boslst.get(0).get(name).toString(); //GPS Koordinaten der Leistelle String lat_s = boslst.get(0).get(lat).toString(); String lng_s = boslst.get(0).get(lng).toString(); //Umwandeln der GPS Koordinaten double lat = Double.parseDouble(lat_s); double lng = Double.parseDouble(lng_s); //Geo Point setzten für Startansicht gP = new GeoPoint((int) (lat * 1E6),(int) (lng * 1E6)); mapView = (MapView) findViewById(R.id.mapview);//Creating an instance of MapView mapView.setBuiltInZoomControls(true);//Enabling the built-in Zoom Controls //Initializing the MapController and setting the map to center at the mc = mapView.getController(); mc.setCenter(gP); mc.setZoom(10); //Dateiname für GeopPoints festlegen String gps = bosname.toLowerCase(); //GeoPoints für malen abfragen ArrayListGeoPoint points = new ArrayListGeoPoint(); try{ InputStream koord = getAssets().open(gps); if (koord != null) { InputStreamReader input = new InputStreamReader(koord); BufferedReader buffreader = new BufferedReader(input); String line; while (( line = buffreader.readLine()) != null) { String[] point_t = line.split(,); double y = Double.parseDouble(point_t[0]); double x = Double.parseDouble(point_t[1]); points.add(new GeoPoint((int)(x*1e6), (int)(y*1e6))); } koord.close(); polygon = new MyOverlay(points); } }catch (Exception e) { Log.e(APP,Failed, e); } mapOverlays = mapView.getOverlays(); mapOverlays.add(polygon); } @Override protected boolean isRouteDisplayed() { return false; } class MyOverlay extends Overlay{ ArrayListGeoPoint geoPoints; public MyOverlay(ArrayListGeoPoint points){ geoPoints = points; } public void draw(Canvas canvas, MapView mapv, boolean shadow){ Paint paint = new Paint(); paint.setColor(Color.parseColor(#88ff));
[android-developers] ADB Uninstall from specific device
How can you use adb unistall when I have two devices installed on my machine. One device is easy, but two devices the uninstall command doesn't know which one. Thanks www.jaxily.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ADB Uninstall from specific device
From the docs: http://developer.android.com/tools/help/adb.html Directing Commands to a Specific Emulator/Device Instance -- If multiple emulator/device instances are running, you need to specify a target instance when issuing adb commands. To so so, use the -s option in the commands. The usage for the -s option is: adb -s serialNumber command As shown, you specify the target instance for a command using its adb-assigned serial number. You can use the devicescommand to obtain the serial numbers of running emulator/device instances. Here is an example: adb -s emulator-5556 install helloWorld.apk Note that, if you issue a command without specifying a target emulator/device instance using -s, adb generates an error. On Sunday, June 24, 2012 6:59:59 PM UTC+1, Jaxily wrote: How can you use adb unistall when I have two devices installed on my machine. One device is easy, but two devices the uninstall command doesn't know which one. Thanks www.jaxily.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bind onTouchEvent to an overlay?
Your onTouchEvent method always returns* false* which means that your Overlay does not handle any touch events, therefore they get propagated to the map view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 solve 'ClassNotFoundException' on 'BackupAgent'??
Hi. Well...the class name of my backupagenthelper altered in the proguard.cfg(my config file name) with below setting. *-keep public class * extends android.app.backup.BackupAgent -keep public class * extends android.app.backup.BackupAgentHelper *And the command 'adb shell bmgr run' also works fine. This is randomly occur in idle time when user not using the app which is I don't understand... Here is the my situation again clearly fyi, -My 'BackupAgent*Helper*' exist in the path -It defined in Manifest.xml. -Backup request queue processed well by 'adb shell bmgr run'. -Proguard also avoid obfuscation for this class by config. -BackupAgentHelper added from someday wihile distributing. Mean that previously my 'BackupAgent*Helper*' doesn't exist. It is newly supported from someday. -This error occur randomly from everywhere in OS since at least froyo. -No right answer exist so far. -This occur when run UNSIGNED binary either. Does above situation seem okay..? One thing weired is why OS looking path '/data/app/' ?? Do you know that? On Sunday, June 24, 2012 7:14:42 PM UTC+9, Harri Smått wrote: Just to make sure, are you using obfuscation, and if yes, are you sure this classname isn't altered? -- H On Jun 24, 2012 9:46 AM, Build Account wrote: First, thank you for your note. but that is a kind of blinded name from commercial offical name on Google Play to post on here. The point is that, So far, nobody know the solution how to solve this serious problem even on Gingerbread. Google guy must answer and announce a solution to solve this issue. Anyone else who know about this? On Sunday, June 24, 2012 7:33:52 AM UTC+9, RichardC wrote: Unless this is just a test application I would really rename your package. com.company.appname is technically legal but it is definitely not a good globally unique name. On Saturday, June 23, 2012 10:51:50 PM UTC+1, Build Account wrote: Hello. If app has well defined BackupAgent class with definition in manifest, the error suddenly occur randomly. (signed/unsiged same but maybe not debug mode). I tried find solution through web, but everybody screaming about this error with no answer. The sample reference links from Stackoverflow are below -http://stackoverflow.com/**questions/7506981/how-come-i-** get-classnotfoundexception-**when-backupagent-tries-to-**starthttp://stackoverflow.com/questions/7506981/how-come-i-get-classnotfoundexception-when-backupagent-tries-to-start -http://stackoverflow.com/**questions/7641765/mysterious-** classnotfoundexception-when-**android-system-engage-**backupagenthttp://stackoverflow.com/questions/7641765/mysterious-classnotfoundexception-when-android-system-engage-backupagent -http://stackoverflow.com/**questions/6147241/android-app-** classnotfoundexception-for-**main-activityhttp://stackoverflow.com/questions/6147241/android-app-classnotfoundexception-for-main-activity -http://stackoverflow.com/**questions/3781151/java-lang-** classnotfoundexception-on-**working-apphttp://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app (and you can find more with keywords 'backupagent classnotfoundexception') Does anyone know solution to avoid this unexpected error?? (All the source code and manifest is all okay surely). Here is the log file. --**-- E/ActivityThread(1954): Agent threw during creation: java.lang.**ClassNotFoundException: com.company.appname.**mybackuphelper in loader dalvik.system.PathClassLoader[**/data/app/com.company.appname-**1.apk] W/dalvikvm(1954): threadid=1: thread exiting with uncaught exception (group=0x4001e578) E/AndroidRuntime(1954): FATAL EXCEPTION: main E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create BackupAgent com.company.appname.**mybackuphelper: java.lang.**ClassNotFoundException: com.company.appname.**mybackuphelper in loader dalvik.system.PathClassLoader[**/data/app/com.company.appname-**1.apk] E/AndroidRuntime(1954): at android.app.ActivityThread.** handleCreateBackupAgent(**ActivityThread.java:1895) E/AndroidRuntime(1954): at android.app.ActivityThread.** access$3200(ActivityThread.**java:117) E/AndroidRuntime(1954): at android.app.ActivityThread$H.** handleMessage(ActivityThread.**java:1030) E/AndroidRuntime(1954): at android.os.Handler.** dispatchMessage(Handler.java:**99) E/AndroidRuntime(1954): at android.os.Looper.loop(Looper.** java:130) E/AndroidRuntime(1954): at android.app.ActivityThread.** main(ActivityThread.java:3687) E/AndroidRuntime(1954): at java.lang.reflect.Method.**invokeNative(Native Method) E/AndroidRuntime(1954): at java.lang.reflect.Method.** invoke(Method.java:507) E/AndroidRuntime(1954): at com.android.internal.os.**ZygoteInit$** MethodAndArgsCaller.run(**ZygoteInit.java:847) E/AndroidRuntime(1954): at com.android.internal.os.**
[android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??
*-keep public class * extends android.app.backup.BackupAgent* *-keep public class * extends android.app.backup.BackupAgentHelper* I think that's your problem. Your setting only protects child classes of BackupAgent and BackupAgentHelper from obfuscation. You should change these lines to *-keep public class android.app.backup.BackupAgent* *-keep public class android.app.backup.BackupAgentHelper* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Getting list of apps using battery
Hi, How can I get list of all apps draining battery ( in my code )? There are a few programs in market which show all apps draining battery with % ! How can I get it? Thanks, -A -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Getting list of apps using battery
On Sun, Jun 24, 2012 at 3:45 PM, Amita Dev amita.develo...@gmail.com wrote: How can I get list of all apps draining battery ( in my code )? That is not exposed in the Android SDK at this time. There are a few programs in market which show all apps draining battery with % ! Name any. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??
One thing weired is why OS looking path '/data/app/' ?? Do you know that? From your LogCat: E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create BackupAgent com.company.appname.mybackuphelper: java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk] Teh class loader looking for a class called com.company.appname.mybackuphelper and is looking for it in the file /data/app/com.company.appname-1.apk, which should be your APK file. APKs are installed into /data/app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??
Would you post your manifest please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Getting list of apps using battery
It is possible that these existing apps that list battery usage derive that kind of information on their own by watching the CPU usage of other running app processes over a period of time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: My bitmap doesn't draw on the canvas when a ColorMatrixColorFilter is used during onDraw()
As it turns out, this is only an issue if the target API is less than 14. I wrote a separate test app that just worked, but that was because it was set at a newer API target. I was able to set the target API to 12 in the test app and now see the same results as my app. On Tuesday, June 5, 2012 12:33:28 PM UTC-5, bjv wrote: I am trying to use the ColorMatrixColorFilter to swap the red and blue colors in a bitmap before drawing it into the Canvas. Unfortunately, it doesn't seem to work when I use a Bitmap object I create using a Buffer. It works fine if the Bitmap is loaded from a jpg file but when I use my Bitmap created from a Buffer object, it doesn't draw anything on the canvas. So my question is if there is someone special one has to add to a bitmap (a property, flag, etc) that I need to add to a Bitmap that will allow it to be rendered on the Canvas using the filter? I'm using the following code to create the ColorMatrix: float matrix[] = new float[] { 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0 }; rbSwap = new ColorMatrix(matrix); paint = new Paint(Paint.FILTER_BITMAP_FLAG); paint.setColorFilter(new ColorMatrixColorFilter(rbSwap)); If I create the bitmap using the following code, it works: bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.picture); If I create the bitmap using the following code, nothing is ever drawn to the canvas: bitmap = Bitmap.createBitmap((int) width, (int) height, Bitmap.Config.ARGB_); srcBuffer = ByteBuffer.wrap(data); srcBuffer.rewind(); bitmap.copyPixelsFromBuffer(srcBuffer); My onDraw() looks like the following: public void onDraw(Canvas canvas) { canvas.drawBitmap(spicebmp, offsetX, offsetY, paint); } If I don't set the colorfilter, the bitmap renders on my canvas. If I set the colorfilter, it is simply a black screen - nothing appears to render. If I use the jpg bitmap instead of the one I am creating via the buffer, it draws with the red/blue swapped. I did the following to debug the problem: I changed the matrix to be the same as the identity matrix and the bitmap is rendered properly. If I change any single float in the matrix (like the 1s to .5s or 0), nothing is drawn. I've also checked to make sure that the bitmap has enough bytes to represent the bitmap. bitmap.byteCount() == srcBuffer.limit() was true - so the bytes in my buffer were the same as what should be present for the width/height that I am passing in. I put a try/catch for any exception during the onDraw as well as poured through the logcat output, but didn't see anything there. I poked around in the Android bitmap drawing code and saw the following: // nothing to draw if (fClip-isEmpty() || bitmap.width() == 0 || bitmap.height() == 0 || bitmap.getConfig() == SkBitmap::kNo_Config || (origPaint.getAlpha() == 0 origPaint.getXfermode() == NULL)) { return; } I don't have the ability to trace into the C++ code in the core so I can't tell if this is triggering. But I do know that my bitmap's width and height are both non-zero (they are 800 and 600) and I know that my bitmap was set on creation to be of type ARGV_ and the exact same paint object is used for both a jpg loaded from disk (the one that works) and for the one I create using the copyPixelsFromBuffer(). So I'm not sure what I am doing wrong. I presume it is some flag or property in the bitmap that is incompatible with colorFiltering, but it is just a simple ByteBuffer of the proper size of type ARGB_. And of course, the exact same code (paint object, etc) is used to set up the filter. So is there something else I need to be doing with the Bitmap? With the ColorMatrix/Filter? On Tuesday, June 5, 2012 12:33:28 PM UTC-5, bjv wrote: I am trying to use the ColorMatrixColorFilter to swap the red and blue colors in a bitmap before drawing it into the Canvas. Unfortunately, it doesn't seem to work when I use a Bitmap object I create using a Buffer. It works fine if the Bitmap is loaded from a jpg file but when I use my Bitmap created from a Buffer object, it doesn't draw anything on the canvas. So my question is if there is someone special one has to add to a bitmap (a property, flag, etc) that I need to add to a Bitmap that will allow it to be rendered on the Canvas using the filter? I'm using the following code to create the ColorMatrix: float matrix[] = new float[] { 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0 }; rbSwap = new ColorMatrix(matrix); paint = new Paint(Paint.FILTER_BITMAP_FLAG); paint.setColorFilter(new ColorMatrixColorFilter(rbSwap)); If I create the bitmap using the following code, it works: bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.picture); If I
Re: [android-developers] Getting list of apps using battery
On Sun, Jun 24, 2012 at 4:00 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: It is possible that these existing apps that list battery usage derive that kind of information on their own by watching the CPU usage of other running app processes over a period of time. Very true -- PowerTutor does that sort of thing. My response was more thinking about the data in the Battery section of the Settings app, for which I recommended an API be added a couple of years ago. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??
Hi. Well...I don't agree with your comment, since the proguard option came(one came, another one derived) which${sdk.dir}/tools/proguard/proguard-android.txt and from my experience decompiling myself my app that the class was not obfuscation... So...are you sure the setting your suggestion?? On Monday, June 25, 2012 4:38:55 AM UTC+9, Nobu Games wrote: *-keep public class * extends android.app.backup.BackupAgent* *-keep public class * extends android.app.backup.BackupAgentHelper* I think that's your problem. Your setting only protects child classes of BackupAgent and BackupAgentHelper from obfuscation. You should change these lines to *-keep public class android.app.backup.BackupAgent* *-keep public class android.app.backup.BackupAgentHelper* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 solve 'ClassNotFoundException' on 'BackupAgent'??
hi. Yes you are correct but the point of question was(which is not so clear) why OS looking for the apk in that path because of?? why not from installed/extracted binary?? On Monday, June 25, 2012 4:51:21 AM UTC+9, RichardC wrote: One thing weired is why OS looking path '/data/app/' ?? Do you know that? From your LogCat: E/AndroidRuntime(1954): java.lang.RuntimeException: Unable to create BackupAgent com.company.appname.mybackuphelper: java.lang.ClassNotFoundException: com.company.appname.mybackuphelper in loader dalvik.system.PathClassLoader[/data/app/com.company.appname-1.apk] Teh class loader looking for a class called com.company.appname.mybackuphelper and is looking for it in the file /data/app/com.company.appname-1.apk, which should be your APK file. APKs are installed into /data/app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to solve 'ClassNotFoundException' on 'BackupAgent'??
Hi. Please refer manifest snippet below. Before you consider that the path of backupagent applied in many ways absolute full package path, one class name since exists in root, relative path as below. But seem that not a differences.(No well consolidated chart for difference result about when I change the backupagent path, but I 120% sure/believe my memory since I tried each way few dozen of times each...). manifest.xml application android:icon=@drawable/icon android:label=@string/app_name android:backupAgent=.mybackuphelper android:restoreAnyVersion=true android:killAfterRestore=true android:debuggable=false meta-data android:name=com.google.android.backup.api_key android:value=AEdxxxEAA / --- On Monday, June 25, 2012 4:52:46 AM UTC+9, RichardC wrote: Would you post your manifest please. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 solve 'ClassNotFoundException' on 'BackupAgent'??
On Sunday, June 24, 2012 10:35:12 PM UTC+1, Build Account wrote: hi. Yes you are correct but the point of question was(which is not so clear) why OS looking for the apk in that path because of?? why not from installed/extracted binary?? The contents of of an APK are not extracted/installed. APKs are just zip files which the Android-OS can read (using ZLIB), it therefore does not need to extract or install their contents. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Developer Console - How to activate Previously Active APK
On Sat, Jun 23, 2012 at 8:05 PM, Jaxily jacobrjohn...@gmail.com wrote: Is there a way to activate a previous version? I update the version name and code with each revision and this method doesn't allow me to revert backwards. Thanks Presumably, go to the Dev console, select the APK tab, hit the Advanced Mode option, deactivate the current version and hit Reactivate for the version you want. I've never tried to verify if this actually works. - 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: Permissions for System Apps (not in /data/system/packages.xml?)
Why do you care if there is a perms tag? What is stored in packages.xml is an implementation detail; all you should really care about is that applications in the system image must still explicitly request the permissions they need, and they have to follow the rules as anyone else: they can get permissions that are not protected, but can only be granted signature permissions where they are signed with the same cert. The only exception is the signatureOrSystem permission type, which means the permission can be granted to an app signed with the same cert (whether it is in the system image or a third party app), *or* to any app installed on the system image. There are a handful of such permissions, but it isn't the common case. As for why there are no permissions stored in packages.xml: there is no need, because they can just be re-evaluated each boot when scanning the packages. It wouldn't make sense for the user to explicitly grant permissions to each application that is pre-installed on the device, so they can just be given whatever permissions they ask (as long as they are allowed to hold the permission as per above). If you use the package manager APIs to find out the permissions that are held by each app, you will see that the system applications are granted the permissions they request as per the rules. How much of this is cached in packages.xml or elsewhere across boots, or evaluated at each boot, is an implementation detail. On Sun, Jun 24, 2012 at 7:34 AM, Jason Meyer jasonmeyer...@yahoo.de wrote: Hey everyone, I checked back all the details you gave me. However, my findings are still not satisfactory. The shared UID bit turned out to be true - for some of the packages stored in /system/app/, but unfortunately not for all. System apps with a shared user ID usually get their permissions defined in a section distinct for every shared user ID. There one can also find the perms block related to that specific shared user ID. One example would be android.uid.shared, which is used by many Android OS apps. However, there are apps which do not have a shared user ID, but a user ID of their own - and still come without a perms block. One example is the /system/app/FileManager.apk package, which is preinstalled on my testing device. Every single system app not making use of a shared user ID lacks a perms block. ... so for those, I'm back to square one ;) I still don't know where their permissions are stored, and it's definitely not in the packages.xml file. Are permissions for those just granted at will, without checking the packages.xml file? Could maybe an Android dev from Google provide a statement on this matter? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting list of apps using battery
There is still no API for that. This is not something that we want to be stuck with maintaining compatibility with. On Sun, Jun 24, 2012 at 1:03 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Jun 24, 2012 at 4:00 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: It is possible that these existing apps that list battery usage derive that kind of information on their own by watching the CPU usage of other running app processes over a period of time. Very true -- PowerTutor does that sort of thing. My response was more thinking about the data in the Battery section of the Settings app, for which I recommended an API be added a couple of years ago. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Doubt about heap size
This is the maximum heap size: http://developer.android.com/reference/android/app/ActivityManager.html#getMemoryClass() Also see: http://developer.android.com/reference/android/app/ActivityManager.html#getLargeMemoryClass() On Sun, Jun 24, 2012 at 2:56 AM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Hi there, I have read that the maximum heap available for an app is 16M, despite that there may be higher on newer devices. Anyway on a 2.1 emulator with Eclipse/DDMS my available heap shown is just about 3M, while in my SGS2 real device shows about 5M of available heap. As you see, a lot of lower than 16M. My app runs fine on my SGS2, but it crashes complaining about not having sufficient heap memory on the emulator, and I have received a few reports with the same error on Google Play. I am currently doing an effort to decrease heap consumption, but I wonder why DDMS shows values so low and if some devices may actually have less than 16M of heap memory. My app is developed for Android 2.1+ 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)
On Jun 24, 8:26 pm, Dianne Hackborn hack...@android.com wrote: Why do you care if there is a perms tag? What is stored in packages.xml is an implementation detail; Yes, but wanting to understand how things work is an endemic amongst engineers (though this probably is the wrong group to discuss it) How much of this is cached in packages.xml or elsewhere across boots, or evaluated at each boot, is an implementation detail. But an interesting one. I've finally managed to find the code that skips writing out the permissions for system apps. So apparently the effective permission database is actually held in memory and created on each android runtime start by processing the apk's. What remains interesting is why permissions for any apps get written out... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Billing is not supported on this version of android market!
Any idea? On Friday, 22 June 2012 12:55:00 UTC+9, Sandeep Venkat wrote: I to facing the same so if you come across it please post 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
Re: [android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)
But an interesting one. I've finally managed to find the code that skips writing out the permissions for system apps. So apparently the effective permission database is actually held in memory and created on each android runtime start by processing the apk's. What remains interesting is why permissions for any apps get written out... Would you mind pointing out which portion of the codebase this is? Thanks, 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] Re: How to use WSDL web service in Android
ERROR!!! On Thursday, November 6, 2008 10:02:12 PM UTC+7, aviart1 wrote: I have simple WSDL web service file and added into project. Now I am trying to use WSDL web service through android class code, but not able to use it. Can anybody suggest how to import WSDL file in ANdroid, so that it can create auto classes for WSDL file and same can be used ion android main class, where we can send and receive any request/response. Please suggest any simple WSDL use. Thanks 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
Re: [android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)
On Sun, Jun 24, 2012 at 10:12 PM, Kristopher Micinski krismicin...@gmail.com wrote: But an interesting one. I've finally managed to find the code that skips writing out the permissions for system apps. So apparently the effective permission database is actually held in memory and created on each android runtime start by processing the apk's. What remains interesting is why permissions for any apps get written out... Would you mind pointing out which portion of the codebase this is? Thanks, kris (I also realize that this is off topic for android-developers, however, I would be interested and appreciative of a pointer to it...) 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] Re: Permissions for System Apps (not in /data/system/packages.xml?)
On Jun 24, 10:12 pm, Kristopher Micinski krismicin...@gmail.com wrote: But an interesting one. I've finally managed to find the code that skips writing out the permissions for system apps. Would you mind pointing out which portion of the codebase this is? The following code within void writePackageLPr() of platform_frameworks_base / services / java / com / android / server / pm / Settings.java seems responsible for system packages not getting their permissions dumped to the packages.xml file (unless they use a shared userid, in which case a different function does dump those out) if ((pkg.pkgFlags ApplicationInfo.FLAG_SYSTEM) == 0) { serializer.startTag(null, perms); if (pkg.sharedUser == null) { // If this is a shared user, the permissions will // be written there. We still need to write an // empty permissions list so permissionsFixed will // be set. for (final String name : pkg.grantedPermissions) { serializer.startTag(null, item); serializer.attribute(null, name, name); serializer.endTag(null, item); } } serializer.endTag(null, perms); } (This code used to be located elsewhere, the pm/ directory seems to be a reorganization) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: google mail
You should use their recommended way. That way you just call a findViewById, and if it returns null, you know it's the phone layout. Plus it gets to be a headache when you need to have a landscape layout and multiple different sizes and resolutions! On Tuesday, June 19, 2012 6:56:44 AM UTC+8, h4uw1n3 wrote: I'm really interested in android, i might be didn't have any skill in java, but still i want to ask about this... according to http://android-developers.blogspot.de/2011/07/new-tools-for-managing-screen-sizes.html Android will pick the resource that is closest to the device’s screen size or orientation...for example this layout, which only shows the folder list https://lh6.googleusercontent.com/-2avCDWTrdBc/T9-sv0TTnXI/BEw/Nup54Y16B7Y/s1600/unnamed.png and the other one, which shows the folder list and the items on the folder... https://lh6.googleusercontent.com/-ynOv3lsqGLM/T9-ssnDYVRI/BEo/xqV9tcqPmY4/s1600/unnamed.jpg this layout has more than 2 listactivity, which means the java coding also different... so my question is, if we have to check in main activity, whether the device is tablet or a phone, what's the point then using different res/layout folder like res/layout-small, res/layout-large, res/layout-xlarge, we can just make the different file in the same folder and using coding like this public class MyActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(); Configuration config = getResources().getConfiguration(); if (config.smallestScreenWidthDp = 600) { setContentView(R.layout.main_activity_tablet); */*hier coding for different layout for tablet*/* } else { setContentView(R.layout.main_activity); */*here coding for phone's layout*/* } } please correct me, if i misunderstanding about this... and also... sorry about my english... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 group ..
ok how to delete that i do update but after while contact app crash i don't know why ... On Sunday, 24 June 2012 18:55:33 UTC+3, Nobu Games wrote: Try deleting all GroupMembershiphttp://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership.htmlrecords for that contact. I don't think there is a group for no group assigned. It's more the absence of group memberships that makes a contact not assigned to any group. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use WSDL web service in Android
package a.b.c; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.*; import android.app.Activity; import android.net.http.AndroidHttpClient; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class Test1Activity extends Activity { private static final String SOAP_ACTION = http://tempuri.org/CelsiusToFahrenheit;; private static final String METHOD_NAME=CelsiusToFahrenheit; private static final String NAMESPACE=http://tempuri.org/;; private static final String URL=http://www.w3schools.com/webservices/tempconvert.asmx;; TextView tv; Button b; EditText et; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tv=(TextView) findViewById(R.id.tt); et=(EditText)findViewById(R.id.editText1); b=(Button) findViewById(R.id.button1); b.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub SoapObject request= new SoapObject(NAMESPACE,METHOD_NAME); request.addProperty(Celsius, et.getText().toString()); SoapSerializationEnvelope ssevp= new SoapSerializationEnvelope(SoapEnvelope.VER11); ssevp.dotNet=true; ssevp.setOutputSoapObject(request); HttpTransportSE ht= new HttpTransportSE(URL); try { ht.call(SOAP_ACTION, ssevp); SoapPrimitive sp=(SoapPrimitive)ssevp.getResponse(); tv.setText(RS = +sp); } catch(Exception e) { } } }); //Celsius // AndroidHttpTransport at= new AndroidHttpTransport(URL); } } USE KSOAP2 .. good luk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parsing xml in given url
On Sun, Jun 24, 2012 at 10:43 PM, Michael Banzon mich...@banzon.dk wrote: If you are in a hurry - and need the answer fast - you can use the same method I usually do. Check it out: http://bit.ly/Obf0Xq Thanks Michael for suggesting this. But, sorry to say, I think its time consuming task. Instead if someone knows the exact solution of my problem, I would get the help sooner, isn't 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
Re: [android-developers] parsing xml in given url
mail me on my mail id i will help you developer.it.a...@gmail.com On 23 June 2012 19:32, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Please help me out in parsing xml from url -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- (Deepak Mamdapure) You only live once, once is enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use WSDL web service in Android
a agree USE KSOAP2 .. good luk On 25 June 2012 10:53, shashi asanka shashi.kalut...@gmail.com wrote: package a.b.c; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.*; import android.app.Activity; import android.net.http.AndroidHttpClient; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class Test1Activity extends Activity { private static final String SOAP_ACTION = http://tempuri.org/CelsiusToFahrenheit;; private static final String METHOD_NAME=CelsiusToFahrenheit; private static final String NAMESPACE=http://tempuri.org/;; private static final String URL= http://www.w3schools.com/webservices/tempconvert.asmx;; TextView tv; Button b; EditText et; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tv=(TextView) findViewById(R.id.tt); et=(EditText)findViewById(R.id.editText1); b=(Button) findViewById(R.id.button1); b.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub SoapObject request= new SoapObject(NAMESPACE,METHOD_NAME); request.addProperty(Celsius, et.getText().toString()); SoapSerializationEnvelope ssevp= new SoapSerializationEnvelope(SoapEnvelope.VER11); ssevp.dotNet=true; ssevp.setOutputSoapObject(request); HttpTransportSE ht= new HttpTransportSE(URL); try { ht.call(SOAP_ACTION, ssevp); SoapPrimitive sp=(SoapPrimitive)ssevp.getResponse(); tv.setText(RS = +sp); } catch(Exception e) { } } }); //Celsius // AndroidHttpTransport at= new AndroidHttpTransport(URL); } } USE KSOAP2 .. good luk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- (Deepak Mamdapure) You only live once, once is enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 save CameraDevice onPreviewFrame to Video file?
Hi i want device camera preview to video file not using Mediarecorder. i know onPreviewFrame data is YUV data and success just save bitmap . but i don't any hint onPreviewFrame data to video file any format can't anybody hint to me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en