Re: [android-developers] How many refunds do you get.

2011-01-01 Thread brian purgert
Yeah that's what im thinking they probably clicked download and it wouldent download so they cancelled and then clicked downloaded and then they did it another time lol poor guy On Jan 2, 2011 12:42 AM, "TreKing" wrote: > > On Sat, Jan 1, 2011 at 11:07 PM, brian purgert wrote: >> >> Well I ju

[android-developers] Re: Creating a neon scroll animation

2011-01-01 Thread Brian
I put 3 they are all the same [IMG]http://i294.photobucket.com/albums/mm111/thecoolbrian/ spacebike.png[/IMG] http://s294.photobucket.com/albums/mm111/thecoolbrian/?action=view¤t=spacebike.png http://i294.photobucket.com/albums/mm111/thecoolbrian/spacebike.png well basically I want to scroll this

Re: [android-developers] Re: How to implement this with location.distanceTo()?

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 11:43 PM, Mystique wrote: > But is this proper? :D Assuming "m" is another Location object, sure. - TreKing - Chicago tran

Re: [android-developers] Creating a neon scroll animation

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 11:13 PM, brian purgert wrote: > I want to create an animation for my menus that has my game name scroll > through it, using a dot matric display font that I have in a vector format, You may want to elaborate on this. I, for one, have no clue what you're asking. Pretty pic

[android-developers] Re: How to implement this with location.distanceTo()?

2011-01-01 Thread Mystique
Thank you sir, I managed to solve this with: m.setLongitude(Double.valueOf(seedLon)); But is this proper? :D On Jan 2, 12:19 pm, XiaoXiong Weng wrote: > Wow, smart J > > From: android-developers@googlegroups.com > [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing > Sent: Saturda

Re: [android-developers] How many refunds do you get.

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 11:07 PM, brian purgert wrote: > Well I just got one where the buyer bought and cancelled and the same > person bought it again and cancelled and finally bought it successfully so > just looking at the time, from the first purchase and the last purchase it > was 26 minutes,

[android-developers] Re: LocationManager speed

2011-01-01 Thread ip332
IMHO hasSpeed() is an attribute of the LocationProvider, not the LocationManager and most likely the GPS_PROVIDER doesn't have speed in case of emulator. In other words, speed is an optional attribute not every LocationProvider has. I would assume that any real GPS_PROVIDER has it but not NETWORK_P

[android-developers] Creating a neon scroll animation

2011-01-01 Thread brian purgert
I want to create an animation for my menus that has my game name scroll through it, using a dot matric display font that I have in a vector format, Well anyways I don't know what's the easyest way to do this. -- You received this message because you are subscribed to the Google Groups "Android De

Re: [android-developers] How many refunds do you get.

2011-01-01 Thread brian purgert
Well I just got one where the buyer bought and cancelled and the same person bought it again and cancelled and finally bought it successfully so just looking at the time, from the first purchase and the last purchase it was 26 minutes, so it took some one 26 minutes to play my game. On Jan 1, 2011

[android-developers] LocationManager speed

2011-01-01 Thread darrinps
I have a KML file that I feed to the emulator through the DDMS emulator control. The latitude and longitude values come through just fine, but the thing never has any speed (doing a LocationManager.hasSpeed() is always false as is getSpeed() always 0.0). Is there some sort of trick you have to use

RE: [android-developers] How to implement this with location.distanceTo()?

2011-01-01 Thread XiaoXiong Weng
Wow, smart J From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing Sent: Saturday, January 01, 2011 11:12 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] How to implement this with location.distanceTo()? On S

Re: [android-developers] How to implement this with location.distanceTo()?

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 9:34 PM, Mystique wrote: > I have runtime error - "NumericFormatError", is it because "1.35678" is not > Long but Float. > Yes. > Then .setLatitute(Long) is long... how to implement this correctly? > Parse the float, scale up by 1E6, then cast to long. ---

[android-developers] How to implement this with location.distanceTo()?

2011-01-01 Thread Mystique
Hi, I trying to do this but doesn't seems to get it right. I have runtime error - "NumericFormatError", is it because "1.35678" is not Long but Float. Then .setLatitute(Long) is long... how to implement this correctly? // extract value from XML (so it's string value) String Lat = pullParser.getAt

Re: [android-developers] Refreshing/reloading an ExpandableListActivity

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 7:03 PM, dashman wrote: > how can i reload the list. There are various methods. Here's one. http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable)

[android-developers] Refreshing/reloading an ExpandableListActivity

