[android-developers] How to change orientation of customized sliding widget?
hai, i am new to android platform , recently i have developed one customized widget for locking the screen i.e.,sliding widget. it's working fine in protriat mode but when coming to landscape mode it's looking badly. i need to change the orientation same as android native sliding widget but i am not able to do that. please help me out to solve this issue.. 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] What is a 512 by 512 App icon high resolution
I know how to make a 512 by 512 image but what exactly is it for? Should it have lots of shapes/trees/animals on it? or one huge App icon like the 72 by 72 icons? High res? - for TVs? Tabs - what will be its size when viewed in-situ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 build a 2d GUI to an OpenGL ES app?
I understand that GLSurfaceView and SurfaceView are Java classes, but I thought that you should use Open GL C++ for the 3d graphics. I then searched for more information about this and I found the android.opengl package. So do you mean that I should use the android.opengl package to develop the 3d graphics in openGL? Is this the standard way to develop 3d graphics in Android? On 25 Nov, 12:27, Miguel Morales therevolti...@gmail.com wrote: What? No, no C++. Just use a GLSurfaceView to render all your 3dopenGLstuff. Then add an overlay View (maybe a SurfaceView) and add all your regular2Dcontrols/widgets that come with Android. On Thu, Nov 25, 2010 at 3:11 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Do you mean mixing Java and C++ in an Android project? SurfaceView and theGUIin Java and GLSurfaceView and the visual effects in OpenGLC+ +? On 25 Nov, 01:12, Miguel Morales therevolti...@gmail.com wrote: You can simply have a SurfaceView overlaying your GLSurfaceView and draw whatever HUD orGUIelements you want using the regular Android widgets. On Wed, Nov 24, 2010 at 5:43 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: I want to make anOpenGLESversion of my M3GappAstral 3d worlds. Theapphas a2dGUI, from which you can start 10 visual effects. I can port the visual effects toOpenGLES, but how can Ibuildthe 2dGUI? Should I really useOpenGLESfor that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android2DMMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/r... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android2DMMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/revoltingx- Dölj citerad text - - Visa citerad 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
Re: [android-developers] Re: custom view in widget
Hendrik, What are you actually trying to do? Do you need to replace buttons because your widget has several different versions, varying in size and the number of buttons? If that's the case, consider using separate layouts, one for each widget size / number of buttons. You pretty much need this anyway, since initial widget size is specified in widget_info.xml, and there can only be one for each widget declared in the manifest. Once you have a layout with the right number of buttons, you can change them individually with setImageViewResource and setOnClickPendingIntent. This has a side benefit, that only resource id and pending intent id are marshalled cross-process into the home application. Also, I recommend using ImageViews for buttons. They respond to touch events, and you can add visual feedback by using a selector type drawable with an entry for item android:state_pressed=true. Hope this helps. -- Kostya 27.11.2010 2:27, Hendrik Greving пишет: That's a good idea, I'll try that. By the way, if I want to replace one of the buttons from my widget provider per remoteviews, can I do this (for instance with removeAllViews and addView)? I've tried this and the widget than fails loading. Or do I need to set up a layout each for all possible combinations and then use this with updateAppWidget? - Original Message - *From:* Kostya Vasilyev mailto:kmans...@gmail.com *To:* android-developers@googlegroups.com mailto:android-developers@googlegroups.com *Sent:* Friday, November 26, 2010 3:07 PM *Subject:* Re: [android-developers] Re: custom view in widget Yes, portrait mode seems to be somewhat different. I don't have a tablet, but had to fix this for a Motorola Milestone (when the keyboard is pulled out, the home screen rotates). I did this by doing three things: - having separate layouts for portrait and landscape modes (you can use res/layout_port, etc. in a widget); - specifying a larger width for the landscape layout (found empirically, so that my 2*1, 3*1, and 1*1 widgets line up at the edges when placed one below another); - using nine-patches for the backgrounds. One more trick would be to make use of layout_weight, although I haven't needed that. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 1:38 пользователь Hendrik Greving fourhend...@gmail.com mailto:fourhend...@gmail.com написал: So basically the ideal image size for a standard 1-row widget would be 320x100 * 1.5? I did both the minimum APIlevel (7) and enabled scaling (true). The problem I have is that they don't scale in an (emulated-) tablet. The OS seems to scale the width more than the height. I played around with all setting I could imagine, scale type, minimum width, height, wrap_content/fill_parent, 9-patch png's. What would be the standard way to make this work? I saw widget's that apparently can do this. - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com mailto:android-developers@googlegroups.com Sent: Friday, November 26, 2010 2:08 PM Subject: Re: [android-developers] Re: custom view in widget When you read about standard widget sizes, that's in dp units: device independent pixels. On a high-res screen, your layouts are scaled by Android to a larger pixel size (a factor of 1.5 for hdpi). As for your issue with scaling - did you add support for scaling in the manifest? You can do it by either by setting minSdk to 4 and above, or by including a supports-screens element. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 0:45 пользователь Hendrik Greving fourhend...@gmail.com mailto:fourhend...@gmail.com написал: I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com mailto:mmur...@commonsware.com To: android-developers@googlegroups.com mailto:android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget
Re: [android-developers] What is a 512 by 512 App icon high resolution
On Sat, Nov 27, 2010 at 3:12 AM, Droid rod...@gmail.com wrote: I know how to make a 512 by 512 image but what exactly is it for? Should it have lots of shapes/trees/animals on it? or one huge App icon like the 72 by 72 icons? High res? - for TVs? Tabs - what will be its size when viewed in-situ? The people that know the answer to those questions either don't read this list or won't bother to answer. We'll likely have to wait for the inevitably ridiculously belated blog post that will fill developers in when Google feels like it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to manual aggregate contacts?
hi i have a question regarding updating contact, 1 . in my phone book there is some contact which refer to one contact means lookup key field contain the lookup values for other data is't aggregation right? 2. When i am going to update contact the other contact which does not have their own contact_id now the created new as new contact. how can i update contact to keep as android contact application assign values like id to each contact. On Oct 25, 4:54 pm, Goran Krstevski spin.go...@gmail.com wrote: Thanks, now it works with this code: ... ArrayListContentProviderOperation ops = new ArrayListContentProviderOperation(); ops.add(ContentProviderOperation.newUpdate(ContactsContract.AggregationExce ptions.CONTENT_URI) .withValue(AggregationExceptions.TYPE, AggregationExceptions.TYPE_KEEP_TOGETHER) .withValue(AggregationExceptions.RAW_CONTACT_ID1, masterContactId) .withValue(AggregationExceptions.RAW_CONTACT_ID2, contactId).build()); getApplicationContext().getContentResolver().applyBatch(ContactsContract.AU THORITY, ops); ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change orientation of customized sliding widget?
Create a separate layout for the landscape mode. That should work. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Nov 27, 2010 at 2:39 PM, jani basha shaik jani@gmail.comwrote: hai, i am new to android platform , recently i have developed one customized widget for locking the screen i.e.,sliding widget. it's working fine in protriat mode but when coming to landscape mode it's looking badly. i need to change the orientation same as android native sliding widget but i am not able to do that. please help me out to solve this issue.. 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.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] Re: What is a 512 by 512 App icon high resolution
On Nov 27, 9:56 am, TreKing treking...@gmail.com wrote: The people that know the answer to those questions either don't read this list or won't bother to answer. We'll likely have to wait for the inevitably ridiculously belated blog post that will fill developers in when Google feels like it. Cynical, but I fear also true. The management of these developer updates seems rather odd - for example with the new rating system, we get told the exact date when new and updated apps will require a rating and that if we do not provide one then 'in a few weeks' the app will be automatically rated 'mature'. However there is no indication as to the exact date and whether we can rate apps without updating them. If this was a business application in a corporate environment, changes that affect the consumer would be clearly communicated to the consumer prior to them actually happening and would not leave them wondering what is really going on. Some of these changes could be great, but to release them to developers before they know what is going on seems strange to me. The emails we received didn't really shed any more light on the nature of the changes than we could glean ourselves. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Add-On Maps for 1.5 and higher
Hi Dianne, I'm not really sure why you brought this up again almost a year after I asked, but I guess it confirms that this will hardly be in 2.3 (eagerly waiting...), but I'll still keep hoping for something along these lines at some later stage. The recent browser security hole sort of hints that this would be a good idea for experienced/paranoid users - I don't really see why the browser needs read access to my SD card (unless it is for caching which probably could be safely wrapped to a sandbox in some way) Just my few eurocents / Jonas On 11/27/2010 02:22 AM, Dianne Hackborn wrote: No, no android:optional on uses-permission. Semantically that is totally different than what am talking about here, which means to still allow being installed even if the device doesn't support the library (or feature since you can do the same uses-feature). On Tue, Jan 19, 2010 at 1:43 AM, Jonas Petersson jonas.peters...@xms.se mailto:jonas.peters...@xms.se wrote: Hi Dianne, Dianne Hackborn wrote: As of 2.0 I believe there is an additional attribute on uses-library that lets you specify that it is optional. This sounds like a really good step. However, I failed to find it mentioned in the docs (maybe I'm just looking in the wrong place). When this works, could we expect it to also work for uses-permission, as outlined over a year ago? That would be a really good thing too, IMHO. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-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 mailto: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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] deleting the white color from image
i m loading an image from URL and after downloading it i have to remove the white color of the image and then show the image (without white image), i know some functions in like gerARGB , setARGB but i m not able to do it , if any one has ever done or any idea please share it with me . regards focode. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: droid 2 drivers
I have xt701 and using downloaded drivers from Motorola site: Motorola_Mobile_Drivers_4.7.1_MotoConnect_1.1.31.exe Works fine for me. 2010/11/27 Kostya Vasilyev kmans...@gmail.com Have you looked here: http://developer.Motorola.com ? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 7:33 пользователь Hendrik Greving fourhend...@gmail.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.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] Google Map activity not working
Hi guys I was trying for the first time to make a google map application on android and the following are the steps i followed :- 1. I have made the application separately in 2.2 , 2.1 , 2.2 google api, 2.1 google api 2. This is the manifest file :- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.mymap android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.mymap android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest It includes all the permissions necessary. 3. This is the java file :- package org.mymap; import android.app.Activity; import android.os.Bundle; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class mymap extends MapActivity { MapView mymap; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } Even if i run this simple activity which is without any logic and just MapView in the layout file it is giving me a Force Close ERROR I wonder if i am using the correct API 4. main.xml :- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mymap android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=033PkWkCKskK50UfVjdjehD71XJ55xuDOEassDQ / /LinearLayout I seem to be doing everything correct but i still cant see the Map :( Please guide -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ACTION_BATTERY_CHANGED
Ok, ty! Just something else. I got an galaxy s and im trying to trigger this broadcast. it's ok, working well. but i noted that the level of the batery does NOT decrease gradually, like 100, 99, 98, 97 an then on. is it what really happens or i'm buggy here? my decrease of level is like 100, 90, 80, 70 ... ty in advance On Fri, Nov 26, 2010 at 12:41 AM, TreKing treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 8:44 PM, Diego Queiroz dibo...@gmail.com wrote: When this broadcast is sent? when the level of the battery changes? Yes http://tinyurl.com/33d2bel - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Diego Queiroz* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ACTION_BATTERY_CHANGED
Diego, This is normal. Battery charge state granularity is device- and firmware- specific. The documentation only says this: public static final String EXTRA_LEVEL Since: API Level 5 Extra for ACTION_BATTERY_CHANGED: integer field containing the current battery level, from 0 to EXTRA_SCALE. Constant Value: level so in theory, it's not even guaranteed to be between 0 and 100. Could be 0 to 1 :) In practice, the value of EXTRA_SCALE inside Android is constant, 100. -- Kostya 27.11.2010 15:48, Diego Queiroz ?: Ok, ty! Just something else. I got an galaxy s and im trying to trigger this broadcast. it's ok, working well. but i noted that the level of the batery does NOT decrease gradually, like 100, 99, 98, 97 an then on. is it what really happens or i'm buggy here? my decrease of level is like 100, 90, 80, 70 ... ty in advance On Fri, Nov 26, 2010 at 12:41 AM, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Thu, Nov 25, 2010 at 8:44 PM, Diego Queiroz dibo...@gmail.com mailto:dibo...@gmail.com wrote: When this broadcast is sent? when the level of the battery changes? Yes http://tinyurl.com/33d2bel - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Diego Queiroz* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.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] Re: unable to send co-ordinates from emulator control to the emulator
Hi Khushi, I developed an app which uses GPS and have been heavily using the command geo fix longitude latitude. I've never had issues with sending dummy location information to the emulator. Except once, when my computer was not connected to the Internet. I don't know why, but it seems that the emulator control needs Internet connection to work properly. I don't know exactly your situation, but ensure that your development computer is online. Regards, -Ali -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 sky map
Check the MapView in the following link: http://developer.android.com/guide/tutorials/views/index.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: Binary sms?
Check the link below. You can do all sorts of things with the emulator. http://developer.android.com/guide/developing/tools/emulator.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] Anyone have a My Touch to test my game
Hi, My game has been on the market for 2 weeks now with no issues. However I got an email from someone yesterday saying that they cannot install it on their my touch. If you arw willing to test this for me please send me a message. I don't want to spam the boards. It would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: IllegalStateException in MediaPlayer (Redux)
Thanks for the advice. I had already modeled the state transitions using the listeners, however I suspect there is (was) a problem with the rules I had implemented in this regard. Because the call to prepareAsync returns immediately, I think a subsequent call to prepareAsync was coming in and failing due to a missed state check in the code. I also realized that I don't actually need to call prepareAsync in most cases anyway. Because I am really just wanting to reset the audio track to be played again, I can just call seekTo(0) which is much faster. In the end.. as usual.. it was my crufty code that was the problem! Thanks again, Jason. -- Droid Odyssey! A new game for Android http://www.carboncrystal.com/droid-odyssey/ On Nov 27, 6:59 am, joebowbeer joe.bowb...@gmail.com wrote: Do you have an error listener registered? Does it give you more information? According to the state diagram, stop() is not available in all states. Perhaps you're calling stop() in an invalid state, causing the player to transition to the Error state, at which point prepareAsync would fail: http://developer.android.com/reference/android/media/MediaPlayer.html In my experience with media player, it's best not to assume that a state transition has happened until one of the listeners tells you. Also, if you have the luxury of creating a new MediaPlayer instead of trying to stop and reuse the current player, I think you'll receive fewer error reports. On Nov 23, 1:16 am, Jason Polites jason.poli...@gmail.com wrote: Hi folks, Some time ago I posted an issue relating to an IllegalStateException in the Media Player (http://groups.google.com/group/android-developers/ browse_thread/thread/46c7c2cd4f4a6958/5551d47aac93632c) I have just launched the app into the wild and this error is flooding in. I just can't seem to fathom why.. here's the code: if(mp != null) { mp.stop(); mp.prepareAsync(); } (mp is a MediaPlayer instance BTW). According to the doco, prepareAsync is valid for {Initialized, Stopped} states.. but I just can't see how it could be in any state other than stopped?? The trace is: java.lang.IllegalStateException at android.media.MediaPlayer.prepareAsync(Native Method) .. the line of code mentioned above follows. Is it possible that stop() is not synchronous? Can't seem to see anything in the doco stating this. Anyone got any ideas? P.S. I'm seeing this on a wide range of devices, but all so far are version 2.1-update1 -- Droid Odyssey! A new game for Androidhttp://www.carboncrystal.com/droid-odyssey/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simultaneously debugging multiple android applications and components
Hi, I need to be able to simultaneously debug multiple components from the android-2.2.1 repo, in order to troubleshoot a wifi restart issue that I'm facing that is being discussed on the following thread: http://groups.google.com/group/android-porting/browse_thread/thread/e6d8d075870c358c I have managed to setup and configure abd over ethernet and have documented the steps here: http://web.me.com/elvis.dowson/Technote/Android_Technotes/Entries/2010/11/27_How_to_setup_adb_over_ethernet_for_debugging_android_applications_using_the_Gumstix_Chestnut43_expansion_board.html In order to troubleshoot the wifi restart issue, I need to debug and monitor the following applications and components simultaneously: 1. external/wpa_supplicant_6 2. frameworks/base ... WifiService.java 3. frameworks/base ... WifiStateTracker.java 4. frameworks/base ... WifiManager.java I've created an Eclipse project for the entire android-2.2.1 repo, and I would like to know what I should do to simultaneously debug the above four applications and components, so that I can select a bunch of variables from them and monitor them as I perform steps on the target device. Is this possible? Elvis Dowson -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] getting xml style as AttributeSet
Hi. I want to create a View using code, not xml, but i do want to apply an xml style o it, so at least it's partially managed in xml. I thought the right way to do that would be tm get the style as an xml using the PullParserand then transform it to Attribute set that i can pass on to the View in the Ctor. I can't find any proper Resources() method to get me a style xml as a pull Parser. I guess i can try to dig deeper as forhow it's parsed when a style= appears in a layout xml, but i was hoping for a faster answer here. 10x. Eyal. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to build a 2d GUI to an OpenGL ES app?
Yes, the standard way of developing 3D is using the STANDARD development kit. Don't start with C, unless you absolutely need to. People tend to go directly to the NDK because they don't like Java, that's just stupid. Start off with the Java classes, if you really need to, use the NDK. On Sat, Nov 27, 2010 at 1:32 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: I understand that GLSurfaceView and SurfaceView are Java classes, but I thought that you should use Open GL C++ for the 3d graphics. I then searched for more information about this and I found the android.opengl package. So do you mean that I should use the android.opengl package to develop the 3d graphics in openGL? Is this the standard way to develop 3d graphics in Android? On 25 Nov, 12:27, Miguel Morales therevolti...@gmail.com wrote: What? No, no C++. Just use a GLSurfaceView to render all your 3dopenGLstuff. Then add an overlay View (maybe a SurfaceView) and add all your regular2Dcontrols/widgets that come with Android. On Thu, Nov 25, 2010 at 3:11 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: Do you mean mixing Java and C++ in an Android project? SurfaceView and theGUIin Java and GLSurfaceView and the visual effects in OpenGLC+ +? On 25 Nov, 01:12, Miguel Morales therevolti...@gmail.com wrote: You can simply have a SurfaceView overlaying your GLSurfaceView and draw whatever HUD orGUIelements you want using the regular Android widgets. On Wed, Nov 24, 2010 at 5:43 AM, Eyvind Almqvist eyv...@mobile-visuals.com wrote: I want to make anOpenGLESversion of my M3GappAstral 3d worlds. Theapphas a2dGUI, from which you can start 10 visual effects. I can port the visual effects toOpenGLES, but how can Ibuildthe 2dGUI? Should I really useOpenGLESfor that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android2DMMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/r... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android2DMMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/revoltingx- Dölj citerad text - - Visa citerad 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 activity not working
Abhishek, By looking upon your code nothing seems wrong with it. Have you obtained the key correctly? Can you post the error message so that issue can be looked upon. On Nov 27, 5:41 pm, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hi guys I was trying for the first time to make a google map application on android and the following are the steps i followed :- 1. I have made the application separately in 2.2 , 2.1 , 2.2 google api, 2.1 google api 2. This is the manifest file :- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.mymap android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.mymap android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest It includes all the permissions necessary. 3. This is the java file :- package org.mymap; import android.app.Activity; import android.os.Bundle; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class mymap extends MapActivity { MapView mymap; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } Even if i run this simple activity which is without any logic and just MapView in the layout file it is giving me a Force Close ERROR I wonder if i am using the correct API 4. main.xml :- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mymap android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=033PkWkCKskK50UfVjdjehD71XJ55xuDOEassDQ / /LinearLayout I seem to be doing everything correct but i still cant see the Map :( Please guide -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Issues debugging multi-threaded Android app?
I was debugging just fine until I added a thread to do some background work. After I did that, the debugger could no longer connect to my Samsung Galaxy. I got the problem fixed without the debugger but now I have to chose between deactivating the threading in my app or being able to use the debugger. Has anyone else run into this and if so, is there a work around? 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] sporadic sluggish animation
Hi, I have a game with a thread that updates physics and draws in a surface view. everything runs smooth and snappy 95 percent of the time. However sometimes when I start a new game the animations are sluggish and only when I hit the home button and the return to the same game it gets back its snappiness. I ran a traceview and logcat on both bad and good sessions and everything appears to be identical. No other apps running in the background. Does anyone here have a clue on why this happens, and why it would be resolved by leaving the game to go to the home screen for a second then returning to the game. Thanks, Al -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 activity not working
Ohh.I should have spotted this earlier. You have to add this in the applications element in the manifest file: uses-library android:name=com.google.android.maps / i.e. Manifest should be like this: uses-permission ./uses-permission application ... uses-library android:name=com.google.android.maps / activity android:name=.mymap intent-filter ... /intent-filter /activity /application On Nov 27, 9:41 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Thanks for your reply Is this what you are asking for :- 11-27 22:06:56.064: INFO/DEBUG(28): debuggerd: May 6 2010 09:07:51 11-27 22:06:56.165: INFO/vold(27): Android Volume Daemon version 2.0 11-27 22:06:56.335: DEBUG/qemud(35): entering main loop 11-27 22:06:56.395: INFO/vold(27): New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118 11-27 22:06:56.485: INFO/vold(27): Disk (blkdev 179:0), 131072 secs (64 MB) 0 partitions 11-27 22:06:56.485: INFO/vold(27): New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0 11-27 22:06:56.485: INFO/vold(27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard' 11-27 22:06:56.485: INFO/vold(27): Aborting start of /sdcard (bootstrap = 1) 11-27 22:06:56.485: INFO/vold(27): Volmgr not ready to handle device 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: DEBUG/vold(27): Bootstrapping complete 11-27 22:06:57.014: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.014: DEBUG/qemud(35): created client 0xe078 listening on fd 8 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'boot-properties' 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive: - received channel id 1 11-27 22:06:57.044: DEBUG/qemud(35): client_registration: registration succeeded for client 1 11-27 22:06:57.044: INFO/qemu-props(44): connected to 'boot-properties' qemud service. 11-27 22:06:57.054: INFO/qemu-props(44): received: qemu.sf.lcd_density=160 11-27 22:06:57.054: INFO/qemu-props(44): received: dalvik.vm.heapsize=16m 11-27 22:06:57.084: INFO/qemu-props(44): received: 11-27 22:06:57.084: INFO/qemu-props(44): invalid format, ignored. 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.645: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_event: disconnect on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.665: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'gsm' 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive: - received channel id 2 11-27 22:06:57.675: DEBUG/qemud(35): client_registration: registration succeeded for client 2 11-27 22:06:57.994: DEBUG/AndroidRuntime(30): AndroidRuntime START 11-27 22:06:58.014: DEBUG/AndroidRuntime(30): CheckJNI is ON 11-27 22:06:58.834: INFO/(31): ServiceManager: 0xad08 11-27 22:06:58.834: DEBUG/AudioHardwareInterface(31): setMode(NORMAL) 11-27 22:06:58.854: INFO/CameraService(31): CameraService started: pid=31 11-27 22:06:58.894: INFO/AudioFlinger(31): AudioFlinger's thread 0xb388 ready to run 11-27 22:06:59.134: DEBUG/AndroidRuntime(30): --- registering native functions --- 11-27 22:06:59.894: INFO/SamplingProfilerIntegration(30): Profiler is disabled. 11-27 22:07:00.024: INFO/Zygote(30): Preloading classes... 11-27 22:07:00.044: DEBUG/dalvikvm(30): GC freed 793 objects / 50568 bytes in 16ms 11-27 22:07:00.235: DEBUG/dalvikvm(30): GC freed 251 objects / 16168 bytes in 10ms 11-27 22:07:00.435: DEBUG/dalvikvm(30): GC freed 295 objects / 18768 bytes in 10ms 11-27 22:07:00.555: DEBUG/dalvikvm(30): GC freed 214 objects / 13712 bytes in 12ms 11-27 22:07:00.715: DEBUG/dalvikvm(30): GC freed 415 objects / 26544 bytes in 14ms 11-27 22:07:00.984: DEBUG/skia(30): -- build_power_table 1.4 11-27 22:07:00.994: DEBUG/skia(30): -- build_power_table 0.714286 11-27 22:07:01.074: DEBUG/dalvikvm(30): GC freed 418 objects / 28656 bytes in 15ms 11-27 22:07:01.114: DEBUG/dalvikvm(30): Trying to load lib /system/lib/libmedia_jni.so
Re: [android-developers] Re: Google Map activity not working
Thanks man You saved my day. Can you also tell me how can i check the problems with the app through the log files?? Like what are the key elements i should be looking for? Regards On Sat, Nov 27, 2010 at 10:47 PM, akkilis deepakverma.u...@gmail.comwrote: Ohh.I should have spotted this earlier. You have to add this in the applications element in the manifest file: uses-library android:name=com.google.android.maps / i.e. Manifest should be like this: uses-permission ./uses-permission application ... uses-library android:name=com.google.android.maps / activity android:name=.mymap intent-filter ... /intent-filter /activity /application On Nov 27, 9:41 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Thanks for your reply Is this what you are asking for :- 11-27 22:06:56.064: INFO/DEBUG(28): debuggerd: May 6 2010 09:07:51 11-27 22:06:56.165: INFO/vold(27): Android Volume Daemon version 2.0 11-27 22:06:56.335: DEBUG/qemud(35): entering main loop 11-27 22:06:56.395: INFO/vold(27): New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118 11-27 22:06:56.485: INFO/vold(27): Disk (blkdev 179:0), 131072 secs (64 MB) 0 partitions 11-27 22:06:56.485: INFO/vold(27): New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0 11-27 22:06:56.485: INFO/vold(27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard' 11-27 22:06:56.485: INFO/vold(27): Aborting start of /sdcard (bootstrap = 1) 11-27 22:06:56.485: INFO/vold(27): Volmgr not ready to handle device 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: DEBUG/vold(27): Bootstrapping complete 11-27 22:06:57.014: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.014: DEBUG/qemud(35): created client 0xe078 listening on fd 8 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'boot-properties' 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive:- received channel id 1 11-27 22:06:57.044: DEBUG/qemud(35): client_registration: registration succeeded for client 1 11-27 22:06:57.044: INFO/qemu-props(44): connected to 'boot-properties' qemud service. 11-27 22:06:57.054: INFO/qemu-props(44): received: qemu.sf.lcd_density=160 11-27 22:06:57.054: INFO/qemu-props(44): received: dalvik.vm.heapsize=16m 11-27 22:06:57.084: INFO/qemu-props(44): received: 11-27 22:06:57.084: INFO/qemu-props(44): invalid format, ignored. 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.645: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_event: disconnect on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.665: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'gsm' 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive:- received channel id 2 11-27 22:06:57.675: DEBUG/qemud(35): client_registration: registration succeeded for client 2 11-27 22:06:57.994: DEBUG/AndroidRuntime(30): AndroidRuntime START 11-27 22:06:58.014: DEBUG/AndroidRuntime(30): CheckJNI is ON 11-27 22:06:58.834: INFO/(31): ServiceManager: 0xad08 11-27 22:06:58.834: DEBUG/AudioHardwareInterface(31): setMode(NORMAL) 11-27 22:06:58.854: INFO/CameraService(31): CameraService started: pid=31 11-27 22:06:58.894: INFO/AudioFlinger(31): AudioFlinger's thread 0xb388 ready to run 11-27 22:06:59.134: DEBUG/AndroidRuntime(30): --- registering native functions --- 11-27 22:06:59.894: INFO/SamplingProfilerIntegration(30): Profiler is disabled. 11-27 22:07:00.024: INFO/Zygote(30): Preloading classes... 11-27 22:07:00.044: DEBUG/dalvikvm(30): GC freed 793 objects / 50568 bytes in 16ms 11-27 22:07:00.235: DEBUG/dalvikvm(30): GC freed 251 objects / 16168 bytes in 10ms 11-27 22:07:00.435: DEBUG/dalvikvm(30): GC freed 295 objects / 18768 bytes in 10ms 11-27 22:07:00.555: DEBUG/dalvikvm(30): GC freed 214 objects / 13712 bytes in 12ms 11-27 22:07:00.715:
[android-developers] Re: Google Map activity not working
On Nov 27, 10:17 pm, akkilis deepakverma.u...@gmail.com wrote: Ohh.I should have spotted this earlier. You have to add this in the applications element in the manifest file: uses-library android:name=com.google.android.maps / i.e. Manifest should be like this: uses-permission ./uses-permission application ... uses-library android:name=com.google.android.maps / activity android:name=.mymap intent-filter ... /intent-filter /activity /application On Nov 27, 9:41 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Thanks for your reply Is this what you are asking for :- 11-27 22:06:56.064: INFO/DEBUG(28): debuggerd: May 6 2010 09:07:51 11-27 22:06:56.165: INFO/vold(27): Android Volume Daemon version 2.0 11-27 22:06:56.335: DEBUG/qemud(35): entering main loop 11-27 22:06:56.395: INFO/vold(27): New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118 11-27 22:06:56.485: INFO/vold(27): Disk (blkdev 179:0), 131072 secs (64 MB) 0 partitions 11-27 22:06:56.485: INFO/vold(27): New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0 11-27 22:06:56.485: INFO/vold(27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard' 11-27 22:06:56.485: INFO/vold(27): Aborting start of /sdcard (bootstrap = 1) 11-27 22:06:56.485: INFO/vold(27): Volmgr not ready to handle device 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: DEBUG/vold(27): Bootstrapping complete 11-27 22:06:57.014: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.014: DEBUG/qemud(35): created client 0xe078 listening on fd 8 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'boot-properties' 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive: - received channel id 1 11-27 22:06:57.044: DEBUG/qemud(35): client_registration: registration succeeded for client 1 11-27 22:06:57.044: INFO/qemu-props(44): connected to 'boot-properties' qemud service. 11-27 22:06:57.054: INFO/qemu-props(44): received: qemu.sf.lcd_density=160 11-27 22:06:57.054: INFO/qemu-props(44): received: dalvik.vm.heapsize=16m 11-27 22:06:57.084: INFO/qemu-props(44): received: 11-27 22:06:57.084: INFO/qemu-props(44): invalid format, ignored. 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.645: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_event: disconnect on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.665: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'gsm' 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive: - received channel id 2 11-27 22:06:57.675: DEBUG/qemud(35): client_registration: registration succeeded for client 2 11-27 22:06:57.994: DEBUG/AndroidRuntime(30): AndroidRuntime START 11-27 22:06:58.014: DEBUG/AndroidRuntime(30): CheckJNI is ON 11-27 22:06:58.834: INFO/(31): ServiceManager: 0xad08 11-27 22:06:58.834: DEBUG/AudioHardwareInterface(31): setMode(NORMAL) 11-27 22:06:58.854: INFO/CameraService(31): CameraService started: pid=31 11-27 22:06:58.894: INFO/AudioFlinger(31): AudioFlinger's thread 0xb388 ready to run 11-27 22:06:59.134: DEBUG/AndroidRuntime(30): --- registering native functions --- 11-27 22:06:59.894: INFO/SamplingProfilerIntegration(30): Profiler is disabled. 11-27 22:07:00.024: INFO/Zygote(30): Preloading classes... 11-27 22:07:00.044: DEBUG/dalvikvm(30): GC freed 793 objects / 50568 bytes in 16ms 11-27 22:07:00.235: DEBUG/dalvikvm(30): GC freed 251 objects / 16168 bytes in 10ms 11-27 22:07:00.435: DEBUG/dalvikvm(30): GC freed 295 objects / 18768 bytes in 10ms 11-27 22:07:00.555: DEBUG/dalvikvm(30): GC freed 214 objects / 13712 bytes in 12ms 11-27 22:07:00.715: DEBUG/dalvikvm(30): GC freed 415 objects / 26544 bytes in 14ms 11-27 22:07:00.984: DEBUG/skia(30): -- build_power_table 1.4 11-27 22:07:00.994: DEBUG/skia(30): -- build_power_table 0.714286 11-27
Re: [android-developers] Re: Google Map activity not working
okay... i didn't get dat.. lol On Sat, Nov 27, 2010 at 11:36 PM, akkilis deepakverma.u...@gmail.comwrote: On Nov 27, 10:17 pm, akkilis deepakverma.u...@gmail.com wrote: Ohh.I should have spotted this earlier. You have to add this in the applications element in the manifest file: uses-library android:name=com.google.android.maps / i.e. Manifest should be like this: uses-permission ./uses-permission application ... uses-library android:name=com.google.android.maps / activity android:name=.mymap intent-filter ... /intent-filter /activity /application On Nov 27, 9:41 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Thanks for your reply Is this what you are asking for :- 11-27 22:06:56.064: INFO/DEBUG(28): debuggerd: May 6 2010 09:07:51 11-27 22:06:56.165: INFO/vold(27): Android Volume Daemon version 2.0 11-27 22:06:56.335: DEBUG/qemud(35): entering main loop 11-27 22:06:56.395: INFO/vold(27): New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118 11-27 22:06:56.485: INFO/vold(27): Disk (blkdev 179:0), 131072 secs (64 MB) 0 partitions 11-27 22:06:56.485: INFO/vold(27): New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0 11-27 22:06:56.485: INFO/vold(27): Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard' 11-27 22:06:56.485: INFO/vold(27): Aborting start of /sdcard (bootstrap = 1) 11-27 22:06:56.485: INFO/vold(27): Volmgr not ready to handle device 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 11-27 22:06:56.485: DEBUG/vold(27): Bootstrapping complete 11-27 22:06:57.014: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.014: DEBUG/qemud(35): created client 0xe078 listening on fd 8 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'boot-properties' 11-27 22:06:57.034: DEBUG/qemud(35): client_fd_receive:- received channel id 1 11-27 22:06:57.044: DEBUG/qemud(35): client_registration: registration succeeded for client 1 11-27 22:06:57.044: INFO/qemu-props(44): connected to 'boot-properties' qemud service. 11-27 22:06:57.054: INFO/qemu-props(44): received: qemu.sf.lcd_density=160 11-27 22:06:57.054: INFO/qemu-props(44): received: dalvik.vm.heapsize=16m 11-27 22:06:57.084: INFO/qemu-props(44): received: 11-27 22:06:57.084: INFO/qemu-props(44): invalid format, ignored. 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.645: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.645: DEBUG/qemud(35): fdhandler_event: disconnect on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): fdhandler_accept_event: accepting on fd 10 11-27 22:06:57.665: DEBUG/qemud(35): created client 0xe078 listening on fd 11 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive: attempting registration for service 'gsm' 11-27 22:06:57.665: DEBUG/qemud(35): client_fd_receive:- received channel id 2 11-27 22:06:57.675: DEBUG/qemud(35): client_registration: registration succeeded for client 2 11-27 22:06:57.994: DEBUG/AndroidRuntime(30): AndroidRuntime START 11-27 22:06:58.014: DEBUG/AndroidRuntime(30): CheckJNI is ON 11-27 22:06:58.834: INFO/(31): ServiceManager: 0xad08 11-27 22:06:58.834: DEBUG/AudioHardwareInterface(31): setMode(NORMAL) 11-27 22:06:58.854: INFO/CameraService(31): CameraService started: pid=31 11-27 22:06:58.894: INFO/AudioFlinger(31): AudioFlinger's thread 0xb388 ready to run 11-27 22:06:59.134: DEBUG/AndroidRuntime(30): --- registering native functions --- 11-27 22:06:59.894: INFO/SamplingProfilerIntegration(30): Profiler is disabled. 11-27 22:07:00.024: INFO/Zygote(30): Preloading classes... 11-27 22:07:00.044: DEBUG/dalvikvm(30): GC freed 793 objects / 50568 bytes in 16ms 11-27 22:07:00.235: DEBUG/dalvikvm(30): GC freed 251 objects / 16168 bytes in 10ms 11-27 22:07:00.435: DEBUG/dalvikvm(30): GC freed 295 objects / 18768 bytes in 10ms 11-27 22:07:00.555: DEBUG/dalvikvm(30): GC freed 214 objects / 13712 bytes in 12ms 11-27
Re: [android-developers] Re: droid 2 drivers
Yes I simply didn't see the link, only saw the USB charger drivers. Thanks it works now. - Original Message - From: Evgeny V To: android-developers@googlegroups.com Sent: Saturday, November 27, 2010 3:12 AM Subject: Re: [android-developers] Re: droid 2 drivers I have xt701 and using downloaded drivers from Motorola site: Motorola_Mobile_Drivers_4.7.1_MotoConnect_1.1.31.exe Works fine for me. 2010/11/27 Kostya Vasilyev kmans...@gmail.com Have you looked here: http://developer.Motorola.com ? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 7:33 пользователь Hendrik Greving fourhend...@gmail.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 3g or wifi connection without user interaction
Hello there, I don't have an Android cell, so my questions could sound a bit dumb, still.. quick questions: 1. is it possible to initiate internet connection (3g/wifi) without asking user's permission, for.ex. get list of all wifi/3g apns or initiate search for open wifi and connect to network 2. why do I have working internet connection in my emulator when I activate Airplane mode? 3. when I disable all connections in emulator I still have internet connection, why is that? -- Regards, Rustam Kovhaev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: custom view in widget
This works, thanks. It seems clickable ImageView is the way that works. - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Saturday, November 27, 2010 1:34 AM Subject: Re: [android-developers] Re: custom view in widget Hendrik, What are you actually trying to do? Do you need to replace buttons because your widget has several different versions, varying in size and the number of buttons? If that's the case, consider using separate layouts, one for each widget size / number of buttons. You pretty much need this anyway, since initial widget size is specified in widget_info.xml, and there can only be one for each widget declared in the manifest. Once you have a layout with the right number of buttons, you can change them individually with setImageViewResource and setOnClickPendingIntent. This has a side benefit, that only resource id and pending intent id are marshalled cross-process into the home application. Also, I recommend using ImageViews for buttons. They respond to touch events, and you can add visual feedback by using a selector type drawable with an entry for item android:state_pressed=true. Hope this helps. -- Kostya 27.11.2010 2:27, Hendrik Greving пишет: That's a good idea, I'll try that. By the way, if I want to replace one of the buttons from my widget provider per remoteviews, can I do this (for instance with removeAllViews and addView)? I've tried this and the widget than fails loading. Or do I need to set up a layout each for all possible combinations and then use this with updateAppWidget? - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, November 26, 2010 3:07 PM Subject: Re: [android-developers] Re: custom view in widget Yes, portrait mode seems to be somewhat different. I don't have a tablet, but had to fix this for a Motorola Milestone (when the keyboard is pulled out, the home screen rotates). I did this by doing three things: - having separate layouts for portrait and landscape modes (you can use res/layout_port, etc. in a widget); - specifying a larger width for the landscape layout (found empirically, so that my 2*1, 3*1, and 1*1 widgets line up at the edges when placed one below another); - using nine-patches for the backgrounds. One more trick would be to make use of layout_weight, although I haven't needed that. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 1:38 пользователь Hendrik Greving fourhend...@gmail.com написал: So basically the ideal image size for a standard 1-row widget would be 320x100 * 1.5? I did both the minimum APIlevel (7) and enabled scaling (true). The problem I have is that they don't scale in an (emulated-) tablet. The OS seems to scale the width more than the height. I played around with all setting I could imagine, scale type, minimum width, height, wrap_content/fill_parent, 9-patch png's. What would be the standard way to make this work? I saw widget's that apparently can do this. - Original Message - From: Kostya Vasilyev To: android-developers@googlegroups.com Sent: Friday, November 26, 2010 2:08 PM Subject: Re: [android-developers] Re: custom view in widget When you read about standard widget sizes, that's in dp units: device independent pixels. On a high-res screen, your layouts are scaled by Android to a larger pixel size (a factor of 1.5 for hdpi). As for your issue with scaling - did you add support for scaling in the manifest? You can do it by either by setting minSdk to 4 and above, or by including a supports-screens element. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 0:45 пользователь Hendrik Greving fourhend...@gmail.com написал: I'm much further now, thanks. I have 5 button in a horizontal linear layout. Each button is currently 167x280. I read that a one row widget is normally 320x100. However, if I scale each button to 64x100, it looks bad, probably because I need the density?! On a high density screen like a Nexus one,the 167x280 look perfect. The other problem I have is, that it scales badly. I would like to at least make it look 'ok' when used on a tablet. However, it looks like that it scales only the width, and doesn't preserve the ratio. I've tried a lot with different scale types, I've also tried 9-patch png images. If I do the latter, the button is scaled wrong in either case. Any idea? Thanks!! - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Saturday, November 20, 2010 4:16 AM
[android-developers] Re: How to change orientation of customized sliding widget?
Thanks for your reply , But i had separate xml layout files for both protrait and landscape modes even though i am not getting the required orientation. what is my exact requirement is i had to get my customized sliding widget as horizontal in protrait mode and in landscape mode it in veritcal but i am getting horizontal in both modes . I am sure that i didn't done any orientation changes through programatically. Until now what i have tried are as follows: Trail #1 i had specified android:orientation = horizontal attribute for my customized sliding widget which is linear layout basically in protrait mode similarly for landscape mode i had separate layout file in that i had specified attribute as android:orientation = vertical It has no effect. Trail #2 i am querying the screen orientation as which orientation currently it showing then depending on that screen orientation i am setting orientation of my customized slidingtab widget as follows : // Query what the orientation currently really is. if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { LinearLayout slidingtabWidget = (LinearLayout) findViewById(R.id.alteranateunlocker); slidingtabWidget.setOrientaiton(LinearLayout.HORIZONTAL); } else slidingtabWidget.setOrientaiton(LinearLayout.VERTICAL); IT also having no effect what else i have to try ? can any one please suggest me to get out of this issue thanks in advance janibasha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: getting xml style as AttributeSet
I was suggested to try using the last parameter of the View's C'tor with my style, it doesn't work though. Can anyone explain to me why the following doesn't work for me ? 1. my Activity on Create: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this, null, R.style.my_style_2); tv.setText(this should be green!); setContentView(tv); } 2. bb.xml that contains the style: ?xml version=1.0 encoding=utf-8? resources style name=my_style_2 item name=android:textColor#FF00FF00/item item name=android:textSize20sp/item /style /resources As far as i understand my text should be big (20 sp) and green. but it's not... the styl is ignored. I know that when android itself inflates the view the AttributeSet allready contains the style even if style= attribute was used. So how am i suppose to do it programatically ,what am i doing wrong ? On Nov 27, 6:06 pm, poohtbear eyaltg...@gmail.com wrote: Hi. I want to create a View using code, not xml, but i do want to apply an xml style o it, so at least it's partially managed in xml. I thought the right way to do that would be tm get the style as an xml using the PullParserand then transform it to Attribute set that i can pass on to the View in the Ctor. I can't find any proper Resources() method to get me a style xml as a pull Parser. I guess i can try to dig deeper as forhow it's parsed when a style= appears in a layout xml, but i was hoping for a faster answer here. 10x. Eyal. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Pubish: Target phones with fast hardware.
You mean altering the 3dmodel complexity at runtime? I already made the models less complex, but making them even more complex would result in very ugly weapons. Now i got a OutOfMemoryException when it runs on some phones. So i'd rather not publish for those phones. Point is that the market needs something like this. B.t.w: why is there such a delay in posting something and seeing it here? On Nov 23, 3:24 pm, Warren warrenba...@gmail.com wrote: This is not a direct answer to your question, but have you tried altering your models and images for less capable phones? I've tried something like this with acceptable results. Probe the screen size or do a CPU calculation check at startup, then reduce your texture sizes or model detail accordingly. Not ideal, but it works. Warren On Nov 20, 4:06 pm, Dutch Android Guru dutchandroidg...@gmail.com wrote: What i need is target hardware like Memory, CPU, and OpenGL 2. I read a comment on this articlehttp://androinica.com/2010/05/12/dear-google-please-let-android-devel... I really like this comment: *The problem here is not (and should never be) fixed by blocking specific devices. If anything, because the list of devices will soon be too large for a single person to handle. * * It should be handled by requiring the correct hardware, if the Market doesn't already support that. Barcode Scanner, for example, could require auto-focus camera (there are already means for requiring a camera, for example; we just need a requirement for auto-focus). Raging Thunder 2 should ask for OpenGL ES 2, or a certain amount of VRAM, or whatever. * *tl;dr the Market needs many improvements, but blacklisting or whitelisting devices is a horrible solution. Check for hardware capabilities.*** * * Basically android already supports this partially with the uses-feature in the xml manifest. However there should be more support for the hardware types i mentioned. So: How should i do it now? And how is this going to be supported in the future? My only option now is to detect it on startup and give an alert box to the user that it doesnt work on their phone. However then my whole sale-model is ruined. 2010/11/20DutchAndroidGurudutchandroidg...@gmail.com I have an application that loads a 3dmodel and renders it. These models are rather big and i can only get it to work fast on faster hardware phones such as the Nexus One. However there is no way to target faster hardware phones. Now i get very good ratings (on phones where it work) and very bad rating (on slow phones). Also: i would like to know the phone type when a user comments. In this way i can test it and check whether the user had a valid point or not. Could you please add this? Same for error reports. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: getting xml style as AttributeSet
Very interesting, did you try to add another view instead as setContentView(LinearLayout) and after add TextView to parent. Or it is because Attributes are null. On 27 Лис, 22:26, poohtbear eyaltg...@gmail.com wrote: I was suggested to try using the last parameter of the View's C'tor with my style, it doesn't work though. Can anyone explain to me why the following doesn't work for me ? 1. my Activity on Create: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this, null, R.style.my_style_2); tv.setText(this should be green!); setContentView(tv); } 2. bb.xml that contains the style: ?xml version=1.0 encoding=utf-8? resources style name=my_style_2 item name=android:textColor#FF00FF00/item item name=android:textSize20sp/item /style /resources As far as i understand my text should be big (20 sp) and green. but it's not... the styl is ignored. I know that when android itself inflates the view the AttributeSet allready contains the style even if style= attribute was used. So how am i suppose to do it programatically ,what am i doing wrong ? On Nov 27, 6:06 pm, poohtbear eyaltg...@gmail.com wrote: Hi. I want to create a View using code, not xml, but i do want to apply an xml style o it, so at least it's partially managed in xml. I thought the right way to do that would be tm get the style as an xml using the PullParserand then transform it to Attribute set that i can pass on to the View in the Ctor. I can't find any proper Resources() method to get me a style xml as a pull Parser. I guess i can try to dig deeper as forhow it's parsed when a style= appears in a layout xml, but i was hoping for a faster answer here. 10x. Eyal. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Add-On Maps for 1.5 and higher
Sorry I saw a reply 2 days ago on this thread and apparently hadn't read your old reply so thought it was new. On Sat, Nov 27, 2010 at 2:55 AM, Jonas Petersson jonas.peters...@xms.sewrote: Hi Dianne, I'm not really sure why you brought this up again almost a year after I asked, but I guess it confirms that this will hardly be in 2.3 (eagerly waiting...), but I'll still keep hoping for something along these lines at some later stage. The recent browser security hole sort of hints that this would be a good idea for experienced/paranoid users - I don't really see why the browser needs read access to my SD card (unless it is for caching which probably could be safely wrapped to a sandbox in some way) Just my few eurocents / Jonas On 11/27/2010 02:22 AM, Dianne Hackborn wrote: No, no android:optional on uses-permission. Semantically that is totally different than what am talking about here, which means to still allow being installed even if the device doesn't support the library (or feature since you can do the same uses-feature). On Tue, Jan 19, 2010 at 1:43 AM, Jonas Petersson jonas.peters...@xms.se mailto:jonas.peters...@xms.se wrote: Hi Dianne, Dianne Hackborn wrote: As of 2.0 I believe there is an additional attribute on uses-library that lets you specify that it is optional. This sounds like a really good step. However, I failed to find it mentioned in the docs (maybe I'm just looking in the wrong place). When this works, could we expect it to also work for uses-permission, as outlined over a year ago? That would be a really good thing too, IMHO. Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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 mailto: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.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 -- 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] TTYstsiau
BvvbnLthhhgvvasff Sent from. T my. Jouygrrfegedsdsshjinm iPhone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Alarms - SDK design problem or am I doing something wrong?
I have an alarm that's supposed to run every day -- it's very important that it runs daily. In order to make sure the alarm is set, I capture the BOOT_COMPLETED event set the alarm there. I also set the alarm when my app starts. Yesterday, I had a user complain that her alarm was not firing. It made me think, what happens to the alarm when an app is updated from the Market? I assume it will get killed, but unless the user restarts the phone or runs the app, it will never be started again. Is that I am describing the reality? If so, is there a way around it? If not, I see this a very big problem as my app is not something everybody may use every day and combined with the automatic updates facility of the market, there is a very real possibility that important financial processing will not take place. Thanks, Zsolt -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] IOException during network access in background service
Hi folks, I have a service with a coarse-grained LocationListener which needs to do network access in onLocationChanged(). This is done in a separate thread (to avoid blocking the UI thread) with a wakelock (to ensure that the device doesn't sleep when onLocationChanged() is finished). This generally works fine. But in a small fraction of cases, when the device hasn't been used for a while, the network call fails with an IOException (specifically, an UnknownHostException). The failure continues even when the call is retried several times, spanning several minutes or even hours. I am positive that a stable internet connection is available, both via WIFI and 3G. I imagine that the WIFI may have switched off to preserve battery, but the 3G connection should still be available -- right? Here is an outline of the code from the LocationListener: @Override public void onLocationChanged(Location loc) { PowerManager pm = (PowerManager) getSystemService(POWER_SERVICE); Wakelock wakelock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, MyService.class.getName()); wakelock.acquire(); new Thread(new Runnable() { @Override public void run() { someBlockingInternetIO(); mWakeLockPostCheckins.release(); } }).start(); } Any idea why this does not work consistently? Any pointers would be greatly appreciated, as this issue is affecting a published app. Thanks and best regards, Michael. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Alarms - SDK design problem or am I doing something wrong?
On Sat, Nov 27, 2010 at 6:40 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Is that I am describing the reality? I think so. If so, is there a way around it? I don't think so. Unless you did something extreme and had a second app that listened for your main package being installed and called it to start it up. But then you'd have to tell your users to get that app too. If not, I see this a very big problem as my app is not something everybody may use every day and combined with the automatic updates facility of the market, there is a very real possibility that important financial processing will not take place. Yeah, but I think it's by design. Based on other posts I've seen, the platform designers don't want apps to autorun on installation - it has to be a conscious decision by the user to elect to run the app. Your case may be valid, but this could be something that's easily abused by other apps. I think the best thing you can do is educate your users that updating requires starting the app to ensure it continues to work as intended. Not ideal, I know, but that's the way it is right now. At least now you have a change list area to put this in big, capital letters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarms - SDK design problem or am I doing something wrong?
The problem is with auto-updates, the user never sees the list nor the warning. Is there a way to turn off auto-updates for an app in the manifest? On Nov 28, 9:51 am, TreKing treking...@gmail.com wrote: On Sat, Nov 27, 2010 at 6:40 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Is that I am describing the reality? I think so. If so, is there a way around it? I don't think so. Unless you did something extreme and had a second app that listened for your main package being installed and called it to start it up. But then you'd have to tell your users to get that app too. If not, I see this a very big problem as my app is not something everybody may use every day and combined with the automatic updates facility of the market, there is a very real possibility that important financial processing will not take place. Yeah, but I think it's by design. Based on other posts I've seen, the platform designers don't want apps to autorun on installation - it has to be a conscious decision by the user to elect to run the app. Your case may be valid, but this could be something that's easily abused by other apps. I think the best thing you can do is educate your users that updating requires starting the app to ensure it continues to work as intended. Not ideal, I know, but that's the way it is right now. At least now you have a change list area to put this in big, capital letters. ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Alarms - SDK design problem or am I doing something wrong?
On Sat, Nov 27, 2010 at 8:29 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The problem is with auto-updates, the user never sees the list nor the warning. I've never used auto-updates - there's no notification when an app gets updated? That seems rather silly. Is there a way to turn off auto-updates for an app in the manifest? Don't think so. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarms - SDK design problem or am I doing something wrong?
You get a status bar notification, just like the manual update, but you don't get to see the Marked page. Thus you won't see my warning. This is a big problem for me, and as far as I am concerned, an oversight on Google's part. I think an ON_APP_UPDATED event would not be much of a security issue. On Nov 28, 10:46 am, TreKing treking...@gmail.com wrote: On Sat, Nov 27, 2010 at 8:29 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The problem is with auto-updates, the user never sees the list nor the warning. I've never used auto-updates - there's no notification when an app gets updated? That seems rather silly. Is there a way to turn off auto-updates for an app in the manifest? Don't think so. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Have a great shopping! 2010.11.28.13.18.24
Dear friend: What are u doing these days?I am going to recommend a Eshop to you.Yesterday I found a web of a large trading company from China,which is an agent of all the well-known digital product factories,and facing to both wholesalers,retailsalers,and personal customer all over the world. They export all kinds of digital products and offer really competitive and reasonable price and high quality goods for their clients,so i think you will make a big profit if you did business with them.And they promise they will provide the best after-sales-service.If you are interested to do business with them,in my opinion, you can make a trial order to test that. Their Web address: www.ebay365.org Regards! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 3g or wifi connection without user interaction
Rustam, To stop all the data connections while working on emulator, you need to configure it through DDMS perspective. Open it and go to Telephony Section, There you will find a drop down for the Data services, choose appropriate option for your requirement from home, roaming and denied. I dint get what you want to ask in the first query. If there is any open or public network available to your phone, it will connect to it automatically, provided you have not activated airplane mode. First you need to connect your phone to any working network, then only your app can also make any remote connection. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Questions about ThreadSafeHttpClient connection
We are creating a ThreadSafeClient for doing the network IO in our application using the following code: DefaultHttpClient sClient; final int MAX_TOTAL_CONNECTIONS = 50; HttpParams sDefaultHttpParams = new BasicHttpParams(); ConnManagerParams.setMaxTotalConnections(sDefaultHttpParams, MAX_TOTAL_CONNECTIONS); sDefaultHttpParams.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); sDefaultHttpParams.setParameter( CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8); sDefaultHttpParams.setBooleanParameter( CoreConnectionPNames.STALE_CONNECTION_CHECK, true); sDefaultHttpParams.setIntParameter( CoreConnectionPNames.CONNECTION_TIMEOUT, 40 * 1000); sDefaultHttpParams.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 80 * 1000); sDefaultHttpParams.setIntParameter( CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8192); HttpClientParams.setRedirecting(sDefaultHttpParams, false); SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme(http, PlainSocketFactory .getSocketFactory(), 80)); schemeRegistry.register(new Scheme(https, SSLSocketFactory .getSocketFactory(), 443)); ClientConnectionManager manager = new ThreadSafeClientConnManager( sDefaultHttpParams, schemeRegistry); sClient = new DefaultHttpClient(manager, sDefaultHttpParams); Multiple threads call execute on sClient and it seems that sometimes, some of the network connections stall. I read the document and found/ assumed that default value for MAX connections was set to 20. So, I raised it to 50. Questions: 1. What should be the ideal/recommended connection limit? I think 20 is enough. 2. Usually, developer download the byte stream and then parse it(mostly XML content). Do they have to explicitly close the InputStream to release the connection? Please 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] Setting color of drawable shape in code
I am using a shape defined as a drawable as background for a TextView. This allows me to add rounded corners and other other effects. The shape is defined like this: ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle corners android:topLeftRadius=8dp / /shape and I am using it like this: TextView android:id=@+id/project style=@style/textView android:background=@drawable/project_textview_background / Now, I need to change the color of that TextView programmatically depending on some conditions. The conditions are note related to button states like focuses, selected, etc... It depends on the data. My current workaround was to create a 9-patch image for each color but I don't like this solution because there are 12 colors and I want to use them in other places with different shapes. I'll end up with dozens of 9-patch images for something that could be done in code. - I tried to do setBackgroundColor but that seems to overwrite the background I previously defined so it doesn't show the rounded corners anymore. - I looked at a bunch of other API methods but got nowhere Any help would be very much appreciated. Thank you 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