Re: [android-developers] Re: Problem move to sd card

2011-01-28 Thread Kumar Bibek
Try searching proguard+android. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 3:25 AM, a3g a3g.astur...@gmail.com wrote: what is proguard? On 28 ene, 22:48, Kumar Bibek coomar@gmail.com wrote: Nope. They will get the Dex code. But, Dex code,

Re: [android-developers] C2DM within gaming paradigm

2011-01-28 Thread john doe
Hi Miguel Thanks for the reply. Yes, the messages will just tell the clients to poll the server and no more. However, I am worried that there will be a limit on the *number* of messages that can be sent in a certain time period. Any other input would be greatly appreciated! Thank you On Fri,

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Mark Murphy
On Fri, Jan 28, 2011 at 4:45 PM, Moto medicalsou...@gmail.com wrote: I'm trying to keep my activity calling flow simple for the user. Always one instance of the activity on the history stack. So using flag FLAG_ACTIVITY_REORDER_TO_FRONT, is perfect! but there is a slight issue. The activity

Re: [android-developers] how to install a file under application files folder

2011-01-28 Thread Mark Murphy
On Fri, Jan 28, 2011 at 4:51 PM, Bruce Xia xia...@gmail.com wrote: hi, I have a grammar file which I'd like to package and dump it under / data/data/[mypackage]/files folder during installation(something like the windows installation wizard do). Is there an easy way to do it? It is not

[android-developers] Re: Problem move to sd card

2011-01-28 Thread a3g
Thanks, it's interesting. On 28 ene, 23:00, Kumar Bibek coomar@gmail.com wrote: Try searching proguard+android. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sat, Jan 29, 2011 at 3:25 AM, a3g a3g.astur...@gmail.com wrote: what is proguard? On 28 ene, 22:48,

[android-developers] Re: Troubleshooting some memory leaks

2011-01-28 Thread DanH
Ignoring the monkey wrench in the works represented by Android's handling of image data outside of the Java heap, the rules for what gets collected and what doesn't are quite straight-forward: If something can possibly be referenced it's saved. If not, it's eligible for collection (though,

[android-developers] Draw bitmaps one after other using canvas

2011-01-28 Thread android777
How can I draw bitmaps one after other. I was trying to draw three bitmaps as follows. Bitmap kangoo = BitmapFactory.decodeResource(getResources(),R.drawable.flowers1); canvas.drawColor(Color.BLACK); canvas.drawBitmap(kangoo, 0, 0, null); Bitmap kangoo =

[android-developers] Draw bitmaps one after other using canvas

2011-01-28 Thread android777
How can I draw bitmaps one after other. I was trying to draw three bitmaps as follows. Bitmap flower = BitmapFactory.decodeResource(getResources(),R.drawable.flowers1); canvas.drawColor(Color.BLACK); canvas.drawBitmap(kangoo, 0, 0, null); flower =

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Not sure you understand the question or I don't understand the process so please let me explain what I think it's happening. Using flag FLAG_ACTIVITY_REORDER_TO_FRONT brings the activities to the front. If already is somewhere in the history stack than it will be brought to the front and if

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Kumar Bibek
If an activity is being brought to the front, from background, onCeate will not be called. You cannot break the lifecycle. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 3:57 AM, Moto medicalsou...@gmail.com wrote: Not sure you understand the

Re: [android-developers] Draw bitmaps one after other using canvas

2011-01-28 Thread Kumar Bibek
What are you trying to achieve? If you want a pause between the switch, you have to set it in your code, else, you wouldn't notice the transition. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 3:55 AM, android777 anilreddy...@gmail.com wrote: How can

[android-developers] Child focus intercept

2011-01-28 Thread AUandroid
I am trying to disable a Layout including all its children. I am able to intercept the click and key press events of the Layout in the dispatchTouchEvent and dispatchKeyEvent and dispatchTrackBallEvent methods of the layout. Thus, the children of this layout cannot receive any clicks or key

RE: [android-developers] Draw bitmaps one after other using canvas

2011-01-28 Thread Tommy
The drawing is probably happening to fast for you to notice. Put a pause in there for like ½ a second (500 ms) From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Kumar Bibek Sent: Friday, January 28, 2011 5:32 PM To:

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Kostya Vasilyev
Moto, You can try overriding onNewIntent and setting launchMode to singleTask in the manifest. http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.01.2011 1:07 пользователь Mark Murphy

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Thanks Kumar for your help. I do understand the activity lifecycle and see your point. I guess I need to take two steps back and think this over... As you suggested to just do the work onResume() I tried getting the passed intent extras but I guess they are not sent to the activity if it's

[android-developers] Re: Draw bitmaps one after other using canvas

2011-01-28 Thread android777
Sorry to ask such a silly question, but How can I put pause? Is it in canvas class or a sleep? On Jan 28, 4:36 pm, Tommy droi...@gmail.com wrote: The drawing is probably happening to fast for you to notice. Put a pause in there for like ½ a second (500 ms) From:

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Streets Of Boston
Wouldn't 'singleTop' be better in his example? On Jan 28, 5:37 pm, Kostya Vasilyev kmans...@gmail.com wrote: Moto, You can try overriding onNewIntent and setting launchMode to singleTask in the manifest. http://developer.android.com/reference/android/app/Activity.html#onNe...) -- Kostya

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Streets Of Boston
If i understand you correctly, you'd want to assign 'singleTop' to an activity's Launch Mode (in the manifest). This mode makes sure that there is at most one instance of your activity in your app, never more than one. When a 'singleTop' activity is created, its onCreate method is called. When a

Re: [android-developers] Re: Draw bitmaps one after other using canvas

2011-01-28 Thread Kumar Bibek
Run a thread. Put a sleep and then change your Bitmap when the thread wakes up. Loop it 3 times. :) Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 4:13 AM, android777 anilreddy...@gmail.com wrote: Sorry to ask such a silly question, but How can I put

