Re: [android-developers] Drawing

2011-06-28 Thread Miguel Morales
Yes, see: http://developer.android.com/reference/android/graphics/Canvas.html#Canvas(android.graphics.Bitmap) On Tue, Jun 28, 2011 at 10:56 AM, New Developer secur...@isscp.com wrote: Is there a way to take the canvas  and save it as a bitmap  perhaps ? On Jun 28, 2011, at 1:31 PM, New

Re: [android-developers] Drawing

2011-06-28 Thread New Developer
I have that mBitmap is a Bitmap for the entire class same with mCanvas is a Canvas for the entire class then I call invalidate() which calls the onDraw(canvas) function the canvas parameter to onDraw and the mCanvas are the same Im not getting what you are imply by the link, please

[android-developers] Re: Expandable List and GetChildCount

2011-06-28 Thread Streets Of Boston
There is no easy way... using your own group-indicator drawable and specifying the 'state_empty=true' doesn't seem to work too well, but I could have made some mistakes... This is what I did: Add a onGroupItemClickListener to your expandable list-view and return true in the onGroupClick

[android-developers] Re: battery status check

2011-06-28 Thread Indicator Veritatis
I know lot of people have praised Motorola Android phones very highly, but the stubbornness you describe on the part of Motorola is a good example of how I learned to hate Motorola phones back around 2000, when they started making one boneheaded decision after another in their mobile phones. The

[android-developers] Re: Android apps in php

