[android-developers] Re: I'm really impressed...

2010-09-16 Thread DanH
I'm somewhat less than totally impressed with the OS and APIs (seems restrictive and buggy -- not quite ready for prime time), but the tool chain is pretty good -- it installs easily and for the most part behaves as one would expect (though performance is a bit dodgy in places and there are more

[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-16 Thread DanH
the tone of the app here, but you get the idea.) On Sep 15, 1:36 pm, DanH danhi...@ieee.org wrote: The distinction between what can be trademarked and what can't is a fuzzy area.  Generally, the more specialized the market, the less original the trademark needs to be.  ICE: In Case of Emergency would

[android-developers] Re: Compass pointing a direction other than North

2010-09-16 Thread DanH
thing now ..ohh the math :S float angleDegrees = (float) Math.abs(Math.toDegrees(Math.atan2 (picLongitude-mLongitude,  picLatitude-mLatitude))-event.values[0]); On Sep 16, 2010, at 5:41 PM, DanH wrote: Have you done any debugging?  Looked at the raw sensor readings to make sure they make

[android-developers] Re: Symbian C++ for mobile apps

2010-09-16 Thread DanH
I've programmed a bit in Symbian C++ but I prefer not to, since I'm really not that much into self-abuse. Qt, on the other hand, is a fairly nice C++ dialect that is also supported on some Symbian platforms. In fact, in many ways I prefer Qt to Java, except that the tool chain stability sucks.

[android-developers] Re: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-16 Thread DanH
I think people care, but there's not much they can do, as individuals. There should be government groups that go after outfits like AppBucket, but, face it, Android developers are not likely to be big political contributors, so the government attention is going elsewhere. You could try to form

[android-developers] Re: How much money do you make?

2010-09-16 Thread DanH
The real money is in 3rd party apps -- making apps for businesses, both for their own internal use and as promotional tools. You get paid regularly and don't have to worry about piracy. You'll never get rich (unless you own a business that employs a bunch of other programmers), but it's much

[android-developers] Re: Can't find my posts :(

2010-09-16 Thread DanH
Sometimes posts don't show up for hours, and when they do they're out of order, time-wise, relative to other posts. The Google Groups implementation kinda sucks. On Sep 16, 3:47 pm, Moto medicalsou...@gmail.com wrote: I have had this problem a couple times where I post something and I can

[android-developers] Re: How to create a common library in android - containing resource files as well

2010-09-15 Thread DanH
As I understand it, the common library stuff is broken, since you can't put any UI stuff in the library due to naming problems. There was a thread on this topic a week or two back. String, I think that hijacking mostly occurs when someone uses an email reply to start a new thread. It's a bit of

[android-developers] Re: able to select 2 RadioButton in a RadioGroup ??!??!

2010-09-15 Thread DanH
It's a feechur -- likely the code doesn't test whether a button is checked or not as it's added to the group, so it doesn't know the first button's checked and thus allows another to be checked. Poor design, but the implementation is the specification here (since there's no other specification),

[android-developers] Re: Loading XML data to array “gives up” if XML is too big

2010-09-15 Thread DanH
trying to produce apps under a time constraint, but I'm trying my best.  I very much appreciate you taking the time to reply. On Sep 14, 10:44 pm, DanH danhi...@ieee.org wrote: I'm assuming you use Resources.getStringArray to read the array? -- You received this message because you are subscribed

[android-developers] Re: Login with database..!

2010-09-15 Thread DanH
What TreKing is so elegantly stating is that you haven't explained your problem very well. Checking a login credential with a database is presumably a matter of referencing the database to extract the stored password and comparing that to the one just entered by the user. Nothing super- duper