2011-01-01 Thread dashman
My app is an ExpandableListActivity sub-class. I monitor preferences modification, and on a system callback - i'd like to refresh/reload the list. i call setContentView( layout ). the problem is that the system squawks that the calling thread is different. it's the system notification thread an

[android-developers] my problems with point sprites

2011-01-01 Thread Poldie
I'm trying to use point sprites in OpenGL on my HTC Desire. In the emulator I've got them working, but on my phone nothing is displayed. This is my first Android app though so I could quite easily have done something wrong. Perhaps the emulator isn't configured to behave as a Desire would. I'm n

Re: [android-developers] Splash Activity

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 5:50 PM, dashman wrote: > is this ok? > Seems fine. > sometimes the app seems to be hanging and am trying to identify the reason > why. > Logging and debugging are your friend.

Re: [android-developers] Re: Cannot download. the content is not supported on the phone

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 5:49 PM, cha wrote: > Can you help me on how to display the map properly? > Go to Google Maps in a browser. Get directions somewhere. Select the option to get the URL. Use that URL format, replacing your starting and ending points. More than likely, if the maps application

[android-developers] Splash Activity

2011-01-01 Thread dashman
In my app I display an initial splash screen - but under certain conditions, i don't and move straight to the next activity. so in the onCreate() method of the SplashActivity - I do not set a setContentView() - and have Intent intent = new Intent(Splash.this, MainActivi

[android-developers] Re: Cannot download. the content is not supported on the phone

2011-01-01 Thread cha
> Your are trying to launch a URL. Most likely the browser will be invoked to > this. The URL you are trying to launch is an API command that results in a > JSON blob, not some viewable web page. The browser is telling you that it > cannot download this blob of data as is. > > When you use these ki

[android-developers] Re: Protecting Android apk to prevent decompilation, network sniffing etc.

2011-01-01 Thread Jake Basile
There isn't a way to 100% prevent your code from being decompiled. If nothing else, a dedicated person could always look at the bytecode for your app and try and figure it out. The best you can do is what you already mentioned: obfuscate it to make it harder to understand from decompilation. As

[android-developers] Re: MediaPlayer makes me crazy.

2011-01-01 Thread Bo Huang
This log file: /VideoMio34xx( 1199): Vendor(34xx) Specific CloseFrameBuf I/720p_Video_Decoder( 1199): StateSet command to 1 received D/BufferAllocOmap34xx( 1199): BufferAllocOmap34xx::removeRef() D/720p_Video_Decoder( 1199): Component Thread exits D/TIOverlay( 1199): hardware/ti/omap3/liboverl

[android-developers] Re: MediaPlayer makes me crazy.

2011-01-01 Thread Bo Huang
This is the On Sat, Jan 1, 2011 at 5:34 AM, bobo123 wrote: > Hi All, > > My application use MediaPlayer component to auto play 2 video files > in the SD card. > and it continue to play these 2 video files until user touch the > screen then it will quit this activity. > > > At the beginning, T

Re: [android-developers] Debug Certificate Expired

2011-01-01 Thread Kevin Brooks
Thanks, that helped. I was able to find the other keystore and delete it. On 1/1/2011 3:45 PM, TreKing wrote: On Sat, Jan 1, 2011 at 3:19 PM, Kevin Brooks > wrote: I have deleted the keystore, but it is not recreating it and I and still receiving the same err

[android-developers] Re: ImageView sometimes reponding to only double click instead of single click

2011-01-01 Thread dipti
SOLVED: I realized that I had set the inFocusMode = true, which was causing the issue. I rememoved it and it works fine. On Dec 7 2010, 2:15 am, dipti wrote: > Additional details which might be helpful: > > My ImageView are in a table row. > Here's what my layout xml looks like: > > >          

Re: [android-developers] Debug Certificate Expired

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 3:19 PM, Kevin Brooks wrote: > I have deleted the keystore, but it is not recreating it and I and still > receiving the same error. What should I try next? If you're getting the same error it would seem it's still finding the debug certificate. It's possible you deleted

Re: [android-developers] How many refunds do you get.

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 2:14 PM, brian purgert wrote: > Im not sure if people just don't like my game or they are finishing it > fast, but out of 52 sales, 14 refunded it. Something that happens quite frequently is that someone will refund a purchase and turn around and re-buy it again. So "Bob"

Re: [android-developers] Debug Certificate Expired

2011-01-01 Thread Kevin Brooks
I have deleted the keystore, but it is not recreating it and I and still receiving the same error. What should I try next? On 12/28/2010 10:09 AM, Mark Murphy wrote: Delete your old debug.keystore file. You can find out where that is from the instructions on how to find it for generating your