[android-developers] Re: Strange orange background color when custom 9 patch button is pressed...

2011-01-28 Thread Doug
Could you tell us where your button is in your layout? Better yet, just copy the xml layout here. You may be seeing some bleeding through of another view under your button. On that note, try making the button the only thing on the screen and see what that does. Doug On Jan 28, 10:13 am,

Re: [android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Kostya Vasilyev
SingleTop allows multiple instances within a task, and does not reorder existing activities. Combining with the flag to reorder might work, but singleTask already takes care of that. http://developer.android.com/guide/topics/manifest/activity-element.html#lmode -- Kostya Vasilyev --

Re: [android-developers] Re: Draw bitmaps one after other using canvas

2011-01-28 Thread Kostya Vasilyev
You probably meant a Handler and postDelayed with a Runnable? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.01.2011 1:45 пользователь Kumar Bibek coomar@gmail.com написал: Run a thread. Put a sleep and then change your Bitmap when the thread wakes up. Loop it 3 times. :) Kumar

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
@Kostya and Streets Of Boston Thanks guys that is actually exactly what I was looking for! That's great!! :) -- 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

[android-developers] Re: help to build an intent filter

2011-01-28 Thread hansolo
hello Mark. thank you for your help. what's you mean using a standard MIME type ? do you mean should I change my file extension to some well-known one (ex: txt, jpg..) ? I don't know how mail client decide mime type of attached file. and I tried to change my extension to a some well-known one.

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-28 Thread Zsolt Vasvari
Thanks for the lesson, I didn't realize that a 1GHz Cortex is not directly comparable to a 2GHz Core i3... All I was trying to say that emulating of 1GHz of any non native code at the instruction level will be slow on a 2Ghz host. I'd bet if you tried to run a PacMan 8-bit CPU at 1GHz, it

[android-developers] Re: Strange orange background color when custom 9 patch button is pressed...

2011-01-28 Thread Jarrette
*thanks for the reply, doug. Here's the code, I'm having the same issue with every button in the listview.* * * *main_menu.xml* ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical style=@style/body ImageView

Re: [android-developers] Draw bitmaps one after other using canvas

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 4:20 PM, android777 anilreddy...@gmail.com wrote: How can I draw bitmaps one after other. I was trying to draw three bitmaps as follows. Sounds like you should be looking into animations.

[android-developers] Re: Honeycomb SDK - TabHost issue

2011-01-28 Thread roundhill
Yes, that's the app! Let me know if I can help with anything. On Jan 28, 9:58 pm, Dianne Hackborn hack...@android.com wrote: Hi, this is the WordPress app by Automatic, Inc?  I think I can repro the problem; we'll look at it. On Fri, Jan 28, 2011 at 3:38 AM, roundhill danroundh...@gmail.com

[android-developers] Dual mode (Honeycomb Gingerbread) is the same APK.

