[android-developers] Re: How to use Java Runtime class in Android for starting another application from mine

2010-03-14 Thread Sudheendra
Can u please guide me for a resource which talks about generic intents and how to use them. Thanks. On Mar 13, 11:33 am, TreKing treking...@gmail.com wrote: On Fri, Mar 12, 2010 at 2:44 AM, Sudheendra sudhindra.ma...@gmail.comwrote: basically i want to start Notepad application in android

Re: [android-developers] Re: How to use Java Runtime class in Android for starting another application from mine

2010-03-14 Thread TreKing
On Sun, Mar 14, 2010 at 2:11 AM, Sudheendra sudhindra.ma...@gmail.comwrote: Can u please guide me for a resource which talks about generic intents and how to use them. How about the official documentation? Just a thought.

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Lance Nanek
One issue that I've run into is that users use controls in unexpected ways. I wrote my first game expecting quick taps next to the player's character. When various people tried out the game, however, they didn't all do that. Some tapped the bottom corners, some held their finger down and moved it

[android-developers] How to get RandomAccesFile from Resources.openRawResource() or getAsset() !!!

2010-03-14 Thread AJ
Hi group I am trying to get a RandomAccessFile from either Resources.openRawResource() or getAsset(). I cannot find a direct way to get one. Does anybody know that? Thanks AJ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Get item selected from spinner

2010-03-14 Thread murali raju
ya, thank you for that On Sun, Mar 14, 2010 at 12:18 PM, TreKing treking...@gmail.com wrote: On Sat, Mar 13, 2010 at 11:07 PM, murali raju manutd...@gmail.com wrote: use spinner.setOnItemClickListener(new OnItemClickListener() No, this won't work, read the documentation: A spinner does not

[android-developers] Re: is there a way to get a view to the front?

2010-03-14 Thread mot12
Can't get it to work with ColorDrawable. The other way works just fine though. The reason why the order of the views in the layout didn't matter was because I had used bringToFront() in my code which brings the view on top of its siblings. Duh. -- You received this message because you are

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Lance Nanek
neither you nor your users have any control over the GC behavior of someone else's application. Users do have indirect control, however. I often put my phone in airplane mode when testing because it reduces the number of GC events I see in the logs. I assume it is because other processes can't do

[android-developers] Re: is there a way to get a view to the front?

2010-03-14 Thread skink
mot12 wrote: Can't get it to work with ColorDrawable. FrameLayout frame = findViewById(...) // little red tint d = new ColorDrawable(0x40ff) frame.setForeground(d) doesn't it work? The other way works just fine though. The reason why the order of the views in the layout didn't matter

[android-developers] Re: is there a way to get a view to the front?

2010-03-14 Thread skink
On Mar 14, 9:16 am, skink psk...@gmail.com wrote: FrameLayout frame = findViewById(...) // little red tint d = new ColorDrawable(0x40ff) frame.setForeground(d) doesn't it work? be carefull with ColorDrawable - it supports setAlpha but ignores setColorFilter - if you need to change

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Yahel
My two cents, In my game I noticed two things : 1) Media player is killing my frame rate in two player mode : from 50 to 20. So I had to remove music for that part of the game. Sounds triggered by the soundpool works fine. 2) Touching the screen kills my frame rate as well, short press are ok,

[android-developers] Re: is there a way to get a view to the front?

2010-03-14 Thread mot12
That's what I did. No luck. Anyhow, the xml layout way gives me more freedom. I now have to filters, one put on top of the background and one on top of the foreground. This way, when dimming the display, I can let the background fade quicker than the foreground which increases readability. I am

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Lance Nanek
One thing to watch out for with MediaPlayer is that the format matters a lot. I've seen the G1 go from 60 FPS to 50 FPS just because I added MP4 music, then act fine once I converted it to highly compressed, mono OGG or substituted it with MIDI. I suppose other apps playing music in the background

[android-developers] Re: is there a way to get a view to the front?

2010-03-14 Thread mot12
That's what I did. No luck. Anyhow, the xml layout way gives me more freedom. I now have to filters, one put on top of the background and one on top of the foreground. This way, when dimming the display, I can let the background fade quicker than the foreground which increases readability. I am