Re: [android-developers] How many refunds do you get.

2011-01-01 Thread Chris Stewart
Certainly it's going to be a very subjective answer and mostly coming from personal experiences. With that said, I would say that yes, that's perfectly normal. Lots of people will download something to try it, knowing that they can refund it in a certain period of time if they don't like it. --

[android-developers] How many refunds do you get.

2011-01-01 Thread brian purgert
Im not sure if people just don't like my game or they are finishing it fast, but out of 52 sales, 14 refunded it. Can you guys help me out is this normal, but the thing is there is a lite version so you kind of know what your buying. My game is called doodle bike, you can check it out on the market

Re: [android-developers] Problem showing a simple Dialog

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 10:56 AM, John Lussmyer wrote: > I was working from the examples at > http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog and > they also use the getApplicationContext(). > Yup - people trip on this all the time. The examples are completely wrong. --

Re: [android-developers] tips for implementing simple tabview

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 12:14 PM, crem wrote: > I exactly know how much tabs i need and the (background)images of each tab > is available, so i just have to switch the images when a tab on the right > side is clicked. > The right side "tabs" could just be a vertical linear layout of ImageViews. O

Re: [android-developers] Cannot download. the content is not supported on the phone

2011-01-01 Thread TreKing
On Sat, Jan 1, 2011 at 6:36 AM, cha wrote: > I tried to connect to google maps api to create directions using this code > below. However, after clicking on the button, it displays "cannot download. > the content is not supported on the phone." > Your are trying to launch a URL. Most likely the b

Re: [android-developers] Re: is there any htc & mototola specific emulator to test apps?

2011-01-01 Thread Kostya Vasilyev
You might find it useful to look at Motorola's development studio for Android: http://developer.motorola.com/docstools/motodevstudio/ I haven't used it myself (although my dev phone is a Milestone), but it looks interesting. In particular, this: Application Validator: Check your app for i

[android-developers] AVD file repository?

2011-01-01 Thread John Lussmyer
Is there any place that has collected emulator definition files (AVD) that match various phones? -- 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 th

Re: [android-developers] Re: Virtual screen size

2011-01-01 Thread Dianne Hackborn
No the whole point is the launcher is the one with the virtual screen, so it is the one that sets the values. It is the one that says the range, it is the one that updates the position as you scroll throw its UI. If you don't like what it is doing, you can use a different launcher. On Sat, Jan 1

Re: [android-developers] Re: CPU cost of a semi-infinite loop

2011-01-01 Thread Dianne Hackborn
"adb shell top" will show CPU usage. My favorite version is "adb shell top -t -m 10". On Sat, Jan 1, 2011 at 7:49 AM, Slash4 wrote: > After several tests involving AudioTrack, both STATIC and STREAM mode, > It was obvious I could not use this because of the specificity of my > metronome, which

[android-developers] Re: Capture image with Intent

2011-01-01 Thread Nikola
New phones tested. > Running on following phones: > > 1) SonyEricsson X8 (E15i) OS: Android 2.1 update 1 > 2) SonyEricsson X10i OS: Android 2.1 update 1 > > 3) Galaxy i9000 2.2 jpo 4) Htc Desire HD froyo 2.2 > > Phone 1 works fine. Preview is visible and picture is created. > > Phone 2 doesn't

[android-developers] Capture image with Intent

2011-01-01 Thread Nikola
Hi, going with my problem capturing picture via Intent. Hopefully somebody will have some use from this info, and maybe we will identify problem :) I am running code example from here: http://labs.makemachine.net/2010/03/simple-android-photo-capture/ (in example I have changed path for file fr

[android-developers] Re: is there any htc & mototola specific emulator to test apps?

2011-01-01 Thread JP
On Dec 31 2010, 11:36 pm, manas wrote: > Hello > > We test our apps on usual emulator & samsung galaxy 3. > What we have observed that - our apps work fine on both of these. But > got review from some users that the apps don't work on HTC evo/desire > & in some cases Droid X. > > Question - > 1.

Re: [android-developers] Problem showing a simple Dialog

2011-01-01 Thread John Lussmyer
Fixed it! Thanks! I keep forgetting that the Activity is a Context. (Seems like the example Dialog usage might want to show this as well, especially since using getApplicationContext() fails.) On Sat, Jan 1, 2011 at 9:46 AM, Kostya Vasilyev wrote: > Use the Activity: > > Dialog dialog = new Ab

[android-developers] tips for implementing simple tabview

