[android-developers] Re: If I turn off Copy Protection, what will happen?

2010-08-31 Thread Peter Webb
I have just gone through exactly this, except my app is free. 1. I know a (pathetic) 6 people with Android phones. One couldn't see my app. We compared which apps he could see; he was missing about 10% including mine. 2. The user who couldn't see the app owns a Samsung Galaxy. There is a known is

[android-developers] Re: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-08-31 Thread String
On Tue, Aug 31, 2010 at 8:52 PM, GJTorikian wrote: > > Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse Result > > in Free App > > That was the gist of it, yes. I agree, having done an "unlocker" app in the past (and, separately, using LVL now) that's the approach that makes

[android-developers] Urgent Help - Diff between Phone Window and Mid Window

2010-08-31 Thread Revathi K J Ramanan
Hi, What is the basic difference between the PhoneWindow and MidWindow policies? I found that the emulator version takes the implementations of the PhoneWindow.When the MidWindow implementations will be used? Also, I found that PhoneWindow handles the call settings implementation and the same is

[android-developers] Re: If I turn off Copy Protection, what will happen?

2010-08-31 Thread Sam
If you are using a Sqlite database in your app then users on android 1.5 will need to uninstall and then re-install. If you are not using Sqlite then there should be no issues. On Sep 1, 10:34 am, Chris Stewart wrote: > I'm not sure how I'd test it.  There's nothing I'm setting in my app > regar

[android-developers] Color the cells in gridview

2010-08-31 Thread Ramesh Sangili
Guys, Is it possible to color the cells in the grid view? If yes, please share your thoughts. Thanks, Ramesh -- 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 unsu