2011-01-28 Thread Zsolt Vasvari
What are the best practices to maintain an app that would run on both Honeycomb and pre-Honeycomb? I do want to make use of Fragments and the other goodies, but I have a feeling this will be a major P.i.t.A. I certainly don't want to maintain 2 separate apps. -- You received this message

Re: [android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Yep! using android:launchMode=singleTop with implementing the onNewIntent() worked perfect! I assume this also helps the application be a lot faster, responsive, and lot less GC. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2011-01-28 Thread Mr Pants
Hi Streets, Yes - have tried that but with no success. I've managed to work around the issue, but it's not ideal. Seems to me the formatted attribute should be available on strings- array or item but it's not. This would solve my problem. -- You received this message because you are subscribed

[android-developers] Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-28 Thread himanshu jain
Hi All, I am trying to implement two way sync. 1) I tried using SampleSyncAdapter Code first it works on emulator but not on Device , then i tried to write SyncAdapter with SyncService as a demo app with AccountAuthenticator, as per Documentation for SampleSyncAdapter SyncService gets called on

[android-developers] Re: Linux User ID?

2011-01-28 Thread paladin
Do I need to set up any permission to make that call? android.os.Process.myUID(), correct? On Jan 28, 3:57 pm, Kostya Vasilyev kmans...@gmail.com wrote: Process.myUID(): http://developer.android.com/reference/android/os/Process.html 28.01.2011 23:46, paladin пишет: Is it possible to

Re: [android-developers] Re: Honeycomb SDK - TabHost issue

2011-01-28 Thread Dianne Hackborn
Okay should be fixed. Thanks for the report! On Fri, Jan 28, 2011 at 3:28 PM, roundhill danroundh...@gmail.com wrote: Yes, that's the app! Let me know if I can help with anything. On Jan 28, 9:58 pm, Dianne Hackborn hack...@android.com wrote: Hi, this is the WordPress app by Automatic,

Re: [android-developers] TextView - how to make appended text visible?

2011-01-28 Thread John Lussmyer
I wrapped the TextView in a ScrollView (even though TextView is documented as handling it's own scrolling and doesn't need a ScrollView). This let me call the fullScroll( View.FOCUS_DOWN) method in the ScrollView to make the newest text visible. On Fri, Jan 28, 2011 at 11:35 AM, Tobiah

Re: [android-developers] Dual mode (Honeycomb Gingerbread) is the same APK.

2011-01-28 Thread Dianne Hackborn
I have some stuff I'd like to do for a solution for fragments, but nothing to announce quite yet. I'd like to say -- go ahead and use fragments, and you'll have a solution for older devices but am not quite yet ready to really commit to that. :} On Fri, Jan 28, 2011 at 3:32 PM, Zsolt Vasvari

[android-developers] Re: Dual mode (Honeycomb Gingerbread) is the same APK.

2011-01-28 Thread davemac
Maybe a hint or two at least? Will we really have the same activities for both phones and tablets? Or will it be easier to make those separate? - dave On Jan 28, 7:54 pm, Dianne Hackborn hack...@android.com wrote: I have some stuff I'd like to do for a solution for fragments, but nothing to

[android-developers] Did the Honeycomb platform package go away?

2011-01-28 Thread davemac
I'm trying to download Honeycomb preview but I get this from sdk_manager: Downloading SDK Platform Android Honeycomb Preview, revision 1 File not found: http://dl-ssl.google.com/android/repository/android-3.0_pre_r01-linux.zip I've tried with https also with the same result. Where is it now

[android-developers] Overriding Android default (built-in) components

2011-01-28 Thread Wolfgang
I want an activity in my app to overide the Android default (built-in) phone dialer/receiver that normally gets run on incoming calls. This is so that I can replace the default screen that pops up when a phone call comes in with my own call reception activity. I have never overridden Android

Re: [android-developers] Re: Dual mode (Honeycomb Gingerbread) is the same APK.

2011-01-28 Thread Dianne Hackborn
Well the main motivation for designing Fragment was to help write applications that can scale easily across different screen sizes and device types. So, going forward, that is the solution. Now for today developing such apps that also work with older versions of the platform, there are the

Re: [android-developers] HoneyComb and LayoutInflator-cloning seems broken

2011-01-28 Thread Dianne Hackborn
It's not by design. If you could me code + an .apk that runs on both GB and HC and tell me what to look for in different behavior between the two, I can take a look. On Fri, Jan 28, 2011 at 1:43 PM, Streets Of Boston flyingdutc...@gmail.comwrote: I have this piece of code: final