2011-01-01 Thread crem
Hi, can you give me some tips on how to implement a vertical tabview (kinda like this: http://www.winboard.org/forum/attachments/drucker/12510d1163493983-ordnerregister-selbst-drucken-papierempfehlung-register..jpg) ? The whole thing doesn't have to be super-dynamic... I exactly know how much tabs

[android-developers] Hardware spec app

2011-01-01 Thread Nikola
Hi, does anyone knows app that could send hardware specs to email? Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

Re: [android-developers] Problem showing a simple Dialog

2011-01-01 Thread Kostya Vasilyev
Use the Activity: Dialog dialog = new AboutBox(*this*); -- Kostya 01.01.2011 19:56, John Lussmyer ?: That just causes the call to super(context) in my dialog constructor to throw a NullPointerException. I was working from the examples at http://developer.android.com/guide/topics/ui/dial

Re: [android-developers] Problem showing a simple Dialog

2011-01-01 Thread John Lussmyer
That just causes the call to super(context) in my dialog constructor to throw a NullPointerException. I was working from the examples at http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog and they also use the getApplicationContext(). You need some context to pass to the Dialo

Re: [android-developers] Problem showing a simple Dialog

2011-01-01 Thread Kostya Vasilyev
Get rid of getApplicationContext for a start, see if this helps. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.01.2011 19:20 пользователь "John Lussmyer" написал: > I'm trying to learn how to use a Dialog, but I seem to be missing something. > (probably obvious to those who've used them

[android-developers] Problem showing a simple Dialog

2011-01-01 Thread John Lussmyer
I'm trying to learn how to use a Dialog, but I seem to be missing something. (probably obvious to those who've used them before...) Whenever I click on my Menu Item that opens the dialog, I get this: 01-01 08:00:16.214: ERROR/ACRA(259): fatal error : Unable to add window -- token null is not for

[android-developers] Re: CPU cost of a semi-infinite loop

2011-01-01 Thread Slash4
After several tests involving AudioTrack, both STATIC and STREAM mode, It was obvious I could not use this because of the specificity of my metronome, which can mix and play Notes, Half notes, quarter notes and triplets at the same time. Filling and reseting the AudioTracks buffers between each tem

[android-developers] Re: Large Icon not showing up in Market Display

2011-01-01 Thread Nikolay Elenkov
On Saturday, January 1, 2011 11:23:48 PM UTC+9, JRock wrote: > > On Dec 31 2010, 11:17 am, TreKing wrote: > > You need to upload an image to the *Promotional Graphic* section. > > > > Why the Promotional Graphics that is now used in the new Market is NOT > > required, but this random, unexpl

[android-developers] Re: Large Icon not showing up in Market Display

2011-01-01 Thread JRock
On Dec 31 2010, 11:17 am, TreKing wrote: > You need to upload an image to the *Promotional Graphic* section. > > Why the Promotional Graphics that is now used in the new Market is NOT > required, but this random, unexplained 512X512 icon IS required, is beyond > me. Android Market Interns strike a

[android-developers] Re: String error...pls help to spot

2011-01-01 Thread Mystique
Yes about distant. But I need to compare what the XML spit out which is String format. For example I want to do: m.setLatitude(seedLat); m.setLongitude(seedLon); float distanceInMeters = location.distanceTo(m); SeedLat/SeedLon are pullpurse from a XML source. So I need to convert them prior to th

[android-developers] Cursor.getString() truncating Strings issue update

2011-01-01 Thread Damien Cooke
Hi All, I have an app that stores it's local data in a database, The database has a TEXT field called description that on some rows is truncated on retrieval. I have checked the database by running it app in the emulator and grabbing the database and checking the contents. So I know the data i

Re: [android-developers] Re: String error...pls help to spot

2011-01-01 Thread Kostya Vasilyev
Ah. That's more about computing the distance than a data type problem. See: http://developer.android.com/reference/android/location/Location.html static void distanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] results) Computes the

[android-developers] Re: String error...pls help to spot

2011-01-01 Thread Mystique
PS: Your WiFi Manager is very pretty looking :) On Jan 1, 9:37 pm, Kostya Vasilyev wrote: > "1.3001505" is not a valid Integer. > > Either: > > - fix (round, truncate, etc.) the value to be an Integer when you're > putting it into the array; > > - use Real.parseFloat / Double.parseDouble / Number

[android-developers] Re: String error...pls help to spot

2011-01-01 Thread Mystique
Hi Kostya, The picture is clearer now after your explanation. I have an application server generating Latitude and Longitude in XML and I pullpurse it in my program to compare to current location. So I need to convert the Lat and Lon to Long so I can do a distant to current location calculation.

Re: [android-developers] Re: String error...pls help to spot

