[android-developers] Re: How to debug unexpected exceptions (source not found)
All supposedly true. I was catching all caught and uncaught RuntimeExceptions. ArithmeticException is a subclass of RuntimeException, so it SHOULD have stopped at the point of the throw. It did not. It stopped later, when a RuntimeException was thrown with the original ArithmeticException as its cause. I believe this is a bug, and the correct behavior is as you describe. Breaking on ArithmeticException explicitly, DID break. I'm guessing this is an interaction between the VM and JDWP implementations, though I didn't experiment to figure out the scope of the issue. Thanks for the pointer to dalvic/docs/debugger.html. I'd observed the behavior from merging return statements, and understood it; it's nice to see it confirmed in writing! I was trying to avoid getting too detailed in my explanation -- but it's also good to have all that detail out there for the broader audience. I'm not sure if you were aiming your explanation at me, or augmenting my explanation to the OP. If the former, perhaps I should mention that my background in compilers, runtimes, and debuggers goes back to the 1970s. I maintained and implemented two Lisp systems at MIT, working with Guy Steele (author of the Java spec), among others. I've done stuff with on-the-fly byte-code generation in Java, JVMTI, and other alphabet soup I can't recall. So maybe it'll carry some weight when I say: nice job on explaining and clariying the details I glossed over. Overall, I've been quite impressed with the JDWP implementation. I have been pleasantly surprised at how few deviations there have been between debugging on Dalvik and JVM. Completely OT, but you might appreciate this: Thanks to the folks behind and magicandroidapps.com, I have ITS -- the PDP-10 operating system that MacLisp ran on at MIT in the 1970's -- running on my Nexus One. I've recently acquired a snapshot of the necessary ITS directories, and hope to get MacLisp up and running on my Nexus One -- faster than on the original systems! On Feb 10, 7:36 pm, fadden fad...@android.com wrote: On Feb 9, 7:09 pm, Bob Kerns r...@acm.org wrote: You may not be seeing what you want because you stop too soon, before it's really created the exception. The debugger stops at the point of the throw. There is no exception variable to examine because there's no exception variable in the source code for the debugger to refer to. The exception object is passed to the debugger when the exception happened event is sent up, so it's free to display it however it chooses to. I expect different debuggers deal with this in different ways, but so long as they're using JDWP to talk to the VM they all get the same set of information. (FWIW, you can connect any debugger you like through DDMS. It's probably easiest to make sure there's only one person talking to the VM at a time if you close Eclipse and use the stand-alone ddms command. I've used jdb, IntelliJ IDEA, and a couple others.) I didn't paste it into this message, but I did look at what was in the exception, I just clicked on the little triangle to expand. It showed the message (Divide by zero), and also showed that the stacktrace field hadn't been filled in yet (which I expected). The stack trace elements are populated on demand. Since most exceptions are never displayed, it's inefficient to go through the trouble of formatting a nice stack trace. There's an array of int[] hiding in there that has the actual info. But, I do spot one anomaly here: I have it set to break on RuntimeException. ArithmeticException is a RuntimeException, but it didn't break. It didn't break until it tried to rethrow it, further up the stack. Make sure you're trapping both caught and uncaught exceptions. An exception is considered caught if there's a finally block anywhere below it, and there are dx-generated finally blocks in all synchronized methods. You end up breaking on a lot of stuff you don't care about, but sometimes it's the only way to really catch the exception. Some notes about the debugger can be found in the source tree in dalvik/docs/debugger.html http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=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: Network Unreachable (Socket.net Exception)
@andrew Tell me one thing some people has wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how even when most does not have wifi ? is there any generic solution to my problem.? On Feb 10, 5:53 pm, andrew_prunicki andrew.pruni...@gmail.com wrote: Sorry for the slow response. I did not see your question until just now. I faced the same issue. I had it connecting repeatedly over wifi only. What I learned was that the wifi radio was turned off when the screensaver came on. I went thru several attempts to get it to work. I ended up getting a wake lock on the PowerManager, but this was very expensive in terms of power usage. I also locked the wifi with the WifiManager. This was back in Android 1.0/1.1, and I believe is completely unnecessary now. I noticed that Android 1.6 has the ability to keep the wifi connection in the settings. I imagine you can programmatically do this as well - hopefully without acquiring a wakelock. On Feb 7, 10:49 pm,himanshujainhimanshu@gmail.com wrote: @prunicki You application was connecting with internet repeatedly?? if yes did you face this same issue and how did you work out that ? On Feb 7, 8:43 pm,himanshujainhimanshu@gmail.com wrote: @frank I already tried in differentnetworkat home and at office , I have been trying this on G1 at home i try on WIFI and at office at tried when WIFI is OFF and i am using ip address not host name. I am using Alarm manager which call service repeatedly after 5 minutes so once it throws Exception(NetworkUnreachable). Alarm manager does not stop by this exception it again start service on specified time and then my service try to connect through HttpURLConnection it says NetworkUnreachable. On Feb 7, 7:16 pm, prunicki andrew.pruni...@gmail.com wrote: I tried something similar back in Android 1.0/1.1 using only wifi. What I found is that once the wifi connection was lost, the only way to get it back was to fully wakeup the phone. I think it may be different with the later versions of the SDK, but in case it's not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 and proguard...
While Fadden addresses what you did to annoy the verifier, let's consider what you can do to get past it. I'd start with asking yourself WHY are you using Proguard? What are you prioritizing -- size reduction, speed, or obscurity? Proguard has a number of options to control just what it does to your byte code in the classes. I haven't tried it in this context, but I can offer the datapoint that in the AdMob SDK sample, they supply optimize=false (equivalent to - dontoptimize), which should turn off everything that might tickle this. If you're up for experimenting, read the manual, and turn off individual optimizations until you find the optimization that causes the trouble. This would be useful info for Fadden together with your .class files. I'd say the code/ optimizations are the most likely to be the culprit. If obfuscation is your primary goal, you may be good to go by just turning off all optimizations. On Feb 10, 6:35 pm, sdphil phil.pellouch...@gmail.com wrote: trying to integrate proguard into my android project. seems to generate a binary, but when I go to run that binary on the device, I get -- 02-10 18:31:52.219: INFO/Test(10604): gui.StartScreen.clean shutdown: true 02-10 18:31:52.229: INFO/Test(10604): gui.StartScreen.intent: false 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: copyRes1 v0-v7 cat=3 type=2 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: rejecting opcode 0x0c at 0x0045 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: rejected Lgl;.a (Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap; 02-10 18:31:52.229: WARN/dalvikvm(10604): Verifier rejected class Lgl; 02-10 18:31:52.229: DEBUG/AndroidRuntime(10604): Shutting down VM It starts up with a black screen and then just seems to hang - finally comes up with Force Close / Wait dialog (ANR). It almost seems like it can't get at the resources?? I'm a bit at a loss about what to do... ideas? tia. p.s. please don't respond with the merits of using proguard or not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Network Unreachable (Socket.net Exception)
@andrew Tell me one thing some people have wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how even when most does not have wifi ? is there any generic solution to my problem.? On Feb 10, 5:53 pm, andrew_prunicki andrew.pruni...@gmail.com wrote: Sorry for the slow response. I did not see your question until just now. I faced the same issue. I had it connecting repeatedly over wifi only. What I learned was that the wifi radio was turned off when the screensaver came on. I went thru several attempts to get it to work. I ended up getting a wake lock on the PowerManager, but this was very expensive in terms of power usage. I also locked the wifi with the WifiManager. This was back in Android 1.0/1.1, and I believe is completely unnecessary now. I noticed that Android 1.6 has the ability to keep the wifi connection in the settings. I imagine you can programmatically do this as well - hopefully without acquiring a wakelock. On Feb 7, 10:49 pm,himanshujainhimanshu@gmail.com wrote: @prunicki You application was connecting with internet repeatedly?? if yes did you face this same issue and how did you work out that ? On Feb 7, 8:43 pm,himanshujainhimanshu@gmail.com wrote: @frank I already tried in differentnetworkat home and at office , I have been trying this on G1 at home i try on WIFI and at office at tried when WIFI is OFF and i am using ip address not host name. I am using Alarm manager which call service repeatedly after 5 minutes so once it throws Exception(NetworkUnreachable). Alarm manager does not stop by this exception it again start service on specified time and then my service try to connect through HttpURLConnection it says NetworkUnreachable. On Feb 7, 7:16 pm, prunicki andrew.pruni...@gmail.com wrote: I tried something similar back in Android 1.0/1.1 using only wifi. What I found is that once the wifi connection was lost, the only way to get it back was to fully wakeup the phone. I think it may be different with the later versions of the SDK, but in case it's not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Network Unreachable (Socket.net Exception)
@andrew Tell me one thing some people have wifi ON whereas most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how, even when most does not have wifi ? is there any generic solution to my problem.? On Feb 11, 12:22 am, himanshu jain himanshu@gmail.com wrote: @andrew Tell me one thing some people has wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how even when most does not have wifi ? is there any generic solution to my problem.? On Feb 10, 5:53 pm, andrew_prunicki andrew.pruni...@gmail.com wrote: Sorry for the slow response. I did not see your question until just now. I faced the same issue. I had it connecting repeatedly over wifi only. What I learned was that the wifi radio was turned off when the screensaver came on. I went thru several attempts to get it to work. I ended up getting a wake lock on the PowerManager, but this was very expensive in terms of power usage. I also locked the wifi with the WifiManager. This was back in Android 1.0/1.1, and I believe is completely unnecessary now. I noticed that Android 1.6 has the ability to keep the wifi connection in the settings. I imagine you can programmatically do this as well - hopefully without acquiring a wakelock. On Feb 7, 10:49 pm,himanshujainhimanshu@gmail.com wrote: @prunicki You application was connecting with internet repeatedly?? if yes did you face this same issue and how did you work out that ? On Feb 7, 8:43 pm,himanshujainhimanshu@gmail.com wrote: @frank I already tried in differentnetworkat home and at office , I have been trying this on G1 at home i try on WIFI and at office at tried when WIFI is OFF and i am using ip address not host name. I am using Alarm manager which call service repeatedly after 5 minutes so once it throws Exception(NetworkUnreachable). Alarm manager does not stop by this exception it again start service on specified time and then my service try to connect through HttpURLConnection it says NetworkUnreachable. On Feb 7, 7:16 pm, prunicki andrew.pruni...@gmail.com wrote: I tried something similar back in Android 1.0/1.1 using only wifi. What I found is that once the wifi connection was lost, the only way to get it back was to fully wakeup the phone. I think it may be different with the later versions of the SDK, but in case it's not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Drawing to MapView Incredibly Slow
If I'm both drawing lines and utilizing items, would it be wise to implement both a MapOverlay and a MapItemizedOverlay? Or do I just need one? On Feb 10, 4:55 pm, TreKing treking...@gmail.com wrote: On Wed, Feb 10, 2010 at 3:43 PM, aspekt9 aspe...@gmail.com wrote: What exactly is the span though, This is the distance between the locations demarcated by the edges of the screen. For longitude it's the distance between the locations at the left and right edges of the screen. For latitude it's the distance between the locations at the top and bottom of the screen. how would I calculate if a given coordinate or geopoint lies in between the span? You have the mapview's current center location, yes? You have the longitude and latitude spans, yes? With that you can get 2 GeoPoints that represent the min and max points of the view. (center +/- (span / 2)) With that you can check if a given GeoPoint lies within that min and max. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Drawing to MapView Incredibly Slow
I think I know why, in order for this to work, I'd have to add the items to an overlay everytime draw() is called, or else I can't draw them, and this is going to interrupt the addition of the stations because draw() is called numerous times in a short span of time. Here's my method to add the new items, this method is called from draw(), checkDrawableBounds verifies if it's in the drawable view. What's the right way to be drawing these? Sorry for all the posts. public void showStations(GeoPoint[] stations) { for (int i = 0; i stations.length; i++) { Log.w(GOOD?, String.valueOf(this.checkDrawableBounds(stations[i]))); if (this.checkDrawableBounds(stations[i])) { //OverlayItem overlayitem = new OverlayItem(stations[i], test, test); //itemizedOverlay.addOverlay(overlayitem); } } mapOverlays.add(itemizedOverlay); } On Feb 11, 3:50 am, aspekt9 aspe...@gmail.com wrote: Also, another issue I'm having, I can detect which points should be drawn in the view, but when I go to draw those points I call a method from the draw() method and I get a concurrent operation error: 02-11 03:47:11.848: ERROR/AndroidRuntime(2213): java.util.ConcurrentModificationException 02-11 03:47:11.848: ERROR/AndroidRuntime(2213): at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:66) 02-11 03:47:11.848: ERROR/AndroidRuntime(2213): at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:41) 02-11 03:47:11.848: ERROR/AndroidRuntime(2213): at com.google.android.maps.MapView.onDraw(MapView.java:476) It only does this when I call the method from the draw() method, but if I don't do that then I can't get the correct longitude and latitude coordinates, because they wont update unless they're called from draw(), if that makes sense. On Feb 11, 3:35 am, aspekt9 aspe...@gmail.com wrote: If I'm both drawing lines and utilizing items, would it be wise to implement both a MapOverlay and a MapItemizedOverlay? Or do I just need one? On Feb 10, 4:55 pm, TreKing treking...@gmail.com wrote: On Wed, Feb 10, 2010 at 3:43 PM, aspekt9 aspe...@gmail.com wrote: What exactly is the span though, This is the distance between the locations demarcated by the edges of the screen. For longitude it's the distance between the locations at the left and right edges of the screen. For latitude it's the distance between the locations at the top and bottom of the screen. how would I calculate if a given coordinate or geopoint lies in between the span? You have the mapview's current center location, yes? You have the longitude and latitude spans, yes? With that you can get 2 GeoPoints that represent the min and max points of the view. (center +/- (span / 2)) With that you can check if a given GeoPoint lies within that min and max. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Failed to find provider info for com.google.settings
Hi, what's the below error? 02-11 14:33:51.035: ERROR/ActivityThread(1414): Failed to find provider info for com.google.settings 02-11 14:33:51.056: ERROR/ActivityThread(1414): Failed to find provider info for com.google.settings 02-11 14:33:51.124: ERROR/ActivityThread(1414): Failed to find provider info for com.google.settings -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Images are unsharp/blurry
Hi, I have been developing on a ADP2 (Google Ion) with a standard screen size (with a resolution of 320x480)... Our designer made some pretty neat Images with which to create the GUI, and when placing everything within the layout XML files it looks pretty good... That is, on the Eclipse renderer, the one who shows you how it will look like on the device... Thus not the emulator itself... Unfortunately when run on the real device the supercrisp and beatifull images become blurry and unsharp... I actually do'nt see why this should happen ? Everything has been designed whilst keeping the target devices resolution into account... Is this because most probably the dpi of the screen on which the Images were (big 24 inch screen) is different that the devices ? And if so how can this be corrected (maybe within the designers application as well, I think he uses Photoshop)... Thanks in advance 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] Re: saving shortcuts etc to the desktop?
but how to remove these shortcut programmatically ? seems no action to do this. On Feb 11, 4:13 am, Temitope Akinwande takinwa...@gmail.com wrote: I believe that you can do something like this. Intent i = new Intent(); i.putExtra(Intent.EXTRA_SHORTCUT_INTENT, intent_to_execute_when_clicked); i.putExtra(Intent.EXTRA_SHORTCUT_NAME, title); i.putExtra(Intent.EXTRA_SHORTCUT_ICON, Bitmap_object copy); i.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, resource file); i.setAction(INSTALL_SHORTCUT); sendBroadcast(i); This will create a shortcut so that when the icon is clicked, the intent_to_execute_when_clicked will be launched. -Tope On Wed, Feb 10, 2010 at 11:48 AM, Jason Proctor jason.android.li...@gmail.com wrote: perhaps i'm not being clear :-) supposing my app was an audio player, and i wanted to save out a playlist shortcut to the desktop so that the user could go directly to that playlist with one tap. is this possible? thanks On the home screen, click Menu - Add Then select whatever options you want to add. I am not sure about your other question. On Wed, Feb 10, 2010 at 11:27 AM, Jason Proctor jason.android.li...@gmail.com wrote: i was asked today whether it's possible to save out shortcuts to the desktop, the way the iPhone can save bookmarks and contacts. AFAIK, it's not possible to programmatically create apps or widgets. but is there another way to do this? thanks -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Map Error
Use onCreate() method. Like public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map_test); map=(MapView)findViewById(R.id.map); ::: } I have no issue by calling again. Hope you can get. Regards. On Feb 10, 1:58 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: ok, the exception you see means that you can set content view only once; Make sure you call setContentView() method only once rather than each time you want to bring the activity to foreground. Daniel On Wed, Feb 10, 2010 at 4:44 AM, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank You Daniel. I'm not calling setContentView() on onCreat(). I'm calling setContentView() on some other method. According to my program i can't able to set setContentView() in onCreat(). How to recreate it , to see one more time. can you pls give suggestion?... On Tue, Feb 9, 2010 at 8:14 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: ... Caused by: java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity ... where do you call setContentView() from? It should be called from onCreate(). Daniel On 9 Feb, 13:10, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, when i'm using Google map, it is showing nice. After i'm coming back then try to see one more time newly it is showing error. The error is below 02-09 18:36:40.555: ERROR/AndroidRuntime(300): Uncaught handler: thread main exiting due to uncaught exception 02-09 18:36:40.694: ERROR/AndroidRuntime(300): android.view.InflateException: Binary XML file line #14: Error inflating class unknown 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.app.Activity.setContentView(Activity.java:1622) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at pack.sample.find.mapview(find.java:253) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at pack.sample.find.onClick(find.java:337) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.View.performClick(View.java:2364) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.View.onTouchEvent(View.java:4179) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.widget.TextView.onTouchEvent(TextView.java:6540) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.View.dispatchTouchEvent(View.java:3709) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.app.Activity.dispatchTouchEvent(Activity.java:2061) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewRoot.handleMessage(ViewRoot.java:1691) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.os.Handler.dispatchMessage(Handler.java:99) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.os.Looper.loop(Looper.java:123) 02-09 18:36:40.694:
Re: [android-developers] Re: Google Map Error
Thank U. I did the same and i got the answer Pls see the below link tell the answer http://groups.google.com/group/android-developers/browse_thread/thread/9f10a3c2511b4b6d http://groups.google.com/group/android-developers/browse_thread/thread/9f10a3c2511b4b6d On Thu, Feb 11, 2010 at 3:44 PM, Vaikunth vaikunth.kraffs...@gmail.comwrote: Use onCreate() method. Like public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map_test); map=(MapView)findViewById(R.id.map); ::: } I have no issue by calling again. Hope you can get. Regards. On Feb 10, 1:58 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: ok, the exception you see means that you can set content view only once; Make sure you call setContentView() method only once rather than each time you want to bring the activity to foreground. Daniel On Wed, Feb 10, 2010 at 4:44 AM, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank You Daniel. I'm not calling setContentView() on onCreat(). I'm calling setContentView() on some other method. According to my program i can't able to set setContentView() in onCreat(). How to recreate it , to see one more time. can you pls give suggestion?... On Tue, Feb 9, 2010 at 8:14 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: ... Caused by: java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity ... where do you call setContentView() from? It should be called from onCreate(). Daniel On 9 Feb, 13:10, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, when i'm using Google map, it is showing nice. After i'm coming back then try to see one more time newly it is showing error. The error is below 02-09 18:36:40.555: ERROR/AndroidRuntime(300): Uncaught handler: thread main exiting due to uncaught exception 02-09 18:36:40.694: ERROR/AndroidRuntime(300): android.view.InflateException: Binary XML file line #14: Error inflating class unknown 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.app.Activity.setContentView(Activity.java:1622) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at pack.sample.find.mapview(find.java:253) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at pack.sample.find.onClick(find.java:337) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.View.performClick(View.java:2364) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.View.onTouchEvent(View.java:4179) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.widget.TextView.onTouchEvent(TextView.java:6540) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.View.dispatchTouchEvent(View.java:3709) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at android.app.Activity.dispatchTouchEvent(Activity.java:2061) 02-09 18:36:40.694: ERROR/AndroidRuntime(300): at
[android-developers] XPREIA Android Resource
Hi everyone!! I am develop on XPERIA X10 and i need to customize layout for this device. What kind resource parameters i have to use in Android 1.6 trying: - drawable-hdpi - drawable-854x480 - drawable-large nothing work// 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] Re: Images are unsharp/blurry
oki I soved this myself :P Had to place my images and resources under the drawable-mdpi folder... when I created the project for some reason the IDE itself created and placed nearly everything under the drawable-hdpi folder... On 11 feb, 10:16, MobDev developm...@mobilaria.com wrote: Hi, I have been developing on a ADP2 (Google Ion) with a standard screen size (with a resolution of 320x480)... Our designer made some pretty neat Images with which to create the GUI, and when placing everything within the layout XML files it looks pretty good... That is, on the Eclipse renderer, the one who shows you how it will look like on the device... Thus not the emulator itself... Unfortunately when run on the real device the supercrisp and beatifull images become blurry and unsharp... I actually do'nt see why this should happen ? Everything has been designed whilst keeping the target devices resolution into account... Is this because most probably the dpi of the screen on which the Images were (big 24 inch screen) is different that the devices ? And if so how can this be corrected (maybe within the designers application as well, I think he uses Photoshop)... Thanks in advance 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] Re: android and proguard...
Hey there, I am beginning with Android, but have some proguard experience, so here is what I think: You can use optimisations and shrinking as much as you like, but avoid obfuscation. Just think, how many classes in your code are referenced using their names in AndroidManifest.xml. Proguard will happily rename those and overload agressively, but your manifest XML file remains untouched. All classes that are mentioned in the manifest file MUST remain unobfuscated. This is just a theory, but you could test it, by adding '- dontobfuscate' into your proguard settings and checking the effects. By default the obfuscation is ON. Please let the list know about your findings. Daniel Make sure that your Proguard config ALWAYS, NO MATTER WHAT doesn't touch R.class for any of its work. On 11 Feb, 02:35, sdphil phil.pellouch...@gmail.com wrote: trying to integrate proguard into my android project. seems to generate a binary, but when I go to run that binary on the device, I get -- 02-10 18:31:52.219: INFO/Test(10604): gui.StartScreen.clean shutdown: true 02-10 18:31:52.229: INFO/Test(10604): gui.StartScreen.intent: false 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: copyRes1 v0-v7 cat=3 type=2 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: rejecting opcode 0x0c at 0x0045 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: rejected Lgl;.a (Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap; 02-10 18:31:52.229: WARN/dalvikvm(10604): Verifier rejected class Lgl; 02-10 18:31:52.229: DEBUG/AndroidRuntime(10604): Shutting down VM It starts up with a black screen and then just seems to hang - finally comes up with Force Close / Wait dialog (ANR). It almost seems like it can't get at the resources?? I'm a bit at a loss about what to do... ideas? tia. p.s. please don't respond with the merits of using proguard or not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Installation
Hi All, This is Adam, I am working as Mobile Developer. Actually I am new to Android Development. Recently we are going to start Android Application Development, Can anybody please let me know the procedure to install(steps) the Android SDK and Eclipse and other required softwares for the development. Any help regarding this will be more helpful for me. Regards, Adamthulla.K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Installation
So easy.. Follow http://developer.android.com/guide/developing/eclipse-adt.html 2010/2/11 adam adamthu...@gmail.com Hi All, This is Adam, I am working as Mobile Developer. Actually I am new to Android Development. Recently we are going to start Android Application Development, Can anybody please let me know the procedure to install(steps) the Android SDK and Eclipse and other required softwares for the development. Any help regarding this will be more helpful for me. Regards, Adamthulla.K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Alert Dialog
Hi, Pls see the below link tell how to create a dialog box like that? http://img.skitch.com/20090708-t6pc3h3jfhrnxj38sr6wi7i9k3.jpg http://img.skitch.com/20090708-t6pc3h3jfhrnxj38sr6wi7i9k3.jpgThere Dialog Test is Heading. It should be displayed in Bold. You clicked button index 2 is text. It should be in ordinary font. No lines between Heading Text. Heading Text should be in center. can any one tell about this?.. -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] java.io.Exception in AssetManager.readAsset (Android BUG)
Hi, This is a new thread about an old bug. There's a bug in the AssetManager that, if you try to read using a byte buffer a raw resource bigger than 512k (in G2), it will throw this exception: java.io.IOException at android.content.res.AssetManager.readAsset(Native Method) at android.content.res.AssetManager.access$800(AssetManager.java: 36) at android.content.res.AssetManager $AssetInputStream.read(AssetManager.java:542) If you call is.read(), reading one byte per time, it WORKS. However, for a 6MB file, it takes just too long reading 6 million bytes. Questions: 1. Was this bug already fixed in later android devices? My G2 is 1.6. 2. Are there any *usable* workaround for it? 3. Is there a way to access the raw resource from C? thanks 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
Re: [android-developers] How can target activity get the request code in startActiivtyForResult()?
I am starting an activity with startActivityForResult(intent,requestcode). And i am receiving result onActivityResult() call back . The target acivity which gets the intent should get the request code And based upon the request it has to do the specified operation. How can target activity get the request code, which is passed to startActivityForResult(). Add it as an extra in the Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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: Loop audio from mic to earpiece?
Could you post a code sample of that, i have been trying for days to get audio from earpiece :( On Jan 26, 2:54 pm, ani anish198519851...@gmail.com wrote: In cupcake setrouting should work but you need to set the mask properly for it to work.I myself have tried and it is working i.e. the sound is working fromearpiecejust check it properly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Modal Dialogs: the definitive solution
I also found that calling the alert from the VM works fine. However, calling from the SurfaceView will freeze the application. So, i changed the method to wait a few seconds and then quit if its being called from a 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
[android-developers] sending scancode values from linuxapplication (using sendevent)
Hi all, I want to send scan code values from user space to Android screen. can we send this with the sendevent command? Instead from keypad. when tried sendevent device type code value getevent is able to read these values, but iam unable to see this scancode value on screen. To see the sendevent -scancode value on screen, what conditions need to take care in App layer. Is there any Document r link, which describes how I/P driver sends events to Android screen. can any one tell me the type and code values in sendevent. sendevent device type code value Thanks in advance, yog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 values from Activity to Activity
Hi, I have an app which makes use of several layout-views...Every layout- view also got a class for it, which extend the Activity class... One class for example retrieves some database values whilst offering a search form to the user... Afterwards the user can select one of those values and he gets presented with another screen which gives similar options as the one selected... Anyways, I'd like for the first Activity to be able to send an array with data (Strings for example) to the second one... Right now I show an activity by using : Intent i = new Intent(this, activitysName.class); startActivity(i); I have no idea whilst using this construction how I can initialize the new object with the String array I want to pass to it... So how should this be achieved ? Should I be using something else instead of an Intent-Activity combination ? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: play audio from a stream in android...
Hi Mob Dev Thanks for the reply. yes,i tried storing in files,,but still i get gap between playing 2 files,which i dont want. Is there any other option? If i am able to store in a stream and will be able to play from that ,, it is good. Is there anyway to decode mp3 to PCM ,then store data in a stream,and play? how to use AudioTrack for decoding mp3/AAC data in android? Please reply. Thanks Kavitha On Thu, Feb 11, 2010 at 2:11 PM, MobDev developm...@mobilaria.com wrote: On 10 feb, 13:43, kavitha kavith...@gmail.com wrote: Thanks Mark Murphy, Suppose i play online FM for one hour and want to listen again from start( ie music played before half an hour),,then i need to store all music in a stream and should be able to seek back to that point and start playing at that point. hmmm, to me it sounds like you are confusing what a stream is all about... You want to store it in a stream ? I think what you actually want is to store it in a File on the device itself... The MediaPlayer can seek back, but this does mean that you will havve to read the whole stream (or song) with one MediaPlayer, using two will make it impossible for you to seek back into the first one if you are playing in the second one, as in it's not one continous piece of music/data... I gues streaming would be a good thing, even though the standard streaming capabilities (only mp3 on http) are pretty lacking imho...good quality with low bitrate (like aac) aren't supported... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] What's this Exception?
Hi Sasikumar, appears that you created more intentReceivers than Android can handle. As it is suggesting, you should use unregisterReceiver() whan you don't need more the Receiver. Regards, Rogerio 2010/2/11 Sasikumar.S sasikumar.it1...@gmail.com Hi, What's this Exception? 02-11 11:56:59.015: ERROR/ActivityThread(850): Activity com.pack.MyJavaClass has leaked IntentReceiver android.net.networkconnectivitylistener$connectivitybroadcastrecei...@43c33978that was originally registered here. Are you missing a call to unregisterReceiver()? 02-11 11:56:59.015: ERROR/ActivityThread(850): android.app.IntentReceiverLeaked: Activity com.pack.MyJavaClass has leaked IntentReceiver android.net.networkconnectivitylistener$connectivitybroadcastrecei...@43c33978that was originally registered here. Are you missing a call to unregisterReceiver()? 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread$PackageInfo$ReceiverDispatcher.init(ActivityThread.java:797) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread$PackageInfo.getReceiverDispatcher(ActivityThread.java:608) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ApplicationContext.registerReceiverInternal(ApplicationContext.java:724) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:711) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:705) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:308) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.net.NetworkConnectivityListener.startListening(NetworkConnectivityListener.java:138) 02-11 11:56:59.015: ERROR/ActivityThread(850): at com.google.android.maps.MapActivity.onResume(MapActivity.java:232) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.Activity.performResume(Activity.java:3763) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2937) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2965) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1889) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.os.Handler.dispatchMessage(Handler.java:99) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.os.Looper.loop(Looper.java:123) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread.main(ActivityThread.java:4363) 02-11 11:56:59.015: ERROR/ActivityThread(850): at java.lang.reflect.Method.invokeNative(Native Method) 02-11 11:56:59.015: ERROR/ActivityThread(850): at java.lang.reflect.Method.invoke(Method.java:521) 02-11 11:56:59.015: ERROR/ActivityThread(850): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 02-11 11:56:59.015: ERROR/ActivityThread(850): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 02-11 11:56:59.015: ERROR/ActivityThread(850): at dalvik.system.NativeStart.main(Native Method) -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] What's this Exception?
Thank U Rogerio. 2010/2/11 Rogério de Souza Moraes rogerio.so...@gmail.com Hi Sasikumar, appears that you created more intentReceivers than Android can handle. As it is suggesting, you should use unregisterReceiver() whan you don't need more the Receiver. Regards, Rogerio 2010/2/11 Sasikumar.S sasikumar.it1...@gmail.com Hi, What's this Exception? 02-11 11:56:59.015: ERROR/ActivityThread(850): Activity com.pack.MyJavaClass has leaked IntentReceiver android.net.networkconnectivitylistener$connectivitybroadcastrecei...@43c33978that was originally registered here. Are you missing a call to unregisterReceiver()? 02-11 11:56:59.015: ERROR/ActivityThread(850): android.app.IntentReceiverLeaked: Activity com.pack.MyJavaClass has leaked IntentReceiver android.net.networkconnectivitylistener$connectivitybroadcastrecei...@43c33978that was originally registered here. Are you missing a call to unregisterReceiver()? 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread$PackageInfo$ReceiverDispatcher.init(ActivityThread.java:797) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread$PackageInfo.getReceiverDispatcher(ActivityThread.java:608) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ApplicationContext.registerReceiverInternal(ApplicationContext.java:724) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:711) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:705) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:308) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.net.NetworkConnectivityListener.startListening(NetworkConnectivityListener.java:138) 02-11 11:56:59.015: ERROR/ActivityThread(850): at com.google.android.maps.MapActivity.onResume(MapActivity.java:232) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.Activity.performResume(Activity.java:3763) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2937) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2965) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1889) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.os.Handler.dispatchMessage(Handler.java:99) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.os.Looper.loop(Looper.java:123) 02-11 11:56:59.015: ERROR/ActivityThread(850): at android.app.ActivityThread.main(ActivityThread.java:4363) 02-11 11:56:59.015: ERROR/ActivityThread(850): at java.lang.reflect.Method.invokeNative(Native Method) 02-11 11:56:59.015: ERROR/ActivityThread(850): at java.lang.reflect.Method.invoke(Method.java:521) 02-11 11:56:59.015: ERROR/ActivityThread(850): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 02-11 11:56:59.015: ERROR/ActivityThread(850): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 02-11 11:56:59.015: ERROR/ActivityThread(850): at dalvik.system.NativeStart.main(Native Method) -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] passing values from Activity to Activity
Anyways, I'd like for the first Activity to be able to send an array with data (Strings for example) to the second one... Right now I show an activity by using : Intent i = new Intent(this, activitysName.class); startActivity(i); I have no idea whilst using this construction how I can initialize the new object with the String array I want to pass to it... So how should this be achieved ? Should I be using something else instead of an Intent-Activity combination ? Call putExtra() on the Intent after construction to attach the String array. Call getStringArrayExtra() on the Intent in the receiving Activity to get it back. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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] how to store raw file uncompressed
Hi, I'm trying to store a raw uncompressed file into the apk. I already tried rename it to mp3, png, zip, but all these extensions still compress the file: if i open the apk using winzip, it shows tcfiles.png 4194304 - 4080. I already heard about the aapt -0 to store uncompressed, but no one tells how to do this from within eclipse. I don't call aapt by hand, i use the one generated by eclipse. Any help? thanks 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] Re: passing values from Activity to Activity
Call getStringArrayExtra() on the Intent in the receiving Activity to get it back. I have no Intent in the receiving Activity ? Or is that the Bundle which comes with public void onCreate(Bundle savedInstanceState) ? On 11 feb, 13:46, Mark Murphy mmur...@commonsware.com wrote: Anyways, I'd like for the first Activity to be able to send an array with data (Strings for example) to the second one... Right now I show an activity by using : Intent i = new Intent(this, activitysName.class); startActivity(i); I have no idea whilst using this construction how I can initialize the new object with the String array I want to pass to it... So how should this be achieved ? Should I be using something else instead of an Intent-Activity combination ? Call putExtra() on the Intent after construction to attach the String array. Call getStringArrayExtra() on the Intent in the receiving Activity to get it back. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: passing values from Activity to Activity
Call getStringArrayExtra() on the Intent in the receiving Activity to get it back. I have no Intent in the receiving Activity ? Call getIntent() to get the Intent that launched the Activity. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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] slideshow of images
Hi all, I have set of images .I want to show it one by one. how we can achieve in android. if someone have block of code plz help me. Thanks. -- Regards, Narendra B 9632382960, Bangalore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: passing values from Activity to Activity
aha ! look at that ! thanks a lot for the answer it helped me out :D I have to say that It's all pretty confusing, you got your Java class, your XML layout, your activity, your Intent, your Context, your bundles etc... Inter-object communication isn't very easy (or at least not as transparant as in J2ME), just passign a reference and using its get/ set methods or whatever... Well I did get your book (together with other 4 books!), and after this first hacked demo for our app I will be investing much more time into this complex hierarchy of classes and methologies... On 11 feb, 14:10, Mark Murphy mmur...@commonsware.com wrote: Call getStringArrayExtra() on the Intent in the receiving Activity to get it back. I have no Intent in the receiving Activity ? Call getIntent() to get the Intent that launched the Activity. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.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] After downloading an application with two Launcher components from the Marketplace, clicking Open will cause a crash
Create a sample application with two launcher icons. For example, two components such as: application ... activity ... android:name=TestActivity01 intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity ... android:name=TestActivity02 intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Either install the application via downloading from the Marketplace, or via AppInstaller. When the message box asks you if you would like to run the application, an exception is thrown: 02-03 16:42:44.270: ERROR/AndroidRuntime(395): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.xxx.xxx/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml? 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1 480) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.startActivityForResult(Activity.java:2660) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.startActivity(Activity.java:2704) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.packageinstaller.InstallAppDone.onClick(InstallAppDone.java: 105 ) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.performClick(View.java:2344) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.onTouchEvent(View.java:4133) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.widget.TextView.onTouchEvent(TextView.java:6504) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.dispatchTouchEvent(View.java:3672) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEv ent(PhoneWindow.java:1712) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneW indow.java:1202) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.dispatchTouchEvent(Activity.java:1987) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(P honeWindow.java:1696) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.os.Handler.dispatchMessage(Handler.java:99) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.os.Looper.loop(Looper.java:123) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.ActivityThread.main(ActivityThread.java:4203) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at java.lang.reflect.Method.invokeNative(Native Method) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at java.lang.reflect.Method.invoke(Method.java:521) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java: 791) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at dalvik.system.NativeStart.main(Native Method) The crash happens because com.android.internal.app.ResolverActivity is trying to find a (single) component which resolves the following intent: action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / Please note that this has been tested BOTH with the AppInstaller, and the actual Marketplace on a real device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] After downloading an application with two Launcher components from the Marketplace, clicking Open will cause a crash
Bug reports really need to go to http://b.android.com. If you post this there, and if you think of it, write back with a link to the issue, as I'd like to keep an eye on this one. Thanks! Create a sample application with two launcher icons. For example, two components such as: application ... activity ... android:name=TestActivity01 intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity ... android:name=TestActivity02 intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Either install the application via downloading from the Marketplace, or via AppInstaller. When the message box asks you if you would like to run the application, an exception is thrown: 02-03 16:42:44.270: ERROR/AndroidRuntime(395): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.xxx.xxx/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml? 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1 480) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.startActivityForResult(Activity.java:2660) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.startActivity(Activity.java:2704) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.packageinstaller.InstallAppDone.onClick(InstallAppDone.java: 105 ) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.performClick(View.java:2344) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.onTouchEvent(View.java:4133) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.widget.TextView.onTouchEvent(TextView.java:6504) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.dispatchTouchEvent(View.java:3672) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEv ent(PhoneWindow.java:1712) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneW indow.java:1202) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.dispatchTouchEvent(Activity.java:1987) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(P honeWindow.java:1696) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.os.Handler.dispatchMessage(Handler.java:99) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.os.Looper.loop(Looper.java:123) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.ActivityThread.main(ActivityThread.java:4203) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at java.lang.reflect.Method.invokeNative(Native Method) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at java.lang.reflect.Method.invoke(Method.java:521) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java: 791) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at dalvik.system.NativeStart.main(Native Method) The crash happens because com.android.internal.app.ResolverActivity is trying to find a (single) component which resolves the following intent: action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / Please note that this has been tested BOTH with the AppInstaller, and the actual Marketplace on a real device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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] Re: After downloading an application with two Launcher components from the Marketplace, clicking Open will cause a crash
Sorry for not including the link earlier. Issue 6579: After downloading an application with two Launcher components from the Marketplace, clicking Open will cause a crash http://code.google.com/p/android/issues/detail?id=6579 Thanks, Par On Feb 11, 9:03 am, Mark Murphy mmur...@commonsware.com wrote: Bug reports really need to go tohttp://b.android.com. If you post this there, and if you think of it, write back with a link to the issue, as I'd like to keep an eye on this one. Thanks! Create a sample application with two launcher icons. For example, two components such as: application ... activity ... android:name=TestActivity01 intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity ... android:name=TestActivity02 intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Either install the application via downloading from the Marketplace, or via AppInstaller. When the message box asks you if you would like to run the application, an exception is thrown: 02-03 16:42:44.270: ERROR/AndroidRuntime(395): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.xxx.xxx/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml? 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: 1 480) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.startActivityForResult(Activity.java:2660) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.startActivity(Activity.java:2704) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.packageinstaller.InstallAppDone.onClick(InstallAppDone.java: 105 ) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.performClick(View.java:2344) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.onTouchEvent(View.java:4133) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.widget.TextView.onTouchEvent(TextView.java:6504) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.View.dispatchTouchEvent(View.java:3672) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEv ent(PhoneWindow.java:1712) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneW indow.java:1202) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.Activity.dispatchTouchEvent(Activity.java:1987) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(P honeWindow.java:1696) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.os.Handler.dispatchMessage(Handler.java:99) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.os.Looper.loop(Looper.java:123) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at android.app.ActivityThread.main(ActivityThread.java:4203) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at java.lang.reflect.Method.invokeNative(Native Method) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at java.lang.reflect.Method.invoke(Method.java:521) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java: 791) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 02-03 16:42:44.270: ERROR/AndroidRuntime(395): at dalvik.system.NativeStart.main(Native Method) The crash happens because com.android.internal.app.ResolverActivity is trying to find a (single) component which resolves the following intent: action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER
Re: [android-developers] Re: After downloading an application with two Launcher components from the Marketplace, clicking Open will cause a crash
Sorry for not including the link earlier. Issue 6579: After downloading an application with two Launcher components from the Marketplace, clicking Open will cause a crash http://code.google.com/p/android/issues/detail?id=6579 Hey, thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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: SQLiteDiskIOException happens when querying 4000 rows data with order by japanese kanji
After digging further, I got it. This disk I/O error is caused because the default size(4m) of sqlite_stmt_journals partition is too small for our query. If I changed init.rc to make big size partition(8m), 4000 rows data can be selected without any error. So I wonder what is the best solution for such problem. we can not modify user's device's firmware and impose any limition on our app, neither. Here is what I have thought: 1) Not get all 4000 rows data out of sqllite at one time. Do it little by little. Is there any other resolution? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SQLiteDiskIOException happens when querying 4000 rows data with order by japanese kanji
If I were to design such an app, I would only pull the data I needed at that moment. Are you going to use 4000 rows of data in one swoop or are you using a subset of that query? Most likely, your app is going to have a next/previous type setup. Sucking up 4000 rows from the database will not only be time consuming but also require a lot of memory, battery power and CPU. Pulling only what you need is far more efficient. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 store raw file uncompressed
If you put it under the assets directory, it will stay unmolested. That is also where you put external libraries. On Feb 11, 5:51 am, guich guiha...@gmail.com wrote: Hi, I'm trying to store a raw uncompressed file into the apk. I already tried rename it to mp3, png, zip, but all these extensions still compress the file: if i open the apk using winzip, it shows tcfiles.png 4194304 - 4080. I already heard about the aapt -0 to store uncompressed, but no one tells how to do this from within eclipse. I don't call aapt by hand, i use the one generated by eclipse. Any help? thanks 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] Regarding apn
Hi all, I am able to add apn though programming. And my app has the functionality of accessing the net. Now the question is, how to do the program that my app should use this added apn whenever it is trying to access the internet. can any one please help me? Thanks, Manoj. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 store raw file uncompressed
Hi, I put under \android\apps\tcvm\res\raw\tcfiles.zip Is this an asset folder? thanks! 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] Re: HttpPost, ssl and error 'Not trusted server certificate'
3) Bob Lee explains how to get certificate from the server and add to keystore. http://crazybob.org/2010/02/android-trusting-ssl-certificates.html Concerning #2 (getResponseCode throws an exception), see workaround in this bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4523989 See bugs 4513568 and 4160499 for more HttpUrlConnection workarounds. On Feb 9, 5:23 am, badzio bad...@gmail.com wrote: Hi all, I want to use HttpPost over https/ssl. I get 'Not trusted server certificate' error. I've found a lot of posts, seems that many people have similar problems and I've found two suggestions: 1) Change server's certificate. Current certificate is self-signed as localhost.localdomain. Unfortunetly it's not my server and I cannot change the certificate. 2) Use HttpsUrlConnection instead of HttpClient. But I cannot use it because sometimes (when response's code is 401 or 403) I got IOException during getting response code or reading inputstream. So I've found 3rd solution - use httpclient, when system throws excetpion 'not trusted server certificate' than display warning, inform user that certificate is not trusted and ask if he wants to add this one to the keystore (webbrowser works this way). But I've no idea how to get certificate from the server and add to keystore. Any idea? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Singleton Service ???
Hi, I'd like to know if it's possible to create a Singelton Service throughout an application ? Let's say I'd like to cerate a Service to play some mp3... I'd like it to be a Singleton, we don't want two mp3 tracks playing through each other (well maybe some would want that, but in my case I'm not making a DJ app) :P Also this Service should be somewhat dynamic as in there should be some interface so that I can stop, pauze and play the mp3 file/ stream... Now I have a couple of questions : - is this feasable ? - should I be using a Service or something else ? - how can an interface be set up inbetween an application and a service so that I can start, stop, pauze stuff ? - can there be something like a Singleton Service ? Thanks in advance 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
Re: [android-developers] Re: Drawing to MapView Incredibly Slow
On Thu, Feb 11, 2010 at 2:35 AM, aspekt9 aspe...@gmail.com wrote: If I'm both drawing lines and utilizing items, would it be wise to implement both a MapOverlay and a MapItemizedOverlay? Or do I just need one? I haven't done line drawing in the map view, but probably just one. Override draw(), call super.draw() to do the default drawing and then to draw your lines however that's done. On Thu, Feb 11, 2010 at 2:55 AM, aspekt9 aspe...@gmail.com wrote: What's the right way to be drawing these? I was under the impression you were drawing these points / lines on your own, but now I see you're using ItemizedOverlay. I would expect the ItemizeOverlay class to be optimized for this sort of thing already (i.e., the map would not draw overlay items that are not in the view), so I think doing a bounds check yourself might be overkill, and may in fact make things worse if you do it every time draw is called. Of course I don't know the implementation details of the ItemizedOverlay class to know for certain. I would do as others have suggested and keep track of when the view changes (on zooming or panning basically) and needs to be updated. When this happens, in the draw() call then and only then would you need to update your list of items to draw. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Singleton Service ???
I'd like to know if it's possible to create a Singelton Service throughout an application ? Services are singletons by their very nature. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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: Singleton Service ???
well, thats a good thing especially in my situation :D Now my next most prioritized question, can I communicate with a Service ? Are there some kind of interfaces for that ? Btw, you are a fast responder Mark ;) Thanks for your interest and time :D On 11 feb, 17:11, Mark Murphy mmur...@commonsware.com wrote: I'd like to know if it's possible to create a Singelton Service throughout an application ? Services are singletons by their very nature. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.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] GPS coverage
Does the GPS getLocation still work if you are outside the range of cellphone coverage? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Singleton Service ???
Now my next most prioritized question, can I communicate with a Service ? Absolutely. Are there some kind of interfaces for that ? The SDK samples will demonstrate the local binding pattern. You can also find an example of that here: http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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: Weird stuff - help!
Okay, after banging my head on the wall I am able to reduce the number of crashes..Still not 100% , when I run car home it still crashes. On Feb 10, 5:36 pm, nikhil nik...@gmail.com wrote: Do we have any one from google on this forum? I connected the mobile phone to the machine remove my app and started the default google car home app and it shows this in the logcat. 02-10 15:19:18.717: INFO/dalvikvm(20930): Uncaught exception thrown by finalizer (will be discarded): 02-10 15:19:18.717: INFO/dalvikvm(20930): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@447d7c70 on suggestions that has not been deactivated or closed 02-10 15:19:18.717: INFO/dalvikvm(20930): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 02-10 15:19:18.717: INFO/dalvikvm(20930): at dalvik.system.NativeStart.run(Native Method) 02-10 15:19:18.717: INFO/dalvikvm(20930): Uncaught exception thrown by finalizer (will be discarded): 02-10 15:19:18.717: INFO/dalvikvm(20930): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@44803170 on suggestions that has not been deactivated or closed 02-10 15:19:18.717: INFO/dalvikvm(20930): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 02-10 15:19:18.717: INFO/dalvikvm(20930): at dalvik.system.NativeStart.run(Native Method) 02-10 15:19:18.727: INFO/dalvikvm(20930): Uncaught exception thrown by finalizer (will be discarded): 02-10 15:19:18.727: INFO/dalvikvm(20930): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@44af3658 on suggestions that has not been deactivated or closed 02-10 15:19:18.727: INFO/dalvikvm(20930): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 02-10 15:19:18.727: INFO/dalvikvm(20930): at dalvik.system.NativeStart.run(Native Method) 02-10 15:19:18.727: INFO/dalvikvm(20930): Uncaught exception thrown by finalizer (will be discarded): 02-10 15:19:18.727: INFO/dalvikvm(20930): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@44b04dd8 on suggestions that has not been deactivated or closed 02-10 15:19:18.727: INFO/dalvikvm(20930): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 02-10 15:19:18.727: INFO/dalvikvm(20930): at dalvik.system.NativeStart.run(Native Method) 02-10 15:19:18.737: INFO/dalvikvm(20930): Uncaught exception thrown by finalizer (will be discarded): 02-10 15:19:18.737: INFO/dalvikvm(20930): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@449aba58 on suggestions that has not been deactivated or closed 02-10 15:19:18.737: INFO/dalvikvm(20930): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 02-10 15:19:18.737: I NFO/dalvikvm(20930): at dalvik.system.NativeStart.run(Native Method) 02-10 15:19:18.737: INFO/dalvikvm(20930): Uncaught exception thrown by finalizer (will be discarded): 02-10 15:19:18.737: INFO/dalvikvm(20930): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@44b38b98 on suggestions that has not been deactivated or closed 02-10 15:19:18.737: INFO/dalvikvm(20930): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 02-10 15:19:18.737: INFO/dalvikvm(20930): at dalvik.system.NativeStart.run(Native Method) When I run Car Home alongwith my app some of the exception messages received are as follows: 02-10 15:30:36.797: WARN/System.err(21476): java.net.SocketTimeoutException: The operation timed out 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native Method) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.java: 478) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java: 565) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java: 87) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java: 103) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java: 191) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java: 82) 02-10 15:30:36.797: WARN/System.err(21476): at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java: 174) 02-10 15:30:36.797: WARN/System.err(21476): at
[android-developers] How to get video frames using camera startPreview callback method in native
Hello, In Java using camera class and setPreviewCallback method we can get the video frames which are being previewed. Now I am trying to get the video frames using the similar approach at the native layer. I tried using libcameraservice.so and various classes available like CameraService, CameraHardwareInterface etc.. but not able to create the instance and get the callback. Has anybody tried this approach? Any pointers in this regard will be of great help. Thanks in advance. Vishal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 and proguard...
Class names referenced in the manifest and other XML files are probably what most of those -keep public class * extends android.app.Activity like configuration lines are for in the various examples of using ProGuard with Android out there: http://proguard.sourceforge.net/manual/examples.html#androidapplications http://blog.javia.org/android-proguard-with-useful-stack-traces/ On Feb 11, 6:10 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Hey there, I am beginning with Android, but have some proguard experience, so here is what I think: You can use optimisations and shrinking as much as you like, but avoid obfuscation. Just think, how many classes in your code are referenced using their names in AndroidManifest.xml. Proguard will happily rename those and overload agressively, but your manifest XML file remains untouched. All classes that are mentioned in the manifest file MUST remain unobfuscated. This is just a theory, but you could test it, by adding '- dontobfuscate' into your proguard settings and checking the effects. By default the obfuscation is ON. Please let the list know about your findings. Daniel Make sure that your Proguard config ALWAYS, NO MATTER WHAT doesn't touch R.class for any of its work. On 11 Feb, 02:35, sdphil phil.pellouch...@gmail.com wrote: trying to integrate proguard into my android project. seems to generate a binary, but when I go to run that binary on the device, I get -- 02-10 18:31:52.219: INFO/Test(10604): gui.StartScreen.clean shutdown: true 02-10 18:31:52.229: INFO/Test(10604): gui.StartScreen.intent: false 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: copyRes1 v0-v7 cat=3 type=2 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: rejecting opcode 0x0c at 0x0045 02-10 18:31:52.229: WARN/dalvikvm(10604): VFY: rejected Lgl;.a (Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap; 02-10 18:31:52.229: WARN/dalvikvm(10604): Verifier rejected class Lgl; 02-10 18:31:52.229: DEBUG/AndroidRuntime(10604): Shutting down VM It starts up with a black screen and then just seems to hang - finally comes up with Force Close / Wait dialog (ANR). It almost seems like it can't get at the resources?? I'm a bit at a loss about what to do... ideas? tia. p.s. please don't respond with the merits of using proguard or not... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Spinner Context Menu Focus Events
I want to detect Search Event in my Activity to be able to rearrange my view before Global Search is started. I managed to detect start of Search in two ways: 1. OnKey event, if keyCode == KeyEvent.KEYCODE_SEARCH 2. onSearchRequested() function is being called But, these two events are not send to my application if some dialog is displayed in my activity, including Spinner options, ContextMenu, About box... When dialog is opened my Activity loses focus and no key events are send to it. How do I send events to Activity, or handle events in Spinner dialog? Its still my application after all. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 fails every time at first startup.
Each time I run the emulator for the first time, I fail to connect to it. It 'disappears' from ddms just about when it's about to go from 'offline' to 'online' with the following stacktrace: 32:58 E/DDMS: device (emulator-5554) request rejected: device offline java.io.IOException: device (emulator-5554) request rejected: device offline at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:726) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:363) at com.android.ddmlib.Device.executeShellCommand(Device.java: 275) at com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:15 6) at com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:12 3) at com.android.ddmuilib.SelectionDependentPanel.deviceSelected(Selection DependentPanel.java:52) at com.android.ddms.UIThread.selectionChanged(UIThread.java: 1652) at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:753 ) at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:741 ) at com.android.ddmuilib.DevicePanel.access $1100(DevicePanel.java:56) at com.android.ddmuilib.DevicePanel $1.widgetSelected(DevicePanel.java:36 0) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at com.android.ddms.UIThread.runUI(UIThread.java:474) at com.android.ddms.Main.main(Main.java:105) Does anyone else have this problem? If I kill adb.exe and emulator.exe and retry, everything works fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PVMFFailure when using MediaPlayer for radio streams
I can make this work on 1.6 with this link http://www.colorado.edu/AmStudies/lewis/Design/blue.mp3 What is the url you are trying to connect to? On Jan 29, 6:08 am, David trend...@gmail.com wrote: ps-I am using version 1.5 on a HTC phone On Jan 14, 9:48 pm, Tanmay tanm...@gmail.com wrote: I tried doing this in 1.6 but still gave me the Prepare Failed 0x1 error along with thePVMFFailurein the log. Has there been any solution to this one developed yet? On Dec 14 2009, 10:13 pm, YaushiIizuka vse5...@gmail.com wrote: Hi. String url = http://your.url;; MediaPlayer mp = new MediaPlayer(); mp.setDataSource(url); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.prepare(); mp.start(); On 10月23日, 午後3:28, dede dede830...@126.com wrote: Hi, In 1.6,I also try to play stream through setDataSource(http:// xxx/.mp3), but also it return IOException: prepare failed, status=0x1. If set the url into windows media player, it can play correctly, I wanna know your problem whether be resolved? If yes, can u tell me the solution,thanks very much. On 10月7日, 上午5时41分, iwhoyt wallace...@hotmail.com wrote: In 1.5 I was able to stream an mp3 over http by passing the url to setDataSource(). However I started gettingPVMFFailures in 1.6. For me the issue was the Content-Type http header. If the header was set correctly (Content-Type: audio/mpeg), the stream played. Otherwise if failed during PLAYER_INIT. On Sep 2, 2:32 am, siliconeagle rrmu...@gmail.com wrote: Also the URl is a http (MP3) stream URL - as opposed tioo other opost where RTSP is being tried. It looks like it should just work. Has anyone else got streaming working via a streaming URL? On Sep 1, 1:24 pm, siliconeagle rrmu...@gmail.com wrote: I am trying to build streaming radio into my app, which works fines streaming files over the internet, but when i try to use a shoutcast url in get the error below, which from the soruce code looks liek the mediaPlayer is looking for the duration in the header. Does anyone know if shoutcast urls will work withthe default media player? Or do i have to download chunks into a ping-pong buffer sor something? The url has no porblems downloading via the browser. the error is:- 09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1 09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views 09-01 11:53:30.445 E/PlayerDriver( 35): Command PLAYER_INIT completed with an error or infoPVMFFailure 09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1) 09-01 11:53:30.504 I/NotificationService( 55): enqueueToast pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub $pr...@4323b8f8 duration=1000 09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare failed.: status=0x1 09-01 11:53:30.644 W/System.err(16972): at android.media.MediaPlayer.prepare(Native Method) 09-01 11:53:30.644 W/System.err(16972): at net.robmunro.mypod.util.MediaPlayerWrapper.playMedia (MediaPlayerWrapper.java:111) the code i use is:- try { mPlayer.stop(); mPlayer.reset();} catch (Exception e) { e.printStackTrace();} this.source=source; if (source.equals(Globals.SOURCE_LOCAL)) { mPlayer.setDataSource(f.path); buffered = 0;} else if (source.equals(Globals.SOURCE_STREAM)) { mPlayer.setDataSource(f.remoteUrl); buffered = 100;} mPlayer.prepare(); mPlayer.start(); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Singleton Service ???
Or use startService() to send commands to it. On Thu, Feb 11, 2010 at 8:25 AM, Mark Murphy mmur...@commonsware.comwrote: Now my next most prioritized question, can I communicate with a Service ? Absolutely. Are there some kind of interfaces for that ? The SDK samples will demonstrate the local binding pattern. You can also find an example of that here: http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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.comandroid-developers%2bunsubscr...@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] Re: Modal Dialogs: the definitive solution
On Thu, Feb 11, 2010 at 3:49 AM, guich guiha...@gmail.com wrote: I also found that calling the alert from the VM works fine. However, calling from the SurfaceView will freeze the application. So, i changed the method to wait a few seconds and then quit if its being called from a View. Um. You should probably sit down and understand the threading going on in your program, and have it to the correct things based on that, rather that using timeouts (with a few seconds!) to work around bugs in it. If you are saying that calling from the SurfaceView means you are trying to do your block dialog hack from a callback on SurfaceView, then yes this will deadlock, because you are doing this on the main thread, because all of these callbacks are defined to happen on the thread running the containing window, which for normal windows is the main thread. So just don't do that. -- 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] alarm being triggered, but app not launched...
I am setting an alarm like thus: AlarmManager mgr = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); mgr.setRepeating( AlarmManager.RTC_WAKEUP, msecs, INTERVAL_MSECS, pendingIntent ); to go off at 3am in the morning. the alarm gets caught by a broadcast receiver. in the onReceive method of the broadcast receiver, I am acquiring a wakelock and starting a service. @Override public void onReceive(Context context, Intent intent) { PowerManager mgr = (PowerManager) context.getSystemService(Context.POWER_SERVICE); lock = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_NAME); ... context.startService(new Intent(context, MyService.class)); in my service I am trying to start my app -- @Override public void onStart(Intent intent, final int startId) { super.onStart(intent, startId); Intent intentStartMyActivity = new Intent(Intent.ACTION_MAIN); intentStartMyActivity.putExtra(com.test.main, true); startActivity( intentStartMyActivity ); I have some additional logging my start activity and discovered that sometimes this works and sometimes it doesn't. It will work like 4 nights in a row and then on the 5th night, it won't work, and then it will work three more times after that. Any ideas on why it might 'sometimes' not work? tia. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Modal Dialogs: the definitive solution
On Tue, Feb 9, 2010 at 9:39 AM, Frank Weiss fewe...@gmail.com wrote: The conundrum on Android is that user code can't block in a UI thread and non-UI threads can't manipulate the UI. It is almost trivial to, from another thread, schedule a Runnable on the window's thread to do work on it: void myThreadDoingStuff() { // ... final int viewVisibility = somethingWeComputed; // final View view = getSomeViewInWindow(); view.getHandler().post(new Runnable() { public void run() { view.setVisibility(viewVisibility); } }); // ... } -- 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] Using own maps in mapview
Hi all, I am building an app for some experiment which involves use of specific maps, I have these maps as .png and .svg images. I am however having trouble with using MapView to load these maps and view them. Could I get any help on this. 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] Instructing ItemizedOverlay when to re-draw
I over boolean draw() and had it return true to have my overlay continually refresh and 'animate' the markers. However, this happens continuously and my backing data only changes periodically. My overlay is already aware of when the data changes. Any idea how I can instruct ItemizedOverlay to re-draw? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Music playing causes SoundPool Notification Stream to play at half volume
It seems that a combination of SoundPool and music playing has an unexpected and unwanted behavior: When music is playing (on STREAM_MUSIC), even if its volume is down, the sounds played by SoundPool (on STREAM_NOTIFICATION) are at 50% of the volume than when no music is playing. This is the code I'm using: code SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); // a few of those: sound_id = soundPool.load(context, context.getResources().getIdentifier( sound1, raw, com.package.name) ,1), // later this: final AudioManager manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); final int volume = manager.getStreamVolume(AudioManager.STREAM_MUSIC); manager.setStreamVolume(AudioManager.STREAM_MUSIC, volume/2, 0); soundPool.play(sound_id, 1f, 1f, 1, 0, 1); new Handler().postDelayed(new Runnable() { public void run() { manager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); } }, 1000); /code If no music is currently playing, the sounds are at full volume, nice and clear. If music is playing, the music gets attenuated correctly, but the sound still only plays at 50% volume. If anyone knows anything about this, or a workaround, I would really love to know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] FileNotFoundException on FileOutputStream when writing on sdcard, no idea why
Hi, I'm trying to write a file to a sdcard, I'm using the same writeToFile() function in all my apps, and I dont know why, it wont work for this one, no idea why. It works for all the other apps, but not for this one. I have two classes, GPSTest, and GPSListener. writeToFile() is in GPSListener, and called from this one too. Here is the code: public void writeToFile(String text) { // SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); // resultsFile = prefs.getString(fileName, default); BufferedOutputStream buf = null; File file = new File(/sdcard/GPS Test/results/results.txt); try { buf = new BufferedOutputStream( new FileOutputStream(file,true)); buf.write(text.getBytes()); System.out.println(text.getBytes()); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { try { if (buf != null) { buf.flush(); buf.close(); } } catch (IOException ex) { ex.printStackTrace(); } } } Thanks for your help, I really cant figure it 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
[android-developers] Mapping from J2ME to Android
Hi, I am currently working on the mapping from J2ME to android. I am stuck at a point where I need to map the concept of double buffering in J2ME to its equivalent in Android. I know that SurfaceView would help me achieve this. My main concern is where I need to map the flushgraphics() method. The flushgraphics function in J2ME does the swapping of the buffers. From what I know in Android as well we have two buffers - back buffer and front buffer. In order to draw we first lockCanvas() , then draw and then unlockCanvasAndPost(). I am not sure how should I swap the buffers. Any kind of help and guidance is highly appreciated. Thanks, Praj. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Efficiently debugging Mixed Java/C Applications
It seems that the development of mixed Java/C applications is facing some issues with the current NDK. This comes from the fact that as soon as an application moves from the Java world to the C routines, the users looses the debugging visibility. gdb-server seems to be the more prominent approach to do this as well as the use of printf. Looking at the web there are some interesting notes on this topic based on using soft emulator of the hardware. Javal level visibility can be combined with visibility in the C routine and the interaction between the OS layer and the Java layer. The information is located on the google virtual platform user group: http://groups.google.com/group/virtual-platform-users?hl=en You can also try the soft emulator through the web http://www.coware.com/solutions/vp_saas.php -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Particular Activity Finish
1. use startActivityForResult() and in sample2 call finish() then in sample1-activityForResult() call finish() or 2. use startActivity() and in sample2 intent, assign some boolean value and pass to sample1, get the boolean value and acoording to that call finish() in sample1.. Nithin On Feb 11, 11:22 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, In my program i'm using 3 activities. How to close 2 activities at a time?.. Ex:- sample1.java sample2.java sample3.java Now i'm in Sample2.java I need to close Sample1.java sample2.java -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Merge jar files with apk files in android.
Hello Friends, Greetings I'm Using external jar files with my android application and i want to install that jar file with apk file in my android emulator. but i'm unable to merge both the files. I'm using Net Beans IDE. Waiting for your reply guys please be quick if any one knows Regards, Birendrasinh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Text Box on Camera View
Hi everybody, i´m a begginer in Android Developing, and I need put a TextBox on top of a CameraView. I don´t know if it´s posible or not... I wait for your response... Thanks a lot, and sorry for 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] Change Ringtone progrmatically
Hi all,I want to set a ringtone which i downloaded from the net.i am saving the downloaded media files into \sdcard\media\audio folder.I am using the following code. --- RingtoneManager.setActualDefaultRingtoneUri(getBaseContext(), RingtoneManager.TYPE_RINGTONE, ringtoneUri); - But it is not working...Please tell me if any one knows .i need in urgent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HTML5
Does Android browser support HTML5? When I try to play youtube/HTML5 videos I get the following msg.. Your browser does not currently recognize any of the video formats available Click here to visit our frequently asked questions about HTML5 video Any clue what could be missing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Really simple android question
Hello Android Dev's Short FYI: I am new to the Android development, I have the SDK (2.1) and I am running Eclipse. I tried writing the Hello Android basic application. I coped the same code the tutorial has but when I try running the application to see the final result, I am unable to get the Virtual Android to perform the same result as the tutorial. I have created the default AVD that the tutorial explains at the beginning of the tutorial; the problem is the AVD is for Android 1.5, and since I am working with 2.1; Eclipse does not appear to work. I went through the AVD Manager and created a 2.1 virtual device with default settings. The problem is, when I run, I get the emulator, however it just shows the default A N D R O I D screen. It does not show Hello Android like the tutorial explains. Does anyone know what I am missing in order for my basic application to show up? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Switching between activities
Hi All, Im new bee to android development..I have a small issue when switching from one activity to another.. What i want to do is.. in Activity1 which is in Screen1 i have entered some data like Name,Age (all are in textview) and after i moved to Activity2 in Screen2 ..when i clicked Previous button in Screen2 the Activity1 in Screen1 has to be opened and it has to display the details what i entered previously. I successfully transfered the information from Screen1 to Screen2 by using putExtra(),getExtras() How to display the text entered in Screen1 that was entered preoviously. Pls help me out Its very urgent.. Thanks for the information in advance --Cheers Uday -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Features supported in Android's Webkit borwser
Hello All, Is there a page/blog where all the features of Android's webkit browser are listed ? I am particularly interested in - 1. XMLHttpRequest support (AJAX Support) 2. Plugins (what can and cant I do) 3. HTML5 Support, if so to what level, what is included and not 4. What version of WebKit is Android using and finally 5. Javascript - what level of functionality Thanks in advance, Vishwesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] power down
hi, in framework.. i am not able to find shutdown() call when phone power off due to low battery.. anybody can help me out.. 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] Switching between activities
Hi All, Im new bee to android development..I have a small issue when switching from one activity to another.. What i want to do is.. in Activity1 which is in Screen1 i have entered some data like Name,Age (all are in textview) and after i moved to Activity2 in Screen2 ..when i clicked Previous button in Screen2 the Activity1 in Screen1 has to be opened and it has to display the details what i entered previously. I successfully transfered the information from Screen1 to Screen2 by using putExtra(),getExtras() How to display the text entered in Screen1 that was entered preoviously. Pls help me out Its very urgent.. Thanks for the information in advance --Cheers Uday -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reg Monkey and Watchdog issue
Hi Everyone, I ran Monkey with a throttle of 100 milli-seconds on a particular android version and i see that the watchdog kills the system process (i didn't have a debugger attached). However, the same version works fine with a Monkey run (throttle of 500 milli-seconds). Does this mean, Android can't handle quick events through Monkey? Moreover, how to debug this issue? The watchdog hasn't recevied any response within a specific time (i can see that from the code), but how do i figure it out as to who should be sending the response? Thanks in advance ! ! ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with install APK's shared library
Hello, I have the application which is using local shared library for native method. When I install that application by adb install command, it works properly and the shared library in APK installed APK’s data folder like /data/data/com.android.myApk/ lib/libTestNative.so. But if I put myApk into /system/app by build system.img then the share library is not installed in APK’s data folder. If you know why and have any idea for this problem please tell me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NullPointerException while building android app using ant.
Hi All, While building the android app using ant am getting the following exception. Couldn't figure out why these exception are thrown!!! Execute:Java13CommandLauncher: Executing 'D:\Android-2.0\android-sdk- windows\platforms\android-1.5\tools\aapt.exe' with arguments: 'package' '-f' '-M' 'E:\manish_test\timetrack\client\static\android \AndroidManifest.xml' '-S' 'E:\manish_test\timetrack\client\static \android\res' '-A' 'E:\manish_test\timetrack\client\static\android \assets' '-I' 'D:\Android-2.0\android-sdk-windows\platforms \android-1.5\android.jar' '-F' 'C:\CLIENT_BUILDS\QA\3.0.9\Android\11- Feb-2010_b1\XoraTimeTrack.ap_' The ' characters around the executable and arguments are not part of the command. [null] (skipping index file 'E:\manish_test\timetrack \client\static\android\res\drawable\Thumbs.db') Class org.apache.tools.ant.Project loaded from parent loader (parentFirst) Finding class com.android.sdklib.internal.project.ProjectProperties $PropertyType Loaded from D:\Android-2.0\android-sdk-windows\tools\lib \sdklib.jar com/android/sdklib/internal/project/ProjectProperties $PropertyType.class Class java.lang.Enum loaded from parent loader (parentFirst) Class com.android.sdklib.internal.project.ProjectProperties$PropertyType loaded from ant loader (parentFirst) Finding class com.android.sdklib.internal.project.ProjectProperties Loaded from D: \Android-2.0\android-sdk-windows\tools\lib\sdklib.jar com/android/ sdklib/internal/project/ProjectProperties.class Class com.android.sdklib.internal.project.ProjectProperties loaded from ant loader (parentFirst) Class java.util.Map loaded from parent loader (parentFirst) Class java.io.OutputStream loaded from parent loader (parentFirst) Class java.io.FileOutputStream loaded from parent loader (parentFirst) Class java.lang.Throwable loaded from parent loader (parentFirst) Class java.lang.AssertionError loaded from parent loader (parentFirst) Class java.lang.Class loaded from parent loader (parentFirst) Class java.util.HashMap loaded from parent loader (parentFirst) Finding class com.android.sdklib.internal.project.ApkConfigurationHelper Loaded from D:\Android-2.0\android-sdk-windows\tools\lib\sdklib.jar com/android/ sdklib/internal/project/ApkConfigurationHelper.class Class com.android.sdklib.internal.project.ApkConfigurationHelper loaded from ant loader (parentFirst) Finding class com.android.sdklib.internal.project.ApkSettings Loaded from D: \Android-2.0\android-sdk-windows\tools\lib\sdklib.jar com/android/ sdklib/internal/project/ApkSettings.class Class com.android.sdklib.internal.project.ApkSettings loaded from ant loader (parentFirst) [antcall] Exiting E:\manish_test\timetrack\build\build- Android-1.0.xml. BUILD FAILED E:\manish_test\timetrack\build\build-Android-1.0.xml:371: The following error occurred while executing this line: E:\manish_test \timetrack\build\build-Android-1.0.xml:302: java.lang.NullPointerException at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java: 508) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: 288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java: 106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java: 41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Caused by: E:\manish_test\timetrack\build\build-Android-1.0.xml:302: java.lang.NullPointerException at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java: 116) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java: 38) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416) ... 17 more Caused by: java.lang.NullPointerException at com.android.sdklib.internal.project.ApkConfigurationHelper.getSettings(ApkConfigurationHelper.java:
[android-developers] need to send audio file during a call
I have an app through which I can make a call to a number. What I want is to send an prerecorded message or audio file which the receiver will hear once he receive the call. Can any one help me.? here is my code... package com.DialANumber; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; public class DialANumber extends Activity { EditText mEditText_number = null; LinearLayout mLinearLayout_no_button = null; Button mButton_dial = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLinearLayout_no_button = new LinearLayout(this); mEditText_number = new EditText(this); mEditText_number.setText(9830...132); // my number mLinearLayout_no_button.addView(mEditText_number); mButton_dial = new Button(this); mButton_dial.setText(Dial!); mLinearLayout_no_button.addView(mButton_dial); mButton_dial.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { performDial(); } }); setContentView(mLinearLayout_no_button); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_CALL) { performDial(); return true; } return false; } public void performDial(){ if(mEditText_number!=null){ try { Log.e(started, hi); startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel: + mEditText_number.getText(; } catch (Exception e) { e.printStackTrace(); } }//if } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Map API Key
Hi, I have a problem. I accidentally posted a sample project that had my Map API Key on the web for a user I was helping. This Key was registered to my company. What should I do. How can I cancel this Key and obtain another one? Please let me know... Thanks Yassin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fileupload to https in Android
Hi! I am uploading file to web server. HTTP works fine, but HTTPS not. The HTTPS server has a trusted certificate, and i do not get any error on Android or Server, it simply stay sending file (cliente.execute(post)) until timeout expires, if i do no put timemout then it stays sending forever. The code i use: StringBuffer url = new StringBuffer(https://.;); //add text to url... ... ... //Get File File foto = new File(path to file); //Send file HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(client.getParams(), 1); HttpConnectionParams.setConnectionTimeout(client.getParams(),1); HttpPost post = new HttpPost(url.toString()); if (foto != null) { FileEntity fileEntity = new FileEntity(foto,image/jpg); post.setEntity(fileEntity); } client.execute(post); could anyone help??? thanks you very much -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Any Android dev living in Bay Ridge Brooklyn?
Hi Just curious to see how many we are. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Intercept calls to library methods
Hello everyone, I read somewhere that in Android it's possible to write components that basically sit between applications and the Android library classes. Using some kind of interception framework, it would be possible to intercept calls from applications to the Android libraries. This would be perfect for something I'm working on, but I'm having trouble finding the interception mechanism. Can someone help me with this? How can I intercept (Android library) method calls? Thanks! Pieter -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Alert Dialog
First create a dialog, with no header requestWindowFeature(Window.FEATURE_NO_TITLE) Then create the layout in whichever way you want and add the layout to dialog addContentView() On Feb 11, 4:36 pm, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, Pls see the below link tell how to create a dialog box like that? http://img.skitch.com/20090708-t6pc3h3jfhrnxj38sr6wi7i9k3.jpg http://img.skitch.com/20090708-t6pc3h3jfhrnxj38sr6wi7i9k3.jpgThere Dialog Test is Heading. It should be displayed in Bold. You clicked button index 2 is text. It should be in ordinary font. No lines between Heading Text. Heading Text should be in center. can any one tell about this?.. -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 store raw file uncompressed
Hi, I'm trying to store a raw uncompressed file into the apk. I already tried rename it to mp3, png, zip, but all these extensions still compress the file: if i open the apk using winzip, it shows tcfiles.png 4194304 - 4080. I already heard about the aapt -0 to store uncompressed, but no one tells how to do this from within eclipse. I don't call aapt by hand, i use the one generated by eclipse. Any help? thanks 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] Video recording without preview
Hi, I need to capture video without preview. But if I set preview display to null by calling setPreviewDisplay(null) on MediaRecorder instance, it always gives me back an exception prepare failed. The details of logging information is like theses 02-11 23:06:40.921: ERROR/CameraInput(23323): Unsupported parameter(x- pvmf/media-input-node/cap-config-interface;valtype=key_specific_value) 02-11 23:06:40.928: ERROR/CameraInput(23323): VerifiyAndSetParameter failed on parameter #0 02-11 23:06:40.967: ERROR/PVOMXEncNode(23323): PVMFOMXEncNode- Audio_AMRNB::DoPrepare(): Got Component OMX.TI.AMR.encode handle 02-11 23:06:40.975: ERROR/PVOMXEncNode(23323): PVMFOMXEncNode- Video_AVC::DoPrepare(): Got Component OMX.TI.Video.encoder handle 02-11 23:06:44.600: ERROR/CameraHal(23323): Param type 30 not supported 02-11 23:06:44.600: ERROR/CameraHal(23323): Param type 33 not supported 02-11 23:06:44.624: ERROR/CameraInput(23323): No surface is available for display 02-11 23:06:44.624: ERROR/AuthorDriver(23323): Command 13 completed with error -1 02-11 23:06:44.624: ERROR/MediaRecorder(31079): prepare failed: -1 02-11 23:06:44.967: ERROR/Video(31079): Failed to prepare and start video recording 02-11 23:06:44.967: ERROR/Video(31079): java.io.IOException: prepare failed. 02-11 23:06:44.967: ERROR/Video(31079): at android.media.MediaRecorder._prepare(Native Method) 02-11 23:06:44.967: ERROR/Video(31079): at android.media.MediaRecorder.prepare(MediaRecorder.java:471) 02-11 23:06:44.967: ERROR/Video(31079): at com.androidbook.multimedia.Video$1.onClick(Video.java:83) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.View.performClick(View.java:2370) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.View.onTouchEvent(View.java:4185) 02-11 23:06:44.967: ERROR/Video(31079): at android.widget.TextView.onTouchEvent(TextView.java:6568) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.View.dispatchTouchEvent(View.java:3715) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:883) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1700) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: ) 02-11 23:06:44.967: ERROR/Video(31079): at android.app.Activity.dispatchTouchEvent(Activity.java:2061) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1684) 02-11 23:06:44.967: ERROR/Video(31079): at android.view.ViewRoot.handleMessage(ViewRoot.java:1701) 02-11 23:06:44.967: ERROR/Video(31079): at android.os.Handler.dispatchMessage(Handler.java:99) 02-11 23:06:44.967: ERROR/Video(31079): at android.os.Looper.loop(Looper.java:123) 02-11 23:06:44.967: ERROR/Video(31079): at android.app.ActivityThread.main(ActivityThread.java:4353) 02-11 23:06:44.967: ERROR/Video(31079): at java.lang.reflect.Method.invokeNative(Native Method) 02-11 23:06:44.967: ERROR/Video(31079): at java.lang.reflect.Method.invoke(Method.java:521) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 02-11 23:06:44.967: ERROR/Video(31079): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 02-11 23:06:44.967: ERROR/Video(31079): at dalvik.system.NativeStart.main(Native Method) Doesn't the MediaRecorder class allow recording without preview? or should I miss something? TIA, - yesarang -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] on dialog close animation
Hi guys, I want to play an animation when a dialog is being closed. is that possible? I was trying to implement different callbacks. I have a key event listener that listens to the back button click event. When I get this event I start an animation and when it's stopped i launch dismiss. But I find that it's not really a good way to do this. Is there something easier? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Trouble: Windows XP detecting Nexus One by USB
'adb devices' returns 'List of devices attached' followed by nothing, and eclipse doesn't pick up my Nexus One. I've installed the drivers for 'Android Composite ADB Interface'. I've set my Nexus One to 'Development: USB debugging'. I've connected the device to my computer. It's listed under the 'Safely removed' devices interface, but still nothing. Am I missing something? I used this to set up the USB driver: http://d.android.com/sdk/win-usb.html And I followed instructions here: http://d.android.com/guide/developing/device.html I can access the SD Card easily enough, but I'm looking to test my app with eclipse. I've been looking for an answer for a couple of hours, but I haven't had any luck. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problems testing applications on HTC Hero device
And how does your application behave using the emulator (1.5 framework)? On Thu, Feb 11, 2010 at 5:40 AM, brooke brooke.ma...@gmail.com wrote: Hi, I'm trying to make my application (compiled against 2.1) compatible with the 1.5 platform. I've handled all of the res/ folder issues, and have been able to run the app on all platforms without problems. I can run it fine on all emulators, and all devices/OS systems running 1.6 or higher. But on the only 1.5 device I have (HTC Hero), I get intermittent problems. The only 1.5 device I have is an HTC Hero phone I got free at the Sprint developer conference a few months ago. When I test the app on that device, I have occasionally encountered a bug I've not seen anywhere, and can't find any information about. I can install the application via the adb install command (although I get two messages about unknown commands), but after installing the app, the icon can disappear from the home screen, replaced either with a different icon or no icon. When the app is launched in this state, rather than seeing my application name in the title bar, it reads 60.0dip. I don't use this value anywhere in my application. I have never observed this problem on any other phone I've tested on (G1, myTouch, two Motorola Droids, Nexus One), but as I said I've only got one device running 1.5. Any clues or suggestions here? I'm trying to avoid getting other 1.5 devices to test on. Thanks, Brooke -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Hamilton Vera int Administrator (char Network[],char ComputationalSystems[]) http://hvera.wordpress.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] Any way to intercept power button presses when running a service?
I am creating an Android service which constantly runs in the background. I'd like to be able to intercept calls to the power button to: a) prevent the screen coming on and b) handle the power button press in a different manner. This is to enable the user to have a very simple interface to my application and prevent wasting battery powering up the screen when it is not required. I will probably need an alternative mechanism to actually bring the screen back up (such as an extended key press or similar), but this only becomes relevant if what I'm after is possible. Thanks for any advice! Jamie -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] alarm being triggered, but app not launched...
I am setting an alarm like thus: AlarmManager mgr = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); mgr.setRepeating( AlarmManager.RTC_WAKEUP, msecs, INTERVAL_MSECS, pendingIntent ); to go off at 3am in the morning. the alarm gets caught by a broadcast receiver. in the onReceive method of the broadcast receiver, I am acquiring a wakelock and starting a service. @Override public void onReceive(Context context, Intent intent) { PowerManager mgr = (PowerManager) context.getSystemService(Context.POWER_SERVICE); lock = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_NAME); ... context.startService(new Intent(context, MyService.class)); Depending on where 'lock' is defined and when you're releasing the lock, that may not work. in my service I am trying to start my app -- @Override public void onStart(Intent intent, final int startId) { super.onStart(intent, startId); Intent intentStartMyActivity = new Intent(Intent.ACTION_MAIN); intentStartMyActivity.putExtra(com.test.main, true); startActivity( intentStartMyActivity ); Why not just start the activity from the BroadcastReceiver? What's the point of the service? And I really hope that this is either an alarm clock app or you make this configurable, as users may not appreciate an activity spontaneously starting up triggered by some background operation. I have some additional logging my start activity and discovered that sometimes this works and sometimes it doesn't. It will work like 4 nights in a row and then on the 5th night, it won't work, and then it will work three more times after that. Any ideas on why it might 'sometimes' not work? WakeLocks are tricky beasts. I spend a few pages in a book trying to explain how to handle this pattern well. I can't tell whether your code is OK, because it's missing some key pieces, like where 'lock' is declared and when you're releasing the WakeLock. I have the pattern wrapped up in a reusable component, though it is very much not designed for use with an activity: http://github.com/commonsguy/cwac-wakeful You could take a peek at the code (it's not that big) and example to see how to apply it in your app. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Any way to intercept power button presses when running a service?
I am creating an Android service which constantly runs in the background. I'd like to be able to intercept calls to the power button to: a) prevent the screen coming on and b) handle the power button press in a different manner. Sorry, that is not possible from an SDK application. From modified firmware, you can probably do this. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Intercept calls to library methods
I read somewhere that in Android it's possible to write components that basically sit between applications and the Android library classes. Using some kind of interception framework, it would be possible to intercept calls from applications to the Android libraries. This would be perfect for something I'm working on, but I'm having trouble finding the interception mechanism. Can someone help me with this? How can I intercept (Android library) method calls? You can't from an SDK application, sorry. That would be a security hole of the highest magnitude. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Map API Key
I have a problem. I accidentally posted a sample project that had my Map API Key on the web for a user I was helping. This Key was registered to my company. What should I do. How can I cancel this Key and obtain another one? The Maps API key is only usable in conjunction with the matching application signing key, so this should not be a problem. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How To Merge jar files with apk files in android.
I'm Using external jar files with my android application and i want to install that jar file with apk file in my android emulator. but i'm unable to merge both the files. I'm using Net Beans IDE. Put the JAR in your project's libs/ directory, then build the APK as normal. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.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: HTML5
http://www.webmonkey.com/blog/Android_Gets_a_Better_Browser__Now_With_More_HTML5 Should support the video tag - but maype not the necessary codecs? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Really simple android question
Sometimes you have to wait quite a long time for the Android OS inside the VM to boot before your app starts up, depending on how fast your machine is. I sometimes have to wait around a minute. Dan On Feb 10, 6:48 pm, Josh josh...@gmail.com wrote: Hello Android Dev's Short FYI: I am new to the Android development, I have the SDK (2.1) and I am running Eclipse. I tried writing the Hello Android basic application. I coped the same code the tutorial has but when I try running the application to see the final result, I am unable to get the Virtual Android to perform the same result as the tutorial. I have created the default AVD that the tutorial explains at the beginning of the tutorial; the problem is the AVD is for Android 1.5, and since I am working with 2.1; Eclipse does not appear to work. I went through the AVD Manager and created a 2.1 virtual device with default settings. The problem is, when I run, I get the emulator, however it just shows the default A N D R O I D screen. It does not show Hello Android like the tutorial explains. Does anyone know what I am missing in order for my basic application to show up? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: UPnP
How do I download the stuff from the repository? Abhi On Jan 29, 4:11 am, Zhihong GUO gzhh...@gmail.com wrote: Hi skonno, All of the java code is downloaded, but I can't find a Android project to run in emulator or on read device James 'http://sourceforge.net/projects/cgupnpjava/develop';please relocate 2010/1/29 skonno skonno.cybergar...@gmail.com Hi Abhi, I have already ported the following my UPnP framework into Android. CyberLink for Java http://www.cybergarage.org/cgi-bin/twiki/view/Main/CyberLinkForJava To run the framework on Android, please get the latest source codes from the following SVN repository on SourceForge.net. https://sourceforge.net/projects/cgupnpjava/develop Please check it :-) Thanks, Sastoshi Konno http://www.cybergarage.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Really simple android question
It has more to do with how much memory you have than the speed of the processor. On my brand new 1G netbook it takes 4-5 hours!!! Check the Task Manager and I think that you will see that the emulator is eating up all the memory and CPU resources as it swaps memory to disk to make space for itself. Add another G or two of memory and you should be OK. On Feb 11, 10:11 am, Dan S danstow...@gmail.com wrote: Sometimes you have to wait quite a long time for the Android OS inside the VM to boot before your app starts up, depending on how fast your machine is. I sometimes have to wait around a minute. Dan On Feb 10, 6:48 pm, Josh josh...@gmail.com wrote: Hello Android Dev's Short FYI: I am new to the Android development, I have the SDK (2.1) and I am running Eclipse. I tried writing the Hello Android basic application. I coped the same code the tutorial has but when I try running the application to see the final result, I am unable to get the Virtual Android to perform the same result as the tutorial. I have created the default AVD that the tutorial explains at the beginning of the tutorial; the problem is the AVD is for Android 1.5, and since I am working with 2.1; Eclipse does not appear to work. I went through the AVD Manager and created a 2.1 virtual device with default settings. The problem is, when I run, I get the emulator, however it just shows the default A N D R O I D screen. It does not show Hello Android like the tutorial explains. Does anyone know what I am missing in order for my basic application to show up? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Alert Dialog
On Thu, Feb 11, 2010 at 7:24 AM, Nithin nithin.war...@gmail.com wrote: First create a dialog, with no header requestWindowFeature(Window.FEATURE_NO_TITLE) You don't even have to do that. Just don't set a title on your dialog and it won't show up. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en