[android-developers] Re: why do all samples appear smaller than the full screen
Found it. I added this to AndroidManifest.xml On Friday, February 24, 2012 9:06:18 PM UTC-6, doles wrote: > > Hello, > > I am learning android and am trying to run samples on a large screen > phone. However, none of the samples take up the entire screen on my phone. > I have looked all over for explicit sizes, but cannot find them. I started > reading up on mdpi, hdpi and large, medium and small layouts, however, it > will be great if someone could specifically give me a clue to why the > samples wont run full screen. My apps that I write from scratch do run full > screen. > > Thanks!!! > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] why do all samples appear smaller than the full screen
Hello, I am learning android and am trying to run samples on a large screen phone. However, none of the samples take up the entire screen on my phone. I have looked all over for explicit sizes, but cannot find them. I started reading up on mdpi, hdpi and large, medium and small layouts, however, it will be great if someone could specifically give me a clue to why the samples wont run full screen. My apps that I write from scratch do run full screen. Thanks!!! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] youtube chromeless iframe player in android
Hello! I have a webview in an activity in which I load HTML that loads the youtube html5 player. The rest of the HTML shows up ok in the webview, but my player just doesnt show up. that same html code works great on chrome on my windows laptop and i believe it should work on android's browser, but it isnt. The html i am running is the simple example from youtube's example site. here it is: Is there a way to make youtube work in the webview or this cannot be done? Thanks! // 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script'); tag.src = "http://www.youtube.com/player_api";; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // 3. This function creates an
[android-developers] how to make drop down (spinner) not show anything by default
Hello, How do I make a spinner not show anything by default when it is first shown on screen? The spinner as it is in the API shows up with the first item selected. I want it to show a label (such as the prompt). Then, when I touch it, I want that label/prompt to disappear and the drop down menu items show up. Is there a method to call to achieve this? Do I have to write up a custom spinner for this? Thanks people!!! Sachin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: trouble loading a youtube video in webview
I found the problem and have fixed it. I had to setPluginsEnabled(true) and setJavascriptEnabled(true) on the webview instance. Now it plays just fine on the emulator as well as on the nexus one! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] trouble loading a youtube video in webview
Hello, I have a very simple WebView on which i use the loadData method to load a youtube video embed url. ((WebView)findViewById(R.id.videoweb)).loadData("HELLO!http://www.youtube.com/embed/YULCa3CUquM?rel=0"; frameborder="0" allowfullscreen>","text/html","utf-8"); when i install my app on my 2.3.3 emulator or phone (nexus one), this just shows a black rectangle where i expected the video. I do have the flash player on my phone. What did I miss Please help. -- Sachin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] in-memory caching?
Hello, How is in-memory caching achieved in android? For example, i have static data such as state list in the United States. I would like to keep that list in a file or somewhere in an online service. However, when the app is running, I'd rather store in memory in the app itself. How is that achieved? I could create a singleton and initialize that on startup. What are the best practices if any? Thank you for reading and responding! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: constructors on a View
Thank you! That helps me understand this a bit further. I am still very hazy on how to make use of xml layouts in re-usable components, so at this point, the two longer constructors are no use to me, however, it seems like all three should be implemented if my code is to be turned over to other developers in the organization for re-use. Thanks again. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: custom events in android
Yes, I am familiar with that mechanism. However, that is not like the event/eventhandler mechanism that is available in javascript/gwt. In the asynctask mechanism, the asynctask#postExecute runs on the UI thread and the asynctask needs to passed in a view if a specific view needs to be updated. however, in the javascript mechanism of event/eventhandler, the component that fires the event does not need to know anything about who is going to receive that event. So, it allows for a bit of modular design (clean separation of functionality/view logic/data model). The async task mechanism is, like you said, a multi-threading mechanism in android, however, the event/eventhandler model is more akin to javascript's event model or akin to the JMS publish/subscribe model in JEE. I can see how the async task mechanism can be used in lieu of the event/eventhandler mechanism, but thats not apples to apples. make sense? Thanks for your response! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] constructors on a View
Hello, On all views (layouts or widgets) there are three different constructors. 1) View(Context) 2) View(Context,AttributeSet) 3) View(Context,AttributeSet,int defStyle) If I were designing and coding the first few components of an anrdoid app, which constructors should I be mindful of implementing for re-usable components? My constructors do have initialization logic such as setting labels, default text and adding other widgets to layouts. Once, I call super() in my constructor, will these three variables Context, AttributeSet and defStyle be available to all code regardless of which constructor is called (some might be null for the shorter constructor)? Hope this question makes sense. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] custom events in android
Hello, Is there any way to fire custom events in android. I have had experience with custom events in GWT and in the javascript world and that model is nice to say the least. Is there anything like that in Android? for example, lets say a user clicks a button on the screen, then my app might want to do 2 or 3 different & independent things. 1) get data from server 2) update local database 3) show a new screen on the UI. If I have an event driven model such as the one available in a javascript engine web browser, i could fire 3 events on an event bus and then 3 independent handlers/listeners could initiate those 3 sequences. This allows for separation of concerns in design and allows a few other beneficial design mechanisms. I can see some of that being done with Intents, however, Intent looks like a bigger tool than just events. Specifically, intents seem to apply across apps and seem to be intended for a higher purpose. (Did I read that right?). So, is there any way to fire events on an event bus in Android then? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] re-usable components???
not working means that my view that i am trying add programatically does not show up on screen. so the 5th line in the onCreate is not doing anything. I would expect it to show a EditText on screen. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-usable components???
Hmm. That is not working for whatever reason. Here is my code. in the activity: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LinearLayout ll = (LinearLayout)findViewById(R.id.homeLeftBox); StudentListing sl = new StudentListing(this); ll.addView(sl); } StudentListing.java: public class StudentListing extends EditText { public StudentListing(Context context) { super(context); construct(context); } private void construct(Context context) { this.setText("This needs to show up on the screen"); } the main.xml: http://schemas.android.com/apk/res/android"; android:layout_height="fill_parent" android:layout_width="fill_parent"> Thanks again!!! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-usable components???
Thanks! I think I need to add to my question. 1 part is what I described in my first post and your answer is very useful thank you! 2) how do i add such a re-usable view into an existing view at run time? So, lets say i have an activity already painted that has a button on it. on the button click handler, i want to look up this re-usable layout that is backed by its layout xml and add that layout to a specific layout in my already painted activity. Thank you again! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-usable components???
Hello, I have read the documentation at http://developer.android.com/guide/topics/ui/custom-components.html for creating custom widgets and layouts. This talks about how you can extend an existing layout (such as LinearLayout) and add widgets to it to create a custom re-usable component. It also talks about how you can use layout resource xml to set up these custom widget layouts. I am unable to make this work with the layout externalized in an xml. Are there any examples out there? The List4.java and List6.java examples listed on that documentation page do not have what I want. they are examples of views being created in code. Thanks a ton! Dole -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] question about onclick xml attribute for views
gotcha! thank you much! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: String.split(regex) behaving funny
never mind. it slipped my mind that | is a regex control character, so i had to escape it in my pattern. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] String.split(regex) behaving funny
Hello Everybody, On 3.1, I have a string like this: 130097|2.AQBZGBy6H.600.109.3-4061710|SLC2X7cz9e5-3J68Q . It looks like 3 parts separated by a '|'. So, when I use split on it like this: String [] parts = accessToken.split("|"); I expect parts to be of length 3. Surprisingly, when i run and step into that part, the length for parts comes to as many characters there are in that string and not 3. So android String.split does not work like java's string.split? Thanks!!! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] re-using hibernate classes in android
Hello, I have a domain model that is mapped to a server side database with hibernate. So, it has all the nice JPA annotations. I would like to use these classes that I have already painstakingly written in my android app. Of course, since the hibernate api is not available to android, my android app wont compile the annotations. How have other people resolved this? It almost sounds like I will need to provide all my hibernate mappings in .hbm.xml files and keep the actual domain model devoid of any annotations. Would you say the same? Dole -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 download source?
Hi Kostya, Thanks! I did browse to that url. However, what tag is for version 3.0 and 3.1 platform? I can see gingerbread-release tag on there. Will that be 3.0? What tag will be honeycomb? Thanks again to set me on this direction. Best, Sachin Dole -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: source for SDK
Hi Xav, I agree that developers should not be depending on implementation. However, sometimes, looking into source code provides an immediate insight to developers about how their code works (or does not work) with the platform itself. For example, at the simplest, lets say, I added a view to my app that does not show up as expected, then, if i am able to step through the platform code, I might be able to tell why the platform code did not pick up my view and then correct myself. This might be a bad example, but it could apply to other more likely situations. Moreover, this ability is standard with other open source tools in the java world and it would be great to have it. So, again: how do I download source for a specific version of the platform that I am developing against? Currently, my interest is version 3.0 or version 3.1 (the tablet oriented OS). Thank you, Best, Sachin Dole -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to download source?
Hello, I am an app developer and I would like to download the source for android.jar that is used in my IDE to write code against. So, as I am developing in my IDE, I would like to view source for lets say ViewGroup.java. I know how to set that up in my IDE, however, where do I download the source files for a specific version and how? I have downloaded source per instructions on the source.android.com website. However, it looks like that process has downloaded the entire source code for the android system. I am only interested in the java/dalvik stuff that I code my app against and not the linux source for actually building the OS. Anyone else did this before? How do I do it? Thanks! Sachin Dole -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 set gps geo fix
Hello Folks, Has anyone else tried setting location in the emulator at all? When I try to set location in the emulator through the ddms UI or through the telnet command prompt, my emulator crashes. I am running it on windows 32 bit with jdk 1.6 _22 Please help. Thanks On Dec 12, 9:31 am, doles wrote: > Hello, > > I am slowly coming to the conclusion that the ddms ping problem might > be something that I could ignore because that command is only to find > out if the emulator has started to run. I am not sure though, so i am > going to focus on my gps problem for now and here is some extra > information: when i start the emulator, i am seeing this in the error > log: > 12-12 09:27:44.551: ERROR/ThrottleService(61): Could not open GPS > configuration file /etc/gps.conf > > Do I have to provide a gps.conf somewhere if i want to get locations > from gps in the emulator? > > Thank you > > On Dec 11, 11:06 pm, doles wrote: > > > > > > > > > Hello, > > > I have a simple class like the Hello MapView example on android dev > > guide. I have added a location listener to it and when this app runs > > on my emulator, i telnet to the emulator and send a geo fix such as > > geo fix 1 1. This is causing the emulator to crash with a thread dump > > and a list of services that died... what could be wrong? The other > > thing that happens before the emulator starts is that my IDE starts > > ddms with arguments "ping emulator standalone". This results in an > > error at at > > com.android.sdkstats.SdkStatsService.normalizeVersion(SdkStatsService.java: > > 467). At this line, it is clear that that class is expecting a 4 digit > > number with dots in it and my IDE is sending in the word "standalone". > > I dont know if these two are related, but I need the ability to set > > geo fixes and that is not working!!! Has anyone seen this? What am I > > missing? > > > 12-11 23:02:52.378: INFO/DEBUG(31): *** *** *** *** *** *** *** *** > > *** *** *** *** *** *** *** *** > > 12-11 23:02:52.378: INFO/DEBUG(31): Build fingerprint: 'generic/ > > google_sdk/generic:2.3/GRH55/79397:eng/test-keys' > > 12-11 23:02:52.378: INFO/DEBUG(31): pid: 61, tid: 138 >>> > > system_server <<< > > 12-11 23:02:52.387: INFO/DEBUG(31): signal 11 (SIGSEGV), code 1 > > (SEGV_MAPERR), fault addr > > 12-11 23:02:52.397: INFO/DEBUG(31): r0 r1 406506a0 r2 > > 4128fab4 r3 458f3c74 > > 12-11 23:02:52.397: INFO/DEBUG(31): r4 012c r5 r6 > > 406506a0 r7 4128fab4 > > 12-11 23:02:52.407: INFO/DEBUG(31): r8 84301321 r9 84302240 10 > > 0010 fp 0001 > > 12-11 23:02:52.417: INFO/DEBUG(31): ip 82f0e7d4 sp 458f3c60 lr > > 82f0ab37 pc 82f07d0e cpsr 0030 > > 12-11 23:02:52.768: INFO/DEBUG(31): #00 pc 7d0e /system/lib/ > > libandroid_servers.so > > 12-11 23:02:52.768: INFO/DEBUG(31): #01 pc ab32 /system/lib/ > > libandroid_servers.so > > 12-11 23:02:52.768: INFO/DEBUG(31): #02 pc 12ca /system/lib/hw/ > > gps.goldfish.so > > 12-11 23:02:52.778: INFO/DEBUG(31): #03 pc 14ae /system/lib/hw/ > > gps.goldfish.so > > 12-11 23:02:52.778: INFO/DEBUG(31): #04 pc 00011a7c /system/lib/ > > libc.so > > 12-11 23:02:52.778: INFO/DEBUG(31): #05 pc 00011640 /system/lib/ > > libc.so > > 12-11 23:02:52.788: INFO/DEBUG(31): code around pc: > > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cec ab04b082 9301cb04 > > 6f646804 b00247a0 > > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cfc bc08bc10 4718b002 > > b510b40c ab04b082 > > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d0c 6804cb04 34f89301 > > 47a06824 bc10b002 > > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d1c b002bc08 46c04718 > > b510b40c ab04b082 > > 12-11 23:02:52.797: INFO/DEBUG(31): 82f07d2c 9301cb04 34986804 > > 47a06824 bc10b002 > > 12-11 23:02:52.797: INFO/DEBUG(31): code around lr: > > 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab14 91099008 f7fb6aa0 > > 900aeb14 1c3a910b > > 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab24 6b646b23 930c1c28 > > 1c31940d f7fd9b0f > > 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab34 4906f8e7 44791c28 > > f7ff3150 b011fe1d > > 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab44 46c0bdf0 454c > > 42c8 0786 > > 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab54 f7fbb510 bd10ec7c > > 4802b510 f7fb4478 > > 12-11 23:02:52.807: INFO/DEBUG(31): stack: > > 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c20 > > 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c24 4059 /dev/ashmem/ > > dalvik-heap (delet
[android-developers] Re: unable to set gps geo fix
Hello, I am slowly coming to the conclusion that the ddms ping problem might be something that I could ignore because that command is only to find out if the emulator has started to run. I am not sure though, so i am going to focus on my gps problem for now and here is some extra information: when i start the emulator, i am seeing this in the error log: 12-12 09:27:44.551: ERROR/ThrottleService(61): Could not open GPS configuration file /etc/gps.conf Do I have to provide a gps.conf somewhere if i want to get locations from gps in the emulator? Thank you On Dec 11, 11:06 pm, doles wrote: > Hello, > > I have a simple class like the Hello MapView example on android dev > guide. I have added a location listener to it and when this app runs > on my emulator, i telnet to the emulator and send a geo fix such as > geo fix 1 1. This is causing the emulator to crash with a thread dump > and a list of services that died... what could be wrong? The other > thing that happens before the emulator starts is that my IDE starts > ddms with arguments "ping emulator standalone". This results in an > error at at > com.android.sdkstats.SdkStatsService.normalizeVersion(SdkStatsService.java: > 467). At this line, it is clear that that class is expecting a 4 digit > number with dots in it and my IDE is sending in the word "standalone". > I dont know if these two are related, but I need the ability to set > geo fixes and that is not working!!! Has anyone seen this? What am I > missing? > > 12-11 23:02:52.378: INFO/DEBUG(31): *** *** *** *** *** *** *** *** > *** *** *** *** *** *** *** *** > 12-11 23:02:52.378: INFO/DEBUG(31): Build fingerprint: 'generic/ > google_sdk/generic:2.3/GRH55/79397:eng/test-keys' > 12-11 23:02:52.378: INFO/DEBUG(31): pid: 61, tid: 138 >>> > system_server <<< > 12-11 23:02:52.387: INFO/DEBUG(31): signal 11 (SIGSEGV), code 1 > (SEGV_MAPERR), fault addr > 12-11 23:02:52.397: INFO/DEBUG(31): r0 r1 406506a0 r2 > 4128fab4 r3 458f3c74 > 12-11 23:02:52.397: INFO/DEBUG(31): r4 012c r5 r6 > 406506a0 r7 4128fab4 > 12-11 23:02:52.407: INFO/DEBUG(31): r8 84301321 r9 84302240 10 > 0010 fp 0001 > 12-11 23:02:52.417: INFO/DEBUG(31): ip 82f0e7d4 sp 458f3c60 lr > 82f0ab37 pc 82f07d0e cpsr 0030 > 12-11 23:02:52.768: INFO/DEBUG(31): #00 pc 7d0e /system/lib/ > libandroid_servers.so > 12-11 23:02:52.768: INFO/DEBUG(31): #01 pc ab32 /system/lib/ > libandroid_servers.so > 12-11 23:02:52.768: INFO/DEBUG(31): #02 pc 12ca /system/lib/hw/ > gps.goldfish.so > 12-11 23:02:52.778: INFO/DEBUG(31): #03 pc 14ae /system/lib/hw/ > gps.goldfish.so > 12-11 23:02:52.778: INFO/DEBUG(31): #04 pc 00011a7c /system/lib/ > libc.so > 12-11 23:02:52.778: INFO/DEBUG(31): #05 pc 00011640 /system/lib/ > libc.so > 12-11 23:02:52.788: INFO/DEBUG(31): code around pc: > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cec ab04b082 9301cb04 > 6f646804 b00247a0 > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cfc bc08bc10 4718b002 > b510b40c ab04b082 > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d0c 6804cb04 34f89301 > 47a06824 bc10b002 > 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d1c b002bc08 46c04718 > b510b40c ab04b082 > 12-11 23:02:52.797: INFO/DEBUG(31): 82f07d2c 9301cb04 34986804 > 47a06824 bc10b002 > 12-11 23:02:52.797: INFO/DEBUG(31): code around lr: > 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab14 91099008 f7fb6aa0 > 900aeb14 1c3a910b > 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab24 6b646b23 930c1c28 > 1c31940d f7fd9b0f > 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab34 4906f8e7 44791c28 > f7ff3150 b011fe1d > 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab44 46c0bdf0 454c > 42c8 0786 > 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab54 f7fbb510 bd10ec7c > 4802b510 f7fb4478 > 12-11 23:02:52.807: INFO/DEBUG(31): stack: > 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c20 > 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c24 4059 /dev/ashmem/ > dalvik-heap (deleted) > 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c28 0009 > 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c2c > 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c30 ab90 [heap] > 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c34 81d48bd3 /system/lib/ > libdvm.so > 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c38 ab90 [heap] > 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c3c 458f3c6c > 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c40 00010004 [heap] > 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c44 81d3761b /system/lib/ > libdvm.so > 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c48 3ff0 > 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c4c 84300daf /system/lib/hw/ > gps.goldfish.so > 12-11 23:02:52.827: INFO/DEBUG(31): 458f
[android-developers] ddms problem ping emulator standalone? unable to set gps geo fix
Hello, I have a simple class like the Hello MapView example on android dev guide. I have added a location listener to it and when this app runs on my emulator, i telnet to the emulator and send a geo fix such as geo fix 1 1. This is causing the emulator to crash with a thread dump and a list of services that died... what could be wrong? The other thing that happens before the emulator starts is that my IDE starts ddms with arguments "ping emulator standalone". This results in an error at at com.android.sdkstats.SdkStatsService.normalizeVersion(SdkStatsService.java: 467). At this line, it is clear that that class is expecting a 4 digit number with dots in it and my IDE is sending in the word "standalone". I dont know if these two are related, but I need the ability to set geo fixes and that is not working!!! Has anyone seen this? What am I missing? 12-11 23:02:52.378: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 12-11 23:02:52.378: INFO/DEBUG(31): Build fingerprint: 'generic/ google_sdk/generic:2.3/GRH55/79397:eng/test-keys' 12-11 23:02:52.378: INFO/DEBUG(31): pid: 61, tid: 138 >>> system_server <<< 12-11 23:02:52.387: INFO/DEBUG(31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 12-11 23:02:52.397: INFO/DEBUG(31): r0 r1 406506a0 r2 4128fab4 r3 458f3c74 12-11 23:02:52.397: INFO/DEBUG(31): r4 012c r5 r6 406506a0 r7 4128fab4 12-11 23:02:52.407: INFO/DEBUG(31): r8 84301321 r9 84302240 10 0010 fp 0001 12-11 23:02:52.417: INFO/DEBUG(31): ip 82f0e7d4 sp 458f3c60 lr 82f0ab37 pc 82f07d0e cpsr 0030 12-11 23:02:52.768: INFO/DEBUG(31): #00 pc 7d0e /system/lib/ libandroid_servers.so 12-11 23:02:52.768: INFO/DEBUG(31): #01 pc ab32 /system/lib/ libandroid_servers.so 12-11 23:02:52.768: INFO/DEBUG(31): #02 pc 12ca /system/lib/hw/ gps.goldfish.so 12-11 23:02:52.778: INFO/DEBUG(31): #03 pc 14ae /system/lib/hw/ gps.goldfish.so 12-11 23:02:52.778: INFO/DEBUG(31): #04 pc 00011a7c /system/lib/ libc.so 12-11 23:02:52.778: INFO/DEBUG(31): #05 pc 00011640 /system/lib/ libc.so 12-11 23:02:52.788: INFO/DEBUG(31): code around pc: 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cec ab04b082 9301cb04 6f646804 b00247a0 12-11 23:02:52.788: INFO/DEBUG(31): 82f07cfc bc08bc10 4718b002 b510b40c ab04b082 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d0c 6804cb04 34f89301 47a06824 bc10b002 12-11 23:02:52.788: INFO/DEBUG(31): 82f07d1c b002bc08 46c04718 b510b40c ab04b082 12-11 23:02:52.797: INFO/DEBUG(31): 82f07d2c 9301cb04 34986804 47a06824 bc10b002 12-11 23:02:52.797: INFO/DEBUG(31): code around lr: 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab14 91099008 f7fb6aa0 900aeb14 1c3a910b 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab24 6b646b23 930c1c28 1c31940d f7fd9b0f 12-11 23:02:52.797: INFO/DEBUG(31): 82f0ab34 4906f8e7 44791c28 f7ff3150 b011fe1d 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab44 46c0bdf0 454c 42c8 0786 12-11 23:02:52.807: INFO/DEBUG(31): 82f0ab54 f7fbb510 bd10ec7c 4802b510 f7fb4478 12-11 23:02:52.807: INFO/DEBUG(31): stack: 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c20 12-11 23:02:52.807: INFO/DEBUG(31): 458f3c24 4059 /dev/ashmem/ dalvik-heap (deleted) 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c28 0009 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c2c 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c30 ab90 [heap] 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c34 81d48bd3 /system/lib/ libdvm.so 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c38 ab90 [heap] 12-11 23:02:52.817: INFO/DEBUG(31): 458f3c3c 458f3c6c 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c40 00010004 [heap] 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c44 81d3761b /system/lib/ libdvm.so 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c48 3ff0 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c4c 84300daf /system/lib/hw/ gps.goldfish.so 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c50 000c 12-11 23:02:52.827: INFO/DEBUG(31): 458f3c54 458f3e00 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c58 df002777 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c5c e3a070ad 12-11 23:02:52.836: INFO/DEBUG(31): #00 458f3c60 0045 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c64 8053bf25 /system/lib/ libandroid_runtime.so 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c68 012c 12-11 23:02:52.836: INFO/DEBUG(31): 458f3c6c 82f0ab37 /system/lib/ libandroid_servers.so 12-11 23:02:52.846: INFO/DEBUG(31): 458f3c70 4128fab4 /dev/ashmem/ dalvik-LinearAlloc (deleted) 12-11 23:02:52.846: INFO/DEBUG(31): 458f3c74 0001 12-11 23:02:52.846: INFO/DEBUG(31): #01 458f3c78 12-11 23:02:52.846: INFO/DEBUG(31): 458f3c7c 3ff0 12-11 23:02:52.846: INFO/DEBUG(31): 458f3c80 12-11 23:02:52.846: INFO/DEBUG(31): 458f3c84 3ff0 12-11 23:02:52.858: INFO/DEBUG(31): 458f3c88 12-11 23:02:52.858: INFO/DEBUG(31): 458f3c8c 12-11 23:02:52.858: INFO/DEBUG(31): 458f3c90 12-11 23:02:52.858: INFO/DEBUG(31): 458f3c94 12-1
[android-developers] Re: hello map view problem
Nvm... this was due to the fact that I did not have my debug.keystore registered with google maps API service... On Dec 11, 8:10 pm, doles wrote: > Hello, > > I am trying to run the Hello, Mapview program from the anrdoid dev > guide on an emulator. Here's the exception I keep getting. What could > be wrong? I have ensured that my code is exactly as per the dev guide > except my package name and such things. Thanks in Advance! > > 12-11 19:57:19.547: WARN/System.err(723): java.io.IOException: Server > returned: 3 > 12-11 19:57:19.566: WARN/System.err(723): at > android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.re > adResponseData(BaseTileRequest.java: > 115) > 12-11 19:57:19.566: WARN/System.err(723): at > android_maps_conflict_avoidance.com.google.googlenav.map.MapService > $MapTileRequest.readResponseData(MapService.java:1473) > 12-11 19:57:19.576: WARN/System.err(723): at > android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques > tDispatcher.processDataRequest(DataRequestDispatcher.java: > 1117) > 12-11 19:57:19.586: WARN/System.err(723): at > android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques > tDispatcher.serviceRequests(DataRequestDispatcher.java: > 994) > 12-11 19:57:19.596: WARN/System.err(723): at > android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataReques > tDispatcher > $DispatcherServer.run(DataRequestDispatcher.java:1702) > 12-11 19:57:19.606: WARN/System.err(723): at > java.lang.Thread.run(Thread.java:1019) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hello map view problem
Hello, I am trying to run the Hello, Mapview program from the anrdoid dev guide on an emulator. Here's the exception I keep getting. What could be wrong? I have ensured that my code is exactly as per the dev guide except my package name and such things. Thanks in Advance! 12-11 19:57:19.547: WARN/System.err(723): java.io.IOException: Server returned: 3 12-11 19:57:19.566: WARN/System.err(723): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java: 115) 12-11 19:57:19.566: WARN/System.err(723): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService $MapTileRequest.readResponseData(MapService.java:1473) 12-11 19:57:19.576: WARN/System.err(723): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java: 1117) 12-11 19:57:19.586: WARN/System.err(723): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java: 994) 12-11 19:57:19.596: WARN/System.err(723): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher $DispatcherServer.run(DataRequestDispatcher.java:1702) 12-11 19:57:19.606: WARN/System.err(723): at java.lang.Thread.run(Thread.java:1019) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] "Error loading preferences"
Hello folks, I am working with a freshly installed android SDK and each time I try to run the emulator, I see a message "Error loading preferences" in the second command prompt window that comes up. After that, my emulator comes up fine. I can even install apps once my emulator is up. The problem is when I run the emulator through my IDE, something prevents my IDE from knowing that my emulator is up. So, it never installs my apk to the emulator. I can install it using the adb manually but not through my IDE. I suspect that it is this "Error loading preferences" thing, but dont know for sure. This command prompt window shows up only for like less than a second and its really hard to read what it is for in those few milliseconds. I ran the emulator in -verbose mode and also googled this problem - no doughnut for me so far. Does anyone know this error? Thanks, Sachin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] source for SDK
Hello All, I am new to android dev but not new to java or UI development. Where do I download source code for the android SDK from so that I can click through to sources in my IDE just as it can commonly be done in java apps? Thank you, Sachin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en