[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-15 Thread DanH
thought they had purchased my app, when in fact they had purchased the copycat's. Cheers, Steve On Sep 14, 1:58 pm, DanH danhi...@ieee.org wrote: Do you have the app name trademark protected? If you have been using the app name for some time (how long some is depends

[android-developers] Re: trigonometry

2010-09-15 Thread DanH
Yeah atan2 is a really new concept -- invented maybe 1965 with Fortran, if not before. Pretty much a standard in all language math/ trig suites since then. http://en.wikipedia.org/wiki/Atan2 On Sep 15, 11:56 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: Geez this is even better than I

[android-developers] Re: Loading raw resource text file hang...

2010-09-15 Thread DanH
What's the size of the file? On Sep 15, 1:53 pm, Mystique joven.ch...@gmail.com wrote: Hi, I use this method couples of occasion to load text file to display as help file. But I don't know why the following code didn't work. It seems to hang and logcat says OutOfMemoryError? All I did was

[android-developers] Re: Loading raw resource text file hang...

2010-09-15 Thread DanH
And, of course, DataInputStream.readLine is deprecated. On Sep 15, 1:53 pm, Mystique joven.ch...@gmail.com wrote: Hi, I use this method couples of occasion to load text file to display as help file. But I don't know why the following code didn't work. It seems to hang and logcat says

[android-developers] Re: Negative resource id value?

2010-09-15 Thread DanH
The other thing you could do is define a resource symbol and reserve it for null. But I'm almost positive that zero is reserved already and can serve as null, and I strongly doubt that a valid resource id would ever be negative. On Sep 15, 2:29 pm, Mark Carter mjc1...@googlemail.com wrote: Is

[android-developers] Re: SQLite: IN comparison support

2010-09-14 Thread DanH
Hint: To sort out whether this is an Android problem or something with the way you're phrasing the query, download your DB file to a PC and use PC-based Sqlite on it to test the query. On Sep 14, 5:01 am, Samuh samuh.va...@gmail.com wrote: I wish to execute the following query on my

[android-developers] Re: How do I refer to a drawable with a variable

2010-09-14 Thread DanH
R.drawable.Ind is an integer. On Sep 14, 10:24 am, nextgen nextgenfant...@comcast.net wrote: Thank you for this, it gives me a possible solution.  Unfortunately getDrawable will only take an integer as an input, which really defeats the simplicity of solution I'm looking for.  I can set about

[android-developers] Re: How do I refer to a drawable with a variable

2010-09-14 Thread DanH
Note that you said I'm not sure about the nature of the integer it wants. It wants a resource id. Resource ids are what you get when you refer to a R.drawable.xxx symbol. The most straight-forward way to handle your situation is as Kantesh suggested -- construct an int array of the resource ids

[android-developers] Re: Documentation tutorials

2010-09-14 Thread DanH
I'd be happy if the code examples came with comments. On Sep 14, 10:20 am, Bret Foreman bret.fore...@gmail.com wrote: I think the real problem with the Android documentation is its minimalist approach. Google wants to be sure the docs are accurate and doesn't want maintenance of them to

[android-developers] Re: Documentation tutorials

2010-09-14 Thread DanH
I sympathize with you (and have ranted here before on this exact topic). I've not found a good book on Android. Best I've found in a print edition is Pro Android 2 by Hashimi et al, but it's only mediocre. There is also a pretty good $$ online Android reference, but I can't find a link to it

[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-14 Thread DanH
Do you have the app name trademark protected? If you have been using the app name for some time (how long some is depends) then you could claim it as your trademark. Simplest way to do this is to simply place (tm) after the name. It's not nearly as good as a registered trademark, but it carries

[android-developers] Slow response of discussion group

2010-09-14 Thread DanH
I assume that others have noted this as well -- you make a post and it doesn't appear for hours sometimes. And then a whole bunch of posts will materialize at once, when the server catches up somehow. Kinda irritating, what? You'd think Google could make their own group for their own OS respond

[android-developers] Re: Setting layout attributes based on android OS version?

2010-09-14 Thread DanH
I'm guessing there's some way to treat each OS version as a different language, and use the national language support to select between implementations. Don't have any specific ideas, though. On Sep 14, 12:14 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, Is there a way to specify a

[android-developers] Re: Documentation tutorials

2010-09-14 Thread DanH
by reading the online documentation. And of all of those (except maybe RPG) Android is by far the worst in terms of the coherence and usability of the documentation. On Sep 14, 12:40 pm, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 12:31 PM, DanH danhi...@ieee.org wrote: I'm not sure

[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-14 Thread DanH
the copycat today when I got an email requesting technical support from someone who thought they had purchased my app, when in fact they had purchased the copycat's. Cheers, Steve On Sep 14, 1:58 pm, DanH danhi...@ieee.org wrote: Do you have the app name trademark protected? If you

[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-14 Thread DanH
the copycat today when I got an email requesting technical support from someone who thought they had purchased my app, when in fact they had purchased the copycat's. Cheers, Steve On Sep 14, 1:58 pm, DanH danhi...@ieee.org wrote: Do you have the app name trademark protected? If you have

[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-14 Thread DanH
Of course, it's not so much a matter of getting him to pay up as it is to get him to stop using the name. The threat of financial penalties can be used as a club, but if he changes the name of his app (and maybe places a not related to ICE: In Case of Emergency disclaimer in his promo text) that

[android-developers] Re: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-14 Thread DanH
It does seem suspicious -- they give you a list of steps to report copyright infringement but conveniently omit the mailing address. In fact, it would appear that the only way to get their address would be to subscribe and then trace them through the credit card charges. On Sep 14, 7:23 pm, Bret

[android-developers] Re: Loading XML data to array “gives up” if XML is too big

2010-09-14 Thread DanH
Maybe you could give us a sample of what you're loading. On Sep 14, 7:44 pm, nextgen nextgenfant...@comcast.net wrote: Thank you both for the replies. Unfortunately you are stretching my admittedly thin knowledge, only began in Android and Java a month ago.  I'll look into LogCat.  Frank, if

[android-developers] Re: Loading XML data to array “gives up” if XML is too big

2010-09-14 Thread DanH
.  The file size of strings.xml on disk is 44k, which doesn't necessarily sound that large to me.  Maybe it's choking on a certain entry later on in the list? On Sep 14, 9:04 pm, DanH danhi...@ieee.org wrote: Maybe you could give us a sample of what you're loading. On Sep 14, 7:44 pm, nextgen

[android-developers] Re: Loading XML data to array “gives up” if XML is too big

2010-09-14 Thread DanH
I'd suggest he consider making it simply a raw text file -- forget about XML. Just readln 512 lines from the file into the array. On Sep 14, 9:26 pm, Frank Weiss fewe...@gmail.com wrote: Are you sure you want this data bundled in your app? Doesn't the data change every so often? Otherwise, I

[android-developers] Re: Loading XML data to array “gives up” if XML is too big

2010-09-14 Thread DanH
(ElementNeeded) + ])+3, tmpstr.indexOf([ + String.valueOf(ElementNeeded+1) + ]));     } On Sep 14, 9:21 pm, DanH danhi...@ieee.org wrote: And how are you reading these? On Sep 14, 8:10 pm, nextgen nextgenfant...@comcast.net wrote: Here is the line where I load the XML into the Array

[android-developers] Re: How to cast Bitmap to Keyboard ?

2010-09-13 Thread DanH
I'm afraid you'll have to learn how to program. On Sep 13, 2:26 pm, Ahmad ahmad.mobass...@gmail.com wrote: Greetings, I have a soft keyboard (screen, UI) in form/type/class of Bitmap. I would like to use/benefit from all functionality of 'Soft Keyboard' sample code on Android

[android-developers] Re: Best Practice for additional content delivery and add-ons

2010-09-13 Thread DanH
As I understand it, applications that are signed with the same signature can share private data with each other. The details of this are still a bit fuzzy to me, but I suspect there are 3-4 practical ways to share the data. On Sep 13, 1:26 pm, stanchat stanc...@tccons.com wrote: So if I

[android-developers] Re: Can android support more than one sdcard?

2010-09-11 Thread DanH
I was just thinking back to the evolution of the PC, which also started out supporting just one of everything (e.g., the C: drive) and ended up with multiple disks, multiple partitions on a disk, multiple pointing devices, multiple screens, etc., etc. Actually, the PC started out supporting

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread DanH
assignment that he slacked off on, for all we know. So in other words, it's only validly urgent if it interests YOU, and everyone must get clearance from YOU before labeling anything urgent. On Sep 10, 1:45 am, TreKing treking...@gmail.com wrote: On Thu, Sep 9, 2010 at 2:36 PM, DanH danhi...@ieee.org

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread DanH
as it pertains to you - I'm trying to, very frankly, explain to you that this manner of posting hurts you more than it helps. I hope you can see that. On Fri, Sep 10, 2010 at 6:59 AM, DanH danhi...@ieee.org wrote: So in other words, it's only validly urgent if it interests YOU, and everyone must get

[android-developers] Re: about android Reversepengineering !!!!

2010-09-10 Thread DanH
it. Thinks like stack traces have to be translated back by a tool. On Sep 7, 2:19 pm, DanH danhi...@ieee.org wrote: You can use an obfuscator (and, in fact, many Android experts recommend doing so).  But it makes your code slower and larger and more difficult for you to maintain

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread DanH
urgency is irrelevant to anyone else and doesn't help you get help with any more finesse in a toneless email. On Fri, Sep 10, 2010 at 11:11 AM, DanH danhi...@ieee.org wrote: it's only validly urgent to the person posting and everyone else really doesn't give a damn. Then why respond

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-10 Thread DanH
Agreed. From what little I understand of the problem, a title like Monkey not responding to telnet commands would be more appropriate. On Sep 10, 12:46 pm, Frank Weiss fewe...@gmail.com wrote: Tez, why don't you repost your question and abandon this toxic thread. Oftentime, stating a question

[android-developers] Re: buffer blocked until process exited

2010-09-10 Thread DanH
I suspect you need to flush the buffer on the write end. On Sep 10, 9:33 am, Compmanic sriniva...@gmail.com wrote: I have a problem with blocking buffer with the following code on my android application:      else if (tcpdumpButton.isChecked())                {                   try        

[android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-10 Thread DanH
Keep in mind that you can get those errors if an exception is thrown in the class's static initializer. Eg, if you say: static ClassX x = new ClassX(); and the ClassX() constructor throws an exception, the current class will fail to initialize and it can report (in some cases) as a NotFound

[android-developers] Re: WebView and ignoring SSL certificate

2010-09-09 Thread DanH
Because the phone doesn't have installed the necessary root certificate for many web sites, so it's impossible to validate their perfectly valid certificates. On Sep 9, 12:47 pm, Indicator Veritatis mej1...@yahoo.com wrote: Why would you want to do this? The whole point of SSL is to provide

[android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-09 Thread DanH
IMO, if, for the sake of argument, someone's job depends on solving a problem, then that is a validly urgent problem. And in general, where someone is up against a deadline for some reason -- say they need to get an app ready to demo to the corporate bigwigs next week -- that's likewise urgent.

[android-developers] Re: stringindexoutofboundsexception in ViewRoot.draw(boolean)

2010-09-07 Thread DanH
Can't help with your specific questions, but 9 times out of 10, when StringIndexOutOfBounds is thrown from system code, the problem is a fairly obvious one of the user supplying a string that's too short or an index into the string that's too large (or occasionally a negative index or zero-length

[android-developers] Re: about android Reversepengineering !!!!

2010-09-07 Thread DanH
You can use an obfuscator (and, in fact, many Android experts recommend doing so). But it makes your code slower and larger and more difficult for you to maintain, and is of dubious effectiveness if someone really wants to crack your code badly enough. On Sep 5, 11:38 pm, xc s

[android-developers] Re: Split Path to get filename and extension

2010-09-07 Thread DanH
What's an extension? Oh, you mean the Windows-specific concept of a portion of the file name that is separated from the rest of the file name by a dot. But what if there are two dots? Or three? Or none? On Sep 3, 12:31 pm, Allen houhual...@gmail.com wrote: Is there any method in io package?

[android-developers] Re: Memory problem with UI elements

2010-09-01 Thread DanH
If you can see an object it's not garbage. On Sep 1, 8:48 am, Shashidhar shashi.zep...@gmail.com wrote: Hi,   In my application I change layouts very frequently with most of the user interactions. Each time when a new layout is drawn, the applications memory size is increasing. I can see this

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

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

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

2010-08-31 Thread DanH
Actually, several sources recommend their use. On Aug 31, 4:06 pm, San sanees...@gmail.com wrote: And it is not recommended to use static variables in Android applns. On Aug 31, 1:57 pm, DanH danhi...@ieee.org wrote: Static variables are created and initialized when the class containing

[android-developers] Re: How to dynamically modify xml file in android

2010-08-30 Thread DanH
The Android docs list javax.xml.transform.TransformerFactory as being available, though I've never tried it on Android. On Aug 30, 6:43 am, saikiran n saikiran@gmail.com wrote: Hi ,  I want to modify an xml file which is in sdcard dynamically. How can we acheive this in android. I have

[android-developers] Re: remote db connection

2010-08-29 Thread DanH
Well, I've been told by TPTB that there is no remote DB support on Android. I suppose your package may offer it, but it's not part of the base OS. At least that's what I was told by People Who Ought To Know. On Aug 29, 2:53 pm, Tim t...@mobiforms.com wrote: DanH is incorrect in his assertion

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

2010-08-27 Thread DanH
I certainly hope that available Android memory is more than 3000 characters. On Aug 27, 5:14 am, Droid rod...@gmail.com wrote: I think you are hitting a capacity limit of the android and should chunk it somehow at say 3000 chars and store the chars somewhere not in memory. Droid On Aug 27,

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

2010-08-27 Thread DanH
My knowledge of the HTTP protocol is poor to begin with, and my bad memory doesn't improve it, but I vaguely recall that a single HTTP transfer is limited to 5000-odd characters (the precise number being somewhat variable) by the packet sizes used in the network. But normally the software used on

[android-developers] Re: getting a java.lang.VerifyError

2010-08-27 Thread DanH
VerifyError is produced for one of two reasons: 1) The class file being read contains stuff that is just plain illegal/ not recognized by the VM. This could be due to compiler error, malicious modification, garbling in transmission, or the class file being a later version than the VM

[android-developers] Re: getting a java.lang.VerifyError

2010-08-27 Thread DanH
Of course, note that Android has its own version of Base64OutputSteam at android.util. If you have Java source that was compiled against the one of the other versions it will need to be recompiled for Android. On Aug 27, 3:47 am, pramod.deore deore.pramo...@gmail.com wrote: I had write one

[android-developers] Re: remote db connection

2010-08-27 Thread DanH
I'm trying to remember the line from that old Cagney movie -- something like I don't know which is more merciful -- to ignore him or tell him there is none. There is no remote DB paradigm in Android. Rather, you are encouraged to have the server end provide a REST interface with which you can

[android-developers] Re: Handling the R object in a library

2010-08-27 Thread DanH
I haven't used this, but it might be what you're looking for: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject On Aug 26, 5:59 pm, Bret Foreman bret.fore...@gmail.com wrote: I moved some of my useful utility code into a library where multiple projects can easily

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

2010-08-27 Thread DanH
characters, plus overhead. That's 10s of kilobytes per GET request. See if looking at this code helps:http://github.com/brione/Brion-Learns-OAuth/blob/master/src/com/examp... On Aug 27, 12:44 pm, DanH danhi...@ieee.org wrote: My knowledge of the HTTP protocol is poor to begin

[android-developers] Re: New to Android and programming

2010-08-26 Thread DanH
Teach yourself OO programming? Are you kidding? The only programming class I ever had was one in Fortran, yet I know OO inside and out (literally). I'll agree that I don't get a lot of the UML stuff, but that's more because I can see flaws in it. But that's 40 years of experience. I'll agree

[android-developers] Re: How to compare two song files?

2010-08-25 Thread DanH
This is a fairly complex pattern matching problem. I understand there is an iPhone application that does it, but probably by uploading the sound to a larger box that is specially programmed to run the sophisticated algorithms. It's not the sort of thing you'd find embedded in a phone OS. On Aug

[android-developers] Re: Android bitmap allocation weirdness

2010-08-25 Thread DanH
The first array is 20 MB. The second is also 20 MB. What's the problem? On Aug 24, 4:28 pm, Viktor vilainpe...@gmail.com wrote: I'm having some trouble understanding why this code public class BitmapAllocTest extends Activity {     /** Called when the activity is first created. */    

[android-developers] Re: Unserializing objects via the Hessian web protocol leads to ClassNotFoundException

2010-08-25 Thread DanH
You can never load a class without its package name. The message is saying that a class in the null package named NewsSetCategory cannot be found. Since classes in the null package are characteristic of toy applications, NewsSetCategory is probably a toy application on the source platform and is

[android-developers] Re: Android bitmap allocation weirdness

2010-08-25 Thread DanH
 am, DanH danhi...@ieee.org wrote: The first array is 20 MB.  The second is also 20 MB.  What's the problem? On Aug 24, 4:28 pm, Viktor vilainpe...@gmail.com wrote: I'm having some trouble understanding why this code public class BitmapAllocTest extends Activity {     /** Called when

[android-developers] Re: Android Emulator vs iPhone emulator (Why does it take so long)

2010-08-25 Thread DanH
Actually, I figure it would cost me in the neighborhood of $300-400 a year. On Aug 25, 10:39 am, Frank Weiss fewe...@gmail.com wrote: Just to be a bit cheeky, why use the Android emulator at all? You know it doesn't cost $99/year to to run your Android apps on a device. But yes, I'm using

[android-developers] Re: Thin Java over C++ App

2010-08-25 Thread DanH
You'd still have to implement the Android app structure. On Aug 25, 1:18 pm, Maomor maldw...@gmail.com wrote: In order to easily and quickly port a C++ app to Android, can one just write a thin Java layer that gets the screen contents from C++ and blits it to the display; and sends mouse

[android-developers] Re: deleting object from a different thread

2010-08-25 Thread DanH
He's apparently attempting to delete the JNI global ref. My JNI knowledge is pretty sketchy, but I kinda recall that there's some sort of thread ownership of them and you need to transfer ownership before you can delete. On Aug 25, 9:03 pm, TreKing treking...@gmail.com wrote: On Wed, Aug 25,

[android-developers] Re: New to Android and programming

2010-08-25 Thread DanH
Heck, the examples are mysterious and obscure even if you've worked with Java for 12 years! On Aug 25, 8:42 pm, Indicator Veritatis mej1...@yahoo.com wrote: I'd even go one step of certainty further: it will definitely be a frustrating experience unless he learns enough Java first. Too many of

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

2010-08-24 Thread DanH
SQLite would be simplest, but can be a bit storage-hungry if you had, say 100,000 entries. For a few thousand entries, though, it's probably the way to go. On Aug 22, 6:39 pm, Dominic ddit...@gmail.com wrote: I want to have a list of restaurants with information such as addresses and phone

[android-developers] Re: how to write data to the existing xml file using code in android

2010-08-24 Thread DanH
To update an XML file you basically need to read it all into memory, make the updates, and write it all back. Generally a task for DOM, though if you're into self-abuse you could maybe use SAX. But keep in mind that /res is read-only. On Aug 23, 9:10 am, Rammi ram...@stellentsoft.com wrote: Hi

[android-developers] Re: SSLException: Not trusted server certificate

2010-08-24 Thread DanH
could possibly be revoked in the event of a vulnerability or theft. But those are relatively remote possibilities, beyond what most phone apps would need to consider. On Aug 21, 9:16 am, DanH danhi...@ieee.org wrote: The current cert may only be good for another 6-12 months.  And if the site

[android-developers] Re: New to Android and programming

2010-08-24 Thread DanH
If indeed you are new to programming I'd suggest you see if you can take a college course somewhere on intro programming. At the very least you should find yourself a good Java Self Taught book and get through at least the first few chapters. While much of Android programming isn't really

[android-developers] Re: User request refund 20 days after purchase

2010-08-24 Thread DanH
Don't be so cavalier -- he's talking about $1.25 in Mercan money. ;) (But, yes, the proper thing to do is to immediately refund the money, while asking for more information and promising that the user will receive a new copy of the app gratis if she assists you in understanding the bug.) On Aug

[android-developers] Re: sending and receiving LinkedHashMap through Bundle

2010-08-23 Thread DanH
You should start a new thread rather than hijacking someone else's. On Aug 22, 9:23 pm, shakeel shakeelaha...@tataelxsi.co.in wrote: I am having problem with getting LinkedHashMap from a Bundle. Help to solve this issue. Sample code would be of great help. Thanks Shakeel -- You received

[android-developers] Re: connecting mysql database

2010-08-22 Thread DanH
a bit to do with being on a mobile device. On Aug 21, 11:53 am, DanH danhi...@ieee.org wrote: Any decent developer should know this. That's unfair.  The OP did state that he was new to Android, and on other platforms you CAN connect directly to a remote database.  This is a limitation

[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-21 Thread DanH
they have little to do with Java the 'language True. MS tripped over one of my Java-related patents when they were building .NET. Generally these patents will relate to implementation details, and will not effectively prevent the use of Java as a language. On Aug 20, 10:01 pm, gosh

[android-developers] Re: SSLException: Not trusted server certificate

2010-08-21 Thread DanH
That assumes that the web site's cert won't change for the life of the app. On Aug 21, 3:18 am, Kostya Vasilyev kmans...@gmail.com wrote:   Ajay, A more cryptographically correct solution would be to install the missing сertfiicate pieces within your application, rather than accepting all

[android-developers] Re: SSLException: Not trusted server certificate

2010-08-21 Thread DanH
would find it acceptable. -- Kostya Vasilyev --http://kmansoft.wordpress.com 21.08.2010 16:06 пользователь DanH danhi...@ieee.org написал: That assumes that the web site's cert won't change for the life of the app. On Aug 21, 3:18 am, Kostya Vasilyev kmans...@gmail.com wrote:   Ajay

[android-developers] Re: connecting mysql database

2010-08-21 Thread DanH
Any decent developer should know this. That's unfair. The OP did state that he was new to Android, and on other platforms you CAN connect directly to a remote database. This is a limitation/shortcoming/feature of Android. On Aug 21, 1:24 pm, Miguel Morales therevolti...@gmail.com wrote: Don't

[android-developers] Re: connecting mysql database

2010-08-21 Thread DanH
, or Java. And only a bit to do with being on a mobile device. On Aug 21, 11:53 am, DanH danhi...@ieee.org wrote: Any decent developer should know this. That's unfair.  The OP did state that he was new to Android, and on other platforms you CAN connect directly to a remote database

[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-20 Thread DanH
Just a minor detail: IMO, while Android is good, the design undershoots rather than challenges the technology -- it's a bit too primitive/limiting for the hardware of 2 years from now. And I don't think that Oracle is trying to claim that bytecode/JVM is their invention. Rather, they probably

[android-developers] Re: Internet Connection Bug Or Error ??

2010-08-20 Thread DanH
First you have to define connected to the internet. You might be connected to the local router, eg, but it might not have a route out. You might even have a connection to a large network (eg, a university), but not be able to get past some firewall to the rest of the world. On Aug 20, 2:33 pm,

[android-developers] Re: Intellectual Property

2010-08-19 Thread DanH
Certainly the sale of intellectual property --patents, copyrights, etc -- is quite common. The trick is finding a marketplace for your specific property. If it's just another game then most houses that distribute these things would probably prefer to pay one of their hacks to duplicate you game

[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-19 Thread DanH
One viewpoint: http://patentology.blogspot.com/2010/08/why-has-oracle-sued-google.html There are some relevant points of law there, in addition to the opinions. On Aug 12, 7:52 pm, Frank Weiss fewe...@gmail.com wrote: It hit the press today. Rumored that Google refused to settle. I have no

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread DanH
The trick is to avoid any substringing while parsing. Read into a char array and then use String(char[] value, int offset, int count) to construct the individual string, after parsing its bounds. And you can speed that up by also having another file that is a dope vector (int[]) for the string

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread DanH
That's certainly an option, if the characters are from a limited charset so you can, eg, pack each char in 6 bits. Then you can save/ load an array of int. If you need to get the chars into Strings, though, some non-trivial work is involved, but you could, similar to my dope vector scheme,

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
In general, JITed Java code is as fast as or faster than the equivalent native code, if the JIT is reasonably good, and if the specific application can be coded efficiently in Java. The problem is that some specific data processing patterns are not easy to code efficiently in Java, and I suspect

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
First thing to do is to find out all you can about the hardware architecture, in terms of cache line sizes, page sizes, replacement algorithms, etc. Presumably we don't have to worry about MP here, so that's one less complication (especially with regard to cache), but you still want to keep

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
Just a minor point on floating point: On some architectures there is a penalty in terms of register save/restore if you use FPRs. Eg, they may have a flag in the invocation that indicates if an FPR is used, and if so then all are saved on certain types of calls, and on task switches. I have no

[android-developers] Re: Most speed-efficient way to hard code a map of Strings to Strings?

2010-08-19 Thread DanH
) constructor instead of String.substring() (and also removed an unnecessary trim() per line) and the parse time is now 30ms (compared to 400ms)! The fact the file is still a CSV is perfect because I can more easily debug/maintain that compared to some encoded format. On 19 August 2010 17:46, DanH

[android-developers] Re: Getting critical feedback on your application

2010-08-19 Thread DanH
Why do you think so many places have some sort of log on and evaluate us offers? (Yeah, they're also collecting email addresses, but that's a minor point.) It's hard to get people to give good evaluations of anything. For every person who complains to management, fifty will complain to their

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
, Amit On Aug 19, 10:11 pm, DanH danhi...@ieee.org wrote: In general, JITed Java code is as fast as or faster than the equivalent native code, if the JIT is reasonably good, and if the specific application can be coded efficiently in Java.  The problem is that some specific data processing

[android-developers] Re: Optimizing image processing algorithms for Android

2010-08-19 Thread DanH
, 10:11 pm, DanH danhi...@ieee.org wrote: In general, JITed Java code is as fast as or faster than the equivalent native code, if the JIT is reasonably good, and if the specific application can be coded efficiently in Java.  The problem is that some specific data processing patterns

[android-developers] Re: providing updates to unpublished application( old users)

2010-08-19 Thread DanH
I was thinking the same thing! On Aug 19, 12:21 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: and a programmer's job is to anticipate every problem possible, and deal with it in a user friendly way :). You obviously don't work for Microsoft! -John Coryat -- You received

[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-08-18 Thread DanH
But at least the IMEI is more likely to be unique, since telephone connections depend on it, and checking its uniqueness (and correspondence to the printed label) is probably written into some stringent phone qualification tests. On Aug 18, 10:49 am, Kostya Vasilyev kmans...@gmail.com wrote:  

[android-developers] Re: connect to sql server

2010-08-18 Thread DanH
Of course, this assumes that you own the box with the SQL server on it. On Aug 18, 9:31 am, Chris Stewart cstewart...@gmail.com wrote: Instead of putting it on C, you'll need to put it in the context of a web server that can handle PHP.  IIS, or Apache, for example. -- Chris

[android-developers] Re: Getting ParserConfigurationException when trying to insert a new Calendar.

2010-08-18 Thread DanH
Close as I can figure from the messages there's something wrong with SAXParserFactory (eg, wrong version, or the visible class is loaded by the wrong loader). Things probably go downhill after that. You might check if one of your jars contains a copy of SAXParserFactory and that's confusing

[android-developers] Re: SQLiteException

2010-08-18 Thread DanH
What was the text in the exception -- it's usually pretty informative. On Aug 13, 3:57 am, easy ab...@mail.ru wrote: Hi all, I created ContentProvider for database with three tables. SQLiteException was thrown on first call query. My method and commets are below: @Override         public

[android-developers] Re: SQLiteException

2010-08-18 Thread DanH
Never mind -- I see it there -- No such column On Aug 13, 3:57 am, easy ab...@mail.ru wrote: Hi all, I created ContentProvider for database with three tables. SQLiteException was thrown on first call query. My method and commets are below: @Override         public Cursor query(Uri url,

<    2   3   4   5   6   7   8   9   >