Re: [android-developers] Re: How do you force a reset just like rotation does?

2010-08-28 Thread TreKing
On Fri, Aug 27, 2010 at 10:06 PM, ArcDroid jacobrjohn...@gmail.com wrote: i was reading the links you sent and you would think that super.ondestroy(); should also do the trick, but doesn't. Any idea why? Because it's the base class version of the function that gets called when your activity

[android-developers] Re: Bug in Android 2.2 with move to sdcard home screen shortcuts?

2010-08-28 Thread Doug
On Aug 27, 10:16 pm, Romain Guy romain...@android.com wrote: Extras are supported but not arrays. Technically, the string array IS an extra since I'm using putExtra to save the array into the intent's extra bundle. I never saw an exception on anything surrounding this issue. I'm surprised that

Re: [android-developers] Re: Bug in Android 2.2 with move to sdcard home screen shortcuts?

2010-08-28 Thread Romain Guy
I should have been clearer: extras of type array are not supported by Launcher. Bundles/Parcelables are used for IPCs but not for long term persistence (this would cause tons of compatibility issues across versions.) Therefore, Home does not save intents (therefore shortcuts) as binaries, but as

[android-developers] Re: Piracy Breakdown by Country

2010-08-28 Thread Peter Webb
I am also an Australian software developer. I can state with absolute certainty that these figures are absolute bullshit. 92% of apps running in Australia are not pirated. It is absolutely ridiculous. Anecdotally, as a developer I have sought our everybody I know with an Android phone, maybe

[android-developers] Content-Encoding: gzip,deflate

2010-08-28 Thread Arpit
Hi All, I am using the Apache HttpClient and added the header Accept- Encoding and gzip,deflate. But when I check the header of the response I always get the Content-Encoding header as empty. In the header array of the response I can see that Content-Type: application/xml; charset=utf-8 as one

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

2010-08-28 Thread William Ferguson
Thanks for posting the psuedo code. From the symptoms, the code you posted and the assumption that this section of code is multi-threaded, it looks like a race condition. public StaticClass { private static Manager manager = new Manager(); public static Manager getManager() { return manager; }

[android-developers] Re: Bug in Android 2.2 with move to sdcard home screen shortcuts?

2010-08-28 Thread Doug
Home does not save intents (therefore shortcuts) as binaries, but as URIs. The URI form of intents does not support arrays. Ah. That would be nice info to have in the docs. :-) Guess I'll have to store my string array as a flat string with delimiters, then. Thanks for the update! Doug --

[android-developers] Re: Facing licensing issue in already published paid app

2010-08-28 Thread Feelsocial
Hi Pent. i already have uploaded my app updated version 2 on the market. But i not publish it because waiting for working it fine.its uploaded and saved on market On Aug 27, 12:45 pm, Pent tas...@dinglisch.net wrote: I am facing the problem in licensing of my old published paid apps.

[android-developers] Re: Piracy Breakdown by Country

