[android-developers] Application works after reboot the phone

2010-07-25 Thread mike
hi guys, i have found out a strange behavior. My application works only after phone reboots. after rebooting the phone first time application works fine. from there onwards it's not working. any ideas?? regards, Mike -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Scanning a Text File In Android

2010-07-25 Thread anil kukreti
Ya Thanks I 'm right now googling for parsing regex in java. Then I will implement the same on Android. By parsing a text file and later image file, I mean if theres' any phone no in file ,, the android application can call it. On Sun, Jul 25, 2010 at 10:49 AM, Maps.Huge.Info (Maps API Guru)

Re: [android-developers] Device Seeding Program for Top Android Market Developers

2010-07-25 Thread Webnet Android
Lol :) Looks like regular spam / hoax - top developerwith just 5k downloads and 3,5 (and note this half) rating? Sure :) Not to mention such offer would make no much sense. But it seem to always work - you just won . and people get so excited they stop thinking reasonably. Oh and there's

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-07-25 Thread Maps.Huge.Info (Maps API Guru)
This program was real and many developers received either a Droid or Nexus One. I got a Droid from this. Came in very handy. The cut-off date was March, 31st, so it's well over. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Federico Paolinelli
Thanks a lot. You saved me from doing an ugly filth :-) . I didn't expect that the number with a + was suitable to be interpreted as a number. Thanks again, Federico On Jul 25, 12:50 am, DanH danhi...@ieee.org wrote: Did you put quotes around the string?  If SQLite sees an un-quoted string

[android-developers] Re: Electro Magnetic Radiation Sensor with Android

2010-07-25 Thread Bob Kerns
Your problem statement is too vague to be useful. I don't mean so much useful to us, as useful to you. You really need to be a great deal more specific about what you want to sense. The term electromagnetic radiation covers a range from signals with wavelengths many orders of magnitude larger

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-25 Thread Zsolt Vasvari
Since the non compete clause doesn't seem to exempt non-paid countries, I'd say it's disallowed. What I would do is not to accept the agreement until the last possible moment and see where you stand by that time. Perhaps Google has something up its sleeve. On Jul 25, 8:35 am, William Ferguson

[android-developers] Re: Build performance of 2.2 vs older sdk implementations

2010-07-25 Thread Zsolt Vasvari
Yes!!! Somebody with the same problem as me. Since I upgraded to SDK 2.2 Update 1, the resource file compilation is taking forever. Xavier suggested that I turn on Verbose in the Android build option, which I did. I can see the build process pause for a very long time when writing the .re_

[android-developers] Re: use of fadeScrollbars

2010-07-25 Thread Zsolt Vasvari
I am not sure if that's true. I need to add android:paddingRight=? android:attr/scrollbarSize, otherwise the scrollbar overlays the view for me. On Jul 25, 5:07 am, Mark Nuetzmann mark.nuetzm...@gmail.com wrote: I am using android:fadeScrollbars=true to show the scrollbar only while scrolling.

[android-developers] Re: Cam picture 'bigger' then preview

2010-07-25 Thread EnnaN
For anyone interested: The problem is there on a 1.5 G1, but not on a 2.1 Milestone/Droid. It might be the handset or the OS version, which i don't know. The basics of the problem as far as I can see, is that the preview is returned in 2:3 (320:480), and the picture will be in 3:4 (1536x2048).

[android-developers] Need guidance in making the game's logic supporting multiple screens.

2010-07-25 Thread Kakyoin
Hi. I've read the article Supporting Multiple Screen on Android developers site. But that doesn't apply to game logic. Let me get straight to the point. My situation is as follows: - I'm creating a game using LunarLander code as a base. - In my game, there'll be an object flying up from the

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Federico Paolinelli
Just to add more information to anybody who is interested in this topic, it is necessary to remove the quotes if you need the original data. On 25 Lug, 09:17, Federico Paolinelli fedep...@gmail.com wrote: Thanks a lot. You saved me from doing an ugly filth :-) . I didn't expect that the number

Re: [android-developers] Need guidance in making the game's logic supporting multiple screens.

2010-07-25 Thread Jyoti singh
Hi Haim, please look into the below problem .I think you have some solution for this problem. Thanks, Jyoti On Sun, Jul 25, 2010 at 1:28 PM, Kakyoin lgmc...@gmail.com wrote: Hi. I've read the article Supporting Multiple Screen on Android developers site. But that doesn't apply to game