Re: [android-developers] No option to download the API documentation in the Android SDK and AVD Manager

2011-01-28 Thread Dinesh Bajaj
Thanks for your clarification guys. However, in the image published on the page titled Adding SDK Componentshttp://developer.android.com/sdk/adding-components.html on the Android Developer website, there are clearly two options to download the documentation. First being Documentation for Android

Re: [android-developers] HoneyComb and LayoutInflator-cloning seems broken

2011-01-28 Thread Dianne Hackborn
Actually just the .apk binary with a description of what to look for should be sufficient initially. On Fri, Jan 28, 2011 at 7:13 PM, Dianne Hackborn hack...@android.comwrote: It's not by design. If you could me code + an .apk that runs on both GB and HC and tell me what to look for in

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Dianne Hackborn
No, don't use singleTask, that completely changes the behavior since that specifies that the activity must always and can only exist as the root of a task. 2011/1/28 Kostya Vasilyev kmans...@gmail.com Moto, You can try overriding onNewIntent and setting launchMode to singleTask in the

[android-developers] org.xml.sax.SAXParseException: Unexpected end of document

2011-01-28 Thread Pankaj Deshpande
Hi everybody, I am parsing following xml with SimpleParser, but I am facing error as follows: Can anyone tell me why is this happening? XML: ?xml version=1.0 encoding=utf-8?resultstatus552/ statusstatustextNo Results Found/statustext/result Error: 01-29 10:28:51.220: WARN/System.err(520):

Re: [android-developers] Overriding Android default (built-in) components

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 9:03 PM, Wolfgang runo...@gmail.com wrote: Would someone please point me to information (links, books, code examples, whatever), about how to override built-in Android apps? You probably want the other Android groups related to building / modifying the source, as

Re: [android-developers] How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Thanks Dianne for your reply. I'm currently using android:launchMode=singleTop and have implemented the onNewIntent(). With that I'm also using the flag FLAG_ACTIVITY_REORDER_TO_FRONThttp://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT This

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Thanks man that's exactly what I ended doing! :) -- 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] TextView with a top margin that is proportional to the height of the parent view

2011-01-28 Thread John Gaby
Is there a way to position text within a linear layout such that the position of the text is proportional to the height, rather than a fixed distance. For example, I would like the text to be displayed down from the top a distance equal to 20% of the height of the view. Thanks. -- You received

Re: [android-developers] No option to download the API documentation in the Android SDK and AVD Manager

2011-01-28 Thread Xavier Ducrohet
That screenshot shows a broken repository that shouldn't have 2 documentation packages. If you were to install from the repo the 2nd package would overwrite the first one anyway. All docs packages go in $SDK/docs On Fri, Jan 28, 2011 at 7:54 PM, Dinesh Bajaj dinesh.bajaj...@gmail.com wrote:

[android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread Anuj Ahooja
Yeah, mine crashed right before a complete load as well. Really annoying considering that was a main-event kind of thing for me. I loved how it looked in the videos and couldn't wait to play around with it. Guess I'll have to wait a little longer.. -- You received this message because you are

Re: [android-developers] Re: How to add a text file as part of the apk

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 22:52, Paul pmmen...@gmail.com wrote: Store and access it from /res/raw should work, I have a text file in that folder for an app of mine and no problem with the app accessing that file after installation to devices. Sure, you may need stay to you i.e. res/raw or assets/

Re: [android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-28 Thread Marcin Orlowski
All I was trying to say that emulating of 1GHz of any non native code at the instruction level will be slow on a 2Ghz host.  I'd bet if you tried to run a PacMan 8-bit CPU at 1GHz, it wouldn't emulate at full speed or even come close. 8-bit or not is not directly related to possible emulation

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-28 Thread Jonathan Foley
As Dianne mentioned and others have before, the bottleneck is the dynamic translation of ARM opcodes to x86 opcodes. Other VM's like Vmware emulate hardware, but they are still executing code natively albeit with some hypervisor that itself has direct hooks within modern processors. The WebOS and

[android-developers] Re: TextView with a top margin that is proportional to the height of the parent view

2011-01-28 Thread Jonathan Foley
Yes, but you'll have to do it at runtime as there is not a way to do proportional layout as you describe in xml. To prevent a visible transition from the xml size to the correct size, you'll probably want to extend LinearLayout and override its onLayout(). You'll want to layout your child

<    1   2   3