[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 textvie

[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

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 emulat

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 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/ file as long as you

[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] 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 wrote: > Thanks for your clarification

[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

[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+unsub

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_FRONT This beh

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

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 9:03 PM, Wolfgang 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 that's the only way

[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: 552No Results Found Error: 01-29 10:28:51.220: WARN/System.err(520): org.xml.sax.SAXParseException: Unexpected end of document 01-29 10:28:51.239: WARN/Syst

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 > Moto, > > You can try overriding onNewIntent and setting launchMode to singleTask in > the manifest. > > > http:

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 wrote: > 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 betwe

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 Components" on the Android Developer website, there are clearly two options to download the documentation. First being "Documentation for Andro

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 wrote: > I have this piece of code: > > final LayoutInflater liCloned = > Layo

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 existi

[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 buil

[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 plea

[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 wrote: > I have some stuff I'd like to do for a solution for fragments, but nothing > to announce quite yet.

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 w

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 wrote: >

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 wrote: > Yes, that's the app! Let me know if I can help with anything. > > On Jan 28, 9:58 pm, Dianne Hackborn wrote: > > Hi, this is the WordPress app by Automatic, Inc? I think I can repro the > > probl

[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 wrote: > Process.myUID(): > > http://developer.android.com/reference/android/os/Process.html > > 28.01.2011 23:46, paladin пишет: > > > Is it possible to retrieve the Lin

[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 A

[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 t

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 p

[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 becau

[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 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 wrote: > > Tried our app (WordPress fo

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 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. - Tr

[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* http://schemas.android.com/apk/res/android"; android:orientation="vertical" style="@style/body" > * * *menu_item.xml* http://schemas.android.com/apk/res/andr

[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 wouldn'

[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: 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 unsub

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" написал: > Run a thread. Put a sleep and then change your Bitmap when the thread wakes > up. Loop it 3 times. :) > > Kumar Bibek > http://te

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 -- http://kmanso

[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, Jarret

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 wrote: > Sorry to ask such a silly question, but How can I put pause? Is it in > canv

[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

[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 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 Vasilyev -

[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" 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@googlegroups.com > [mai

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 on

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] 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: android-developers@googlegrou

[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 presses

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 wrote: > How can I draw bitmaps one af

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 wrote: > Not sure you understand the question or I don't understand

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 no

[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 = BitmapFactory.dec

[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 = BitmapFact

[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, depend

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

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

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 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 possible. Your code d

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 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 is brought to th

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, J

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 wrote: > what is proguard? > > On 28 ene, 22:48, Kumar Bibek wrote: > > Nope. They will get the Dex code. But, Dex code, with a little bit of > effort > > can

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

2011-01-28 Thread Dianne Hackborn
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 wrote: > Tried our app (WordPress for Android) on the Honeycomb preview, when > it gets to the point where it uses a TabHost the app crashes on > ViewRo

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

2011-01-28 Thread a3g
what is proguard? On 28 ene, 22:48, Kumar Bibek wrote: > Nope. They will get the Dex code. But, Dex code, with a little bit of effort > can be converted to the source. > > It's recommended to use proguard. > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > > > On Sat, Jan 29, 2

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

2011-01-28 Thread Moto
Yes, exactly I understand the behavior. What I'm trying to figure out is what other flags can I use such that the activity can be removed from the history stack brought to the top. When brought to the top it should be reset so that it calls the onCreate(). I just keep trying things and well n

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

2011-01-28 Thread Paul
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. Paul On Jan 28, 7:51 am, Marcin Orlowski wrote: > On 28 January 2011 11:34, Kumar Bibek wrote: > > > You canot write

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

2011-01-28 Thread Bruce Xia
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? I thought about using raw file resource and read/copy it when application runs, but don't

Re: [android-developers] C2DM within gaming paradigm

2011-01-28 Thread Miguel Morales
It sounds fine, however the biggest problem I would see is the data limit on C2DM messages. Your data needs to stay below 1024 bytes. It seems though that if you're just sending messages that tells the clients to pull data. So, it seems like it should work ok. But of course, with a socket you will

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

2011-01-28 Thread Kumar Bibek
Nope. They will get the Dex code. But, Dex code, with a little bit of effort can be converted to the source. It's recommended to use proguard. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 3:15 AM, a3g wrote: > If the app hasn't copy protection, peop

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

2011-01-28 Thread Kumar Bibek
Use onResume(). If the activity is not being created, then there's no way onCreate would be called. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 3:15 AM, Moto wrote: > I'm trying to keep my activity calling flow simple for the user. Always one > inst

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

2011-01-28 Thread a3g
If the app hasn't copy protection, people can get the source code? On 28 ene, 22:29, TreKing wrote: > On Fri, Jan 28, 2011 at 3:14 PM, a3g wrote: > > The app has copy protection. > > Well there you go. > > Why are people still using copy protection when it's been deprecated and > does absolutel

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

2011-01-28 Thread Moto
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

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

2011-01-28 Thread Streets Of Boston
I have this piece of code: final LayoutInflater liCloned = LayoutInflater.from(this).cloneInContext(this); liCloned.setFactory(new KMInflaterFactory()); return liCloned; It returns a layout-inflator with my own custom factory 'KMInflatorFactory'. The KMInflatorFactory's method 'onCreateView

Re: [android-developers] how to make a view draw itself following my finger movement

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 2:29 PM, Wendel Assis wrote: > does anyone know how can I make a hidden view to show itself up > while I'm moving my finger in an horizontal way. The view must be > drawn following my finger and can not just show or hidden itself all > of a sudden, or after I finish my move

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

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 3:14 PM, a3g wrote: > The app has copy protection. Well there you go. Why are people still using copy protection when it's been deprecated and does absolutely nothing but cause problem? ---

Re: [android-developers] Linux User ID?

2011-01-28 Thread Kostya Vasilyev
Process.myUID(): http://developer.android.com/reference/android/os/Process.html 28.01.2011 23:46, paladin пишет: Is it possible to retrieve the Linux user ID that an app is running under (and possibly group ID)? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpres

[android-developers] Re: XML or JSON in Android

2011-01-28 Thread Jake Basile
I have used JSON as the transport encoding in an enterprise app, and it has been easy to use and effective at cutting down communication size from XML. As a side note, something you may want to consider is using C2DM, as polling every 15 minutes will destroy battery life, suck up bandwidth, and

Re: [android-developers] XML or JSON in Android

2011-01-28 Thread Miguel Morales
You can also zip the data on the server side and decompress it on the data side. Might save some time. If you use DefaultHttpClient you can use headers (ENCODING_GZIP) so it does it automatically. Also, it seems like your application will be wasting network and battery by checking the server so f

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

2011-01-28 Thread a3g
http://schemas.android.com/apk/res/android"; package="a3g.emyshoppinglist" android:versionCode="4" android:versionName="2.0" android:installLocation="auto"> . . The app has copy protection. On 28 ene, 17:31, "JAlexoid (Aleksandr Panzin)" wrote: > I think, Co

Re: [android-developers] How best to lock down an app using LVL when using multiple activities?

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 6:10 AM, David Caunt wrote: > Other than displaying some kind of splash screen (which I really don't > want) and holding the application until a response is received, I > can't see a reliable way of locking unlicensed users out. > > If I'm missing something obvious then po

[android-developers] Linux User ID?

2011-01-28 Thread paladin
Is it possible to retrieve the Linux user ID that an app is running under (and possibly group ID)? -- 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

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

2011-01-28 Thread Streets Of Boston
I'm not sure if this would fix it, but have you tried '\%' instead of just '%'? (escaping the percent sign). On Jan 27, 6:02 pm, Mr Pants wrote: > I might being dense here but in the scenario where I've got an string- > array of URL encoded string eg. urls with %20, how should I handle > these -

[android-developers] how to make a view draw itself following my finger movement

2011-01-28 Thread Wendel Assis
Hi all, does anyone know how can I make a hidden view to show itself up while I'm moving my finger in an horizontal way. The view must be drawn following my finger and can not just show or hidden itself all of a sudden, or after I finish my movement. For example, in a list entry, If I move on

Re: [android-developers] Custom button border

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 8:55 AM, Premier wrote: > So, how i can create a button with arrow on border right? http://developer.android.com/reference/android/widget/TextView.html#attr_android:drawableRight ---

Re: [android-developers] Task Killers and Alarms

2011-01-28 Thread Dianne Hackborn
As of 2.2, task killers can't remove registered alarms; they can only kill a process while it is the background (the same thing the OOM killer is free to do at any time). If you have steps to repro a situation where they do, please file a bug report. On Thu, Jan 27, 2011 at 9:59 PM, jrojas78 wrot

Re: [android-developers] Eclipse + sdk install

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 09:49, Brian wrote: > I'm a high school cs teacher trying to get a lab installed for my students > to use. > I'm trying to use the android sdk and eclipse. I've successfully downloaded > and installed the sdk to C:\Program Files\Android\android-sdk-windows. Don't use path with

Re: [android-developers] showing map and a saving location

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 8:53 AM, Atif Musaddaq wrote: > Is it possible to do in a single activity ? any sample code, tutorial etc Yes. Look up MapActivity. - TreKing

Re: [android-developers] How to capture the end of a Zoom In/Out animation from a MapController

2011-01-28 Thread TreKing
On Thu, Jan 27, 2011 at 9:30 PM, rajesh.singh wrote: > Just an interesting query here, is there a way to capture when a zoom > animation sequence has ended when calling either: > > MapController.zoomIn() or MapController.zoomOut(); > Not really, the Maps API is really lacking in this regard (wel

RE: [android-developers] SOAP request and response

2011-01-28 Thread Tommy
I have found the Ksoap library to be amazing. I recommend using it. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Kumar Bibek Sent: Friday, January 28, 2011 2:26 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] SO

RE: [android-developers] Eclipse's android perspectives have gone

2011-01-28 Thread Tommy
Window ---> Open Perspective --> DDMS Or is totally gone? -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Dewi Jones Sent: Friday, January 28, 2011 11:26 AM To: Android Developers Subject: [android-developers] Eclipse'

RE: [android-developers] help

2011-01-28 Thread Tommy
First make sure you have USB Debugging enabled on the phone: Settings -à Application à Development (maybe a little different on some phones) Once this is enabled you should be able to connect your phone to the computer and open eclipse. Now click the debug symbol in eclipse ( to the left of th

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

2011-01-28 Thread Tobiah
On 01/28/2011 09:50 AM, John Lussmyer wrote: I have a TextView that frequently has text appended from a service. I can append the text just fine, but how do I make the TextView scroll so the newly appended text is visible? Once the view fills, the new text is below the bottom edge. I haven't u

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

2011-01-28 Thread Kostya Vasilyev
Ah. So there is only one at a time. Thanks for clarifying. -- Kostya 28.01.2011 22:23, Xavier Ducrohet пишет: In the image I clearly see the "Documentation for Honeycomb Preview" package being availabe, so I'm not sure what you are asking. Download it, find it in $SDK/docs and do whatever you

Re: [android-developers] SOAP request and response

2011-01-28 Thread Kumar Bibek
Use any Java Soap libraries available. http://code.google.com/p/ksoap2-android/ Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 27, 2011 at 3:07 PM, Neha wrote: > Hi, >Can anyone tell me how to post SOAP request and and get SOAP > response > > Thanks in Advan

Re: [android-developers] installing ADT plugin for mac

2011-01-28 Thread Kumar Bibek
The plugin doesn't contain the SDK, You have to download and unzip it separately. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 11:30 AM, dragonfly wrote: > I have eclipse with Java installed. > > I used help>install new software to get the ADT plugin

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

2011-01-28 Thread Xavier Ducrohet
In the image I clearly see the "Documentation for Honeycomb Preview" package being availabe, so I'm not sure what you are asking. Download it, find it in $SDK/docs and do whatever you want with it. Note that we always have only a single docs package which contains docs for all version. (In the re

Re: [android-developers] Intercept incoming and outgoing Phone Call and text messages

2011-01-28 Thread Kumar Bibek
This has been already discussed so many times. Please search for it. I am pretty sure that you will find enough threads or discussions about this. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 4:56 AM, Christian Chabtini wrote: > Can any one suggest h

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

2011-01-28 Thread Mark Murphy
On Fri, Jan 28, 2011 at 8:59 AM, Kostya Vasilyev wrote: > Just checked on my computer - the only documentation package I get is > "Documentation for Android Honeycomb Preview SDK". The documentation for API > 9 is no longer on the list. > > So it's not just your computer - either it's deliberate a

Re: [android-developers] Re: Passing objects to new intents

2011-01-28 Thread Kumar Bibek
Perhaps, a mismatch of title and content. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 5:26 PM, Mohamed KARAMI wrote: > *Hi, > > I have I9000** with I9000JPJG8 firmeware, Market application work > perfectly but, i can't find Google maps in the Market

Re: [android-developers] XML or JSON in Android

2011-01-28 Thread Kumar Bibek
JSON is lighter, and is simple. :) Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 1:17 PM, Ranveer wrote: > Hi All, > > I am developing an Android application. > Following is my scenario: > > 1. I parsing XML in android which is hosted on server (same

Re: [android-developers] Re: Renderscript documentation

2011-01-28 Thread Xavier Ducrohet
as I said above, Renderscript requires tools support which is not ready. Once this is done, the build system in Ant and ADT will automatically compile the .rs files (the same way it deals with .aidl files) Xav On Thu, Jan 27, 2011 at 12:18 AM, jimmy yang wrote: > RS Samples in SDK are not compil

Re: [android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread Kumar Bibek
Yep, same here. But I guess, we have to wait. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 27, 2011 at 1:37 PM, shawn_y wrote: > I got the same problem. It seems crached at EGL library. > Any soltuion? > > Thanks > > On Jan 27, 10:50 am, James Pearce wrote: > >

Re: [android-developers] i have htc legend The problem with is that whenevr i connect it witd my computer it says USB DEVICE NOT RECOGNISED error

2011-01-28 Thread Kumar Bibek
Does your emulator show any devices? I suspect that you have the proper drivers. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sat, Jan 29, 2011 at 12:15 AM, Muhammad Jawad wrote: > i have htc legend > The problem with is that whenever i connect it with my computer it says

Re: [android-developers] Facebook events stream

2011-01-28 Thread Kumar Bibek
You should try the facebook sdk forums. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 27, 2011 at 4:51 PM, saintemily wrote: > I am currently developing an android app that I want to pull friends > events from facebook and I am having trouble working out how, I ha

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

2011-01-28 Thread Mark Murphy
On Fri, Jan 28, 2011 at 7:20 AM, hansolo wrote: > I'm trying to make an app which is automatically started when user try > to open a some attached file (which has a custom extension) on mail > client. You are much better served using a standard MIME type. > my logcat show as follow when I try to

Re: [android-developers] help

2011-01-28 Thread Kumar Bibek
The same way you would do on an emulator. Enable the debuggable attribute fr your app in the manifest, and allow the phone to be debugged in settings. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 27, 2011 at 8:54 PM, sangram pawar wrote: > Hi, > friends >

[android-developers] Voice Input Feature

2011-01-28 Thread Pratheeja
Hi, How can I implement the Google VoiceInput on Android? Could you pls give me the technical guide or related link to study more about its technical difficulties. regds, Pratheeja -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

  1   2   3   >