[android-developers] Re: Android to iPhone

2010-07-25 Thread Eelco
What about this: http://www.phonegap.com/ PhoneGap is an open source development framework for building cross- platform mobile apps. Build apps in HTML and JavaScript and still take advantage of core features in iPhone/iTouch, iPad, Google Android, Palm, Symbian and Blackberry SDKs. Anybody

[android-developers] runQueryOnBackgroundThread on cursoradapter doesn't get called?

2010-07-25 Thread Zvi
Hi All, I have a listactivity as a startup screen in my application. Which is displaying database records using custom cursor adapter. On create I set the filterable flag - getListView().setTextFilterEnabled(true) My cursoradapter overrides runQueryOnBackgroundThread which runs corresponding

[android-developers] Re: Need guidance in making the game's logic supporting multiple screens.

2010-07-25 Thread RichardC
Have a look at Canvas.scale() you can use this to setup a virtual drawing space that is independant of the phystal device. Lots of discussions in this group if you search on canvas scale On Jul 25, 9:25 am, Jyoti singh androidwithjy...@gmail.com wrote: Hi Haim, please look into the below

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread YuviDroid
What do you mean by remove the quotes? I store phone numbers on db and it works fine without dealing with adding quotes, then removing them. When I add/update stuff I use: contentValues.put(TableKeys.PHONE_NUMBER, phoneNumber); and when retrieving: String phoneNumber =

[android-developers] Re: Android to iPhone

2010-07-25 Thread Joseph Earl
Or Appcelerator. But non-of these is replacement yet for coding in the relevant platform language if you want access to all the features. On Jul 25, 9:25 am, Eelco eelcoaart...@gmail.com wrote: What about this:http://www.phonegap.com/ PhoneGap is an open source development framework for

[android-developers] Re: Storing data on the SD card in Froyo - files deleted when upgrading

2010-07-25 Thread Joseph Earl
Hi John, thanks for the info, but essentially what I was hoping to have was 1) Files on SD card NOT deleted during upgrade (they are independent of the app version) 2) Files on SD card ARE deleted during final uninstall However they get deleted in both those scenarios which is not useful to me,

[android-developers] Re: Application works after reboot the phone

2010-07-25 Thread Joseph Earl
Do you have any errors in Logcat / DDMS when your application fails to launch? On Jul 25, 7:18 am, mike hasitharand...@gmail.com wrote: hi guys, i have found out a strange behavior. My application works only after phone reboots. after rebooting the phone first time application works fine.

[android-developers] Component-wise program on android market?

2010-07-25 Thread nemo
Dear all: Could developer upload 'component'/SDK to android market? Now it seems only have 2 type: 'application' and 'Game'. I just wonder if android market has the mechanism for developers to upload component-wise programs which can be used in others's application. Then developers may get

[android-developers] Re: Android to iPhone

2010-07-25 Thread greg
You may be interested in watching the Cross-Compiling Android Applications to the iPhone video at http://www.youtube.com/watch?v=TG-NIt2O5J8 As Mr. Coryat suggests in this thread, the iOS terms are a bit of a legal sticky wicket for this type of cross-compilation. Technically however,

[android-developers] Component-wise program on android market?

2010-07-25 Thread nemo
Dear all: Could developer upload 'component'/SDK to android market? Now it seems only have 2 type: 'application' and 'Game'. I just wonder if android market has the mechanism for developers to upload component-wise programs which can be used in others's application. Then developers may get

[android-developers] How to end a child activity and return to parent activity?

2010-07-25 Thread Mystique
Hi, I have a main screen with buttons to launch other subactivities. I have to press back button each time to go back to the main screen of my application. How do I finish a child activity and automatically return from the caller? Thanks. -- You received this message because you are subscribed

[android-developers] Re: Application works after reboot the phone

2010-07-25 Thread mike
hi Joseph, i'm getting a security exception regarding the permissions regarding the download manager or like that. any way the permission is not listed in the manifest file. so after researching i found you need to have android.permission.ACCOUNT_MANAGER in the manifest. don't know whether thats

[android-developers] Re: Application works after reboot the phone