[android-developers] Petition: Google, please improve the Android Market.

2010-03-14 Thread Rob Irondad
Hello, fellow developers, Just a quick update on the petition. As of now it has been signed by almost 1000 people. I don't know how many Android developers there are globally, but I think this is a pretty good number It was also mentioned on a few websites, but nothing major. So far, we still

Re: [android-developers] Petition: Google, please improve the Android Market.

2010-03-14 Thread Hong
I agree. I just updated my apps after 7 days and they are not in Just In category :( Do they not count in the day light saving time change?? Just In is not enough, it should have a daily/week/monthly Just In sub-categories. Market is a joke! On Sun, Mar 14, 2010 at 8:45 AM, Rob Irondad

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread markusn82
Thanks for the input guys. Lance, good point about users using the controls in unexpected ways. This actually happened to me for my first release, but I have since resolved those issues and users are quite happy with the current control scheme. In addition, I have already implemented the Sleep()

Re: [android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Mark Murphy
WARNING: this is a rant, because blaming Google for technical problems based on limited analysis is a bit of sore spot with me. This is not a rant against you as a person, nor against your game (I don't even know what game it is). It is, however, a rant against your methodology, at least to the

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Maps.Huge.Info (Maps API Guru)
You updated too soon. You'll have to wait at least 12 days to get into the just in category. Updating just to get into that list is going to annoy the heck out of your users. Doing so on a regular basis will probably result in a lot more uninstalls than happy users. Just keep that in mind. -John

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Yahel
Wow, When I signed I was the second name on the list, and now 1 000 :D I thought it was just me. Maybe with that kind of number Techcrunch could be interested. I can see the headline : The Android developer Revolt of 2010 :D Yahel -- You received this message because you are subscribed to

Re: [android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Hong
12 days now? I'm updating apps to push out new features, not to just to get on top of the list. My apps are actually suffering because of this stupid update cycle. Some bug fixes and features I added in have to wait till the end of the cycle to release in hope it gets to the top of the list.

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Yahel
Your users don't have to wait 12 days. They are notified directly on their phones when there is an update of your app. That's why Maps tells you you are going to annoy your current user if you push non-vital updates too often just to try to get to the top of the just-in list. Yahel -- You

[android-developers] Re: native AudioTrack resources never freed..

2010-03-14 Thread szabolcs
I am posting my conclusions, in case anyone ever stumbles upon this page with similar questions: 4. I am left with the sound being played until the phone is rebooted, since there is NO way I know of to get a hold on the AudioTrack instance after the service process is killed. There is indeed

Re: [android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Ralf Schneider
Hi Markus, 2010/3/14 markusn82 markus...@gmail.com Thanks for the input guys. Lance, good point about users using the controls in unexpected ways. This actually happened to me for my first release, but I have since resolved those issues and users are quite happy with the current control

[android-developers] Vertex Array/Vertex Buffer Objects driver bug on Droid

2010-03-14 Thread Mario Zechner
Hi, just wanted to drop by to tell you about a nice little bug i just encountered on my droid. Here's some sample code: @Override public void render(Application app) { GL11 gl = app.getGraphics().getGL11(); gl.glViewport( 0, 0,

[android-developers] Re: Color Picker Preference

2010-03-14 Thread Yougli
I reply to myself :) I found out that I could actually use the ColorPickerDialog as it is in my PreferenceActivity... Don't know why I couldn't use it before. Sorry about that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] VU Meter wallpaper

2010-03-14 Thread Yougli
Hi Are there any sources available for the VU meter wallpapers shipped with the OS? I'd like to make my wallpaper react to sound (internal or external), but I don't know where to start... -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] how to force wifi connection for my download module?

2010-03-14 Thread genxsol
Hi Dear, i need to download 3GB file through my download manager. i need to force my download through wifi. can anybody help please setNetworkPreference(ConnectivityManager.TYPE_WIFI);// shall i use this ? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Simulate Recent Application Window

2010-03-14 Thread Anthoni
Hello, I am wanting to simulate the look of the recent applications display that you get when you long press the home key. At first I thought it was a custom dialog but apparently (according to what I see in the Hierarchy viewer) it is a PhoneWindow$DecorView. I presume the DecorView is the main

Re: [android-developers] Simulate Recent Application Window

2010-03-14 Thread Mark Murphy
Anthoni wrote: I am wanting to simulate the look of the recent applications display that you get when you long press the home key. At first I thought it was a custom dialog but apparently (according to what I see in the Hierarchy viewer) it is a PhoneWindow$DecorView. I presume the DecorView

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread markusn82
Mark Murphy, Proof? Anytime a stutter occurs in my game I see the GC being logged. What further proof do you want? The rest of the time the game is smooth. I was being conservative in my original post because I didn't want to be presumptuous and I wanted open objective responses. Now, I don't

[android-developers] Re: Vertex Array/Vertex Buffer Objects driver bug on Droid

2010-03-14 Thread Lance Nanek
Doesn't the spec say it has to be 4? From http://www.khronos.org/opengles/sdk/1.1/docs/man/glColorPointer.xml : size Specifies the number of components per color. Must be 4. The initial value is 4. From

[android-developers] Add action on the Browser's context menu after link long press.

2010-03-14 Thread fcarriedo
Hello knowledgeable developers, Hope you can help me with the following: I need to add an action in the Context Menu that pops up after a a Long Press of a Link in the Browser (the one that has 'Open', 'Open in new window', 'Bookmark link', 'Save link', etc.) As a result of choosing my action

Re: [android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Mark Murphy
markusn82 wrote: Proof? Anytime a stutter occurs in my game I see the GC being logged. What further proof do you want? You said, and I quote: I tested the game on both a Motorola Milestone and an HTC Magic and I don't experience any noticeable input lag (except perhaps when the GC is executed

Re: [android-developers] Add action on the Browser's context menu after link long press.

2010-03-14 Thread Mark Murphy
fcarriedo wrote: Hello knowledgeable developers, Hope you can help me with the following: I need to add an action in the Context Menu that pops up after a a Long Press of a Link in the Browser (the one that has 'Open', 'Open in new window', 'Bookmark link', 'Save link', etc.) As a

[android-developers] Re: Add action on the Browser's context menu after link long press.

2010-03-14 Thread Yahel
AFAIK, there is no way to add actions to the Browser application's Although I don't know how it's done, i've seen an application that added a Share via This app to the Android browser. The app is called Share By QRCode and is available on the market. It also adds a Share options in the youtube

[android-developers] Image Edition

2010-03-14 Thread ReyLith
Hi! I am starting in programming with Android. The first that I am doing (later of reading the main tutorials in the official page and later of executing the hello word example and so on) is to realise an image editor application. I am having many problems with different parts. The first that I

[android-developers] Saving/Restoring ListCustomClass

2010-03-14 Thread Ferm
Maybe this is more of a Java question.. I have a java.utils.List populated with instances of my own class. I want to save them and have them restored when running the app again. I'm thinking of saving it as a string in SharedPreferences. I need to serialize everything so I guess my CustomClass

Re: [android-developers] Re: Add action on the Browser's context menu after link long press.

2010-03-14 Thread Mark Murphy
Yahel wrote: AFAIK, there is no way to add actions to the Browser application's Although I don't know how it's done, i've seen an application that added a Share via This app to the Android browser. The app is called Share By QRCode and is available on the market. It also adds a Share

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread snctln
Lots have been said here and I just want to say that as a fellow real time game developer I have the exact same problem. I will even go as far as to tell you the name of an app that this happens in, my most popular game BreakTheBlocks Lite, which hit a million downloads last month :), has this

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Lance Nanek
Here's a good video if you want to pick up the basics Mark: http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAndroid.html Includes coverage of the GC issue by a Googler. On Mar 14, 11:10 am, Mark Murphy mmur...@commonsware.com wrote: WARNING: this is a rant, because blaming

[android-developers] Re: Add action on the Browser's context menu after link long press.

2010-03-14 Thread Yahel
That's not what that app does. It does not add a context menu entry. Instead, it implements an ACTION_SEND Intent filter, and so becomes an option when the user chooses Share link from the context menu. That is not only legal, but a really cool Android extension point. I have to agree, this

[android-developers] Re: Buying a phone for testing

2010-03-14 Thread ik
With ADP1 it is possible : http://android-tricks.blogspot.com/2009/01/using-adp1-without-sim-card.html (I did it on mine and never put a simcard in it.) On others I don't know. ik On 12 mar, 22:49, Badasshat badass...@gmail.com wrote: Hi, I'm considering buying a lower end phone for testing

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread markusn82
Thanks Lance for the suggested reading. I actually read those slides almost a year ago when they were first produced (around the time when I first started to develop a game for Android). I already took into account the points made in that presentation and they were quite helpful. Mark Murphy, it

[android-developers] Re: Vertex Array/Vertex Buffer Objects driver bug on Droid

2010-03-14 Thread Mario Zechner
Yes, indeed. I mixed that up with the desktop GL specs at http://www.opengl.org/sdk/docs/man/xhtml/glColorPointer.xml. Now that's embarassing :) On 14 Mrz., 19:07, Lance Nanek lna...@gmail.com wrote: Doesn't the spec say it has to be 4?

Re: [android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Hong
But how do other users discover my apps if the apps NEVER show up in the Just In category? BTW, I don't think a 7-day release cycle is too often. On Sun, Mar 14, 2010 at 12:04 PM, Yahel kaye...@gmail.com wrote: Your users don't have to wait 12 days. They are notified directly on their phones

Re: [android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Mark Murphy
markusn82 wrote: Mark Murphy, it doesn't sound like you were trying to be productive in your original post. Actually, I was. Still am, as a matter of fact. Rather, I was trying to make real suggestions for a real problem that exists. Likewise, mostly in the latter half of the post.

[android-developers] Resolution usage breakdown?

2010-03-14 Thread kylestew
Are there statistics as to what percentage of users are using a screen resolution. I am looking for something like the platform versions breakdown Google provided a few months ago. What I am wondering is if its worth the extra effort to ensure proper display of my apps in QVGA or other odd

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-14 Thread Tim
On 10 Mar, 23:27, Robert Green rbgrn@gmail.com wrote: I only have a meager 340 in this group.  :) I have nowhere near that many (probably less than 100) and I got an email from Google. I reckon you also have to have an app published in the market. -- You received this message because you

Re: [android-developers] Resolution usage breakdown?

2010-03-14 Thread Mark Murphy
kylestew wrote: Are there statistics as to what percentage of users are using a screen resolution. I am looking for something like the platform versions breakdown Google provided a few months ago. What I am wondering is if its worth the extra effort to ensure proper display of my apps in QVGA

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-14 Thread blindfold
I have 275 in Android Developers and 107 in Android Discuss, and an app in the Market, but no e-mail from Google. :-( On Mar 14, 10:09 pm, Tim tdh...@gmail.com wrote: On 10 Mar, 23:27, Robert Green rbgrn@gmail.com wrote: I only have a meager 340 in this group.  :) I have nowhere near

[android-developers] Re: Add action on the Browser's context menu after link long press.

2010-03-14 Thread fcarriedo
I think that based on what I have found on the web and from your expert responses, that is as close as I can get to do what I want. I'll go that route. Thank you both. p.s. If I find another way.. I'll update the conversation. On Mar 14, 12:04 pm, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-14 Thread Matt (preinvent)
I didn't get any corrupt DB errors - it's as if my app was uninstalled them reinstalled. It worked perfectly after losing all the data but of course without any of the actual data available. On Mar 13, 5:21 pm, Yuvi yuvidr...@gmail.com wrote: Hi, the database issue happened on my phone (HTC

[android-developers] Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread Gabriel Simões
Hello, Since my day 1 I´ve been facing problems with Android AudioRecord API. After a lot of research and a lot more trial and error I´ve found my way into the code and was able to write an asynctask for audio streams recording which encapsules most of the audiorecord and asynctask features as a

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread Gabriel Simões
Ops, sorry for the title. Should be audio chopping from AudioRecord to AudioTrack. On 14 mar, 19:00, Gabriel Simões gsim...@gmail.com wrote: Hello, Since my day 1 I´ve been facing problems with Android AudioRecord API. After a lot of research and a lot more trial and error I´ve found my way

[android-developers] Move a record to an other position of a content provider

2010-03-14 Thread Olivier
hi! I have a content provider (content://fr.MyApp.MyContentProvider/ MyData) And I can Navigate with a corsor. But I need to have a record to another position... So I try: String[] ColumnName = cursor.getColumnNames (); int i = 0; int n=ColumnName.length; while (i n){ ContentValues

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Yahel
But how do other users discover my apps if the apps NEVER show up in the Just In category? They do appear in the just in category when you first release them and then every time you submit a new version as long as there was 12 days minimum between two releases. If you feel like releasing to

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Yahel
Not sure if this relevant but did you implement your own Time Frame ? Not sure how to call it. But i'll try to explain. When I first wrote my game, GC, bad implementation, too much allocation would make my game lag. It would just hold still and then a second later start again from where it was.

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-14 Thread Maps.Huge.Info (Maps API Guru)
Did you get an invitation for a free device because of your app? If so, then that's why you're not getting one for posting. The idea is to get one device to each developer. Does that make sense? -John Coryat On Mar 14, 4:09 pm, Tim tdh...@gmail.com wrote: On 10 Mar, 23:27, Robert Green

[android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-14 Thread Ali Chousein
Yes, I tried to use ExpandableListView.setIndicatorBounds but this affects the stretching only on the x-axis. I couldn't find any function to do stretching on the y-axis. Anyway, there is always the dirty trick of designing your icon accordingly, but if you care about clear design, choosing this

[android-developers] Re: 3G Wi-Fi at same time

2010-03-14 Thread Tanmay
Hi, This seems to be what I am looking for. However, just to confirm, I will give a short description of what I am trying to do: I am trying to use Wifi for an internal WLAN connection (which would not be accessing the internet) , and a 3G network to give me access to the internet at any time.

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Lance Nanek
Good point. Some quick trials here do seem to indicate that the GC firing in a different process doesn't stop the world for a game like the GC firing in the game's does. So GC from other processes isn't as bad. Tested on a Droid running Android 2.0.1. A stretch of logged draw requests with

[android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-14 Thread Ali Chousein
Actually ExpandableListView.setGroupIndicator doesn't do the job either, because it changes the icon for all groups. If you want to override the icons for minimized and maximized states, the maximized group icon will be different than the rest of the groups. It's not possible to implement this

[android-developers] Re: Photoshop.com Mobile editor now available as an Intent

2010-03-14 Thread Nivek
You can use Astro File Manager or Estrongs File Explorer to backup the Photoshop app on your sdcard. Then, transfer the apk on your computer and install it on a running emulator using adb. adb install Photoshop.apk Now, I implemented a workaround for the problem I detected before: Photoshop

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-14 Thread Matt (preinvent)
This just happened yet again earlier today. Unfortunately I didn't get my Droid hooked up to adb quick enough to look through the logs. Guess I'll have to wait until next time :( This is killing me! On Mar 14, 5:47 pm, Matt (preinvent) m...@preinvent.com wrote: I didn't get any corrupt DB

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-14 Thread JP
For SharedPreferences this isn't unheard of but I'd question an issue with SQLite. Perhaps users got irritated that things went haywire as a result of the missing SharedPreferences, and reinstalled the app. On Mar 13, 2:16 pm, Matt (preinvent) m...@preinvent.com wrote: I've had several reports

Re: [android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-14 Thread Mark Murphy
Matt (preinvent) wrote: This just happened yet again earlier today. Unfortunately I didn't get my Droid hooked up to adb quick enough to look through the logs. Guess I'll have to wait until next time :( This is killing me! Hopefully not. Dead developers make no sales. :-) More seriously,

Re: [android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Mark Murphy
Lance Nanek wrote: Good point. Some quick trials here do seem to indicate that the GC firing in a different process doesn't stop the world for a game like the GC firing in the game's does. So GC from other processes isn't as bad. Tested on a Droid running Android 2.0.1. Agreed. I just got

Re: [android-developers] Re: 3G Wi-Fi at same time

2010-03-14 Thread Ricardo Silva
Hi, See the route table, because the default route will be the WLAN, I think. Because is the normally the preferred network (changes to 3G). Otherwise, it will work. Regards, Ricardo Silva On Sun, Mar 14, 2010 at 11:06 PM, Tanmay tanm...@gmail.com wrote: Hi, This seems to be what I am

[android-developers] Re: Apps, Market and MyTouch 3G 3.5mm.

2010-03-14 Thread Vincent
hi, Does anybody figure out what the problem is? I've got the same problem. My users using MyTouch told me that they can't see my app on the market... I have no idea what the problem is... On Feb 26, 10:43 pm, BlackLight blacklight1...@gmail.com wrote: Hello. I've got several messages from my

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread markusn82
The ~100-300ms isn't that meaningful of a figure, though. Frame rate won't drop because of elapsed time of the foreign process' GC operation. Frame rate will drop if, during that time, too much CPU is utilized by GC, or access to some cross-process resource is blocked by GC, or something

[android-developers] Re: phone-as-client Socket connections time out in 3GS mode, but work fine in wifi

2010-03-14 Thread Samsyn
I wonder if this could be a Verizon thing. What strikes me as odd is that the UrlConnection works fine, and that must also be using tcp, so is fundamentally the same as my subsequent Socket connection, which fails. The differences are: * different server.. .MAYBE my server doesn't like the 3gs

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-14 Thread Matt (preinvent)
On Mar 14, 8:31 pm, Mark Murphy mmur...@commonsware.com wrote: This is killing me! Hopefully not. Dead developers make no sales. Neither do developers with unhappy customers! More seriously, consider hooking into Android Log Collector or something, so that when you detect this

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread markusn82
-- On a factory-reset G1 with Android 1.6: CPU and GC from the background process steals 5-10% of throughput from the foreground compared to no service work at all, which would fit if the background logic is in the low-priority class that Ms. Hackborn described. Where did you get this 5-10%

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-14 Thread Matt (preinvent)
ForSharedPreferencesthis isn't unheard of but I'd question an issue with SQLite. Perhaps users got irritated that things went haywire as a result of the missingSharedPreferences, and reinstalled the app. This happened to me earlier today on my Droid. I didn't uninstall/ reinstall so I know

Re: [android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-14 Thread TreKing
Yeah, I actually haven't tried fiddling with the icons, I was just going off of what I saw in the docs. I know someone else on here was having a similar issue and it appears that the ExpandableListView was not designed to allow major controls over the icons. Sorry, don't know what else to tell

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread HeHe
seems i am experiencing similar issue as you r. http://groups.google.com/group/android-developers/browse_thread/thread/ad81d19418c8db1d/561f66e6b0cf2c79?show_docid=561f66e6b0cf2c79 without any single line of code modification to my app, the count of frames recorded by app running on sdk 1.6

Re: [android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread Hong
Thank you for the advice! The share this app is an awesome idea ;) My apps are little so features and bug fixes normally only take a few days, instead of 14 days :) But will give that a try if that's how Market defines Just in. On Sun, Mar 14, 2010 at 6:15 PM, Yahel kaye...@gmail.com wrote:

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread Gabriel Simões
Audio chopping also? Could you please test the code above? I´ve checked and AudioRecord.read() returns a value equal to my buffer size. Based on that I understand that AudioRecord.read() blocks the execution, waits for the buffer to get a number of samples at least equal to the buffer size and

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-14 Thread JP
I just signed. A must for anybody who has an app out with even just modestly complex functionality. Over the last weeks I've seen a shift to comments that are predominantly negative in nature now. There seems just no way any more to convey to users to visit the accompanying web site and RTFM. So

Re: [android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Mark Murphy
markusn82 wrote: -- On a factory-reset G1 with Android 1.6: CPU and GC from the background process steals 5-10% of throughput from the foreground compared to no service work at all, which would fit if the background logic is in the low-priority class that Ms. Hackborn described. Where did

Re: [android-developers] Image Edition

2010-03-14 Thread murali raju
1) use intents for moving from one activity to another. So that you can send the image to second activity. 2)to display many images on a single screen use grid view or gallary. that would be the best way.( since u said u are new to android, i would suggest to see API demos application of sdk

Re: [android-developers] Re: write/read log files in res folder

2010-03-14 Thread murali raju
resource folder of the project i guess... On Sat, Mar 13, 2010 at 6:09 PM, Farproc farp...@gmail.com wrote: What is the res folder? /sdcard/res? On Mar 13, 3:07 pm, aswani kumar tholeti ensisinf...@gmail.com wrote: Hi all, how to write/read log data into txt file in res folder

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Bob Kerns
You figure for every millisecond another process spends on GC, it probably spends 10 ms doing something else, which also interferes with your game. (That's an illustration, not an estimate -- the number will vary WILDLY depending on the application in question). Airplane is indeed likely to help,

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-14 Thread HeHe
no chopping, likely because my computer (Core2 E8400) is lightening fast. my AudioRecord.read() returns a value equal to my buffer size, too. however, it returns recorded samples in a speed faster than 8khz, which makes later playback sound like my voice is slowed. again, the same code works

[android-developers] Java Script Engine in Nexus One

2010-03-14 Thread Android Developer
Hi, Any idea which JS Engine is used in Nexus one? JSC or V8? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: AlarmManager on droids

2010-03-14 Thread Sachin
hi, We have set the alarm on Droid (after 4 minutes). Switched off the phone. But the phone didn't wake up or didn't show the alarm for the preset time. Is this a normal behavior? And why? Sachin On Mar 14, 1:14 am, mot12 martin.hu...@gmail.com wrote: I misspoke: I meant to turn off user

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Bob Kerns
I don't think that's nasty. You're the foreground app, serving the user's immediate interests. But I don't think it would work unless the background app in question is misbehaving. Ordinary background apps should only be running in response to events or timers -- and they'd have to do MORE work

[android-developers] Everything for your mobile. The search is over

2010-03-14 Thread Omer Farooq
Tired of searching software for your mobile Phone. Well the search is over now. Wether you have Andriod, Symbian or Iphone. WHether you have NOKIA, HTC, IPHONE, SONY ERICSON, SAMSUNG. It doesn't matter for this product. Search any software, themes, ringtones, wallpapers, screensave. You will

[android-developers] Re: General lag issues with real-time games

2010-03-14 Thread Bob Kerns
Not randomly, and not just the GC. The only thing special about the GC is there's a minimum amount of work it does, but the basic problem is the amount of background work, not just the GC. Even though you may see a correlation with the GC messages and your observed slowdowns -- there will be more

[android-developers] Re: Saving/Restoring ListCustomClass

2010-03-14 Thread Kumar Bibek
Yes this is a Java question. You cannot serialize a list. If you want that, then you can create your own Custom list, extending from ArrayList/List which implements Serializable. And then you can do what you need to do. Thanks and Regards, Kumar Bibek On Mar 15, 12:00 am, Ferm ras...@gmail.com

[android-developers] Re: Saving/Restoring ListCustomClass

2010-03-14 Thread Kumar Bibek
But I couldn't think of s situation where you will need it. Shared preferences are not a way to store your data. Either use the database or a file(xml). Thanks and Regards, Kumar Bibek On Mar 15, 10:22 am, Kumar Bibek coomar@gmail.com wrote: Yes this is a Java question. You cannot serialize

Re: [android-developers] showing media volume controller

2010-03-14 Thread kavitha
Thanks for response Murali raju,,, Please tell how to create our own volume control? Any ideas to start with? Thanks kavitha On Sun, Mar 14, 2010 at 10:20 AM, murali raju manutd...@gmail.com wrote: Hi, We have to create our view for volume control. i dont think we can display the