[android-beginners] Re: Can a full app (not widget) be postage stamp size?

2010-05-31 Thread niko20
You can make it small, but I believe it will capture all focus, so even if you see other apps you wont be able to interact with them. I'd think a widget work work...but yes the polling would have to be rather high, which is not good for a widget. What you could do is tie a widget together with an

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-05-29 Thread niko20
Hi, Are you using a relative layout at all? Relative layout has some bugs when you use forward references, and basically will disappear. -niko On May 28, 3:07 pm, Tollas tolla...@gmail.com wrote: Yes. (getResources().getDrawable(R.drawable.attack_any) != null) returns true. On May 28, 1:41 

[android-beginners] Re: string to double

2010-05-26 Thread niko20
Hi, Just do this Double mynewdouble = new Double(str); There are built int objects that can take string as a constructor init argument. The bad part is now you have a heavyweight object, but it works fine. If you want then you can put it into a normal double: double mydouble = mynewdouble;

[android-beginners] Re: string to double

2010-05-26 Thread niko20
Ah, I missed that you were saying there was a comma in the decimal Yes, you have to replace it, no way around that. I ran into that same thing as well. Android doesnt handle that correctly automatically -niko On May 26, 11:11 am, Faust Nijhuis faustnijh...@gmail.com wrote: 2010/5/26 niko20

[android-beginners] Re: Installing large size apk applications gives error

2010-05-24 Thread niko20
Yes, apps are actually zip files, which will be unzipped I believe upon install (at least some of the items in the APK do) so they take up more room than you see. On May 24, 11:32 am, TreKing treking...@gmail.com wrote: On Mon, May 24, 2010 at 12:48 AM, skalluraya skallur...@gmail.com wrote:

[android-beginners] Re: The Android emulator runs too slowly.

2010-05-12 Thread niko20
You need at least a core 2 duo in the 2.5ghz range to run the emulator well and at a speed comparative to a g1. On May 12, 8:42 am, TreKing treking...@gmail.com wrote: On Wed, May 12, 2010 at 2:42 AM, T1000 t1...@zando.dyndns.org wrote: It takes me five minutes to load and run Hello Android!

[android-beginners] Re: save image into sdcard not working

2010-05-03 Thread niko20
Hi, Starting with 1.6 you need to add the WRITE_EXTERNAL_STORAGE permission to your android manifest, otherwise your app wont get access to the sdcard. Google it or search in the dev docs for that permission to see about it. -niko On Apr 29, 9:23 pm, Lynn Ooi lynnooi@gmail.com wrote: Hi

[android-beginners] Re: screenOrientation question

2010-03-31 Thread niko20
Hi You can simulate orientation changes by pressing CNTRL + F12 This allows you to test if your app remains in the correct orientation. Use the portrait mode emulator screen and then flip orientations to make sure it stays. But what you have in the manifest is correct. - On Mar 30, 12:50 pm,

[android-beginners] Re: PCM format