2010-07-25 Thread mike
Hi Joseph, this is the security exception i'm getting android.permission.ACCESS_DOWNLOAD_MANAGER regards, Mike -- 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

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
If you store the phone number as a pure numeric, it will be stored and retrieved that way, no problem. If you store a number as 555-1212, I **think** SQLite will choke on the - in the middle while doing numeric conversion and store it as character data. If you store a number as -123245, SQLite

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
Yeah, AbstractCursor.getString() should return the stripped string value, if the appropriate quotes were used going in. On Jul 25, 4:30 am, YuviDroid yuvidr...@gmail.com wrote: What do you mean by remove the quotes? I store phone numbers on db and it works fine without dealing with adding

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-25 Thread DanH
Yeah, but why bother reading the doc? ;) On Jul 24, 11:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Set BitmapFactory.Options.inSampleSize to a value larger than 1 (preferably to a power of 2). BTW: This info about decoding is all in the online java-doc... :) On Jul 24, 11:14 pm,

[android-developers] Re: How to end a child activity and return to parent activity?

2010-07-25 Thread Joseph Earl
You can call finish() on the activities when you no longer need it. On Jul 25, 1:21 pm, Mystique joven.ch...@gmail.com wrote: Hi, I have a main screen with buttons to launch other subactivities. I have to press back button each time to go back to the main screen of my application. How do I

[android-developers] Re: Component-wise program on android market?

2010-07-25 Thread RichardC
see: Apps Software libraries on the Market On Jul 25, 12:22 pm, nemo stone.c...@gmail.com wrote: Dear all: Could developer upload 'component'/SDK  to android market? Now it seems only have 2 type: 'application' and 'Game'. I just wonder if android market has the mechanism for

[android-developers] Large jars in Android

2010-07-25 Thread kypriakos
Hi all, I looked for any info on this but could not find much. Originally I had a number of 3rd jars that I was importing into the Android project. The general concensus I got was that I needed to find the source for them and compile them in Android - well I kicked my behind and did all that

[android-developers] read default browser cookies for webview

2010-07-25 Thread andrew android
Can anyone tell me how to read the cookies from the default browser? Any example ? Thanks! -- 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

[android-developers] Re: How to end a child activity and return to parent activity?

2010-07-25 Thread Mystique
Thanks, got it. On Jul 25, 9:40 pm, Joseph Earl joseph.w.e...@gmail.com wrote: You can call finish() on the activities when you no longer need it. On Jul 25, 1:21 pm, Mystique joven.ch...@gmail.com wrote: Hi, I have a main screen with buttons to launch other subactivities. I have to

[android-developers] Transfer database file to Android

2010-07-25 Thread Doug Gordon
I'm porting an app that I've supported for many years on PalmOS PDAs. In that world, the user runs a Windows program on his PC that creates a PalmOS database file, which is then Hotsynced to the handheld for the PalmOS app to use. For Android, it should work in a similar way, with the user

[android-developers] Re: TouchEvent... A BIG problem

