[android-developers] Re: device fingerprinting

2010-10-30 Thread DanH
Well, there's the IMEI, the IMSI, and the ANDROID_ID. Alas, the ANDROID_ID isn't unique (and is in fact identical on many Droid2 units). On Oct 30, 12:41 pm, bagelboy greg.do...@gmail.com wrote: Hello Devs, I'm working on an LVL implementation and I want to use as many different device

[android-developers] Re: android + sqllite : problem with accessing database

2010-10-29 Thread DanH
Oddly, you can't pre-load a database. You have to create it on the phone and load it up from a flat file or some other source. On Oct 29, 6:13 am, Mad Troll trollheim.independ...@googlemail.com wrote: I created database in sql lite with commands: sqlite.exe CREATE TABLE android_metadata

[android-developers] Re: android + sqllite : problem with accessing database

2010-10-29 Thread DanH
regular sql db and try to add it into project? bugger On 29 Oct, 13:35, DanH danhi...@ieee.org wrote: Oddly, you can't pre-load a database.  You have to create it on the phone and load it up from a flat file or some other source. On Oct 29, 6:13 am, Mad Troll trollheim.independ

[android-developers] Re: Java101 strings and ints

2010-10-29 Thread DanH
It should be pointed out that this is a basic Java question, not an Android question. And more to the point it's a basic programming question. You'd be far better off learning more about programming on a desktop system before digging into the ugliness that is Android (or any other phone

[android-developers] Re: How to pass objects around activities using A HashMap of WeakReferences to Objects?

2010-10-28 Thread DanH
You think the OP knows how to do a failover?? On Oct 28, 2:48 am, Doug beafd...@gmail.com wrote: I think the idea is that if you've just placed something in a (shared) HashMap with the value being a WeakReference to the object of interest, then immediately launch an activity to grab that

[android-developers] Re: sqlite

2010-10-28 Thread DanH
A scheme I've seen used in other systems is to insert a dummy entry for the key, having it rejected if it's a duplicate. Ignore errors from that operation and then update by key. Depends on the specifics of the DB as to whether that will be more or less efficient than doing a query first. On

[android-developers] Re: Child Thread Blocking Problems

2010-10-28 Thread DanH
The problem is that you should never wait or block in the main thread. Your background thread needs to somehow notify the main thread that the connection is ready, and until then the main thread should be spinning (in the figurative sense) in its event loop, not sitting on a wait. On Oct 28,

[android-developers] Re: Child Thread Blocking Problems

2010-10-28 Thread DanH
Lemme guess: You created a Thread but you never started it. On Oct 28, 1:42 pm, Hank hwang...@gmail.com wrote: In my code, I don't have wait or block in the main thread, but in the child thread. So supposedly only the child thread should wait or block. On Oct 28, 2:37 pm, DanH danhi

[android-developers] Re: Child Thread Blocking Problems

2010-10-28 Thread DanH
Assuming that post() or postDelayed() starts the Thread is even more popular. On Oct 28, 4:47 pm, fadden fad...@android.com wrote: On Oct 28, 12:35 pm, DanH danhi...@ieee.org wrote: Lemme guess:  You created a Thread but you never started it. Calling run() instead of start() is tremendously

[android-developers] Re: Is there anyway to pause a method in progress to wait for a button to be pressed?

2010-10-28 Thread DanH
So please someone tell me there is some way I can have my method pause until a button is pressed? You can't. Though if you really want to you can, by placing your main code in a secondary thread and having it communicate with the UI thread. It can send a message to the UI thread to display

[android-developers] Re: inner classes in android

2010-10-27 Thread DanH
First you need to understand that inner classes and subclasses are two distinctly different things. Inner classes are mostly just a convenience, simplifying coding without actually providing significant additional function. Subclasses, on the other hand, are the meat and potatoes of OO

[android-developers] Re: Increase Ram Virtually

2010-10-27 Thread DanH
Wow! Virtual memory! Why, it seems only back in 1960 that was just a gleam in the eye of computer designers. And here we have it already! On Oct 27, 8:19 am, Sami sami...@gmail.com wrote: http://softsami.blogspot.com/2010/09/increase-ram-virtually.html -- You received this message because

[android-developers] Re: Increase Ram Virtually

2010-10-27 Thread DanH
(Sami, virtual memory has been around for a looong time, even in Windoze. Generally there's no need/reason to muck with the Windows defaults, since most machines have enough RAM that you don't need VM to fudge having more, but simply use VM to swap inactive applications out -- just as occurs

[android-developers] Re: Developing using Eclipse for Android and Java desktop application

2010-10-27 Thread DanH
You can certainly write a desktop application that will use any crypto algorithm you can find the source for (or find a JAR for). Writing bare desktop Java is so easy there's no need to be constrained by a particluar desktop tool set. And somehow I find it hard to believe that javax.crypto would

[android-developers] Re: inner classes in android

2010-10-27 Thread DanH
tight. Subclassing is a slippery slope that gets steep really fast. On Oct 28, 3:50 am, DanH danhi...@ieee.org wrote: First you need to understand that inner classes and subclasses are two distinctly different things.  Inner classes are mostly just a convenience, simplifying coding without

[android-developers] Re: SQLiteException thrown during rawQuery()

2010-10-27 Thread DanH
Thew SQLiteException generally contains some very useful text. Might be worthwhile telling us what it was. On Oct 27, 6:40 pm, swgillan swgil...@gmail.com wrote: Hello, I got an SQLiteException when executing a rawQuery() function. I checked the API on this, and noticed that it is not

[android-developers] Re: inner classes in android

2010-10-27 Thread DanH
will see the difference. On Oct 28, 8:32 am, DanH danhi...@ieee.org wrote: Android (and Java) would never have been built without subclasses. True, with a good suite of APIs you may never need to subclass anything, but that's simply because the people who designed the APIs were skillful

[android-developers] Re: SQLiteException thrown during rawQuery()

2010-10-27 Thread DanH
place. On Oct 27, 4:56 pm, DanH danhi...@ieee.org wrote: Thew SQLiteException generally contains some very useful text.  Might be worthwhile telling us what it was. On Oct 27, 6:40 pm, swgillan swgil...@gmail.com wrote: Hello, I got an SQLiteException when executing a rawQuery

[android-developers] Re: GK:How to give conditions in android XMLs

2010-10-26 Thread DanH
Are you sure they don't simply mean that they want different XML files for different environments/devices? There is a file suffix convention that lets you specify different files for different environments, to allow a single Android build to be targeted to several different devices

[android-developers] Re: Problem With Thread !

2010-10-26 Thread DanH
targets, but with a different compiler, you get, say, Scheme or AspectJ instead of Java. Taking your argument to the logical conclusion, nothing about C++ is real, because the hardware doesn't know about it. Hmmm Solipsism is fun, but not particularly useful. On Oct 23, 5:53 am, DanH danhi

[android-developers] Re: How to pass objects around activities using A HashMap of WeakReferences to Objects?

2010-10-26 Thread DanH
Don't know where you read that, but it sounds somewhat bogus. A WeakHashMap had weak keys -- when the key object no longer exists then the map entry is removed (eventually) by GC. If you use a Long as a key, and send the Long via intent extras, my understanding is that the Long is apt to be

[android-developers] Re: How to pass objects around activities using A HashMap of WeakReferences to Objects?

2010-10-26 Thread DanH
(Anyway, your attempt to use the WeakHashMap is totally hosed. You need to study up more on basic Java programming before you attempt any more Android stuff.) On Oct 26, 5:11 pm, Anil anil.r...@gmail.com wrote: The FAQ mentions a method of passing objects around activities. (It is not clear to

[android-developers] Re: inner classes in android

2010-10-26 Thread DanH
I'm afraid you need to go back to school -- this isn't an Android question but a basic OO programming question. On Oct 26, 5:01 pm, zeeshan mirza zeeshan.nabeel.mi...@gmail.com wrote: Hello Friends, My Question is, why do we create inner classes or subclasses in android. Like the following

[android-developers] Re: Problem With Thread !

2010-10-23 Thread DanH
). The sense of unreality to which you refer is just an implementation technique, and only visible if you peek below the covers of reality. :) That's true of most any bit of programming semantics you choose to examine that closely. On Oct 22, 5:15 pm, DanH danhi...@ieee.org wrote: But there's always

[android-developers] Re: Problem With Thread !

2010-10-23 Thread DanH
()  in run() method of class that Implements Runnable and The Problem is the Same ; The stone don't hit the two Bird On 22 Ott, 23:32, DanH danhi...@ieee.org wrote: Thread implements Runnable mainly as a convenience.  When you want to start a thread you need a Runnable to execute.  You

[android-developers] Re: Problem With Thread !

2010-10-23 Thread DanH
Of course, I can treat a String as a boolean. Any class can be abused by the ignorant. But that's all beside the point. Thread isn't going to change. The bizarre use of Thread as a Runnable, though (which appears to only occur in Android), though, should be called out wherever it's seen. Using

[android-developers] Re: Problem With Thread !

2010-10-23 Thread DanH
(The problem is that several of the authoritative examples of using postDelayed that you'll find on the net make this error, and lead many astray.) On Oct 23, 5:00 am, Kostya Vasilyev kmans...@gmail.com wrote: 23.10.2010 4:04, Bob Kerns пишет: Because you're left with two dead birds instead of

[android-developers] Re: Issue with Catch Handler

2010-10-22 Thread DanH
I vaguely recall this being mentioned as a feature of the emulator. Seems odd, though, since it should be easy to fix and it makes debugging that much harder. On Oct 21, 9:58 pm, John Moline molinesys...@gmail.com wrote: Thanks Brad. I did narrow it down to my emulator. If I run the same

[android-developers] Re: Problem With Thread !

2010-10-22 Thread DanH
No, he's posting it as a Runnable to a Handler, it looks like. Yeah, there's a lot of that going around, and it causes a lot of confusion. Stupid to use a Thread when a Runnable will do, but that's the way it is in some examples on the net, and those examples keep getting copied. And, of

[android-developers] Re: Problem With Thread !

2010-10-22 Thread DanH
Vasilyev kmans...@gmail.com wrote: Prakash is right - the thread needs to be started. Now, btw, why does Thead implement Runnable in Java? Seems like a recipe for confusion. -- Kostya Vasilyev --http://kmansoft.wordpress.com 23.10.2010 0:33 пользователь DanH danhi...@ieee.org написал

[android-developers] Re: Problem With Thread !

2010-10-22 Thread DanH
, and related collaboration patterns are far more flexible and less fragile. On Oct 22, 2:32 pm, DanH danhi...@ieee.org wrote: Thread implements Runnable mainly as a convenience.  When you want to start a thread you need a Runnable to execute.  You can supply a separate Runnable, but, since you're

[android-developers] Re: Uploading an app to the Market for testing

2010-10-22 Thread DanH
Price at $199. On Oct 21, 1:59 pm, MB manoj.bi...@gmail.com wrote: You would have to quickly publish and then un-publish the app  to test LVL in your app. This is the only way I could figure out. If you figure out something better please share it with the group. This is what I had to do for

[android-developers] Re: Type Conversion to Dalvik format failed: Unable to execute dex: null

2010-10-21 Thread DanH
This is a failure on build, right, not a failure of the installed app or a failure to install? Have you tried building a toy app, to verify that your development setup hasn't gotten corrupted? On Oct 21, 5:29 am, shuchi shuchimu...@gmail.com wrote: I am trying to create an Android maps project.

Re: 答复: [android-developers] Re: How to connect to a remote MySQL DB without webservices... ?

2010-10-21 Thread DanH
The first thing you should do is write an application on a desktop PC to do the DB accesses you want (without using interfaces unavailable on Android). Work it out there, and then figure out how to map it to Android. On Oct 19, 4:58 am, goodwin weigoodw...@gmail.com wrote: Hi Kumar I don’t

[android-developers] Re: Message not getting posted

2010-10-21 Thread DanH
Because this BBS sucks. Google has a serious shoemaker's children problem. On Oct 18, 6:44 pm, Ray pamoned...@gmail.com wrote: Hello Moderators, I have been trying to send the message below since yesterday and I have tried posting it two times. I am not able to see it getting posted to the

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-21 Thread DanH
Probably true on Android, not universally true. Would fail on standard Java, like I said, if -Xfuture were specified. On Oct 21, 5:27 pm, fadden fad...@android.com wrote: On Oct 20, 11:10 am, DanH danhi...@ieee.org wrote: The wrapper class example is defective if the verifier

[android-developers] Re: stopping the GC from kicking in

2010-10-20 Thread DanH
I didn't view the video, but it sounds like he was on target. Modern programming techniques is often a euphemism for sloppy programming techniques, and one sloppy technique is not adjusting your style to the environment and environmental limitations. In this case, on a slow box with a clunky GC

[android-developers] Re: TextView visibility problem

2010-10-20 Thread DanH
Ah, how do you handle a problem like Maria?? On Oct 20, 9:40 am, Julie Andrews julieonli...@gmail.com wrote: This group is so helpful On Wed, Oct 20, 2010 at 6:30 PM, sisko adeod...@gmail.com wrote: You are right. When I move the TextView up it is squashed but visible. Can you advice

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-20 Thread DanH
The wrapper class example is defective if the verifier is conventional -- doesn't have the swizzle you describe since 1.6. On Oct 20, 12:53 pm, fadden fad...@android.com wrote: On Oct 19, 6:47 pm, DanH danhi...@ieee.org wrote: Even if you never actually execute the code that's causing

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-20 Thread DanH
(Though only, I suppose, if -Xfuture is specified/defaulted.) On Oct 20, 1:10 pm, DanH danhi...@ieee.org wrote: The wrapper class example is defective if the verifier is conventional -- doesn't have the  swizzle you describe since 1.6. On Oct 20, 12:53 pm, fadden fad...@android.com wrote

[android-developers] Re: performance woes

2010-10-20 Thread DanH
It's theoretically possible that the phone is using your CPU to assist the signal processor in separating signal from noise. As the signal gets weaker and weaker this would increase the load on the CPU, and the phone is obviously going to give priority to signal processing over UI stuff. I don't

[android-developers] Re: Memory Leaks

2010-10-19 Thread DanH
fairly familiar with how things work. On Oct 19, 4:27 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Mon, Oct 18, 2010 at 6:21 PM, DanH danhi...@ieee.org wrote: I doubt that adding content to the object would make it any more likely to be collected.  The garbage collector

[android-developers] Re: How to connect to a remote MySQL DB without webservices... ?

2010-10-19 Thread DanH
It's kind of a hopeless cause: Android does not implement remote DB, and because of that it's considered unnecessary or unsafe. But I think you can do the operations yourself, if you're willing to get down and dirty with the protocols. On Oct 18, 4:29 pm, saex elpablos...@gmail.com wrote: Hi

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
What did you compile against? You should always compile/build against the earliest version you hope to run on. On Oct 19, 4:25 am, Alex Xin xinxi...@gmail.com wrote: Hi, I have an app that runs perfect on 2.2 and 2.2 but always getting VerifyError on 1.6 while startup, I don't think that my

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
Keep in mind that there are also Java version dependencies and library dependencies. I don't know what Java versions may correspond to what Android versions, but you can't eg, compile with a Java 6 targeted javac and expect to run on a Java 5 JDK. And in some cases you can run into trouble if

[android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread DanH
It kicks in because you used storage. Use less storage. (Actually not as dumb as that sounds -- you often can use, eg, a cache to avoid allocating new arrays and such and instead reuse old ones. And be a little less careless doing substrings, creating new arrays when slicing an existing one,

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
Right ***above*** the exception trace should be some arcane-looking messages with VFY in them. On Oct 19, 6:36 pm, Alex Xin xinxi...@gmail.com wrote: Hi, thanks for helping me, here's the logcat, you could see it crashes prior to call my onCreate() method. 10-20 07:32:27.490:

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
-20 09:18:14.982: WARN/dalvikvm(210): Verifier rejected class Lxcxin/mysecret/mainSecretActivity; Now I know where I am wrong, ContactsContract.CommonDataKinds is only available on API Level 5 or higher. Thank you all Alex On Wed, Oct 20, 2010 at 7:39 AM, DanH danhi...@ieee.org wrote

[android-developers] Re: ConcurrentModificationException in SQLite

2010-10-19 Thread DanH
It's not a SQLite problem per se, it's a problem with the android.database stuff, or the way you're using it. (Has nothing to do with database access.) A HashMap referenced by android.database.sqlite.SQLiteDatabase.getDbStats is getting modified by another thread simultaneously. HashTable is

[android-developers] Re: Memory Leaks

2010-10-18 Thread DanH
finalize isn't guaranteed to be called. If you want to know if an object has been GCed, create a WeakReference to it and test that after the GC. But note that full GC isn't guaranteed to occur when you do gc either. And some systems require two GCs to trigger finalize (or clear a

[android-developers] Re: Storage

2010-10-18 Thread DanH
How do you handle a problem like Maria?? On Oct 18, 10:34 am, Julie Andrews julieonli...@gmail.com wrote: Scroll down slowly and be honest to yourself. *man 1. board* Ans. = man overboard *stand 2. i* Ans. = I understand OK?…. Got the drift? Let’s try a few now and see

[android-developers] Re: Memory Leaks

2010-10-18 Thread DanH
What I really want is a way to find out whether an object has been freed (or will be freed) or not. I believe that I must have objects that are not being freed, and I would like to try and identify them. You can use WeakReferences for that. Create a WeakReference for the object. If the

[android-developers] Re: Memory Leaks

2010-10-18 Thread DanH
I doubt that adding content to the object would make it any more likely to be collected. The garbage collector doesn't generally weigh objects as to whether they should be collected or not. The only differentiating factors are 1) the absolute size of the object itself (not counting references to

[android-developers] Re: NoClassDefFoundError when running the app

2010-10-18 Thread DanH
Note that NoClassDefFound can also occur because the class was found but was incompatible with other classes it links to. On Oct 18, 12:48 pm, ping bernd.warm...@gmail.com wrote: Hi. I have a problem with a library which i would like to use in my project. Here is the situtation: I have an

[android-developers] Re: Memory Leaks

2010-10-18 Thread DanH
, or PhantomReference for that purpose but they seem to be way more complicated that I need. Thanks again. On Oct 18, 10:21 am, DanH danhi...@ieee.org wrote: I doubt that adding content to the object would make it any more likely to be collected.  The garbage collector doesn't generally weigh objects

[android-developers] Re: NoClassDefFoundError when running the app

2010-10-18 Thread DanH
...@gmail.com wrote: I figured out that no *.class files are generated when the project is building. I tried to clean the project but there are no *.class files of the *.jar in the bin folder of eclipse On Oct 18, 8:29 pm, DanH danhi...@ieee.org wrote: Note that NoClassDefFound can also occur

[android-developers] Re: Memory Leaks

2010-10-18 Thread DanH
On Oct 18, 11:35 am, DanH danhi...@ieee.org wrote: You probably do need one of the tools that dumps the heap and shows you the classes of the objects found. And do note that Android (outside of the pure Java issues) has issues of its own with regard to image storage.  You can obey all

[android-developers] Re: Should I use synchronized for a boolean variable

2010-10-18 Thread DanH
BS. On Oct 18, 3:59 pm, Bret Foreman bret.fore...@gmail.com wrote: Even if you just have one reader and one writer, you'll need to serialize access to the flag (with a mutex, for example). Otherwise, you might get an IOException if the flag is being written by one thread at the same time

[android-developers] Re: Should I use synchronized for a boolean variable

2010-10-18 Thread DanH
You need some sort of synchronization mechanism if you want to ASSURE that the second thread sees the first thread's change of the flag IMMEDIATELY. Otherwise the value of the flag could be cached (to a degree), even though declared volatile. (However, one rarely runs into a situation where

[android-developers] Re: Should I use synchronized for a boolean variable

2010-10-18 Thread DanH
Where did they say you could get an exception accessing an unsynchronized value? On Oct 18, 5:27 pm, Bret Foreman bret.fore...@gmail.com wrote: http://www.ibm.com/developerworks/java/library/j-jtp06197.html I'll stick with IBM's opinion. Note that they explicitly use a boolean as an example.

[android-developers] Re: OutOfMemoryError

2010-10-17 Thread DanH
Have you read what was written about calling onPause from onPause, onStop from onStop, etc? On Oct 17, 8:16 pm, Lisa lpk...@gmail.com wrote: hi, thank you very much、for your answers. (⌒.⌒)/ I moved recycle in onStop. thanks, was solved this problem, the bitmap. Canvas: trying to use a

[android-developers] Re: Android : Can we have Packages inside Layout

2010-10-15 Thread DanH
Nope -- with the exception of the raw subdirectory, everything in the res directory must be flat. On Oct 14, 10:54 am, Jatin D Patel depo.ja...@gmail.com wrote: I have multiple view. But for systematic distribution of views (.xml files inside layout folder). I would like to have different

[android-developers] Re: OutOfMemoryError

2010-10-15 Thread DanH
(~_~?) -- Prakash Iyer: then where should reomever the bitmap? (・_・?) -- DanH : but if I not put super.onPause (); show the following error: 10-15 02:16:10.778: ERROR/AndroidRuntime(193): android.app.SuperNotCalledException: Activity

[android-developers] Re: OutOfMemoryError

2010-10-15 Thread DanH
available in some fashion. You should call super.X() when you override X as a general rule, so I think DanH is referring to what looks like you are calling super.onPause in your override of onDestroy. So you should be calling super.onDestroy... On Fri, Oct 15, 2010 at 12:21 AM, Lisa lpk

[android-developers] Re: error code 5: database is locked

2010-10-15 Thread DanH
Where is the error being thrown from? (You might include the exception traceback.) On Oct 15, 9:44 am, gcstang gcst...@gmail.com wrote: Has anyone encountered this and is there a solution to work around it? I'm creating a Thread and in that thread I open a database connection using the

[android-developers] Re: android books

2010-10-14 Thread DanH
Nothing that counts as excellent (at least not that I've found). I've not found any that are anywhere near true references (in the sense of even one of the in a Nutshell books). They're all pretty much tutorials of one sort or another, some better organized and more comprehensive than others.

[android-developers] Re: sqlite with ç/ñ

2010-10-14 Thread DanH
I would guess that SQLite attempts to do a case-insensitive query, but has a bug in converting non-Roman query values. On Oct 13, 3:33 pm, iñaki inaki.s...@gmail.com wrote: Thanks Bret!!! Well, I´ve solved put my string in lowercase... Weird... I´ve try by SQLite Database Browser and i get

[android-developers] Re: Detecting CB Radio Signals with Android Phones

2010-10-14 Thread DanH
It's conceivable that one could use some sort of passive resonant frequency multiplier, but probably only in theory. On Oct 13, 2:06 pm, Gerry gerry.t...@gmail.com wrote: CB is in the ~28 MHz frequency range which falls in the HF 10 meter brand. Bluetooth and wifi, are in GHz range and

[android-developers] Re: android.R.string.yes/no returns OK/Cancel instead of yes/no?

2010-10-14 Thread DanH
xZise On Oct 13, 8:19 pm, DanH danhi...@ieee.org wrote: Define your own application-local R.string values.  How to define string resources is one of the first things you should learn about Android development. On Oct 12, 3:23 pm, xZise javaxz...@googlemail.com wrote: Hello, I want

[android-developers] Re: OutOfMemoryError

2010-10-14 Thread DanH
Do you really want to do this: protected void onDestroy () { super.onPause (); ??? On Oct 12, 6:37 am, Lisa lpk...@gmail.com wrote: Hi, My name is Lisa . I am studying Android development. So I have a problem It immediately has trouble with memory. In the LogCat this error is

[android-developers] Re: android.R.string.yes/no returns OK/Cancel instead of yes/no?

2010-10-14 Thread DanH
:   14.10.2010 21:13, DanH пишет: The only reason for using them (vs your own values) is to save yourself the trouble of translating your own yes/no values should you decide to support another language. Even then, an application that only has those two strings in the current language, out

[android-developers] Re: How can i set text in EditText

2010-10-14 Thread DanH
Other platforms have a facility for specifying prompt text to appear in a text entry box, but I don't see an Android way to do it (though I'm no expert). You could easily fake it, though, by making the background of the EditText transparent and placing a TextView behind it containing the prompt

[android-developers] Re: How can i set text in EditText

2010-10-14 Thread DanH
Yep, that would appear to be it. (Sorry I besmirched the good name of Android ;) ) On Oct 14, 1:51 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Oct 14, 2010 at 7:26 PM, DanH danhi...@ieee.org wrote: Other platforms have a facility for specifying prompt text to appear

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-13 Thread DanH
13, 2010 at 9:44 AM, DanH danhi...@ieee.org wrote: I mean, eg, provide an image of a circle, and have only the area inside the circle (where alpha is non-zero) be sensitive. On Oct 12, 10:58 pm, Kumar Bibek coomar@gmail.com wrote: Ummm, What do you mean by modify that default? All

[android-developers] Description of how RelativeLayout works?

2010-10-13 Thread DanH
Can anyone point me to a good one? -- 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: VerifyError: arbitrarily rejecting large method

2010-10-13 Thread DanH
From my knowledge of other Java verifiers/compilers, it's more the complexity of the code rather than its absolute size that is likely to be the problem. Methods that branch into a lot of parallel paths (big nested switch statements, eg) will cause problems, and things get worse if there are a

[android-developers] Re: Trouble with program - button only clickable once.

2010-10-13 Thread DanH
You do know, don't you, that you're generating a random number between 0 and 5, but only have switch cases 1-3? IIRC, without a default case the code will take an exception on an out-of-range switch value. And I don't see the point of your if (!clicked) test in onCreate. On Oct 10, 10:04 pm,

[android-developers] Re: android.R.string.yes/no returns OK/Cancel instead of yes/no?

2010-10-13 Thread DanH
Define your own application-local R.string values. How to define string resources is one of the first things you should learn about Android development. On Oct 12, 3:23 pm, xZise javaxz...@googlemail.com wrote: Hello, I want to display a simple dialog to ask if somebody has done something.

[android-developers] Re: Need I-phone app converted into an Android app.

2010-10-13 Thread DanH
Apple will reject an app if they don't like the way you tie your shoes. On Oct 13, 1:54 pm, Bret Foreman bret.fore...@gmail.com wrote: Can you give more details around the reason for rejection? Did it have to do with technology, security, or business? -- You received this message because you

[android-developers] Re: Need I-phone app converted into an Android app.

2010-10-13 Thread DanH
Converting an app from iPhone to Android is non-trivial. There may be some companies that advertise the ability to do it (mostly) automatically, but expect to pay for that, and don't expect perfection. On Oct 12, 4:02 pm, Murray sotadevelopm...@gmail.com wrote: An app that our company built for

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
That is an interesting question: I haven't run across any way in Android to control the shape of the sensitive area of a button. Is it always a rectangle, or can it be made circular, triangular, etc, by making it conform to the shape of an image? On Oct 11, 6:03 pm, Mark Murphy

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
, 2010 at 9:02 AM, DanH danhi...@ieee.org wrote: That is an interesting question:  I haven't run across any way in Android to control the shape of the sensitive area of a button.  Is it always a rectangle, or can it be made circular, triangular, etc, by making it conform to the shape

[android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-12 Thread DanH
I'm guessing it has to do with the bitmap size here: Out of memory: Heap Size=5639KB, Allocated=3134KB, Bitmap Size=18669KB The Android has a mysterious and troublesome bitmap caching scheme, and sometimes this requires the explicit issuance of System.gc calls, even though the Java book says

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
. This is generally the way how widgets are laid out virtually everywhere. Even while you are designing HTML pages, everything is a rectangle. The boundaries of a view is always a rectangle. On Wed, Oct 13, 2010 at 9:22 AM, DanH danhi...@ieee.org wrote: I know that's the default.  But other platforms have

[android-developers] Re: Proper way to use Non-Extended Classes?

2010-10-11 Thread DanH
SharedPreferences pref =ctcx.getSharedPreferences(MyPref,Context.MODE_PRIVATE); On Oct 7, 2:23 pm, Ehask ehas...@gmail.com wrote: I have an app I am working on and being new to Android Dev I am running into a situation I have a Scores class not extended from anything (Activity,Service, etc)

[android-developers] Re: usb connection issues

2010-10-10 Thread DanH
I have Vista 64 and the Google phone (forget the name). Have not seen this problem. I do have assorted shutdown problems, but generally of the opposite nature -- powers off (hard) rather than hibernating. On Oct 10, 11:07 am, dashman erjdri...@gmail.com wrote: my platform is vista 64 + droid.

[android-developers] Re: Buying numbers vs developing numbers

2010-10-10 Thread DanH
You figuring that if we each bought each other's apps it would improve business?? On Oct 10, 10:25 am, Bret Foreman bret.fore...@gmail.com wrote: It would be interesting to know if the number of people buying apps is growing as fast as the number developing them. Has anyone seen data about

[android-developers] Re: Is it possible

2010-10-10 Thread DanH
(provided you code uses its public IP address to connect to it). That is the key. The internal Android-to-host IP address (I forget what it is) cannot be used. On Oct 10, 6:22 am, David Turner di...@android.com wrote: If the server is addressable from the Internet (i.e. not under a NAT or

[android-developers] Re: Looking for help testing an app

2010-10-10 Thread DanH
Sounds like a worthwhile concept, but I don't listen to music on my phone (or iPod or anything else). On Oct 10, 1:04 am, Mike M mike.mos...@gmail.com wrote: Hey everyone, I don't know if this is kosher, but I wanted to see if anyone would want to test an app I built.  I don't want to release

[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread DanH
Export the project, delete it, then import it? On Oct 10, 12:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I

[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity

2010-10-10 Thread DanH
Though seems like cleaning the project should work. On Oct 10, 12:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't

[android-developers] Re: Accessing the apk-signing certificate from inside the program

2010-10-10 Thread DanH
Supposedly you can fetch your public keys from PackageInfo.signatures. (Should only be one if the package is only signed once.) (Yeah, I know -- key != signature, but I have it from the Highest Authority that that interface returns the keys.) On Oct 7, 10:58 am, BGraversen

[android-developers] Re: Buying numbers vs developing numbers

2010-10-10 Thread DanH
So long as it works long enough for me to retire ... On Oct 10, 1:27 pm, Kostya Vasilyev kmans...@gmail.com wrote: I think it was shown - by the NASDAQ crash in March 2000 - that this particular economic model does not work for too long... :) -- Kostya Vasilyev

[android-developers] Re: Unable to sign jar

2010-10-09 Thread DanH
It might have worked out to just clean your app. On Oct 9, 3:43 am, Ali Chousein ali.chous...@gmail.com wrote: It seems that it's a bug in Eclipse. I use 3.5. Besides the corrupted apk, my eclipse started behaving quite weird (like remembering the contents of the manifest file of a project I

[android-developers] Re: How to convert xml to svg in Android

2010-10-09 Thread DanH
on the Android by myself , I can parse xml file but failed in svg file , Isn't svg based on xml ? On Oct 8, 11:43 pm, DanH danhi...@ieee.org wrote: If at all possible you should use a utility to convert the SVG to some other format before loading it onto the phone. On Oct 8, 9:11 am, 大风

[android-developers] Re: Exception every time I launch the application

2010-10-09 Thread DanH
see it blow up when setContentView is being done for your first screen. On Oct 9, 5:01 pm, Pankaj pankajiit...@gmail.com wrote: Ya I got that much from the exception, But in which XML ? I could not figure that out that is why I have provided the xml files On Oct 9, 4:00 am, DanH danhi...@ieee.org

[android-developers] Re: Exception every time I launch the application

2010-10-09 Thread DanH
wrote: Ya I got that much from the exception, But in which XML ? I could not figure that out that is why I have provided the xml files On Oct 9, 4:00 am, DanH danhi...@ieee.org wrote: Speak of the devil! (Just had this problem myself.)  Read carefully the first few lines

[android-developers] Re: Wierd memory leak

2010-10-08 Thread DanH
, DanH danhi...@ieee.org wrote: Right.  The main difference is that StringBuffer is threadsafe, and nothing else in Android is threadsafe, so little point in using StringBuffer. Well, there are few places, where Java (Android) are thread safe (Vector, Stack, few classes in javax.nio

[android-developers] Re: How to convert xml to svg in Android

2010-10-08 Thread DanH
Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Possible to check .apk signature?

2010-10-08 Thread DanH
sort. On Oct 8, 1:01 am, Dianne Hackborn hack...@android.com wrote: On Thu, Oct 7, 2010 at 6:22 PM, DanH danhi...@ieee.org wrote: So what is protecting the application from forgery? What do you mean?  This is the cert it is signed with.  Do you have some way to force the cert? -- Dianne

<    1   2   3   4   5   6   7   8   9   >