2010-08-28 Thread Mark Carter
On Aug 28, 9:50 am, Peter Webb r.peter.w...@gmail.com wrote: The figures are clearly and obviously wrong. The most basic common sense should tell you that. Common sense is often a pretty unreliable metric. Clearly stats based on a single app should not be generalised too much especially (as

[android-developers] Re: Help! Strange exception on HTC Hero

2010-08-28 Thread Kumar Bibek
A bit more of your logcat would surely say from where the exception was generated from your code. - Kumar Bibek http://kbeanie.com On Aug 27, 2:57 pm, Ilya Shinkarenko shin...@gmail.com wrote: hi all, just released the new version of Tennis Math, after starting the Statistics activity, the

[android-developers] Re: String being truncated when its long

2010-08-28 Thread Kumar Bibek
The eclipse will also truncate your strings at some point or the other. I would recommend to just look at the response codes and assume that you are actually getting the whole long response. Or may be you can write the response string to a file and check that. -Kumar Bibek http://kbeanie.com On

[android-developers] Re: Adding Feature to Android (that I've made)

2010-08-28 Thread Kumar Bibek
Agree... 100% :) -Kumar Bibek http://kbeanie.com On Aug 27, 5:53 am, Dianne Hackborn hack...@android.com wrote: I would suggest making the source available to developers for them to use.  You will get much more immediate gratification -- if you want to do this through a patch to the source,

[android-developers] Re: change string resource folder

2010-08-28 Thread Kumar Bibek
Why would you want to do that? May be you can have a static class and declare all your strings there. But then, you would lose the flexibility that Android provides for Internationalization. If thats not a problem for you, I think it should work. -Kumar Bibek http://kbeanie.com On Aug 26, 1:42 

[android-developers] Re: android manifest file from an unzipped apk cannot be read

2010-08-28 Thread Kumar Bibek
If the Intent or the protocol is not publicly available, then you should not try to do that. The target app can easily change in the future. Just a change of a class name would break your app. -Kumar Bibek http://kbeanie.com On Aug 26, 10:14 pm, Anil anil.r...@gmail.com wrote: I am looking to

[android-developers] Re: label on the left for RadioButton

2010-08-28 Thread Kumar Bibek
Extend Radiobutton class and implement your own layout and funtions. That should do the trick. - Kumar Bibek http://kbeanie.com On Aug 26, 6:09 pm, Christophe christophe.lebesner...@gmail.com wrote: hello, by default the label of a RadioButton in on the right of the checkMarck. Is there a

[android-developers] Re: How to connect android to Google App Engine

2010-08-28 Thread Kumar Bibek
The simplest would be HTTP Post/Get, XML/JSON and Java. Write simple servlets on the app engine. -Kumar Bibek http://kbeanie.com On Aug 26, 12:43 pm, Droid rod...@gmail.com wrote: I have spent two days trying to decide on a way to upload and download data to the Google App Engine. Do I use

[android-developers] Market:// links in WebView

2010-08-28 Thread jgclifton
Hi guys.I've created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not supported. I've tried looking through documentation but was unable to find anything relating to this. Any help is much

Re: [android-developers] Re: Best way to store restaurant data

2010-08-28 Thread Lorensius W. L. T
If data are dynamic or will be changed/updated, client server model is suitable for your app.Store the data on server than create an interface (rpc or web service) to exchange data between client apps your server. On Sat, Aug 28, 2010 at 1:43 AM, Dominic DiTomaso ddit...@gmail.com wrote:

[android-developers] Re: ADT causing CDT to build all C projects on Android app launch??

2010-08-28 Thread Jason
Hi, I am one of the elusive few running this exact setup, and I too have been a bit annoyed by this feature. I did just find this: Window-Preferences-C/C++ There is a checkbox option entitled: Build configurations only when there are Eclipse resource changes within the project and its

[android-developers] Re: Best background practices

2010-08-28 Thread Federico Paolinelli
On 27 Ago, 23:58, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I think the consensus is that AsyncTask is the way to go if what you're trying to do affects the UI thread eventually. Using a service to compute location for instance would be over complicated. -John Coryat Maybe I

[android-developers] Re: Optimizing list view scroll

2010-08-28 Thread Ed
IMHO having a worker process is definitely worth the effort. It is a little daunting at first but once you get your head around it it's great fun to work on. If you write your image loader worker process in a well structured way then you will be able to reuse it from project to project. One day

[android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread sblantipodi
no words. in this way getting the latest transactions from my ATM has no sense, I will have dozens of $2 on it and important payment will not be present. Congratulations google, as always ;) On Aug 27, 8:33 pm, TreKing treking...@gmail.com wrote: On Fri, Aug 27, 2010 at 12:34 PM, sblantipodi

[android-developers] Google Maps: Let the user choose a location

2010-08-28 Thread Dirk Vranckaert
Hey all, I've been working on an application lately that is using GMaps to display a location that is stored in the devices database. However when no location is available (no GPS signal is available) the user can go through an edit wizard and at a certain point he can add a location himself. I

[android-developers] User photo + latitude-like marker in Custom View

2010-08-28 Thread Joao Luis
Hi there. I'm trying to add a marker to a custom view, where I want to show a given picture --- pretty much like what is shown in latitude. However, even though I've been working with the Android SDK for a while, I have absolutely no idea how to do this. Anyone care to give a hand? Would be

[android-developers] Re: How to connect android to Google App Engine

2010-08-28 Thread JP
I am using GAE/Java to be able to get the code off of GAE if I have to or want to, and for file uploads, multipart POST, which is basically the standard way of uploading files to Servlet based web servers (at least AFAIK). There isn't anything out of the box that I am aware of. As you found,

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-28 Thread Anil
I had cd-ed to the directory. But anyway, I tried your suggestion and get 'permission denied'. $ adb pull /system/app/Youtube.apk adb pull /system/app/Youtube.apk adb: permission denied On Aug 27, 6:01 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: You have to give it a path. The

[android-developers] Re: Piracy Breakdown by Country

2010-08-28 Thread gosh
Looking at your numbers again, your 'total installs' for Australia seem way out-of-whack with the rest of the countries listed, i.e.: * Take the UK versus Australia figures, your total installs are: UK= 335, Australia=321 * There are about 60 million people in the UK, and only 22 million in

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-28 Thread Maps.Huge.Info (Maps API Guru)
It worked on my Nexus One. What device are you using and are you sure that apk is actually on the device? -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

[android-developers] Re: Market:// links in WebView

2010-08-28 Thread Maps.Huge.Info (Maps API Guru)
What you'll need to do is create a link from your webview into your app by using a JavaScript command. Inside your app you create an intent that opens the market app: JavaScript: // Launch Market App... (appid is package name) function launchMarket( appId ) { webViewClass.launchMarket( appId

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

2010-08-28 Thread Mark Carter
Haven't checked recently but for a while Flurry was (for some reason) reporting Chinese users as Australian. On 28 August 2010 15:40, gosh steve...@unimelb.edu.au wrote: Looking at your numbers again, your 'total installs' for Australia seem way out-of-whack with the rest of the countries

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

2010-08-28 Thread Zsolt Vasvari
Let me try this from an end-user perspective. Obviously, the whole permission feature was designed by a developer and, IMO, it's not a very good system in a usuability sense. As an end user, I only care one and ONLY one permission: INTERNET. I only look for that one permission and the rest is

[android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread Zsolt Vasvari
http://checkout.google.com/support/sell/bin/answer.py?hl=enanswer=25400 No, you get a single payment every work day. If you don't like that schedule, because who wouldn't like 22 small deposits a month, you are out of luck. On Aug 28, 8:09 am, sblantipodi perini.dav...@dpsoftware.org wrote: no

[android-developers] Setting focus programatically in ExpandableListView

2010-08-28 Thread OldSkoolMark
I have subclassed ExpandableListActivity to create an activity that presents a simple tree view of the 'world at large' and allows the user to select one for further use by the app. I am having trouble setting focus programatically. One thing that baffles me is that I can use the D-pad to set

[android-developers] Re: Market:// links in WebView

2010-08-28 Thread jgclifton
Thanks for the response! The other problem I have with this is I'm showing ads with admob but within the webview rather than using the android native code (theres a good reason for this) but would this sort of code be scaleable to work with admob too? I'm not very familiar with JavaScript. On Aug

[android-developers] Re: Market:// links in WebView

2010-08-28 Thread Maps.Huge.Info (Maps API Guru)
It would depend on the code admob uses. If the point of your question is because of admob, then you may be able to figure out their call to start the market and wrap that in a function that starts the intent within your app. There may be other ways as well. The example I used was how I do it.

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

2010-08-28 Thread Zsolt Vasvari
I would bet any money that this is very clearly going to be a race condition somewhere. Your code using a static Map and the user symptoms are a dead giveaway. I think the install/reinstall and clearing the user data are red herrings. The app might work again for the user if they just ran it

Re: [android-developers] How to connect android to Google App Engine

2010-08-28 Thread Tom Gibara
I've just published an updated to my Betan application for sharing beta copies of Android apps. It now includes a server-side app that I implemented using GAE so that other developers can take advantage of it. Do I use REST or simple HTTP post/get? These aren't really in opposition. I would

[android-developers] Re: Piracy Breakdown by Country

2010-08-28 Thread Sam
Let me give you a scenario that i really DOUBT is happening: 1) Users have Screebl lite installed and then decide they really like it. 2) They then decide to upgrade and get Screebl Pro. 3) Rather than just pick it up off the market (easy) - they scour the internet looking for it to save a few