2010-07-25 Thread gizmor
does the HTC desire support multi touch? On Jul 23, 2:38 pm, Joseph Earl joseph.w.e...@gmail.com wrote: Also you might want to note that actually Android 1.5 does support multiple (well 2) touch points (it's not documented though) Sadly as far as I can tell Android 1.6 is the only version

[android-developers] Android Market, how do you manage license and piracy protection?

2010-07-25 Thread sblantipodi
As title. How do you manage your activation on android market since this crappy market doesn't offer anything for dynamic licensing as other store like handango, mobihand app world ecc. ecc...??? How do you protect your full copy from piracy? -- You received this message because you are

[android-developers] Re: hi

2010-07-25 Thread Tim
Dear Raineesh, You may wish to consider another approach to Android development such as our MobiForms rapid application development tool. MobiForms is the world's first rapid application development tool designed for Google Android smartphones. Additionally MobiForms apps will run on other

[android-developers] Re: Android Market, how do you manage license and piracy protection?

2010-07-25 Thread JP
On Jul 25, 9:28 am, sblantipodi perini.dav...@dpsoftware.org wrote: How do you protect your full copy from piracy? There's a switch on the publishing page that turns on and off a Copy protection feature. Reportedly, this does not work with absolute authority and devs seem to have had their

[android-developers] Re: Android Market, how do you manage license and piracy protection?

2010-07-25 Thread Maps.Huge.Info (Maps API Guru)
There are three sure ways to protect your app from piracy: 1. Never publish it. 2. Give it away for free. 3. Write such a crappy app that nobody would want to steal it. Other than these, you're a babe in the wood to anyone who wants to take your property. Bummer on that. Maybe the new version

[android-developers] Re: how do you guys feel about the develop tools?

2010-07-25 Thread Tim
Dear Bill, There is another way without using Eclipse of the Android SDK!!! Have a look at our MobiForms rapid application development tool. MobiForms is the world's first rapid application development tool designed for Google Android smartphones. Additionally MobiForms apps will run on other

[android-developers] How to register a long click on a WebView somewhere else than on links?

2010-07-25 Thread Sephy
I think everything is in the title. I have been searching for this problem for days, seen the question asked everywhere, but never answered. SO maybe someone here knows how to do that. Thanks for the help. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Android to iPhone

2010-07-25 Thread andrej sarkic
Airplay is a pretty decent multi-platform SDK. http://www.airplaysdk.com/index.php It's not quite what you want, though. You have to write for the Airplay Framework, and the look and feel is definitely not native on either platform. On Jul 25, 7:16 am, greg sep...@eduneer.com wrote: You may

[android-developers] Re: geoCoder: getFromLocationName ?

2010-07-25 Thread coy
Sorry, I need to practice more English. Exactly. I need my application to search the web for SOMETHING in SOMEWHERE. Is there any way? Thanks, TreKing. On 25 jul, 01:59, TreKing treking...@gmail.com wrote: On Sat, Jul 24, 2010 at 4:27 PM, coy cawe...@gmail.com wrote: How do I do that?

Re: [android-developers] FB Sync - date of birth

2010-07-25 Thread Nikhil Bhatia
Pls adivce. Regards, Nikhil Bhatia. +91 9820964544. On Fri, Jul 23, 2010 at 10:27 PM, Nikhil Bhatia nikebha...@gmail.comwrote: With Android I can sync my contacts with FB, but the date of birth does not get pushed. How can be get that. Also, if Bth date is present in contacts, how can I

[android-developers] Re: Android Market, how do you manage license and piracy protection?

2010-07-25 Thread Pent
How do you protect your full copy from piracy? 1) Box in app to enter google order code 2) Script on server to query checkout CHARGED order codes Pent -- 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] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
Note that there is fairly good documentation for SQLite (though not for the Java, JavaScript, and C/C++ interfaces) at http://www.sqlite.org/. If you're going to be using SQLite you should review that documentation a bit. On Jul 25, 2:17 am, Federico Paolinelli fedep...@gmail.com wrote: Thanks a

[android-developers] Re: Android Market paid app download errors

2010-07-25 Thread Edward Falk
I'm having the same issue -- several complaints about being able to buy, but not download an app. Complaints are on Droid X and Incredible. Does cancelling and re-ordering help? I can tell you that rebooting the phone, making sure you're logged in to Google Talk, or even updating the app on the

[android-developers] Re: Android Market paid app download errors

2010-07-25 Thread Edward Falk
This issues *my* customers are seeing is that they can see the app on the market, they can buy it, than can get billed for it, but they can't download it. Needless to say, they're not happy. The app is a simple calculator. The only permissions is uses are vibrate and write to sd card. It was

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Federico Paolinelli
Sorry if I reply so late, but I wasn't at home. I can't manage it work. The cursor.getString() method returns me the string with the quote. I used single quote ' but I also tried using double quotes . My method of stripping the quotes back works, but now I am so curious of getting it work

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Federico Paolinelli
As Dan stated, the problem is the leading + of an international number that gets lost in the insert / get process. If I put a number like +39123123, when I perform a getString I get back something like 39123123, this is because sqllite thinks it is a pure number. (Ciao anche a te) On 25 Lug,

Re: [android-developers] Re: Application works after reboot the phone

2010-07-25 Thread Dianne Hackborn
There is no public API for the download manager, so you should not be doing anything that requires that permission. On Sun, Jul 25, 2010 at 6:23 AM, mike hasitharand...@gmail.com wrote: Hi Joseph, this is the security exception i'm getting android.permission.ACCESS_DOWNLOAD_MANAGER

[android-developers] Emulating share dialog