2011-06-28 Thread Indicator Veritatis
Either that, or he accidentally executed the KSR instruction (http:// monster-island.org/tinashumor/humor/opcodes.html) while typing into Google... On Jun 28, 1:12 am, Zsolt Vasvari zvasv...@gmail.com wrote: I don't think Goolge Search works in India.  That's the only explanation. On Jun 28,

[android-developers] Re: socket connect through a bluetooth issue

2011-06-28 Thread Indicator Veritatis
Well, posting this larger code snippet does answer some of the questions. But if onCreate() is the only place you call start() on the ClientThread, then the problem is clear: you are closing the OutputStream and the BluetoothSocket prematurely. Take a look at BluetoothChat: neither are closed

[android-developers] Virtual keyboard moves the image upwards

2011-06-28 Thread Sudeep Sharma
Hi, In the package com.android.setupwizard where the first screen displays the Android Logo and an animated hand arrives, i see one issue there. When you try to open virtual keyboard by long press menu, the Android logo moves up and the image is half cut. I have a similar image and want to

[android-developers] Re: Finishing Activities

2011-06-28 Thread Kenny Riddile
On 6/28/2011 12:03 PM, Diogo Salaberri wrote: Hi.. I have a problem, whe I start my aplication the launcher activity is called HOME, and that HOME automatically call other activity called LOGIN. Now, I have to finish this aplication when I click on default back button overwriting onKeyDown. The

[android-developers] who draws the Button's border and background?

2011-06-28 Thread guich
Hi, Who exactly draws the Button's border and background? I saw that Button extends TextView, but this class has 8500 lines. I would like to understand the algorithms used to draw the border and the dithered gradient background. thanks guich -- You received this message because you are

[android-developers] Saving pointers to object

2011-06-28 Thread Gustavo Vargas
Ok, I know pointers don't exist in Java, but I was wondering if there is a way to mimic its behavior or any other mechanism that let me keep the reference to an object when my activity restart from a softkill. inside the onCreate of my activity I have something like that: work= new

Re: [android-developers] Saving pointers to object

2011-06-28 Thread TreKing
On Tue, Jun 28, 2011 at 3:41 PM, Gustavo Vargas xgvar...@gmail.com wrote: There is a way to do that? http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()

Re: [android-developers] who draws the Button's border and background?

2011-06-28 Thread Kostya Vasilyev
Neither. It's a view background, defined as a state list. Take a look in android-sdk\platforms\android-X\data\res\values\styles.xml: style name=Widget.Button *item name=android:background@android:drawable/btn_default/item *item name=android:focusabletrue/item item

Re: [android-developers] Saving pointers to object

2011-06-28 Thread Justin Anderson
Why not wrap this original work thread in a service? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 28, 2011 at 2:41 PM, Gustavo Vargas xgvar...@gmail.com wrote: Ok, I know pointers don't exist in Java, but I was wondering if there is a way

[android-developers] Files that I write to the sdcard do not show in Windows explorer, for Acer Iconiatab?

2011-06-28 Thread Ab
In my application, I create files and write them to the Sdcard. This works fine on my Samsung Galaxy running 2.2, but has some issues on my Acer Iconcia Tab running 3.0. On the Galaxy, my created files show as expected in DDMS and in windows explorer (when the tab is mounted as a USB device).

Re: [android-developers] Saving pointers to object

2011-06-28 Thread Kostya Vasilyev
Orientation changes: http://developer.android.com/resources/articles/faster-screen-orientation-change.html Also consider using onPause / onStop to handle the user leaving the activity, and consider using a service so it can run independently of the activity. -- Kostya 2011/6/29 Gustavo Vargas

[android-developers] How to deal with bulk licensing?

2011-06-28 Thread Ab
A company would like to purchase a large number of licenses of my application. They do not want to have individual device users make the purchase on their individual Google accounts. Also, I would prefer not to build them an unlocked apk out of fear of it being distributed. Do I have any

[android-developers] Re: Saving pointers to object

2011-06-28 Thread Gustavo Vargas
On 28 jun, 17:46, Justin Anderson magouyaw...@gmail.com wrote: Why not wrap this original work thread in a service? Yes, I think I'll do that, I can't see another reliable way to do this. Thanks everybody that give me the tip of using the onRetainNonConfigurationInstance(), I just tried it out

Re: [android-developers] How to deal with bulk licensing?

2011-06-28 Thread Justin Anderson
You could do the following: - Have them create a company-wide gmail account: companyn...@gmail.com - On launch of your app, make sure that the specified account is on the device - If it is not do the normal license checking - If it is, bypass the normal license check and unlock the

[android-developers] Re: Install % not updating?

2011-06-28 Thread Zsolt Vasvari
I don't believe this happens to everybody. Everybody who's complaining about this is also saying that their ranking had dropped. I haven't seen a single person said that their ranking had gone up while there install % is stuck. So whet you are saying simply cannot be the case. On Jun 28, 8:21 

[android-developers] Re: Install % not updating?

2011-06-28 Thread Nathan
On Jun 28, 4:23 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I don't believe this happens to everybody.  Everybody who's complaining about this is also saying that their ranking had dropped. I haven't seen a single person said that their ranking had gone up while there install % is stuck. The

[android-developers] Re: ANR Reason: keyDispatchingTimedOut when drawing overlay on map?

2011-06-28 Thread JP
On Jun 27, 7:32 am, Boozel boozelcl...@gmail.com wrote: Can any one tell me what the best structure is to do the drawing and prevent this? Your draw() routine is inefficient, and you really get hit in the constrained mobile environment. Here's a few changes that I would try: - Pull object

[android-developers] Re: Install % not updating?

2011-06-28 Thread John Coryat
I don't believe this happens to everybody. Everybody who's complaining about this is also saying that their ranking had dropped. One other factor you're not considering... Most developers know the market stats are bonkers at best and they also know that no matter how much they jump up and

[android-developers] Re: Install % not updating?

2011-06-28 Thread Zsolt Vasvari
The ranking I see is the same as what the users see as I check it on a device I am not a user on. I am very familiar with my ranking and my competitors'. The EXACT same apps that hadn't dropped in the ranking the last time this was going on (in April/May?) hadn't dropped this time aroundt.

[android-developers] Re: Install % not updating?

2011-06-28 Thread John Coryat
There is no other explanation that the ranking systems You are assuming that you know every possible factor that goes into the ranking algorithm. What about usage? That's been acknowledged as being a factor. What if your app is being used less on a daily basis? Did you take that into

[android-developers] Re: Install % not updating?

2011-06-28 Thread Zsolt Vasvari
Even Google knows it's NOT ALL developers. Here's their (canned) response: ...We're aware of reports from SOME developers that they see no change, or have a value of 0 (zero), in the active install number displayed in developer console... The highlight is mine. Some != All and it's not even

[android-developers] Re: Install % not updating?

2011-06-28 Thread Zsolt Vasvari
Just take a chill pill and forget about it. And please don't tell me to take a chill pill. For me, this is my primary income -- if somebody suddenly lowered your salary and you were told to take a chill pill, you wouldn't appreciate it too much. -- You received this message because you are

[android-developers] Why is it so slow to light on the phone

2011-06-28 Thread June Hello
Dear all, I have encountered a problem. If I use live wallpaper and make phone be in sleep state, then I press power key to turn the phone on I find it is very slow to light the phone on. If I use static wallpaper, it is relatively fast. So I wonder what is the main cause? and where is the

Re: [android-developers] Why is it so slow to light on the phone

2011-06-28 Thread Dianne Hackborn
There is nothing in the system code that knows or cares that the wallpaper is a live wallpaper. In fact the static wallpaper is just a live wallpaper that is implement by the system and draws a static image. My first guest would be that your wallpaper is consuming a lot of CPU and thus slowing

[android-developers] Re: Install % not updating?

2011-06-28 Thread John Coryat
And please don't tell me to take a chill pill. Well, you have a choice: 1. Get all agitated, excited, panic, angry and have a nervous breakdown over something you cannot possibly control or do anything to change. 2. Just chill out and wait for it to get solved. I suggest option 2. There is

[android-developers] Re: Install % not updating?

2011-06-28 Thread Zsolt Vasvari
Once again, I am not interested in your advice. I am posting that hopefully somebody from Google takes notice - -- as unlikely as that is - and realize that people's livelihoods are effected. On Jun 29, 9:41 am, John Coryat cor...@gmail.com wrote: And please don't tell me to take a chill

[android-developers] Re: socket connect through a bluetooth issue

2011-06-28 Thread Indicator Veritatis
BTW: this problem is a good example of when to check the original Sun (now Oracle) documentation on the Java APIs: for the original goes into much more detail on Socket and getOutputStream(), explaining that if you close the Output Stream, you also close the socket. Neither of which should you do

[android-developers] Re: Install % not updating?

2011-06-28 Thread John Coryat
Well, if crying in the dark makes you feel better, then who am I to criticize? -John Coryat -- 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

[android-developers] how to make my app as the only one NFC tag handler

2011-06-28 Thread Zhihong GUO
Hi all, My NFC tag written a private text string, start with , and I want to dev a tag reader app. How can I make my tag reader to be the only one that will handler a tag stored a string begin with ? thanks you so much -- You received this message because you are subscribed to the

[android-developers] How to get View instance from Activity's PID,UID,Process name, PkgList?

2011-06-28 Thread PKS
Hi, I am new to android. I created a service. From my service, I can able to get which application is running in foreground. I am doing this with the help of ActivityManager.getRunningAppProcesses(). From this I can able to get the Activity's PID, PkgList, Process name, UID. But I don't know how

[android-developers] Re: How do I know in the screen EditText is the last one?

2011-06-28 Thread wang
Hi All, I want to know how to check which view is current focus? Please give me some suggestions. On Jun 27, 10:01 pm, wang svnzk...@gmail.com wrote: Hi All, I have a question about input method, how do I know in the screen EditText is the last one ? I using OpenWnn as system input method,

[android-developers] Re: Install % not updating?

2011-06-28 Thread James W
What is the ranking that everybody it talking about? I don't see any ranking statistic on the Market App, or in the Developer Console for either of my apps. Where do you find the ranking number? Is it because they dont have sufficient downloads yet? My free one has 8000, which admittedly is not

[android-developers] Re: Install % not updating?

2011-06-28 Thread James W
And for what it is worth, the Active Installs and Total Installs as others have mentioned bear little relation to reality. I used to obsess about them updating until I realised they don't relate to actual sales. The only way to know your real sales numbers is to use one of the sales tracking

[android-developers] Custom SeekBar

2011-06-28 Thread shanmu nathan
Hi guys, Good Morning, I m one of the beginner of android. I need your help. Now i develop one application. in this application i set a seek bar. I need two thumbs in that seek bar i dont know how to custom that. Can u have any idea to do that? please help me. Then if you have the android

[android-developers] Using android surface to display video

2011-06-28 Thread Sandeep Patil
Hi all, I want to display a rendered video using android surface. Here is what i am doing, * I am creating a surfaceView object and setting it to activity display. * Then registering a callback to it and once the surface is created, i'l get the surface and set it to a field of activity class. *

<    1   2