Re: [android-developers] Google Maps: Let the user choose a location

2010-08-28 Thread Brad Gies
I assume you are using the My Location feature of Maps. Are you also attempting to use the network location if you don't have GPS? I find it works quite often. I use the code below in my OnCreate MapActivity and it doesn't fail very often. lm = (LocationManager)

[android-developers] Re: Piracy Breakdown by Country

2010-08-28 Thread nation-x
I am completely surprised at some of the responses here... but I am not at all surprised with your results. I have been selling software for over 10 years before I started developing Android apps and my experience has been that the US always represents the highest amount of piracy. Your culture of

[android-developers] Re: back_key implementation

2010-08-28 Thread gcstang
You can also use this so that C is on the top instead of B so when you click back it will go to A if you launch C from B : On your Intent set it so the Activity you're launching is on Top which means B will be removed from the previous position : In B where you launch C add this flag : Intent

[android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread nation-x
What an interesting thing to complain about... lol. On Aug 28, 10:17 am, Zsolt Vasvari zvasv...@gmail.com wrote: http://checkout.google.com/support/sell/bin/answer.py?hl=enanswer=25400 No, you get a single payment every work day.  If you don't like that schedule, because who wouldn't like 22

[android-developers] Setup Multiple Alarms

2010-08-28 Thread LatoGT
Hi there, I have some problems when I try to setup an alarm. I am using the AlarmManager to set an alarm. This alarm is picked up by my Receiver that creates a notification. My first problem: When I setup two alarms, my notification thats init by the alarm event always shows me the first input

[android-developers] Re: Application installation

2010-08-28 Thread Surfer
Why not? Android Market does it.. On Aug 26, 2:50 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 26 August 2010 14:34, Surfer kalik...@yahoo.com wrote: works. What i would like to do is perform asilentinstall, You should not be able to do so. -- You received this message because you

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

2010-08-28 Thread Brad Gies
Yeah... I agree with that, and I'd like to add that what I would really like to see is a(n easy) Monitor this App setting when you first install it if it has internet access. How I think it should work is that if the user wants to monitor the app, every outgoing packet (and maybe incoming)

[android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread Alessandro Pellizzari
On Sat, 28 Aug 2010 08:16:50 -0700, nation-x wrote: What an interesting thing to complain about... lol. It can be a big problem here in Italy. My bank charges me 1 euro for every transaction (in and out). Receiving 66 cents (99 cents minus Google's 30%) is a cost instead of a gain, for me...

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

2010-08-28 Thread Brad Gies
Yes.. we do... and I normally don't disagree with you :). But, in this instance.. I REALLY do. Let me expand on why I think it is a failing, and maybe you will see where I am coming from. I'll use the Window Firewall as an example as it is the closest example I can think of. It deals with

[android-developers] ItemizedOverlay after error

2010-08-28 Thread kids
I'm very sorry, the original program is public class GeoPointImageOverlay extends Overlay then I change to public class GeoPointImageOverlay extends ItemizedOverlayOverlayItem this is an error in paragraph public GeoPointImageOverlay(GeoPoint gp, int i) I want to overlay the graphics change

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-28 Thread Anil
HTC MyTouch Slide. Yes, I can see the YouTube.apk from adb shell. On Aug 28, 9:40 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It worked on my Nexus One. What device are you using and are you sure that apk is actually on the device? -John Coryat -- You received this message

Re: [android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread Frank Weiss
I think it's something Google should fix, but I'm have a hard time justifying it based solely on ATM and excessive bank charge issues. Those would appear to be a choice of which bank accounts a developer uses. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] User photo + latitude-like marker in Custom View

2010-08-28 Thread Frank Weiss
Here's a good starting point: http://github.com/jgilfelt/android-mapviewballoons -- 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

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Frank Weiss
I suppose you'd be better off with a service per service instead of one god service. The reason is that it make the code cleaner - you don't need to manage multiple alarms and network connections in one class. An exception would be a service that just does one kind of thing, but handles a queue of

[android-developers] how to set progress dialog time out

2010-08-28 Thread Mohammad Siddiqui
Hi everyone I want to create a progress dialog that will be run for a predetermind time after that it will be automatically dissmissed.how to do it in android Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Best background practices

2010-08-28 Thread Federico Paolinelli
On 28 Ago, 18:32, Frank Weiss fewe...@gmail.com wrote: I suppose you'd be better off with a service per service instead of one god service. The reason is that it make the code cleaner - you don't need to manage multiple alarms and network connections in one class. An exception would be a

[android-developers] Re: Negative comment causing drop in sales

2010-08-28 Thread Michael A.
Thanks for pointing this out. I hadn't noticed that feature of Androlib before, but this is a great feature. I had an user making repeated comments on my app, and I couldn't quite decide whether he was a legitimate user or an idiot. Checking his history of comments turns up 90% of his comments of

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Frank Weiss
I'm not a total expert on this... Threads are really just a way of running multiple stacks/program counters in the same address space. It's fair to assume they are time-sliced. Services and Activities are run in a single UI thread (AFAIK) and the precessing model is typical UI thread which calls

Re: [android-developers] Re: Best background practices

2010-08-28 Thread Federico Paolinelli
On Sat, Aug 28, 2010 at 7:25 PM, Frank Weiss fewe...@gmail.com wrote: I'm not a total expert on this... Threads are really just a way of running multiple stacks/program counters in the same address space. It's fair to assume they are time-sliced. Services and Activities are run in a single UI

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

2010-08-28 Thread Greg Giacovelli
So I am not saying use a dialog everywhere. I am saying on a per application basis. The problem with Windows Vista was that it was everywhere. I am saying in addition to a small wall of permissions representing the what permissions are needed for the core functionality of the application, you

[android-developers] Re: ADT causing CDT to build all C projects on Android app launch??

2010-08-28 Thread Robert Green
Jason, Perfect! I don't know how I missed that. I'm glad a configurable option was able to fix it. I just tested and things seem to be working correctly again. Thanks for figuring it out! On Aug 28, 5:33 am, Jason jason.poli...@gmail.com wrote: Hi, I am one of the elusive few running this

Re: [android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-28 Thread Brad Gies
Has anyone tried removing their bank account information and then when the amount is high enough that you would like it deposited, adding it back in just until you get the deposit? Or... maybe there is a way to disable/renable the account without removing it, so you don't have to set it up

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

2010-08-28 Thread Dianne Hackborn
On Sat, Aug 28, 2010 at 7:12 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Let me try this from an end-user perspective. Obviously, the whole permission feature was designed by a developer and, IMO, it's not a very good system in a usuability sense. Oh my, I so very disagree with this. The

[android-developers] Re: Negative comment causing drop in sales

2010-08-28 Thread cyxb
My favorite one-star Market comment: Rate one star if you want the full version to be free!. Or another 1 star classic: Make the full version free cuz my mom won't let me buy it People are like lemmings. A comment like that will cause an avalanche of similar comments. Likewise, a great comment

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

2010-08-28 Thread Dianne Hackborn
On Sat, Aug 28, 2010 at 11:13 AM, Greg Giacovelli miyamo...@gmail.comwrote: So I am not saying use a dialog everywhere. I am saying on a per application basis. The problem with Windows Vista was that it was everywhere. I am saying in addition to a small wall of permissions representing the

Re: [android-developers] Re: Application installation

2010-08-28 Thread Dianne Hackborn
You can do it if you are pre-installed on the phone as part of the system. Otherwise you can not. On Sat, Aug 28, 2010 at 8:17 AM, Surfer kalik...@yahoo.com wrote: Why not? Android Market does it.. On Aug 26, 2:50 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 26 August 2010 14:34,

[android-developers] Popping up Toast (or something like it) from a thread

2010-08-28 Thread Bret Foreman
My user hits a button and kicks off a process that takes 3 steps in about 10 seconds total. I'd like to pop up Toast messages Step 1, Step 2, Step 3, Finished! as the process progresses. I'm using the standard Java Thread interface to run the process in a thread and I've found that trying to pop

[android-developers] Re: Piracy Breakdown by Country

2010-08-28 Thread Nicolas Thibaut
hi keylabs: 1 - did you have used a unique users feature for your stats ? because while user is not registered, you AAL will push a flurry event. if the user never register it will send an event each time he use the app, so the pirated app will grow indefinitely. hy are you using flurry and not

Re: [android-developers] Popping up Toast (or something like it) from a thread

2010-08-28 Thread Miguel Morales
Anything that touches the UI MUST be done on the UI thread. This is the main thread that starts your app. If you start off a thread, you must use an inter-thread communication method. See this: http://android-developers.blogspot.com/2009/05/painless-threading.html On Sat, Aug 28, 2010 at 2:45

[android-developers] Column headings in TableLayout

2010-08-28 Thread Bret Foreman
I'd like to have column headings in a TableLayout and I'd like those headings to remain visible when the table is scrolled vertically. One option is to create a separate TableLayout just for the column headings but it's a little complicated keeping the column widths consistent between the two

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-28 Thread Nicolas Thibaut
I have implemented the LVL to send event on private webservices each time the market respond an NOT ALLOWED. Five minutes after the submission to android market, some events were throwed. How can this be possible ? how a pirated app can be updated 5 minutes after a submission ? On 27 août,

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

2010-08-28 Thread Chris Stratton
On Aug 28, 4:00 pm, Dianne Hackborn hack...@android.com wrote: Sorry but you are wrong.  When my wife got her Droid and started installing apps, she quickly came to me asking about a game she was installing that said it would read her contact data.  She knew what that meant, and wasn't happy

[android-developers] Cupcake(API3) friendly way to pause/stop sound loops in SoundPool? Any ideas?

2010-08-28 Thread BryBam
Quick note: I'm using the SoundPool class http://developer.android.com/reference/android/media/SoundPool.html What I have here is a simple button that plays a looped sound while it's pressed. It works great. However, sounds.autoPause(); wasn't introduced until API 8 and I really need something

[android-developers] Re: Game math/logic calulating movement

2010-08-28 Thread Jeffrey
This almost works, but when I click on a point that has a smaller X value than it's current position it reverses the Y Direction. On Aug 27, 1:01 pm, Robert Green rbgrn@gmail.com wrote: Direction will be in the range -180 to 180 so don't use abs!  Always use sin/cos for y/x respectively

[android-developers] Re: how to set progress dialog time out

2010-08-28 Thread Kumar Bibek
Spawn a thread, wait for a few seconds, and then dismiss the dialog. There's no default way to set a timeout. May be you can over-ride the toast class to create one to stay afloat longer. -Kumar Bibek http://techdroid.kbeanie.com On Aug 28, 9:46 pm, Mohammad Siddiqui siddiqui.m...@gmail.com

[android-developers] Re: Popping up Toast (or something like it) from a thread

2010-08-28 Thread Bret Foreman
Brilliant! This is exactly what I was looking for. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

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

2010-08-28 Thread Mark Carter
I've just released an app that requires READ_CONTACTS for the sole purpose of displaying names instead of phone numbers (of SMS messages). Its really not necessary at all but just looks better. Being able to specify that permission as optional would be much better. If the user rejects it then the

[android-developers] Re: Game math/logic calulating movement

2010-08-28 Thread Jeffrey
The problem is that it is only moving the image one direction along the slope of the line. I've tried making a condition that checks to see if the target area is to the left of the current position, and if so then make the X/Y differences negative, but that works very sporadically, and make the

[android-developers] Re: Game math/logic calulating movement

2010-08-28 Thread Jeffrey
Okay, figured it out. I had some remnants from an old system still in there and was referencing a variable that wasn't being updated correctly. Thank you for you help :) On Aug 28, 5:47 pm, Jeffrey jeffisagen...@gmail.com wrote: The problem is that it is only moving the image one direction

[android-developers] Re: Why is DialogPreference abstract?

2010-08-28 Thread Kumar Bibek
First of all, DialogPreference is not meant to show a normal dialog anyway. This is used in Preferences. I would suggest that you extend the Dialog class. That should help you in all ways to show your license. You can customize the layout, buttons, title etc.

[android-developers] Re: IllegalStateException with ExpandableListActivity and SimpleCursorTreeAdapter

2010-08-28 Thread Kumar Bibek
Yup, you are right, It's well documented I guess. -Kumar Bibek http://techdroid.kbeanie.com On Aug 27, 11:47 pm, OldSkoolMark m...@sublimeslime.com wrote: I've resolved the issue. Not sure if this is a bug, feature, or is merely an undocumented feature. It appears that the child projection

[android-developers] Re: Signing key got corrupted some how. Getting Invalid Keystore Format in the Eclipse signing wizard.

2010-08-28 Thread Kumar Bibek
Bad luck :( -Kumar Bibek http://techdroid.kbeanie.com On Aug 26, 10:09 pm, niko20 nikolatesl...@yahoo.com wrote: I have 3 backups of my keyremember, BACK THAT KEY UP On Aug 26, 10:38 am, TreKing treking...@gmail.com wrote: On Wed, Aug 25, 2010 at 1:02 PM, Bryan

[android-developers] Re: Crop an image

2010-08-28 Thread lgonc...@gmail.com
In the ImageView - android:scaleType=centerCrop http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType On Aug 16, 9:36 am, Nea ehsan@gmail.com wrote: I have an imageview which has a photo taken with the camera as its background and a frame as it's

[android-developers] onCellLocationChanged and updateNetworkNameExtension showing up in Log files. Where do these come from? and can I make them stop?

2010-08-28 Thread Greg Siano
I'm making a game, but the game lags a bit every time onCellLocationChanged or updateNetworkNameExtension shows up in my Log file. What is making these two run? Is there a way to make them not run? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] onCellLocationChanged and updateNetworkNameExtension showing up in Log files. Where do these come from? and can I make them stop?

2010-08-28 Thread Greg Siano
I'm making a game, but the game lags a bit every time onCellLocationChanged or updateNetworkNameExtension shows up in my Log file. What is making these two run? Is there a way to make them not run? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Layout question

2010-08-28 Thread Michael
Hi, I would like to create a layout that would have a Checkbox, then a divider, then a listview with single choice mode. I tried this LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=fill_parent

[android-developers] Re: Creating a JTree-like widget for Android?

2010-08-28 Thread FractalBob
On Aug 27, 8:08 am, TreKing treking...@gmail.com wrote: On Fri, Aug 27, 2010 at 9:20 AM, FractalBob ruom...@gmail.com wrote: Thanks for the pointer. You're welcome! It seems the objection to a JTree like view is that you'd run out of space on a small screen, but that's not valid,

RE: [android-developers] Popping up Toast (or something like it) from a thread

2010-08-28 Thread Tommy
check out runOnUiThread() its exactly what you need. I don't remember the syntax right off the top of my head but if you google runOnUiThread android you'll get an example. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf

RE: [android-developers] Layout question

2010-08-28 Thread Tommy
Try using a relative layout linear from my understanding won't let you lay objects on top of each other. Or an absolute layout but those aren't too good when it comes to scaling up/down for different screen sizes. -Original Message- From: android-developers@googlegroups.com

[android-developers] Cannot use explicit intents to call another application?

2010-08-28 Thread Anil
Was trying to call another application using an *explicit* intent, but am finding it does not seem possible. I do not wish to use implicit intents. To test it out, try calling the YouTube main activity. Intent i = new Intent(); ComponentName cn = new

[android-developers] Input Method Framework: How to use?

2010-08-28 Thread Tez
Hi, I need to learn how to use the IMF to design a soft keyboard. Please point me to some resources that will help me understand how to do it from the ground up. Something other than the SDK sample Cheers, Earlence -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Layout question

2010-08-28 Thread Kostya Vasilyev
Michael, You didn't explain on how exactly this did not work, but... I believe you want ListView height to be fill_parent. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.08.2010 5:33 пользователь Michael michael...@gmail.com написал: Hi, I would like to create a layout that would have

Re: [android-developers] Cannot use explicit intents to call another application?

2010-08-28 Thread Kostya Vasilyev
Don't need the trailing .class, take it out (in component name). Trailing .class is Java syntax to get the class object of another object, that's why you often see it for starring activities and services in the same application. Class *names* however don't have .class at the end. -- Kostya