2010-07-25 Thread Pinheiro
I'm creating an app that will use a dialog similar to the share dialog (intent.action.SEND) with my own options. Is there a built-in theme in the SDK I can use to emulate the look of this dialog? Note: I don't want to create an Intent, I just want to create a similar looking layout. -- You

Re: [android-developers] Re: Application works after reboot the phone

2010-07-25 Thread Dianne Hackborn
Btw please post at least a stack crawl for error messages; you have not supplied nearly enough information for anyone to help you. On Sun, Jul 25, 2010 at 11:53 AM, Dianne Hackborn hack...@android.comwrote: There is no public API for the download manager, so you should not be doing anything

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread YuviDroid
What happens if you declare in the create table sql statement NUMBER_DESC_KEY as TEXT and not string? I've always used TEXT. On Sun, Jul 25, 2010 at 8:26 PM, Federico Paolinelli fedep...@gmail.comwrote: As Dan stated, the problem is the leading + of an international number that gets lost in

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Kostya Vasilyev
Why not prefix the number with some arbitrary, predefined character? Sort of like the leading single quote in Excel. Then remove it after getting the value from the database. Just make sure it's not a valid phone number character - like, any letter from A to Z will work... -- Kostya Vasilyev

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Federico Paolinelli
That's what I did, as I said before: What I think I am going to do (even if I am disgusted) is to add something to the string and remove it later. but I thought there was a more standard way to do it as suggested by Dan 2010/7/25 Kostya Vasilyev kmans...@gmail.com: Why not prefix the number

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Dmitri Plotnikov
This should not be happening if the column type is declared correctly. It should be declared as TEXT. See http://www.sqlite.org/datatype3.html Cheers, Dmitri On Jul 25, 2010 12:14 PM, Federico Paolinelli fedep...@gmail.com wrote: That's what I did, as I said before: What I think I am going