2011-01-01 Thread Kostya Vasilyev
"1.3001505" is not a valid Integer. Either: - fix (round, truncate, etc.) the value to be an Integer when you're putting it into the array; - use Real.parseFloat / Double.parseDouble / NumberFormat to parse a floating-point value; - use a strongly-typed array (ArrayList, ArrayList etc.) i

[android-developers] Re: String error...pls help to spot

2011-01-01 Thread Mystique
I now do int seed = Integer.parseInt(String.valueOf(tmp3)); and the runtime error seems to go away but I now got error doing the same... long seed2 = Long.parseLong(String.valueOf(tmp4)); What is missing? On Jan 1, 9:21 pm, Mystique wrote: > Yes, I want to transfer the value of StringArray tm

[android-developers] Re: String error...pls help to spot

2011-01-01 Thread Mystique
Yes, I want to transfer the value of StringArray tmp2 in position 1 so I do this String tmp3 = tmp2.get(1)... Debugger said: 01-01 13:15:38.378: ERROR/AndroidRuntime(2893): Caused by: java.lang.NumberFormatException: 1.3001505 On Jan 1, 9:09 pm, Kostya Vasilyev wrote: > Use the debugger, Luke :

Re: [android-developers] String error...pls help to spot

2011-01-01 Thread Kostya Vasilyev
Use the debugger, Luke :) Check the value of tmp3 just before you call Integer.parseInt. I am assuming you actually added a value to tmp2, so when you call get(1) there is something there. -- Kostya 01.01.2011 15:38, Mystique пишет: Hi, please help me out. == This is ok == String tmp1 = "1

Re: [android-developers] Re: Virtual screen size

2011-01-01 Thread Pedro Duque
:( Is there any way to circumvent this? Meaning, to get screen info without relying on the launcher? The app is working flawlessly in the emulator... Thanks, PMD On 1 January 2011 06:35, Dianne Hackborn wrote: > It is up to the launcher to decide how much parallax scrolling to do. The > sizes

[android-developers] String error...pls help to spot

2011-01-01 Thread Mystique
Hi, please help me out. == This is ok == String tmp1 = "123" int seed = Integer.parseInt(tmp1); == This is not ok == ArrayList tmp2 = new ArrayList(); String tmp3 = tmp2.get(1); //Added some value to the ArrayList, Toast value of tmp3 and sees the correct value int seed = Integer.parseInt(tmp3)

[android-developers] Cannot download. the content is not supported on the phone

2011-01-01 Thread cha
Hi, I tried to connect to google maps api to create directions using this code below. However, after clicking on the button, it displays "cannot download. the content is not supported on the phone." I am using only an emulator in eclipse. OnClickListener onDirections = new OnClickListener(){

Re: [android-developers] What is the meaning of "AdapterView" '?' question mark

2011-01-01 Thread Jitesh dedhiya
hey Kostya Vasilyev Thanks for your help now its clear. On Sat, Jan 1, 2011 at 5:35 PM, Kostya Vasilyev wrote: > > AdapterView is a *generic class*. > > http://download.oracle.com/javase/tutorial/java/generics/gentypes.html > > The question mark is an *unbounded wildcard*, which means that arg0

Re: [android-developers] What is the meaning of "AdapterView" '?' question mark

2011-01-01 Thread Kostya Vasilyev
AdapterView is a *generic class*. http://download.oracle.com/javase/tutorial/java/generics/gentypes.html The question mark is an *unbounded wildcard*, which means that arg0 can be an AdapterView *invoked* for any class type as a parameter. http://download.oracle.com/javase/tutorial/java/gene

[android-developers] What is the meaning of "AdapterView" '?' question mark

2011-01-01 Thread Jitesh dedhiya
public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub } What is the meaning of "AdapterView" '?' question mark here..i am a newbee plz help..Thank you! -- --Jitesh .V. Dedhiya--- Don't Learn To Hack but Hack To Learn -- You received

[android-developers] MediaPlayer makes me crazy.

2011-01-01 Thread bobo123
Hi All, My application use MediaPlayer component to auto play 2 video files in the SD card. and it continue to play these 2 video files until user touch the screen then it will quit this activity. At the beginning, The media player these 2 video files very well (no error), however when it

[android-developers] Drawable advantage over bitmap for memory in android

2011-01-01 Thread Tabman
This question is linked with the answers in the following question: http://stackoverflow.com/questions/4259851/error-removing-bitmapsandroid/4260269#4260269 Is there any advantage of using Drawable over Bitmap in Android in terms of memory de-allocation ? I was looking at Romain Guy project Shel