[android-developers] My Country Is Not Available
Dear Developers Please assist with my frustration and perhaps ignorance in this Google+ / Google Play et al. I live on Norfolk Island. We are in the South Pacific, and sit between New Zealand and Australia. We are in fact, an external territory of Australia. There are many apps that I would like to download and install on my Android, but get the message "The App is Not Available in Your Country". I have paid much $$$ in phone calls to Google in hope of finding someone who can actually help me, and resolve this problem. I have even contacted the Developers of such programs, and have been stunned at their ability to assist me. I am writing to ask you to please, include Norfolk Island in your database for ALL apps, games, books etc etc, whereby all of us here who use an Android can actually join the rest of the world, and be able to access and download. I hope you are able to assist me with this, I understand it may take some time, but if I continue sending messages and emails, maybe one day, someone might actually take the time to add my country. Thank you for your time in reading this, and hopefully resolving this major issue. Regards Darls -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/42df2841-9f02-46b5-9456-9f84d68dfdff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Adding a ViewGroup to RelativeLayout
I want a RelativeLayout that's composed of two parts: The bottom portion is an xml TableLayout file, and the top portion, which i plan to do later, will be a separate custom view. So far i tried to add the TableLayout to the RelativeLayout and am already getting an error. public class mainActivity extends Activity{ RelativeLayout relativeLayout; TableLayout tableLayoutl; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); relativeLayout=new RelativeLayout(this); ViewGroup vg= (ViewGroup)findViewById(R.layout.myTableLayout); RelativeLayout.LayoutParams relativeParams = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); relativeLayout.addView(vg,relativeParams); setContentView(relativeLayout); } } I feel like there is a much easier way to do this, any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding a ViewGroup to RelativeLayout
On Friday, September 21, 2012 8:56:26 PM UTC-4, Shoaib Dar wrote: I want a RelativeLayout that's composed of two parts: The bottom portion is an xml TableLayout file, and the top portion, which i plan to do later, will be a separate custom view. So far i tried to add the TableLayout to the RelativeLayout and am already getting an error. public class mainActivity extends Activity{ RelativeLayout relativeLayout; TableLayout tableLayout; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); relativeLayout=new RelativeLayout(this); ViewGroup vg= (ViewGroup)findViewById(R.layout.myTableLayout); RelativeLayout.LayoutParams relativeParams = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); relativeLayout.addView(vg,relativeParams); setContentView(relativeLayout); } } I feel like there is a much easier way to do this, any help? EDIT: there is nothing wrong with the imports and/or typing mistakes, etc. I basically want to know if this is a good approach for dividing a RelativeLayout, and if i making any general logical errors above when i am adding views to RelativeLayout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Adding a ViewGroup to RelativeLayout
There is nothing wrong with the imports and/or typing mistakes, etc. I basically want to know if this is a good approach for dividing a RelativeLayout, and if i making any general logical errors above when i am adding views to RelativeLayout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiple Views on an activity.
I need the top half of an activity for a game to be an interactive view, and the bottom half should have text and buttons that changes over time. I don't know where to start. Would you suggest i set most of this up in XML? is there an easy way for an activity to display separate views like this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Editing XML file with Java
I want to edit an existing xml layout, using Java. I thought the following 2 lines would work. but Android does not display the layout. what am i doing wrong? ScrollView sv = (ScrollView)findViewById(R.layout.main_scrollview_layout); setContentView(sv); Also does anyone know how i can set scrollview to automatically scroll? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Editing XML file with Java
Okay, thanks. but by automatic, i meant that the view should scroll downward without user interaction; at a pace that i can set up. On Wednesday, September 12, 2012 3:41:44 PM UTC-4, TreKing wrote: On Wed, Sep 12, 2012 at 11:45 AM, Shoaib Dar sda...@gmail.comjavascript: wrote: ScrollView sv = (ScrollView)findViewById(R.layout.main_scrollview_layout); setContentView(sv); This doesn't make sense. findViewByID finds a view withing the Activity's hierarchy, while setContentView sets the View to be the root of the hierarchy. Therefore, if you can find it, it's already part of the layout so there's no need to set it. And if it's not already part of the hierarchy, then you won't be able to find it. You want setContentView(R.layout.main_scrollview_layout); Also does anyone know how i can set scrollview to automatically scroll? That should be automatic. That's kind of the point of ScrollView. - 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] AndEngine (GLES2) examples?
I am trying to get started working with AndEngine, but i cannot find examples of AndEngine (GLES2) programs online. i can only find 2 basic sample projects. Can anyone help me out? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AndEngine (GLES2) examples?
17 hours and not a single view... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: oauth_callback is not calling the activity
At first glance, it looks like the host parameter does not match your oauth_callback. On Jul 13, 7:16 pm, bo bost...@gmail.com wrote: I have a Twitter app and I need user of my Android application to authorize its use. I'm at the point where I can call Twitter app page in the browser from my code and successfully authorize. However, the callback seem not to be working, I end up with the confirmation message and PIN in the browser but my Android activity is never called (onResume is not triggered) and browser just stays open. Here's what I have 1. Twitter URL which starts activity in the external browser:http://twitter.com/oauth/authorize?oauth_token=actualtokenhereoauth_... 2. In my activity definition I have this intent-filter intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:scheme=myapp android:host=twitt/ /intent-filter 3. As I stated - I get confirmation but not redirect so the Android app is never called back --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 put an AppWidget on lock screen?
The documentation hints that: ...the lock screen could also contain widgets, and it would have a different way of adding, removing and otherwise managing widgets. [1] Now that I have 1.5, I can see the lock screen changed to show the same background as the home screen. Is there a way to put AppWidgets on the lock screen in 1.5? [1] http://developer.android.com/reference/android/appwidget/package-descr.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: How to put an AppWidget on lock screen?
Thanks for answering. It'll be pretty cool when you add that in. On May 29, 2:42 pm, Jeff Sharkey jshar...@android.com wrote: That documentation is describing an example of what another AppWidgetHost might look like, but we haven't implemented widgets on the default lock screen that shipped with 1.5. j On Fri, May 29, 2009 at 6:13 AM, dar dher...@gmail.com wrote: The documentation hints that: ...the lock screen could also contain widgets, and it would have a different way of adding, removing and otherwise managing widgets. [1] Now that I have 1.5, I can see the lock screen changed to show the same background as the home screen. Is there a way to put AppWidgets on the lock screen in 1.5? [1]http://developer.android.com/reference/android/appwidget/package-desc... -- Jeff Sharkey jshar...@android.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: SharedPreferences got deleted! - What could be the problem?
I don't see anything in that example, but until http://code.google.com/p/android/issues/detail?id=1707 is released, I have been escaping all user generated strings before saving them. This has cut down my user complaints after I figured out they were putting these problem characters into the fields. On May 7, 4:22 pm, so_is festival.s...@googlemail.com wrote: Well I know this bug. Here are the characters which can be in my settings file: http://paste.pocoo.org/show/lqqABv2lblNz1Bkh9XNs/ Is there anything that could cause problems? On May 7, 3:18 pm, dar dher...@gmail.com wrote: Try putting in xml special characters into the strings you are saving directly with the editor without xml-escaping them, e.g. ' and see if this reproduces the problem when you try to read in the saved preferences after your app has been killed (after a reboot, for example). On May 7, 5:24 am, so_is festival.s...@googlemail.com wrote: Thank you very much for your comment Mark. Well at the moment I am prior to redo the whole preferences saving my settings into a Sqlite database. I can not find the bug in my code and my app relies on this settings so I don't see any other chance to get rid of the lost settings bug. On May 6, 12:56 pm, Mark Murphy mmur...@commonsware.com wrote: so_is wrote: Well Mark the problem is that I am using the suggested way to save the settings. I do commit every single edit() like suggested. But a lot of users are still reporting that they lose settings. I don't know why but it happens some times. :( (I have worked with my app for 2 months now and have never lost the settings) It will be difficult to fix the bug without a repeatable scenario. To sum up I don't like the suggestion using Sqlite because I would just ignore a bug which is obviously there but no one knows what it really is. If you can come up with a repeatable scenario for theSharedPreferences damage, post an issue tohttp://b.android.comwithaprojectand instructions for causing the problem. Otherwise, if I were in your shoes, I would switch to some other means (e.g., SQLite) of storing the data you are storing inSharedPreferences, simply to make your users happy. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SharedPreferences got deleted! - What could be the problem?
Try putting in xml special characters into the strings you are saving directly with the editor without xml-escaping them, e.g. ' and see if this reproduces the problem when you try to read in the saved preferences after your app has been killed (after a reboot, for example). On May 7, 5:24 am, so_is festival.s...@googlemail.com wrote: Thank you very much for your comment Mark. Well at the moment I am prior to redo the whole preferences saving my settings into a Sqlite database. I can not find the bug in my code and my app relies on this settings so I don't see any other chance to get rid of the lost settings bug. On May 6, 12:56 pm, Mark Murphy mmur...@commonsware.com wrote: so_is wrote: Well Mark the problem is that I am using the suggested way to save the settings. I do commit every single edit() like suggested. But a lot of users are still reporting that they lose settings. I don't know why but it happens some times. :( (I have worked with my app for 2 months now and have never lost the settings) It will be difficult to fix the bug without a repeatable scenario. To sum up I don't like the suggestion using Sqlite because I would just ignore a bug which is obviously there but no one knows what it really is. If you can come up with a repeatable scenario for theSharedPreferences damage, post an issue tohttp://b.android.comwitha project and instructions for causing the problem. Otherwise, if I were in your shoes, I would switch to some other means (e.g., SQLite) of storing the data you are storing inSharedPreferences, simply to make your users happy. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android service utilizing custom usb device
Currently there is no usb host in the api. You'll need the ability for android to be a usb host, marked as an enhancement here: http://code.google.com/p/android/issues/detail?id=738 You should star this issue if it is important to you. On Apr 28, 9:57 am, Ke keke...@gmail.com wrote: Hi Everyone, I am looking to implement an Android service that will serve as the driver/hardware access for a device that will connect to the usb host port. Is there a good framework or example showing how I can make a service interact with this device? Its not a standard device that Android already supports other than the fact it connects via usb. I am able to do this with linux libusb native code already but what would be the pathway to make this work through the android java framework? I want to avoid having to make a kernel level driver for this that is why I prefer to have this implemented as a service for other apps to access the device. thanks, Ke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 android_id from GoogleLoginServiceBlockingHelper?
You probably want to star issue 1073 http://code.google.com/p/android/issues/detail?id=1073 then you will get updates if it is worked on. On Apr 16, 5:09 am, Mariano Kamp mariano.k...@gmail.com wrote: Well, did Cupcake bring some functionality that lets non-Google apps access the user's Google credentials or has there been any progress in that direction? Reading your question I assume the answer is no. But what would be good way to get to know if there are any plans to provide the functionality mentioned above? On Fri, Mar 20, 2009 at 10:50 PM, Dianne Hackborn hack...@android.comwrote: Sorry maybe someone else can help you but I can't; I work on the Android platform, I am not that familiar with what is going on with the Google apps. On Fri, Mar 20, 2009 at 1:01 PM, Mariano Kamp mariano.k...@gmail.comwrote: On a related note, is there any API today or planned for tomorrow for accessing the user's Google credentials in a safe way to pass them onto a Google service? The actual context is that I have users complaining that they don't want to give my app their google userid/pw to access Google Reader via my app. I hear Gmail doesn't ask me for that ... Of course, I am aware, that my app will not be on equal footing with Gmail, but I am still wondering if there is any way around getting to know the user's credentials today? Or in Cupcake? 2009/3/20 Dianne Hackborn hack...@android.com This will be fixed in cupcake, where we have a secure settings area that nobody outside of the system can touch. Also keep in mind that GoogleLoginServiceBlockingHelper is not public API. In fact it is not an Android API at all, it is part of the Google application suite which will not be on all Android phones. On Fri, Mar 20, 2009 at 10:47 AM, strazzere str...@gmail.com wrote: The android_id *should* not change, but can currently be modified. It's stored in the database located at; /data/data/com.android.providers.settings/databases/settings.db Run the query; select * from system; You'll see plenty of information which can then be changed; update system set value='dead00beef' where name='android_id'; However, this only changes the android_id when you do a call to Settings.System.ANDROID_ID - not how google does it through the GoogleLoginServiceBlockingHelper. -Tim On Feb 28, 8:30 am, dar dher...@gmail.com wrote: I have a related question - is android_id implemented on the device and thus will not change no matter which gmail account is used on that device? I am hoping that if a user downloads my app and runs it on one device that they will get one android_id, and if they also use the same gmail account on a different device that this will result in a different android_id. Is this true? On Feb 26, 4:47 pm, Dan Bornstein danf...@android.com wrote: On Thu, Feb 26, 2009 at 12:15 PM, strazzere str...@gmail.com wrote: Here is a small snippet; [...] I'm sorry to harp on this, but please provide a complete, *compilable* and *runnable* example, along with what you actually observed when running it (e.g., log output) I don't doubt that you are seeing a problem, but I've been burned way too many times by program fragments not actually triggering the alleged problem to be willing to spend any time (nor expect anyone else to spend the time) to flesh out an incomplete fragment. What you've provided thus far, I am afraid, isn't sufficient to demonstrate the problem. Thanks in advance for your continued efforts, -dan -- 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. All such questions should be posted on public forums, where I and others can see and answer them. -- 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. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Does the Android support USB devices?
Not yet. You'll need the ability for android to be a usb host, marked as an enhancement here: http://code.google.com/p/android/issues/detail?id=738 On Mar 13, 3:33 am, Will wbc...@gmail.com wrote: Question for anyone who thinks they know: Can Android interface with USB devices, like Phidgets? I looked, but I found nothing indicating it is possible or impossible. Has anyone done any work in this area? My goal here is to plug a Phidget Encoder into the Android to stream data to an app I'm writing. Thoughts, oh ye developers of Android? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How is the website in the contact info for each app used?
The phone, email, and website are displayed in the market app. The user can touch the website and it launches the browser to that page. It can be done before they install the app. On Mar 8, 7:48 am, Teo teomina...@gmail.com wrote: Can users visit the app website before installing? Sorry for asking a question that might be stupid but i don't have an Android phone... Thanks in advance, Teo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problem with video playing
I think Dave is saying you have to transcode down to 480x320 - the maximum frame size the G1 supports. This brings up a second question, when we grab video assets, is there an api call to determine the maximum profile supported? I suppose that devices with better capabilities will come out and it would be nice to be able to give the higher quality streams to the better devices. On Mar 6, 5:35 am, manoj manojkumar.m...@gmail.com wrote: so, how can I solve it? even if I fixed the holder size to 320*240, I am not getting the video, only audio comes. can you please help me. Thanks, Manoj. On Mar 6, 3:16 pm, Dave Sparks davidspa...@android.com wrote: If you are trying to play this on a G1, the frame size is too large. The H.264 codec is base profile up to HVGA (480x320). It's pointless to encode at VGA when the screen is HGVA - you're wasting half your bandwidth for pixels you will never see. On Mar 6, 1:42 am, manoj manojkumar.m...@gmail.com wrote: Hi, I have created a small application which plays video file. I am using .mp4 files to play. Its working for only some files, but for some files, I am getting only audio there is no video at all. When I observed the properties of the media files, 1. Format: MPEG-4 Video, 320*240, AAC Movie FPS:29.97, Data size: 3.76, Data Rate:316.03 kbps, noram size:320*240, current size:320*240 - PLAYING PERFECTLY 2. Format:h.264, 640*480, AAC Movie FPS: 29.97 data size:25.76 MB noramal size : 640*480, current size:640*480 - NO VIDEO, ONLY AUDIO. can any one please suggest me, how to solve this issue. Thanks, Manoj.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with video playing
/AudioHardwareMSM72XX( 491): Going to standby I/AudioHardwareMSM72XX( 491): Set master volume to 5. I/AudioHardwareMSM72XX( 491): Routing audio to Speakerphone D/AudioHardwareMSM72XX( 491): msm72xx_enable_audpp: 0x0001 I/AudioFlinger( 491): AudioFlinger's main thread ready to run. I/CameraService( 491): CameraService started: pid=491 E/AudioService( 52): Media server died. E/AudioService( 52): Media server started. D/AudioHardwareMSM72XX( 491): setVoiceVolume(1.00) I/AudioHardwareMSM72XX( 491): Setting in-call volume to 5 (available range is 0 to 5) D/SurfaceFlinger( 52): About to give-up screen, flinger = 0x14f7e0 D/dalvikvm( 52): GC freed 19707 objects / 889768 bytes in 325ms D/WifiStateTracker( 52): Deconfiguring interface and stopping DHCP W/Smack/Packet( 127): notify conn break (IOEx), close connection D/Smack ( 127): [XMPPConn] close connection, notifyClosed=false W/Smack/Packet( 127): notify conn break (IOEx), close connection D/Smack ( 127): [XMPPConn] close: socket already closed, bail D/GpsLocationProvider( 52): updateNetworkState unavailable D/dalvikvm( 191): GC freed 93 objects / 4584 bytes in 101ms D/dalvikvm( 52): GC freed 20009 objects / 925008 bytes in 271ms D/dalvikvm( 52): GC freed 17478 objects / 842136 bytes in 284ms D/KeyguardViewMediator( 52): wakeWhenReadyLocked(82) D/KeyguardViewMediator( 52): handleWakeWhenReady(82) D/KeyguardViewMediator( 52): pokeWakelock(5000) D/SurfaceFlinger( 52): Screen about to return, flinger = 0x14f7e0 D/WifiStateTracker( 52): DhcpHandler: DHCP request started D/KeyguardViewMediator( 52): pokeWakelock(5000) D/WifiWatchdogService( 52): (android.server.ServerThread) NETGEAR (00:1b:2f:fe:4e:28) does not require the watchdog D/GpsLocationProvider( 52): updateNetworkState available D/GpsLocationProvider( 52): NetworkThread wait for 12065480ms I/ActivityManager( 52): Stopping service: com.android.providers.downloads/.DownloadService On Mar 6, 7:56 pm, manoj manojkumar.m...@gmail.com wrote: Hi, From my log, I found the following errrors: E/MemoryHeapBase( 465): mmap(fd=19, size=233472) failed (Invalid argument) E/VideoMIO( 465): Error creating frame buffer heap can any one help me? Thanks, manoj. On Mar 6, 7:32 pm, manoj manojkumar.m...@gmail.com wrote: ok, thanks for your reply. I have some questions in my mind, when to use which SurfaceHolder's type. I mean when to use SURFACE_TYPE_GPU, SURFACE_TYPE_HARDWARE , SURFACE_TYPE_NORMAL, SURFACE_TYPE_PUSH_BUFFERS. Can you please explain me in detail. Thanks, Manoj. On Mar 6, 6:54 pm, dar dher...@gmail.com wrote: I think Dave is saying you have to transcode down to 480x320 - the maximum frame size the G1 supports. This brings up a second question, when we grab video assets, is there an api call to determine the maximum profile supported? I suppose that devices with better capabilities will come out and it would be nice to be able to give the higher quality streams to the better devices. On Mar 6, 5:35 am, manoj manojkumar.m...@gmail.com wrote: so, how can I solve it? even if I fixed the holder size to 320*240, I am not getting the video, only audio comes. can you please help me. Thanks, Manoj. On Mar 6, 3:16 pm, Dave Sparks davidspa...@android.com wrote: If you are trying to play this on a G1, the frame size is too large. The H.264 codec is base profile up to HVGA (480x320). It's pointless to encode at VGA when the screen is HGVA - you're wasting half your bandwidth for pixels you will never see. On Mar 6, 1:42 am, manoj manojkumar.m...@gmail.com wrote: Hi, I have created a small application which plays video file. I am using .mp4 files to play. Its working for only some files, but for some files, I am getting only audio there is no video at all. When I observed the properties of the media files, 1. Format: MPEG-4 Video, 320*240, AAC Movie FPS:29.97, Data size: 3.76, Data Rate:316.03 kbps, noram size:320*240, current size:320*240 - PLAYING PERFECTLY 2. Format:h.264, 640*480, AAC Movie FPS: 29.97 data size:25.76 MB noramal size : 640*480, current size:640*480 - NO VIDEO, ONLY AUDIO. can any one please suggest me, how to solve this issue. Thanks, Manoj.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group
[android-developers] Re: Problem with video playing
There are a bunch of different ways to transcode, the path you choose will depend, at least, on your source material and available tools. Here's the wikipedia entry, this should be enough to get you started in the right direction: http://en.wikipedia.org/wiki/Transcoding On Mar 6, 1:03 pm, manoj manojkumar.m...@gmail.com wrote: Hi dar, can you please tell me how to transcode? waiting for your reply... Thanks, Manoj. On Mar 6, 9:03 pm, dar dher...@gmail.com wrote: This seems like a big hint: W/PlayerDriver( 465): Video cannot catch up. Are you playing a high quality content? E/MediaPlayer( 235): Error (44,0) Did you transcode your content to be smaller/less bandwidth before running this test according to the specs Dave gave above? On Mar 6, 10:22 am, manoj manojkumar.m...@gmail.com wrote: Here I am providing you my complete log file: I/ActivityManager( 52): Starting activity: Intent { comp= {bluemediaLab.vodcast.tests/ bluemediaLab.vodcast.tests.MediaPlayerDemo_Video} (has extras) } D/MediaPlayerDemo( 235): surfaceCreated called I/MediaPlayer-JNI( 235): prepareAsync: surface=0x20b488 (id=2) D/MediaPlayerDemo( 235): surfaceChanged called I/ActivityManager( 52): Displayed activity bluemediaLab.vodcast.tests/.MediaPlayerDemo_Video: 224 ms E/MemoryHeapBase( 465): mmap(fd=19, size=233472) failed (Invalid argument) E/VideoMIO( 465): Error creating frame buffer heap D/MediaPlayerDemo( 235): onPrepared called W/AudioFlinger( 465): write blocked for 96 msecs W/PlayerDriver( 465): Video cannot catch up. Are you playing a high quality content? E/MediaPlayer( 235): Error (44,0) D/MediaPlayerDemo( 235): onCompletion called D/MediaPlayerDemo( 235): surfaceDestroyed called I/DEBUG ( 464): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 464): Build fingerprint: 'android-devphone1/ dream_devphone/dream/trout:1.0/UNLOCKED/116222:userdebug/test-keys' I/DEBUG ( 464): pid: 465, tid: 487 /system/bin/mediaserver I/DEBUG ( 464): signal 11 (SIGSEGV), fault addr 803180c8 I/DEBUG ( 464): r0 803180a8 r1 0004a80c r2 40507e64 r3 0004a80c I/DEBUG ( 464): r4 0004a80c r5 0004a808 r6 800030c8 r7 1540 I/DEBUG ( 464): r8 40407bbc r9 afe35d78 10 a9d2760d fp 0001 I/DEBUG ( 464): ip 0010 sp 40507e60 lr 80002335 pc 80001ef2 cpsr 0030 I/DEBUG ( 464): #00 pc 80001ef2 /system/lib/ libOmxCore.so I/DEBUG ( 464): #01 pc 80002332 /system/lib/ libOmxCore.so I/DEBUG ( 464): #02 pc 8000249e /system/lib/ libOmxCore.so I/DEBUG ( 464): #03 pc a70df844 /system/lib/ libpvplayer.so I/DEBUG ( 464): #04 pc a7172f74 /system/lib/ libpvplayer.so I/DEBUG ( 464): #05 pc a7172f92 /system/lib/ libpvplayer.so I/DEBUG ( 464): #06 pc a9d27674 /system/lib/libutils.so I/DEBUG ( 464): #07 pc afe0ed08 /system/lib/libc.so I/DEBUG ( 464): #08 pc afe0e87c /system/lib/libc.so I/DEBUG ( 464): stack: I/DEBUG ( 464): 40507e20 afe35ee8 I/DEBUG ( 464): 40507e24 afe1226d /system/lib/libc.so I/DEBUG ( 464): 40507e28 0004b754 [heap] I/DEBUG ( 464): 40507e2c 40507e6c I/DEBUG ( 464): 40507e30 afe2fe38 /system/lib/libc.so I/DEBUG ( 464): 40507e34 40507e6c I/DEBUG ( 464): 40507e38 0004b500 [heap] I/DEBUG ( 464): 40507e3c afe0dd48 /system/lib/libc.so I/DEBUG ( 464): 40507e40 2bb4 I/DEBUG ( 464): 40507e44 afe2fe38 /system/lib/libc.so I/DEBUG ( 464): 40507e48 afe35d78 I/DEBUG ( 464): 40507e4c a71af168 I/DEBUG ( 464): 40507e50 1540 I/DEBUG ( 464): 40507e54 afe12921 /system/lib/libc.so I/DEBUG ( 464): 40507e58 df002777 I/DEBUG ( 464): 40507e5c e3a070ad I/DEBUG ( 464): #00 40507e60 0019 I/DEBUG ( 464): 40507e64 afe2fe38 /system/lib/libc.so I/DEBUG ( 464): 40507e68 0004a80c [heap] I/DEBUG ( 464): 40507e6c 800030c8 I/DEBUG ( 464): 40507e70 a71af168 I/DEBUG ( 464): 40507e74 80002335 /system/lib/libOmxCore.so I/DEBUG ( 464): #01 40507e78 0004b6e8 [heap] I/DEBUG ( 464): 40507e7c 80003148 I/DEBUG ( 464): 40507e80 I/DEBUG ( 464): 40507e84 800024a1 /system/lib/libOmxCore.so I/ServiceManager( 26): service 'media.audio_flinger' died I/ServiceManager( 26): service 'media.player' died I/ServiceManager( 26): service 'media.camera' died W/MediaPlayer( 235): MediaPlayer server died! W/AudioSystem( 52): AudioFlinger server died! I/ ( 491): ServiceManager: 0xaab8 I/AudioHardwareMSM72XX( 491): get_audpp_filter I/AudioHardwareMSM72XX( 491): open /system/etc/AudioFilter.csv
[android-developers] Re: Shared preferences not accessible in service
See the Note on the docs: http://developer.android.com/reference/android/content/SharedPreferences.html. So, if your reader and writer are in the same process you are ok. If they are in separate processes you have to find another way to keep them in sync until the sdk supports separate processes. On Mar 3, 7:19 am, Shadakshari Hiremath shad...@gmail.com wrote: Hello Android, We are using SharedPreferences(Not default preferences.) to store our application related settings. These settings are not accessible in the background service as the application context is different from service context. It always returns the default values. We want to have our own UI to manage settings. So, we don't want to use PreferenceActivity. Is there a way or hack to access SharedPreferences from inside a service which are created by application? BR, Shaddu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can a browser link to a search of application in the market?
You have to match the package name exactly, and the app needs to be published and available in the market, and you have to click on the link. I found that just typing it in to the url of the browser did not work, but clicking on the link from a page does work. On Mar 3, 10:56 am, Mimi francisop...@gmail.com wrote: Using G1, go tohttp://www.myspace.com. Notice the site is able to detect the user agent from the browser and provides a link to search the MySpace application on the Android Marketplace. Google'shttp://code.google.com/android/devel/sign-publish.html#publishing provides options to search, e.g.http://market.android.com/search?q=pname:package. This does not work for me. Any help out there is appreciate. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 android_id from GoogleLoginServiceBlockingHelper?
I have a related question - is android_id implemented on the device and thus will not change no matter which gmail account is used on that device? I am hoping that if a user downloads my app and runs it on one device that they will get one android_id, and if they also use the same gmail account on a different device that this will result in a different android_id. Is this true? On Feb 26, 4:47 pm, Dan Bornstein danf...@android.com wrote: On Thu, Feb 26, 2009 at 12:15 PM, strazzere str...@gmail.com wrote: Here is a small snippet; [...] I'm sorry to harp on this, but please provide a complete, *compilable* and *runnable* example, along with what you actually observed when running it (e.g., log output) I don't doubt that you are seeing a problem, but I've been burned way too many times by program fragments not actually triggering the alleged problem to be willing to spend any time (nor expect anyone else to spend the time) to flesh out an incomplete fragment. What you've provided thus far, I am afraid, isn't sufficient to demonstrate the problem. Thanks in advance for your continued efforts, -dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Phone Calls
Rather than put in false information, you can change the contact information for your app, or remove the phone number so that if you only want to provide email support no phone number is displayed. If you click on your app in the market developer console, and scroll to the bottom there are three textboxes, one for website, phone number, and email address. I believe each app can have different contact information if you have a need for different people or channels to support each. On Feb 27, 3:39 pm, mark.ka...@gmail.com wrote: Should just change your number on your profile to 867 5309 , anyone with that number is used to getting random calls anyway:) On Feb 25, 11:56 pm, Al Sutton a...@funkyandroid.com wrote: I'd put up a SkypeIn number, mobile, or something similar that you can turn off when you're Off duty. Al. joshbeck wrote: Apparently my home phone number, where my wife and kid are asleep at 7:30, is listed directly under my application. I'm good for customer support. I just prefer, and I would imagine google might agree with this, to take care of people over email. Does my developer number have to remain there? (The sub text next to the profile page number clearly indicated it would not be distributed to third parties.) Does anyone have any thoughts on the phone number placement? I think we should have an option there. Any help is apprecaited? Josh Beck -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How many projects are being canned because of Market TCs
The http://www.android.com/market/terms/developer-content-policy.html states: Developers should only charge for applications and downloads from Android Market through the Market's Payment Processor. Developers may offer free applications as access points to paid services for which customers have registered and provided payment information. This should not be used as an alternative means to the Android Market Payment Processor to collect payment for usage of applications. This is on my company's roadmap, so I'm curious how you came to the conclusion that this is not allowed. You'll just have to find a different payment processor to do your paid services, and it shouldn't be hard to find one that will do subscriptions. You just need to be careful about separating the payment between the services and the android application. Such that if you offer the android app for free - you can never charge for the android app, only the data services it consumes. On Feb 19, 8:30 am, Al Sutton a...@funkyandroid.com wrote: Well, after a meeting of the directors, my company has just decided to shelve a project that was in development due to the short commings of Market and it's TCs. The project was going to offer a subscription service and would have met the all the criteria for being listed on Market, but Market clearly can't handle subscription services. We considered the app-per-subscription period approach but that would mean that Google would have a claim to 30% of all subscription fees and because the subscription fees were planned to be less than $10 per billing period Google would also have the right to refund a users subscription fee at any time without consulting us. So I'd be interested to know who else is in this boat because I think it's something that Google need to be made aware of so that can start addressing the problem. Al. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: discover intents that an app supports
The swamp you are describing is very similar to what has happened with Microsoft's COM architecture. Once a COM interface is out there, other developers start using it, whether you want them to or not. In Android, to make it easier to let developers communicate how to use intents you could add a url to document how to use the Intent to the intent-filter. This could enhance the ad-hoc discoverability interface you are asking for. In time, you might have an apk you want to utilize, but not know where to locate the documentation, but if the developer embeded the link to the documentation in the apk things get much easier. Further, a discovery tool could give the link to the developer, and if the documentation used some well known grammar your development tools could generate a code snippet showing usage for each Intent. That could be pretty powerful and help to decrease development time. It could look something like usage-url below: ... intent-filter action android:name=... usage-url android:name=http://mydomain.com/android-api/appname/ intent-name You could then either add to the PackageManager the ability to list out the intent-filters and usage-urls that go along with it, or build a separate tool which would go through the apk's and examine the AndroidManifest.xml to list the intent-filters and their usage-urls. The tool and could then be included in the IDE of your choice to generate the snippet code. On Feb 2, 6:30 am, jarkman jark...@gmail.com wrote: I see where you are coming from, but I think what may really happen is that the usage of intents between apps will turn into a terrible swamp. You can see it happening already, with developers using logcat output and guessing and finding snippets in other deveelopers blogs and reading source (where they can) to work out how to make some other app do their bidding. The lack of documentation clearly doesn't stop that process, it just makes it more laborious and untidy. The effect is that there is is no good distinction between 'private' and 'public' interfaces, since all intents are equally visible to these informal development processes, and so apps will come to depend on each other in undocumented and undisciplined ways. After that process has gone on for a year or two, we get a world where changing anything breaks something else, and the net effect on the user is that their apps are unreliable and they don't know whose fault it is. I really do hope that is not what happens, and I hope the platform finds some way to make the world of intents more transparent to developers. Just being able to see the intent filters of other apps would be a huge help. R. On Jan 30, 10:29 pm, Dianne Hackborn hack...@android.com wrote: I'll still say, if it hasn't been documented, then you probably have no business using it. If you want to go use private implementation details of the platform, you can browse through the source code and look at the manifests of the apps. That is all that the system knows about the intent protocols they support. On Fri, Jan 30, 2009 at 1:07 PM, jarkman jark...@gmail.com wrote: I understand the point about trying to stick to intents which have been documented by their developers. The problem is, even a well-intentioned but busy developer may simply not get round to writing that documentation. The system applications are a great example of that effect. At least, with a discovery API, we could find out what the things were in some reliable way. We'd also have a better chance of understanding why our intents failed when they did. Right now, I sometimes feel like I'm on a random hunt for a magic string. It is the single most frustrating thing about developing for Android. Do you think there's any chance one will appear in a future version ? Or, can you think of any way to acheive the effect in the current version ? I had a vague idea about feeding generalities to PackageManager.queryIntentActivities(), but I have not found a way to make that work. Thanks, Richard On Jan 30, 8:31 pm, Dianne Hackborn hack...@android.com wrote: You shouldn't just look at what intents an app happens to use: unless someone publishes official protocols, those should be considered private. Unless an app developer is explicitly maintaining them, they could change their app arbitrarily and break someone using those implementation details. And Amazon MP3 app is owned by amazon, who just happened to have it installed on the G1. It is not part of the platform, and so they would need to document and maintain whatever intent protocols they want to publish. Finally, yes, we need to do a better job at defining official protocols for the system applications. This is something that got dropped in the push to get the initial full product out. On Fri, Jan 30, 2009 at 11:48 AM, jarkman
[android-developers] Library to convert an rtmp stream to rtsp?
Does anyone know of a library or component which can be used to open and convert an RTMP video stream to RTSP to be used with the MediaPlayer object? Specifically looking to use this on the G1 with the current sdk. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: When an app needs Google account credentials...
I'm looking for this as well, to provide access to my google app engine applications. I'm guessing they store the session authorization token from AuthSub somewhere (take a look at AuthSub here: http://code.google.com/apis/accounts/index.html). It's probably just a matter of understanding where the token is stored so it can be passed into the http calls. Hopefully Dianne, or someone else, will clarify or correct me if I'm wrong. On Nov 30, 7:44 pm, androidian [EMAIL PROTECTED] wrote: Sorry guys, I have no idea how what you're talking about relates to what I was asking. I'm not talking about making a clone of Android or anything like that. I'm familiar with Android development, and I am part the way through coding my application; my question is basically where can I obtain the user's authenticated token so that I may interact with google services? cheers, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
Is there an exception thrown if the ... next time it is read it is unable to parse the truncated file.? If so, we could catch the exception and explain to the users that an error occurred reading the preferences, therefore we need to collect them again, or reset their preferences to the defaults. On Dec 1, 12:41 am, Dianne Hackborn [EMAIL PROTECTED] wrote: It means multiple processes, as per: http://code.google.com/android/intro/appmodel.html What may be happening is that you are writing the new shared preferences at the same time as the system kills the process, so the file write is not completed, and the next time it is read it is unable to parse the truncated file. So you should only write the shared preferences at a time when you know the system is keeping your application around -- in onReceiveIntent(), a service, as part of the activity lifecycle, etc. On Sun, Nov 30, 2008 at 9:13 PM, joshv [EMAIL PROTECTED] wrote: What exactly do the docs mean when they say 'multiple processes'. Do they mean different threads in the same application? Or do they mean for example a background service accessing a shared preference file at the same time a foreground process is accessing the same shared preference file? I am having intermittent issues with one of my apps loosing it's shared preferences. My app uses threads to keep the UI responsive, and I just figured I had some sort of synchronization issue with saving preferences. But no, I've locked down the critical sections with synchronized blocks and still, very rarely, my app will lose it's preferences. It usually seems to happen when the app is killed by the OS, or by the debugger, normal resume/pause events never result in loosing the preferences. But again it's intermittent. I have another app that's never lost it's preferences - but it's not multi-threaded. -josh On Nov 19, 1:55 pm, Dianne Hackbod [EMAIL PROTECTED] wrote: [snip...] I'm not sure I follow your reasoning -- if you are saying that your application is all running in one process, why do you think the whole caveat about not supporting multiple processes even applies? [...] -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Marketplace html error - cannot administrate my downloads or create new applications. Will someone in google please read !
There is a separate market help forum, maybe you'll get better results there: http://www.google.com/support/forum/p/Android+Market On Nov 23, 5:31 am, Richard Green [EMAIL PROTECTED] wrote: Is there nobody here who can help? Is there anybody here who can suggest who I ask ? On Nov 21, 2:22 pm, Richard Green [EMAIL PROTECTED] wrote: Hi there. There is an error in the javascript being generated on my marketplace page that effectively renders the page useless for me. I can no longer view the programs that I have uploaded, nor can I upload any others. The bug is in the code that generates the js files - Error: invalid XML tag syntax Source File:http://market.android.com/publish/gwt/C1EC4AF9F1B1A6AEDEDB919B4E67D00... Line: 207, Column: 39 Source Code: function fT(a){if(a=30){return 1lt;a}else{return fT(30)*fT(a-30)}} please can someone look at this and figure out a way to resolve this. Do I need to re-register and spend another 25 USD on another account ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Does Ant Sign Apps?
The build.xml created by activitycreator.py did not include signing targets when I ran it. The release target creates the ${out-unsigned- package} apk which is named ${ant.project.name}-unsigned.apk when I run it. Be sure to read: http://code.google.com/android/devel/sign-publish.html First create a key. One way is to do this: keytool -genkey -validity 1 -keystore mykeystore -alias mykeystorealias I usually copy the unsigned release file to ${ant.project-name}.apk jarsigner -keystore mykeystore -verbose bin/${ant.project.name}.apk mykeystorealias and then verify it to make sure it worked jarsigner -verify -verbose bin/${ant.project.name}.apk There are probably ant tasks out there to automate the signing, but I haven't used them yet. On Nov 18, 5:53 pm, Cristian [EMAIL PROTECTED] wrote: I'm switching my app creation to Ant to make things more automated. I originally was only using Eclipse. The docs say that using the command ant release creates an unsigned Android package that I will have to sign. I ran ant release then tried to use jarsigner using my private key but I kept getting an error jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size The dug inside the Android package and found out it already had a cert.rsa file in the META-INF directory. I installed and ran the app without every having to manually sign it. Does ant automatically sign my apps? If so, where does it get the private key and how do change it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
Interesting, I noticed this line in the documentation just now, from http://code.google.com/android/reference/android/content/SharedPreferences.html Note: currently this class does not support use across multiple processes. This will be added later. So to me, this means that even though my application's activities run in one process, somehow the users experiencing this data loss problem may be seeing it because they have a separate process accessing the SharedPreferences before the first process has committed them to storage? This does not seem like the intended functionality of SharedPreferences. I'll buy that any changes before you call SharedPreferences.Editor.commit() won't be seen by other processes, but if process A commits, then process B loads them, shouldn't B see A's commited information? Or is the functionality to be added is what will make this scenario work correctly? For me, A and B are instances of the same application. If this scenario doesn't work: A commits, and then B loads but doesn't see A's changes until some undetermined time later, then I can't use SharedPreferences either. Also, neither can anyone else for that matter, because you'll never know if your information is in a usable state. On Nov 19, 11:55 am, Eric B [EMAIL PROTECTED] wrote: What I'm taking from this is that if my BroadcastReceiver, which runs off an AlarmManager, is accessing the preferences and the user then opens the PreferenceActivity in a separate process the behavior is undefined and most likely causes the PreferenceActivity to not find the existing values? I guess I'll have to switch to a database implementation then. SharedPreferences don't seem very robust, I'm not sure I can ever use them again, which is really sad since they are quite easy to use. Thanks, Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
I assume this is all I have to do to make sure the preferences are saved: SharedPreferences settings = MyActivity.this.getSharedPreferences (MyAppName, 0); SharedPreferences.Editor editor = settings.edit(); editor.putString(prefname, namevalue); editor.commit(); Then to load them like this: SharedPreferences settings = MyActivity.this.getSharedPreferences (MyAppName, 0); String value = settings.getString(prefname, defaultvalue); On my device, I never have seen a preference that was saved disappear. But two users out in the field say that after saving the information, about an hour later (or longer) the information disappears. The only way I see this happening as they describe is if the preferences are somehow erased. They say they are not uninstalling the app when this happens. I'm at a loss as to how to reproduce it, until I can get more information from them. I wrote a test app which just sets and gets preferences a number of times, but it never fails to get a previously set value. I don't know how to force the app to terminate and relaunch many times to see if that is the issue. Perhaps by creating one which responds to Intents to get/set the prefs? Is that a way to simulate this? On Nov 19, 2:50 pm, Dianne Hackbod [EMAIL PROTECTED] wrote: Are you sure you call commit() after done with your edits? If you don't, then the changes won't be written to disk, and at whatever point your process is killed while in the background they will be lost. That is the only way I can think of off-hand to explain what you describe. On Tue, Nov 18, 2008 at 9:09 PM, dar [EMAIL PROTECTED] wrote: I'm having an issue where some users are seeing the SharedPreferences disappearing after some time. I have two separate Actvities, one writing, and the other reading. I assume these two activities are both in the same process (they both run from the same app), but is this causing the problem? What's curious to me is that I can't reproduce the problem myself on the G1. On Nov 18, 9:36 pm, Dianne Hackbod [EMAIL PROTECTED] wrote: SharedPreferences should be completely thread safe. Also, all of the normal calls the system makes to your components happen in the same main thread of the process, so except for special cases (as described in the app model doc) you shouldn't be dealing with multithreading. Are all of these components running in the same process? Right now SharedPreferences does not deal well with multiple components in separate processes trying to use the same preferences data. On Tue, Nov 18, 2008 at 6:24 PM, Eric B [EMAIL PROTECTED] wrote: I have a PreferenceActivity that uses an xml file to automatically populate and save the preferences. Sometimes though, when that activity is started, the preferences are blank. However, if you go back later, they will reappear. This is causing a lot of headaches with my app. I have a Service and BroadcastReciever running in the background that are also accessing and (sometimes) updating the preferences. Are there synchronization issues with shared preferences? Maybe permission issues? I'm really stuck here and would greatly appreciate any insight you can offer. Thanks, Eric -- Dianne Hackborn [EMAIL PROTECTED] Hide quoted text - - Show quoted text - -- Dianne Hackborn [EMAIL PROTECTED] Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
I'm having an issue where some users are seeing the SharedPreferences disappearing after some time. I have two separate Actvities, one writing, and the other reading. I assume these two activities are both in the same process (they both run from the same app), but is this causing the problem? What's curious to me is that I can't reproduce the problem myself on the G1. On Nov 18, 9:36 pm, Dianne Hackbod [EMAIL PROTECTED] wrote: SharedPreferences should be completely thread safe. Also, all of the normal calls the system makes to your components happen in the same main thread of the process, so except for special cases (as described in the app model doc) you shouldn't be dealing with multithreading. Are all of these components running in the same process? Right now SharedPreferences does not deal well with multiple components in separate processes trying to use the same preferences data. On Tue, Nov 18, 2008 at 6:24 PM, Eric B [EMAIL PROTECTED] wrote: I have a PreferenceActivity that uses an xml file to automatically populate and save the preferences. Sometimes though, when that activity is started, the preferences are blank. However, if you go back later, they will reappear. This is causing a lot of headaches with my app. I have a Service and BroadcastReciever running in the background that are also accessing and (sometimes) updating the preferences. Are there synchronization issues with shared preferences? Maybe permission issues? I'm really stuck here and would greatly appreciate any insight you can offer. Thanks, Eric -- Dianne Hackborn [EMAIL PROTECTED] Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SharedPreferences are getting erased
I'm on RC30, and I have not seen this issue first hand, but some of my users are reporting that my app is losing its SharedPreferences after about an hour, or some other unspecified time. They say they are not uninstalling the application. The only way I have seen the SharedPreferences be erased is if I unistall the application Is this a known bug? Has anyone else encountered this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---