Re: [android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread Federico Paolinelli
Ooops. Thanks a lot, it was driving me mad. Sorry for having bothered you all. 2010/7/25 Dmitri Plotnikov dplotni...@google.com: This should not be happening if the column type is declared correctly.  It should be declared as TEXT.  See http://www.sqlite.org/datatype3.html Cheers, Dmitri

Re: [android-developers] read default browser cookies for webview

2010-07-25 Thread Mark Murphy
On Sun, Jul 25, 2010 at 10:48 AM, andrew android andygoldm...@gmail.com wrote: Can anyone tell me how to read the cookies from the default browser? You cannot access other applications' data like this, for privacy/security reasons. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Transfer database file to Android

2010-07-25 Thread Mark Murphy
On Sun, Jul 25, 2010 at 11:45 AM, Doug Gordon gordo...@gmail.com wrote: but in any case I'm unclear on if there is any built-in or automated way to transfer files from a PC to an Android device. Neither. Android's focus is more on the cloud. Other than mounting the SD card and copying it

[android-developers] service that maintains TTS

2010-07-25 Thread poohtbear
Hi. I have an application that relies on TTS to work in real time upon device events (such as new message\sms). To do that i start my service on device init and when i start it i start the TTS engine. Once started my broadcast receivers sends it IPC's to play whatever is needed. Of course if an

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
Read the documentation carefully: In SQLite, the datatype of a value is associated with the value itself, not with its container. Any column in an SQLite version 3 database, except an INTEGER PRIMARY KEY column, may be used to store a value of any storage class. There is what they call

[android-developers] Re: Transfer database file to Android

2010-07-25 Thread Joseph Earl
It is possible to copy an existing SQLite database from your assets folder to the correct location on the device. See: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ On Jul 25, 8:36 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 25, 2010 at

[android-developers] allign text vertically in a text view

2010-07-25 Thread harshe
I have a textview placed vertically in an activity.. I Want the text within the textview to be shown as bottom to top facing right side. Can anyone please help me out.. my XML file is TextView android:layout_height=200dp android:layout_width=50dp android:paddingTop=100dp

[android-developers] Re: To display the soft keyboard during the launch itself

2010-07-25 Thread harshe
i tried even this but still it doesnot work for me :( :( On Jul 23, 8:30 pm, Matt Quigley matthew.quig...@gmail.com wrote: You might get it to work if you request the focus for EditText on creation.  Either add editText.requestFocus() in your onCreate(), or add a requestFocus/ tag inside the

[android-developers] Re: Calling methods of an activity from another

2010-07-25 Thread Luca Carlon
I need this as when an event of my C++ library arises, a method of Activity1 is called, and I need then to call a method of Activity2. It sounds like your JNI ought to be in a service, rather than either activity. You do not even know if Activity1 will be in memory while Activity2 is in

[android-developers] Re: NDK OpenGL - Mixing Java and Native (C) calls to OpenGL API?

2010-07-25 Thread Indicator Veritatis
Although I think there is a way of making this work, I have to question why you would want to do this. It is the Java interface (including JSR-239)that is well tested in Android. Besides: if you use GLSurfaceView and override its methods, it really does do a lot of the work for you. What do you

[android-developers] Re: Android market rules are changed, you must accept it within 30 days but...

2010-07-25 Thread Indicator Veritatis
Where does it leave you? It could leave you considering alternatives to Google's Android Market, such as http://slideme.org or http://www.getjar.com/. The former in particular is proud of their achievement of being usable for both buyers and sellers from almost any country in the world. On Jul

[android-developers] Re: What is a WeakReference?

2010-07-25 Thread Indicator Veritatis
You are correct. My wording did not make it clear: soft references are useful for memory-sensitive caches, weak references for canonicalized mappings. But as you point out, in the weak reference example that started this thread, weak references really do not buy you much, since the memory is

Re: [android-developers] Re: hi

2010-07-25 Thread Chris Stewart
Bury for advertisement? Chris Stewart cstewart...@gmail.com On Sun, Jul 25, 2010 at 12:42 PM, Tim t...@mobiforms.com wrote: Dear Raineesh, You may wish to consider another approach to Android development such as our MobiForms rapid application development tool. MobiForms is the world's

[android-developers] Re: What is a WeakReference?

2010-07-25 Thread Indicator Veritatis
As the author of the IBM Developerworks article I referenced mentions, that is not good enough. The Garbage Collector runs on a different thread, you have no control over when it will be called. It is quite possible that just after you test for null, the GC is called, and it is no longer valid.

[android-developers] Re: Possible to over-ride default Android libraries?

2010-07-25 Thread Indicator Veritatis
If worse comes to worse, you could give up on doing the build in Eclipse, do it in Ant, and set CLASSPATH yourself at build time, and set it in the jar for runtime (in the manifest). On Jul 23, 6:07 pm, DanH danhi...@ieee.org wrote: What you're really asking is whether it's possible to override

[android-developers] Re: Emulating share dialog

2010-07-25 Thread Zsolt Vasvari
I belive the layout used is resolve_list_item.xml On Jul 26, 2:53 am, Pinheiro rui.c.pinhe...@gmail.com wrote: I'm creating an app that will use a dialog similar to the share dialog (intent.action.SEND) with my own options. Is there a built-in theme in the SDK I can use to emulate the look of

[android-developers] Re: Possible to over-ride default Android libraries?

2010-07-25 Thread DanH
It's not the classpath he needs to set, it's the system classpath. Different beast. On Jul 25, 8:03 pm, Indicator Veritatis mej1...@yahoo.com wrote: If worse comes to worse, you could give up on doing the build in Eclipse, do it in Ant, and set CLASSPATH yourself at build time, and set it in

[android-developers] Re: What is a WeakReference?

2010-07-25 Thread DanH
If the garbage collector deletes an object I have a hard reference to, it's broken. Doesn't matter if it runs in a different thread or a different country. Once I have executed ref() and stored the result somewhere in my VM (in stack or in another object) that object cannot be deleted until I

[android-developers] Re: What is a WeakReference?

2010-07-25 Thread DanH
(The key is to assign ref() to a variable and test the variable, vs testing ref().) On Jul 25, 7:19 pm, Indicator Veritatis mej1...@yahoo.com wrote: As the author of the IBM Developerworks article I referenced mentions, that is not good enough. The Garbage Collector runs on a different thread,

Re: [android-developers] Re: geoCoder: getFromLocationName ?

2010-07-25 Thread TreKing
On Sun, Jul 25, 2010 at 12:32 PM, coy cawe...@gmail.com wrote: I need my application to search the web for SOMETHING in SOMEWHERE. Is there any way? Hit Google.com and parse the results? - TreKing

Re: [android-developers] how to return to root activity after the task is cleared?

2010-07-25 Thread Jenus Dong
At the Onpause of B when you click home, you can do something. On Tue, Jul 13, 2010 at 5:41 PM, kevin0228ca kevin022...@gmail.com wrote: Hi everyone. I have a app with 2 activities, A B A has a button that launches a new intent for B. When at B I press home, then launch app again, B is

Re: [android-developers] Re: Scanning a Text File In Android

2010-07-25 Thread TreKing
On Sun, Jul 25, 2010 at 1:33 AM, anil kukreti success.anil...@gmail.comwrote: I mean if theres' any phone no in file ,, the android application can call it. I still have no idea what you're trying to do ...

[android-developers] Help with my listview.No data being shown in my listview.

2010-07-25 Thread jjteo
With the below code, nothing appears in the ListActivity as I would expect. No errors are shown in logcat. Arrival.java package one.two; import java.io.IOException; import java.util.ArrayList; import java.util.List; import android.app.ListActivity; import android.database.Cursor; import

[android-developers] Re: Application works after reboot the phone

2010-07-25 Thread mike
this is the exact exception i'm getting java.lang.SecurityException: Permission Denial: reading com.android.providers.downloads.DownloadProvider uri content://downloads/download from pid=249, uid=10003 requires android.permission.ACCESS_DOWNLOAD_MANAGER but when i run the same code in other

[android-developers] Cursor that will work with query for 2 tables

2010-07-25 Thread Marc
I have a little program that writes to a SQLite database with 4 tables. When I do a query (either with rawQuery or SQLiteQueryBuilder.query) the cursor only has column's from the first table. Does anybody know how to do a query on 2 tables that have been joined on a key value? some code public

[android-developers] Populating child list in Expandable lists using dynamic multidimensional arrays

2010-07-25 Thread Pravin Parulekar
Hello Gurus, I am using a simple expandable list that is populated by two arrays ( group array for the groups and a multi dimensional children array for the child). The arrays are built dynamically in the program and some group items have more children than others. So I end up defining the

[android-developers] Re: Large jars in Android

2010-07-25 Thread Kumar Bibek
I have never come across such a problem. But I am wondering which jars you are using and what are there combined sizes? -Kumar Bibek http://tech-droid.blogspot.com On Jul 25, 7:44 pm, kypriakos demet...@ece.neu.edu wrote: Hi all, I looked for any info on this but could not find much.

[android-developers] New Vacancies in North America,Europe,Middle East,East Asia India

2010-07-25 Thread Biswajit
New Vacancies in North America,Europe,Middle East,East Asia India Get Direct Instant Job Calls from Leading Placement Consultants for Any Sector. Now, Get Direct Instant Job Calls from Leading Placement Consultants. The Benefits which You will be Entitled been Clearly Mentioned Below:

[android-developers] Re: Large jars in Android

2010-07-25 Thread kypriakos
Hi Kumar, here they are: Bouncycastle jdk14 Mortbay w3cdom javaxservlet they are needed by sun's jxta to compile - the resulting jxta jar is about 1.8MB and all jars together imported into my app are close to 5.2MB. Thanks On Jul 26, 12:09 am, Kumar Bibek coomar@gmail.com wrote: I have

[android-developers] Re: allign text vertically in a text view

2010-07-25 Thread Kumar Bibek
Not layout_gravity, but only gravity. There are several other types of gravity which you can apply to any view. center|center_vertical|center_horizontal And there are a few others. Try those out. -Kumar Bibek http://tech-droid.blogspot.com On Jul 26, 2:38 am, harshe hars...@gmail.com wrote: I

Re: [android-developers] Re: Large jars in Android

2010-07-25 Thread Mark Murphy
On Mon, Jul 26, 2010 at 12:53 AM, kypriakos demet...@ece.neu.edu wrote: Bouncycastle jdk14 Bouncy Castle is used internally by Android, and it is accessible via the javax.crypto package. You may have difficulty having another edition of that code in your project. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Cursor that will work with query for 2 tables

2010-07-25 Thread Mark Murphy
On Mon, Jul 26, 2010 at 12:03 AM, Marc gobl...@gmail.com wrote: I have a little program that writes to a SQLite database with 4 tables. When I do a query (either with rawQuery or SQLiteQueryBuilder.query) the cursor only has column's from the first table. Does anybody know how to do a query on