[android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread JAVANAND
HI San and Flying coder, onUserLeaveHint is called whenever the activity is supposed to be paused due to user action. Whether it Home Or Navigation to another activity screen( caused due to user action). Except for incoming calls or SMS. Thanks Sumanth On Aug 31, 4:15 pm, San wrote: > You are r

[android-developers] Re: TweetDeck android app like column view

2010-08-31 Thread warenix
@jean-guy you widget looks great! I will study your code. Thanks for sharing! On Aug 27, 1:31 am, jean-guy wrote: > Earlier in the month I wrote and open-sourced a simple widget that may > fit your needs: > > http://code.google.com/p/deezapps-widgets/ > > Each "column" could be a page in the para

[android-developers] Re: How to enable auto update?

2010-08-31 Thread limtc
Thanks! That's very helpful to know that it is not developer-enabled feature. On 9月1日, 下午1时08分, TreKing wrote: > On Tue, Aug 31, 2010 at 9:20 PM, limtc wrote: > > How does the "Allow automatic updating" works? > > Users can opt to allow an app to be auto-updated by the Market. > However, if the

[android-developers] KeyEvent Methods

2010-08-31 Thread Tez
1. what is the getKeyDownTime() method? What does its return value mean logically? 2. what is the getKeyEventTime() method? What does its return value mean logiccaly? 3. I want to measure the time a key was depressed for. Eg: Key A was pressed for 60 ms. which of the above methods would be useful?

Re: [android-developers] Re: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 8:52 PM, GJTorikian wrote: > Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse Result > in Free App > That was the gist of it, yes. On Tue, Aug 31, 2010 at 9:42 PM, Chris Stratton wrote: > I'm not seeing any obvious reason why the free version can't j

Re: [android-developers] what member variable in Activity class stores its state?

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 8:47 PM, Anil wrote: > just wondered what the member variable in Activity is that stores it - we > are after all, extending from it - so we could directly access it unless it > is private. > What makes you think there is a member variable that stores the current state? -

Re: [android-developers] display menu all the time

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 10:08 PM, ecforu wrote: > I want to display a "New" button so that the user can add to the list. So add a "New" button to the bottom or your screen or as the "Footer" of your ListView. -

Re: [android-developers] How to enable auto update?

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 9:20 PM, limtc wrote: > How does the "Allow automatic updating" works? > Users can opt to allow an app to be auto-updated by the Market. However, if the permissions for the app have changed, it does not work. The user must manually update and agree to the new permissions.

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 4:30 PM, Zsolt Vasvari wrote: > Yes, but if you declared the helper function private, you may have gotten > an unused warning. If it was in a different class, of course, that's no > help as the compiler doesn't check for unused package private functions, > even though it

[android-developers] What is the class name of media scanner service?

2010-08-31 Thread Agus
What is the class name of media scanner service? -- 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

[android-developers] can't select using touch after changing tabs on Froyo

2010-08-31 Thread nick
Hi, I have an activity with three tabs, the content is all in the same activity. Here's how I setup the tabs: tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator( getResources().getText(R.string.tab1), getResources().getDrawable(R.drawable.ic_tab1))

[android-developers] XMLRPC

2010-08-31 Thread Tsolmon Narantsogt
Hi Can i use this ( http://www.apache.org/dist//ws/xmlrpc/ ) library on android ? -- Regards Tsolmon -- 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

[android-developers] display menu all the time

2010-08-31 Thread ecforu
I was wondering, is there a way to display a menu all the time instead of when the menu button is pressed. The reason being is a I have an activity that has a list view, but I want to display a "New" button so that the user can add to the list. I don't know where to put the button, and I would ra

[android-developers] Re: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-08-31 Thread Chris Stratton
I'm not seeing any obvious reason why the free version can't just query the license server about the unlocker by itself, but maybe I'm overlooking something. On Aug 31, 9:52 pm, GJTorikian wrote: > So: > > Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse > Result in Free App >

Re: [android-developers] Re: If I turn off Copy Protection, what will happen?

2010-08-31 Thread Chris Stewart
I'm not sure how I'd test it. There's nothing I'm setting in my app regarding copy protection, it's all market-based. Because I'm not able to buy my own application, and then do the update, I'm not sure how I'd test it. >From what I could gather, it should only affect users running 1.5. They'd

[android-developers] Re: If I turn off Copy Protection, what will happen?

2010-08-31 Thread Maps.Huge.Info (Maps API Guru)
Why don't you test it on your own device? That will certainly answer your question. I believe the answer is it won't be a problem but it could mean your users have to uninstall and reinstall, which means any data the app has collected on the device could be lost. -John Coryat -- You received thi

[android-developers] How to enable auto update?

2010-08-31 Thread limtc
Hi, How does the "Allow automatic updating" works? I notice that my apps have "A manual update is required." when I try to enable it. Is it anything I need to do in my codes to enable this to work? Or is it depending on the permissions required by the apps? -- You received this message because

[android-developers] Re: Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-08-31 Thread GJTorikian
So: Launch Free App->Launch Unlocker App->Run LVL->Return Result->Parse Result in Free App ? On Aug 31, 1:49 pm, TreKing wrote: > On Tue, Aug 31, 2010 at 1:07 PM, GJTorikian wrote: > > If LVL is verified intermittently on a paid app, is it useless for these > > unlocker apps? > > No. > > > Pre

[android-developers] what member variable in Activity class stores its state?

2010-08-31 Thread Anil
One can override the different OnX() methods and update state (foreground, paused, stopped, destroyed) but just wondered what the member variable in Activity is that stores it - we are after all, extending from it - so we could directly access it unless it is private. background: wanted a service t

[android-developers] If I turn off Copy Protection, what will happen?

2010-08-31 Thread Chris Stewart
I'm having a lot of issues where people can't even find my app in the Android Market. It appears that it's all because of copy protection, which I WISH I had never even seen, much less activated in my app. So, can Google PLEASE, response and let me know what will happen if I disable it now? What

[android-developers] Re: How do I create a background loop method

2010-08-31 Thread JP
A partial wake lock will do the trick, except in that it places a burden on the battery beyond normal operation. Also heads-up that the System seems to like killing Services that snooze. On Aug 31, 4:19 pm, Laxs wrote: > Hi, > > I got a problem, I want to call a method every X minutes, if my

[android-developers] Re: Canvas and its transformation matrix have different translation values

2010-08-31 Thread Joao Luis
On Aug 31, 9:05 pm, Romain Guy wrote: > The matrix returned by the Canvas is the sum of all transformations to > the point your view is being drawn. There's a single Canvas for all > Views on screen. Thing is, I'm drawing directly on the onDraw() method of my custom View, the only View used by

[android-developers] Re: How do I create a background loop method

2010-08-31 Thread Maps.Huge.Info (Maps API Guru)
If your "result" is something a server knows about, you could use the C2DM thing to wake up your app instead of polling every x minutes. -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 andr

Re: [android-developers] Re: Can you change permissions when you update an app?

2010-08-31 Thread Stephen Morrison
Ok, thanks. Sounds good. I guess I have to decide if I will loose more users by being scared away by a permission that allows the app access to their location or if I will loose more because it is too much hassle to update the app manually. -Stephen On Tue, Aug 31, 2010 at 3:29 AM, String wrote

Re: [android-developers] How do I create a background loop method

2010-08-31 Thread Mark Murphy
On Tue, Aug 31, 2010 at 7:19 PM, Laxs wrote: > I already read about the AlarmManager and broadcast receiver but I'm > not sure if this is right for my problem. It's the only solution to your problem, given your wake-the-phone-up requirement. Your only alternatives would be to keep the phone on 10

[android-developers] How do I create a background loop method

2010-08-31 Thread Laxs
Hi, I got a problem, I want to call a method every X minutes, if my method got a result it ´should inform the user by vibrating or showing a alertbox. if the method doesn't get a result it should wait for X minutes and restart. What is important, this should also work when the phone turns to sleep

[android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread San
You are right Flying Code. I checked this somedays before. onUserLeaveHint() getting called as soon the Home key is pressed. I checked other interruptions like pressing search key, incoming call etc. But this method only called when i press the HOME key. (I tested on a 2.1 phone) On Aug 31, 3:49 

[android-developers] Re: Sim Contacts

2010-08-31 Thread William Ferguson
Anyone? One of the Google engineers perhaps? On Aug 30, 7:37 am, William Ferguson wrote: > I have some code that manipulates the Contacts database via the > Contacts Provider (ContactsContract.RawContacts.CONTENT_URI), so I can > add/edit/delete my Google contacts, Phone contacts and the Sim > c

[android-developers] Re: How to create TextView without write the XML file

2010-08-31 Thread San
As Havlicek said, create the textview using findViewByID and set the text when button is clicked. Sample code: tv = (TextView) findViewById(R.id.TextView01); tv.setText("This is sample."); Button button = (Button) findViewById(R.id.Button01); button.setOnClickListener(new OnClickListener() { publ

[android-developers] Re: layout_gravity

2010-08-31 Thread William Ferguson
Thanks Mark, I think you managed to clarify for me why it's not working. And yes, I'm now convinced that RelativeLayout is the correct option in this case. I believe that layout_gravity (for LinearLayout) probably only has an effect if it specifies a direction that is orthogonal to the orientation

[android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread Flying Coder
I agree with Frank & Mark: you don't need to detect the HOME key to do what you want. Simply doing the check as part of the activity life cycle should be sufficient. However, I think you can detect when the HOME key is pressed by overriding onUserLeaveHint. I haven't yet had a reason to use it,

[android-developers] Re: Error during sms deletion.

2010-08-31 Thread San
Are you facing this problem always? Or is this happening only when you try to delete a message as soon as you receive it. On Aug 31, 3:33 am, Pobudzio wrote: > Hi, > > I have problem with deletion sms with messageId=0. I can't delete such > a message. There is no problem with deletion other mess

[android-developers] Re: layout_gravity

2010-08-31 Thread Mark Carter
LinearLayout is for when you want a continuous sequence of children in a line, one after another. From your description, that is not what you want (e.g. there may be a gap between the buttons depending on their sizes and the size of the parent). So a LinearLayout is not what you should be using.

[android-developers] Re: getting email address of the account on the phone

2010-08-31 Thread San
Account[] allAccounts = AccountManager.get(getApplicationContext()).getAccounts(); for(Account account : allAccounts) { String emailAccName = account.name; String emailAccType = account.type; } Dont forget to add in the manifest -- You received this message because you are subscribed to t

[android-developers] Re: getting email address of the account on the phone

2010-08-31 Thread San
Account[] allAccounts = AccountManager.get(getApplicationContext()).getAccounts(); for(Account account : allAccounts) { String emailAccName = account.name; String emailAccType = account.type; } Dont forget to add in manifest -- You received this message because you are subscribed to the G

Re: [android-developers] Confused over activities and creating new tasks

2010-08-31 Thread Mark Murphy
I'd implement a wizard using ViewFlipper in a single activity, personally. Creating a reusable wizard component is yet another of the 18,000 items on my to-do list... On Tue, Aug 31, 2010 at 6:02 PM, Connick wrote: > Hi folks, > > I'm launching a wizard as a series of views. (dialog theme) I need

[android-developers] Confused over activities and creating new tasks

2010-08-31 Thread Connick
Hi folks, I'm launching a wizard as a series of views. (dialog theme) I need the user to be able to step back and forth through the series of views. When the final step is completed I'd like to return the to the original view that launched this new task. (i.e. close the series of dialogs) The only

[android-developers] Re: Using Bouncy Castle with an Android app

2010-08-31 Thread fba
(Robert Nekic) Have you tried to generate a CSR with BC in your app? I seem to be able to do a lot of different certificate related things, but hit the ClassCastException when I try to generate a CSR. The other route I have looked at is CoDec, but the license listed on SourceForge doesn't match th

[android-developers] setselection() doesn't have visual effect

2010-08-31 Thread cindy
I have create a listview . When listview is created I used setSelection(0) to set it to first listitem. But there is no visual effect, the selected listitem is not changed to listed color. In my application, I want to high light the first listItem by default. Does anyone know how to do that? Th

[android-developers] Re: layout_gravity

2010-08-31 Thread Zsolt Vasvari
Note sure, I would go with Kostya's suggestion and try converting your LinearLayout to a RelativeLayout. It know it looks daunting at first, but it's fairly easy to use and you don't seem to get the gravity weirdess, as you don't need to use (or even can?) layout_gravity at all. It also appears t

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-31 Thread Zsolt Vasvari
> Me too! Probably the defaults, but I have no warnings (except the "required" > minSDK warning) and it wouldn't have been caught anyway. The line that got > removed was a simple static helper function that used the current context to > delete all files in the cache directory. Removing it had no ef

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread DanH
Actually, several sources recommend their use. On Aug 31, 4:06 pm, San wrote: > And it is not recommended to use static variables in Android applns. > > On Aug 31, 1:57 pm, DanH wrote: > > > Static variables are created and initialized when the class containing > > them is loaded into the VM by

[android-developers] suspend layout method in Android

2010-08-31 Thread dave
Hello, I am trying to take control of the repainting of the view components. I know in windows mobile sdk, there is a method of suspending layout, and after the components are placed well, I can call resume layout then to pain the whole screen in one shot. Are there similar API in android SDK, or

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread San
And it is not recommended to use static variables in Android applns. On Aug 31, 1:57 pm, DanH wrote: > Static variables are created and initialized when the class containing > them is loaded into the VM by the class loader.  When the class is > unloaded or the VM ended, the static variables go

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread DanH
Static variables are created and initialized when the class containing them is loaded into the VM by the class loader. When the class is unloaded or the VM ended, the static variables go "poof". There is generally no need to clear them. I suppose if you wanted to you could clear them in an onTer

Re: [android-developers] Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-08-31 Thread TreKing
On Tue, Aug 31, 2010 at 1:07 PM, GJTorikian wrote: > If LVL is verified intermittently on a paid app, is it useless for these > unlocker apps? > No. > Presumably a user would never run the unlocker app, so how would LVL even > check the authenticity? > Presumably a user would run the "free" v

Re: [android-developers] Re: Use of Service component?

2010-08-31 Thread Kostya Vasilyev
One more thing: Android uses the same Linux process for your WidgetProvider as well as service that updates the widget (again, I'm assuming you followed the Wikipedia sample). The WidgetProvider will be created and invoked as necessary, this, in turn, should cause your service to be started

Re: [android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread Kostya Vasilyev
31.08.2010 21:59, siva пишет: Thanks for reply,no chance to clear static variable?what alternative solutions for that What is the problem caused by static variables in your code not being cleared? Can you explain the context? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmanso

Re: [android-developers] developing maps application using maps javascrpt v3 api urgent

2010-08-31 Thread TreKing
Why is this "urgent"? Who's life depends on it? On Tue, Aug 31, 2010 at 9:33 AM, anushree wrote: > i need to start the project soon.. > and i do not know how to proceed.. > Google for "Android Javascript" and look at WebView. -

[android-developers] Re: Capturing RAW data in Android 2.2(HTC Desire)

2010-08-31 Thread blindfold
Right, already on February 11 2009 Google's David Sparks wrote in response to one of my postings, > I'm talking about deprecating the raw picture callback that has never worked. and > As for the camera API in SDK 1.0: It was never intended for signal processing. http://groups.google.com/group/a

Re: [android-developers] Canvas and its transformation matrix have different translation values

2010-08-31 Thread Romain Guy
The matrix returned by the Canvas is the sum of all transformations to the point your view is being drawn. There's a single Canvas for all Views on screen. On Tue, Aug 31, 2010 at 12:26 PM, Joao Luis wrote: > Hi all. > > I might be completely off-base here, but I've spent the last two days > tryi

Re: [android-developers] Re: Use of Service component?

2010-08-31 Thread Kostya Vasilyev
If your code is set up along the lines of the Wikipedia sample widget (which it seems to be), and the widget's onUpdate invokes the service with startService, then everything should be fine already. StartService will, obviously, start the service as necessary. If there are still problems updating

[android-developers] Re: No Cell Location Updates While Display Is Off

2010-08-31 Thread Pent
Update: holding a screen dim wakelock for a short while means I get updates, but it's not exactly ideal. Pent -- 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

[android-developers] Canvas and its transformation matrix have different translation values

2010-08-31 Thread Joao Luis
Hi all. I might be completely off-base here, but I've spent the last two days trying to figure this out and, without success, you're my only hope. What I'm doing is simple: * I have a canvas where I draw a circle with center on (10, 10), with radius = 5; * Then, I obtain the canvas transfor

Re: [android-developers] Help with simple Bitmap issue

2010-08-31 Thread Jeremy Wadsack
What's the error message? -- Jeremy Wadsack On Tue, Aug 31, 2010 at 11:16 AM, Pedro Teixeira wrote: > Any clue about this? anyone? > > > On Aug 31, 2010, at 4:26 PM, Pedro Teixeira wrote: > > Hi there... >> I'm having an issue with a Bitmap which is giving me an error but any >> kind of report

Re: [android-developers] Help with simple Bitmap issue

2010-08-31 Thread Pedro Teixeira
Any clue about this? anyone? On Aug 31, 2010, at 4:26 PM, Pedro Teixeira wrote: Hi there... I'm having an issue with a Bitmap which is giving me an error but any kind of report so I can understand it.. The code is simpley this this: - I get a image path from a bundle: Bundle w = getInte

[android-developers] Licensing Verification Library & Apps Solely for "Unlocking"/Removing Ads

2010-08-31 Thread GJTorikian
There's a large chunk of apps on the market that are free, with ads. Users can pay for an "unlocker" app to remove ads in the "free" app, presumably by doing a check on whether or not the unlocker app package is installed. If LVL is verified intermittently on a paid app, is it useless for these un

[android-developers] Re: Use of Service component?

2010-08-31 Thread Alex
What is the correct way to ensure that a widget update service is restarted if it has been killed? In my widget, I start the service in the onUpdate event, but if the widget and service are killed (by a task killer, for example), the widget restarts, but the service doesn't. On Aug 31, 6:01 pm, K

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread siva
Thanks for reply,no chance to clear static variable?what alternative solutions for that On Aug 31, 10:50 pm, Mark Murphy wrote: > On Tue, Aug 31, 2010 at 1:46 PM, siva wrote: > > Thanks ,can u explain,i am fresher in android,i want to clear static > > variable value,please give solutions > > Del

Re: [android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread Mark Murphy
On Tue, Aug 31, 2010 at 1:46 PM, siva wrote: > Thanks ,can u explain,i am fresher in android,i want to clear static > variable value,please give solutions Delete the static data members. Then you do not have to clear them. Mutable static data members have been considered an anti-pattern in Java f

Re: [android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread Frank Weiss
Have you studied the Activity lifecycle? http://developer.android.com/reference/android/app/Activity.html It's better if you ask question relative to something like that. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-08-31 Thread siva
Thanks ,can u explain,i am fresher in android,i want to clear static variable value,please give solutions On Aug 31, 10:32 pm, Mark Murphy wrote: > On Tue, Aug 31, 2010 at 1:24 PM, siva wrote: > > I have used some static variable in my application, i want to clear > > static variable value when

Re: [android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread Frank Weiss
When the user "launches the app" from the home screen, the activity given in the manifest is started. I suppose the licensing check should be done in that activity's lifecycle methods. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

Re: [android-developers] How to clear static variable values when will i close my application in android

2010-08-31 Thread Mark Murphy
On Tue, Aug 31, 2010 at 1:24 PM, siva wrote: > I have used some static variable in my application, i want to clear > static variable value when will i close my application.anybody know > please give solution for that There is no such thing as "close my application" in Android. -- Mark Murphy (a

Re: [android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread Mark Murphy
On Tue, Aug 31, 2010 at 1:26 PM, JAVANAND wrote: > I want To know because, I am implementing licensing, > and I want to check when the user tries to launch the app each time , > I want it to go thru the licensing. > hope I am clear Not especially. You cannot detect the HOME key, and there is not

[android-developers] Re: Want to confirm that app is in background due to Home Key press

2010-08-31 Thread JAVANAND
MARK, I want To know because, I am implementing licensing, and I want to check when the user tries to launch the app each time , I want it to go thru the licensing. hope I am clear Thanks Sumanth On Aug 31, 4:39 am, AJ wrote: > Thanks Mark :) > > On Aug 31, 3:46 pm, Mark Murphy wrote: > > > On T

[android-developers] How to clear static variable values when will i close my application in android

2010-08-31 Thread siva
Hi Friends, I have used some static variable in my application, i want to clear static variable value when will i close my application.anybody know please give solution for that Thanks All -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: using javascripts v3 api in android - help required urgently

2010-08-31 Thread Maps.Huge.Info (Maps API Guru)
I suggest you go back to the basics and learn more about programming before jumping into something as complex as an Android native app. It's not for the beginner. You might try App Inventor. That system doesn't require any code but it still requires understanding program logic so no matter what you

[android-developers] Re: Sending SMS while phone is ringing

2010-08-31 Thread Jimband
Unfortunately this seems to be the case. The functionality is possible under Symbian platform, but unluckily it doesn't work with Android. Unfortunately this prevents creating Caller ID applications based on SMS's (among other things).. On Aug 31, 12:26 am, Byron Penner wrote: > (Afaik) This is n

Re: [android-developers] Use of Service component?

2010-08-31 Thread Frank Weiss
Doing a background task with AsyncTask can be done in either Activity or Service. Depends on what you're trying to do. For example, something similar to downlaoding a web page, do in Activity as user is likely to wait and nothing really lost if user swtiches to another task. Something like checking

Re: [android-developers] Use of Service component?

2010-08-31 Thread Kostya Vasilyev
A Service can still get killed together with its process if memory gets low, so no guarantees. When there is a choice, the system is less likely to kill a service that's either associated with a foreground activity, or a service that explicitly marked itself as a foreground service (i.e. doin

Re: [android-developers] Use of Service component?

2010-08-31 Thread Agus
A thread hosted by the ApplicationContext will get killed by the System if necessary but not when hosted by a Service? On Tue, Aug 31, 2010 at 9:22 AM, Kostya Vasilyev wrote: >  The difference is that Activity lifecycle is managed by the user, and > Service lifecycle is managed by Android. > > T

Re: [android-developers] Capturing RAW data in Android 2.2(HTC Desire)

2010-08-31 Thread David Erosa García
On Tue, Aug 31, 2010 at 6:17 PM, uday wrote: > Hi All, > I'm facing problem when capturing RAW data in Android Froyo. Im using > HTC Desire(5MP) device.  in the method of > PictureCallback rawCallback = new PictureCallback() { >                public void onPictureTaken(byte[] data, Camera camera)

Re: [android-developers] Use of Service component?

2010-08-31 Thread Kostya Vasilyev
The difference is that Activity lifecycle is managed by the user, and Service lifecycle is managed by Android. The user can switch away from an Activity at any time, and, since Android isn't aware that there is a worker thread, it can kill the process that hosted the Activity (and the worker

[android-developers] Capturing RAW data in Android 2.2(HTC Desire)

2010-08-31 Thread uday
Hi All, I'm facing problem when capturing RAW data in Android Froyo. Im using HTC Desire(5MP) device. in the method of PictureCallback rawCallback = new PictureCallback() { public void onPictureTaken(byte[] data, Camera camera) { } the data im gettin

Re: [android-developers] Re: Piracy Breakdown by Country

2010-08-31 Thread Mark Carter
I've got a 92% piracy rate on one of my apps. The version being passed around is 1.0.6. How about releasing an update using an earlier version number (e.g. 1.0.1). Legitimate users probably wouldn't notice/care. However, it would be very confusing on pirate sites where the version number is more i

[android-developers] What is Context and what is its use?

2010-08-31 Thread cool.manish
What is context. We always pass an argument context in the intent or manageQuery etc. What is it and what is the use of it? does it have the information about the process stack? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

Re: [android-developers] Re: Piracy Breakdown by Country

2010-08-31 Thread Mark Carter
Would be good if devs could specify refund policy on app-by-app basis. On 31 August 2010 17:58, Samuel Lawson wrote: > Here is a suggestion for Google. > > Pirates have very clear buying patterns. Most can be spotted easily. > > Analyse the market for buyers who repeatedly buy apps and then get

[android-developers] Use of Service component?

2010-08-31 Thread cool.manish
Service Component is used to do some task which can be done without user interaction. But for that we have to run a thread in subclass of the Service. I think we can create a thread in Activity class itself then what is the use of Service component? Why don't we create another thread and write the

Re: [android-developers] Re: Piracy Breakdown by Country

2010-08-31 Thread Samuel Lawson
Here is a suggestion for Google. Pirates have very clear buying patterns. Most can be spotted easily. Analyse the market for buyers who repeatedly buy apps and then get a refund in under 5 minutes. Then block those users. I can see these guys normally pirate 2 of my apps in the space of 5 minute

Re: [android-developers] Re: using javascripts v3 api in android - help required urgently

2010-08-31 Thread Frank Weiss
I assume you want to develop a web-based Googlew Maps V3 app that would display in the Android browser. Maybe I'm missing something, but this has nothing to do with Android. I verified by trying a V3 maps app developed for desktop browsers. Works in the Android browser as well. -- You received th

[android-developers] Re: using javascripts v3 api in android - help required urgently

2010-08-31 Thread Maps.Huge.Info (Maps API Guru)
It's pretty simple to use the v3 API in Android. Here's a blog post from Google about the process: http://code.google.com/apis/maps/articles/android_v3.html -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

Re: [android-developers] Reducing Permissions

2010-08-31 Thread TreKing
You're not going to like this, but since no one else is chiming in ... =) On Mon, Aug 30, 2010 at 3:37 PM, Brad Gies wrote: > So... the question is : Is there a robust way to use Google Maps, and be > able to send requests to my server without all those permissions (in a user > friendly way) ? >

[android-developers] BindException: Bad file number

2010-08-31 Thread abhay mulye
Hi All, I am working with Android 2.2. My aim is to Download a file from the server, for that i am using the "HttpURLConnection". For the first 'Go', its working fine & i am able to download the file successfully. But somehow the same code does not work second time (or more precisely after some pe

[android-developers] Help with simple Bitmap issue

2010-08-31 Thread Pedro Teixeira
Hi there... I'm having an issue with a Bitmap which is giving me an error but any kind of report so I can understand it.. The code is simpley this this: - I get a image path from a bundle: Bundle w = getIntent().getExtras(); final String thenPicPath= w.getString("oldpicpath"); - A

[android-developers] Re: using javascripts v3 api in android - help required urgently

2010-08-31 Thread anushree
i tried using webview but i really don't know where to add the javascript code in it.. i tried some example using the tutorial on the net.. but could not understand it.. the link was http://www.google.com/url?sa=D&q=http://code.google.com/apis/maps/articles/android_v3.html&usg=AFQjCNFnEdIn1isVqet3v

[android-developers] Re: Apps availability on US Market

2010-08-31 Thread Traveler
I checked. A world of faces is on the market with a 5 star rating. Jerry On Aug 30, 7:55 pm, Yahel wrote: > Hi all, > > Sorry to bother the group for that but I don't really know where to > ask for that favor :s > > I've launched my new app "a World of Faces" a few days ago. Nothing > too fancy

[android-developers] Re: using javascripts v3 api in android - help required urgently

2010-08-31 Thread Maps.Huge.Info (Maps API Guru)
This works quite well. The Google IO 2010 app contains a v3 JavaScript based map. It's open source and you can use that as a guide. Search for it on code.google.com. A simpler example of using JavaScript with Android is in one of Mark Murphy's books. I suggest subscribing to his commonsware site (

Re: [android-developers] help

2010-08-31 Thread lokesh gupta
help for wat ??? On Tue, Aug 31, 2010 at 7:36 PM, Martins Streņģis wrote: > http://www.lifeguardsiow.co.uk/images/ring.jpg > > :) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-develo

Re: [android-developers] using javascripts v3 api in android - help required urgently

2010-08-31 Thread Jeremy Wadsack
You could build your own WebView container activity and run your JS there. Or you could use some off-the-shelf package that does this like Phonegap or Appcelerator. If you want to run native JS without the web view, then I think you'll need to bundle your own interpreter or use a cross-compiler. U

Re: [android-developers] using javascripts v3 api in android - help required urgently

2010-08-31 Thread lokesh gupta
HI Anu, There is a tool available at http://developer.appcelerator.com/get_started.. Using dis tool u can develop android as well as i-phone apps . U can try with that.. Plz get bk 2 me if u face any prob. Lokesh On Tue, Aug 31, 2010 at 8:21 PM, anushree wrote: > hello all, > i am trying

Re: [android-developers] getting email address of the account on the phone

2010-08-31 Thread TreKing
On Sat, Aug 28, 2010 at 7:13 PM, bh23 wrote: > Is this possible? To take the user's email off the phone, send it to your own server and use it to send them unsolicited emails? I hope not. - TreKing

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-31 Thread String
On Aug 30, 6:44 am, Dianne Hackborn wrote: > Yes, this is another common request, and another one where I think the > solution is much worse than the problem.  Putting application justification > about what it will do with a permission next to the OS's assurance about > what it can do will, as fa

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-31 Thread TreKing
On Mon, Aug 30, 2010 at 7:03 PM, Zsolt Vasvari wrote: > I am glad you solved it. How do you have your warning levels set? I have > mine set to the highest possible on everything and a removed line might have > been caught via unused/unitiliazed varaibles. > Me too! Probably the defaults, but I

[android-developers] using javascripts v3 api in android - help required urgently

2010-08-31 Thread anushree
hello all, i am trying to develop a google maps application for android using javascripts v3 api. but the main problem is that i haven't worked with javascripts for android application development.. i have only used java code to develop an application so i don't know where to start.. has anyone use

  1   2   >