2010-03-27 Thread niko20
Hi Chris 16bit PCM is signed. Its data type is in shorts. (not floating point). A WAV file is little endian byte order. That means if you read it with a java method you have to reverse the byte order using a ByteBuffer() since java reads things big endian. (Read the data, move it to a byte buffer

[android-beginners] Re: Audio capabilities

2009-12-16 Thread niko20
Hi, Stuff like Beatmaker's sequencer isn't too hard to do, just mix yourself internally and feed it the sound out. Now, real time pads, those are a bit more difficult. I've found on android the lowest buffer delay at at least 100ms or around there, so you always get some lag between hitting a

[android-beginners] Re: I can't update my app in the android market

2009-12-12 Thread niko20
BACK UP YOUR KEYSTORE FILE BACK UP YOUR KEYSTORE FILE!!! I have about six copies of my keystore, I don't understand why this keeps happening to people. You should do this right away as soon as you release to the market. -niko On Dec 11, 9:16 am, Justin Anderson

[android-beginners] Re: How do I create a View instance from an XML layout?

2009-12-07 Thread niko20
I believe the SDK has an example of this, look in the samples folder. On Dec 6, 6:17 pm, Gabor gaborcse...@gmail.com wrote: I'm trying to build a ListView with custom list items. I built my own ListAdapter, and a list_item.xml file with a layout of the list items. In my ListAdapter's

[android-beginners] Re: MD5 Hash is wrong

2009-12-07 Thread niko20
Just a a side note, why do you care if it doesn't match? Unless you are comparing MD5's to ones generated elsewhere, you are still getting a unique hash. And as long as you compare to only hashes generated by android it will always match -niko On Dec 7, 1:14 pm, Justin Anderson

[android-beginners] Re: MD5 Hash is wrong

2009-12-07 Thread niko20
it on google search On Dec 7, 2:32 pm, niko20 nikolatesl...@yahoo.com wrote: Just a a side note, why do you care if it doesn't match? Unless you are comparing MD5's to ones generated elsewhere, you are still getting a unique hash. And as long as you compare to only hashes generated by android

[android-beginners] Re: MD5 Hash is wrong

2009-12-07 Thread niko20
And what the hell is your MD5_Hash function look like anyway? That's not a built in android API. Crimony, give some info next time! Obviously your MD5 function is messed up. -niko On Dec 7, 2:33 pm, niko20 nikolatesl...@yahoo.com wrote: Try this: public String md5(String s) {     try

[android-beginners] Re: Trouble with updating widgets

2009-11-22 Thread niko20
Hi, onUpdate will never fire if you are using onReceive at all. If you override onRecieve you have to handle all the messages yourself inside it, include the update message. -niko On Nov 18, 6:03 pm, DMc davidmcni...@gmail.com wrote: Hello, I am trying to create a widget which updates at a

[android-beginners] Re: Droid doesn't show up as target

2009-11-17 Thread niko20
Be sure to get the USB driver from motorola for working with the Droid, I don't think the one on the URL you mention works with the Droid. At least it didn't for me. Look for Motorola A855 driver or something to that effect. (Google it). Never mind, here you go

[android-beginners] Re: Button on top of image

2009-11-17 Thread niko20
Hi, You can use the image as the background of a layout. For example, LinearLayout. ..most things have a background drawable as well as a src drawable. ImageViews, for example. -niko On Nov 13, 9:23 pm, hepmehepme idtotallysig...@comcast.net wrote: Hello, I'm new to Android so I apologize if

[android-beginners] Re: Description for app update

2009-11-17 Thread niko20
The description replaces all of it. you should have the description of the app and a brief message about what changes were done, if you can fit it. -niko On Nov 13, 9:21 pm, Twin Primes amberar...@gmail.com wrote: Hi, When I update an app on the Android Market, does the new description

[android-beginners] Re: Emulator not working properly

2009-11-17 Thread niko20
Hi, It takes a while for the emulator to start up. Until it does, that is the screen you will see. Make sure you have a fast enough machine. You really need Core2Duo type speed to run the emulator (and enough RAM). Once open, you can leave the emulator open, and eclipse will always push the

[android-beginners] Re: Is your Android app on Archos Market ?

2009-11-13 Thread niko20
I just checked the press release. I do have a couple of small things to say. For one, this is definitely for the courts to decide. For two, We as the community don't know what happened so if either side comes in and tries to bad mouth the other, we need to ignore that. And lastly, I from what

[android-beginners] Re: disable GPS programmatically

2009-11-07 Thread niko20
The GPS settings can no longer be controlled directly by apps. They changed this a while ago now. On Nov 6, 11:25 pm, Nemat nemate...@gmail.com wrote: Hi ... Thanks for your reply Actualy I have tried using these lines:  locationManager.removeUpdates(locationListener);                

[android-beginners] Re: Suggestions on tutorials

2009-11-07 Thread niko20
There isn't any need to be rude. And also the XML is there to allow seperation between the view of the data, and the code behind the data. That way you can change the view without having to edit any code. That is the benefit of using it. -niko20 On Nov 7, 7:00 pm, Kingcrowley kingcrow

[android-beginners] Re: Suggestions on tutorials

2009-11-07 Thread niko20
A simple google search works fine, I was able to find this for example: http://vinnysoft.blogspot.com/2009/08/xml-layout-in-java.html -niko On Nov 7, 8:42 pm, niko20 nikolatesl...@yahoo.com wrote: There isn't any need to be rude. And also the XML is there to allow seperation between the view

[android-beginners] Re: android audio issue

2009-11-03 Thread niko20
Also noticed in your code you are doing SizeSoFar +=. That is not good. You will overrun the buffer eventually I think... On Nov 3, 6:46 am, raghu 13ra...@gmail.com wrote: Hi,    i am using android SDK 1.5, below is the code where i am recording voice from mic and playing it. problems i am

[android-beginners] Re: TimePicker Hour Dissapears on Rotate

2009-11-03 Thread niko20
Just to clarify, your app is not destroyed and recreated, but rather, any views your app has. The app itself could continue to function, for example, if you had a thread running, it will remain running. At least I believe that is the case. -niko On Nov 3, 12:44 pm, Justin Anderson

[android-beginners] Re: Auto Create AVD (Windows)

2009-10-28 Thread niko20
Hi, Thanks for your hard work, but the latest SDK contains an AVD creator built in. In Eclipse you go to Tools-Android SDK and AVD manager, and you can create new AVD's from there real quick. -niko On Oct 27, 5:09 pm, yungbol chris...@gmail.com wrote: Ok, for us noobs who are new to this, you

[android-beginners] Re: file chooser?

2009-10-26 Thread niko20
no standard way, I had to write my own :) On Oct 26, 4:39 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: it seems like the approach most people take is to assume some directory, then just take file names as input. On 10/26/09 2:09 PM, Paul Turchenko wrote: There's nothing like

[android-beginners] Re: onTouchEvent in emulator

2009-10-19 Thread niko20
Hi Wit, No, you need to use check the event code for DOWN, MOVED, UP. It works just fine in the emulator, I have used it! All you need to do is set a boolean to TRUE when touch is DOWN, then in the MOVED, if that bool is TRUE then get the new X,Y and move. Then in UP set the bool to FALSE to

[android-beginners] Re: How to make a child activity?

2009-10-18 Thread niko20
I dont understand why everyone makes this so complicated. First of all, this is a phone, you don't want to be using tons of data structures. There is nothing wrong with some global variables/ functions. If you want to store data that will be shared between activities, just simply use a static