[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread Kai
If I have layout-xxx folders, compilation in 1.5 would just fail. how can I deal with that? I don't think reflection would help. On Nov 17, 6:12 pm, Jason Proctor wrote: > indeed, but don't use reflection, instantiate OS-dependent classes > which implement a common interface by *name*. this brea

Re: [android-developers] media button B/R accuring twice and service not stopping

2009-11-17 Thread Paul Townsend
Bump. On Tuesday, November 17, 2009, Paul Townsend wrote: > Hi I got a a MEDIA_BUTTON receiver but when I press it, it appears to > broadcast twice when I press the button once. Now because the emulator > doesn't have the headset button and I have to use USB debugging to use > it on my phone I ca

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread westmeadboy
On Nov 18, 2:57 pm, André wrote: > Note the users that an update is available from within your game, e.g. Out of interest, what's the easiest way to set up something that allows an app to auto-detect new updates? -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread Nithin
Padding can't do. I want to implement margin, itself. On Nov 18, 12:09 pm, GPU wrote: > use the padding > > On Nov 18, 10:20 am, Nithin wrote: > > > Hi, > > > I tried in this way too, still no success > > > MarginLayoutParams compParams = new MarginLayoutParams > > (MarginLayoutParams.WRAP_CONT

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread GPU
use the padding On Nov 18, 10:20 am, Nithin wrote: > Hi, > > I tried in this way too, still no success > > MarginLayoutParams compParams = new MarginLayoutParams > (MarginLayoutParams.WRAP_CONTENT, >                                 MarginLayoutParams.WRAP_CONTENT); > compParams.topMargin=100; > c

[android-developers] My ImageView background

2009-11-17 Thread Mark Wyszomierski
Hi, I have some ImageViews that download images from the net. While they're loading, I'd like to show an empty frame image. I'm doing this, which looks fine: public class MyFrame extends Shape { private int mColorFrame; private int mColorInner; public DrawablePhotoLoading(int colorFrame,

[android-developers] Re: How to Add Objects to Sqlite Database

2009-11-17 Thread Mark Wyszomierski
Do you have a database already setup and are wondering how to use the sqlite classes, or you don't have one setup yet? If you're starting from scratch, I think the notepad tutorial shows you hot to setup sqlite from the start: http://developer.android.com/guide/tutorials/notepad/index.html On No

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread André
I'm trying to counter piracy in a slightly different way: Providing quality updates on a regular basis. Assume you have a game and release new features (like new characters, levels, achievements and other gimmicks) every few weeks or months. Note the users that an update is available from within y

[android-developers] Re: Emulator not receiving UDP Packets

2009-11-17 Thread Gopi$h
Hello, Actually this redir we have already tried, but still getting the same issue. I am using Android 1.5, so did you got this running in 1.5 also ? If yes what all is required to be done using Android 1.5 I tried it in Android 2.0, but there iam not able to push my entire libraries, as it give

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread Bonifaz
How do we then get all contacts/phonenumbers from all accounts? If I use the new Contacts API and send an ACTION.PICK for phone numbers like Intent i = new Intent(Intent.ACTION_PICK, android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_URI); it doesn't give me for example Facebook acco

[android-developers] How to display image in html tag?

2009-11-17 Thread Archana
Hi. how can we display image using html tag.I used Html.imagegetter to get drawable image.But its not displaying anything.Please help. textView.setText(Html.fromHtml(" Text with a " + "http://www.google.com\";>link " + "created in th

[android-developers] How to Add Objects to Sqlite Database

2009-11-17 Thread naveenballa
i have a class like class Mydata{ String name; int data; Location[] locarray; } List = new ArrayList( ); can anyone tell me how to add the object of Mydata class to Sqlite Database column Thanks in advance -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Problem running Android jUnit tests on Android project with multiple included auxiliary projects

2009-11-17 Thread emitya
Hi, I have a question on the project set-up - this may be a bug in SDK. I cannot run android junit tests for classes sitting in main android project that implement interfaces that reside in other included projects. Depending on SDK version I get different errors: from "Test run failed:" on 1.5 an

[android-developers] Re: Problem in setMargins() and textview

2009-11-17 Thread Nithin
Hi, I tried in this way too, still no success MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.topMargin=100; compParams.leftMargin=100; compParams.bottomMargin=0; compParams.righ

Re: [android-developers] Setting of screen brightness broken in 2.0?

2009-11-17 Thread Dianne Hackborn
This is broken on 2.0 on Droid because of the auto-brightness feature, but I believe will be fixed in the first update. On Tue, Nov 17, 2009 at 6:55 PM, Brad Fullmer wrote: > I use the following code to dim the screen in one of my apps. Up > until 2.0 I used this code to basically turn on and

Re: RE : [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
2009/11/17 Cédric Berger > In fact if you can have more control in 2.0, this will just help to not > have all this task killers used so blindlessly by everyone. > Unfortunately I think that is unlikely -- I can't count the number of places I have seen on the web suggesting to people to install a

RE : [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Cédric Berger
In fact if you can have more control in 2.0, this will just help to not have all this task killers used so blindlessly by everyone. So removing this API will be become less important. And this one still may be usefull in some cases. Just have to be used more wisely. thanks dianne for the explanati

[android-developers] Re: Focus between views and lists issue/problem with Donut

2009-11-17 Thread Andri Kurniawan
emm i know whats the problem. you should change AndroidManifest.xml code to this . the problem is the minSdkVersion is <4, you should change to 4. sorry for my bad english ^^ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: How do I backup my application signing key?

2009-11-17 Thread skyhigh
Does anyone know how to backup the keystore and the application signing key? I searched but didn't find any instructions and everything I tried has not worked. If there are instructions on how to backup the keystore somewhere I would appreciate it if someone could point me to the right place. --

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread String
On Nov 17, 7:43 pm, Dianne Hackborn wrote: > I will probably make this API a no-op, since it violates the principle of > one app not being able to break another app +1 Especially with the Running Services UI in 2.0, I'd suggest this is the best solution. String -- You received this message b

[android-developers] Re: User Ratings in Apps

2009-11-17 Thread westmeadboy
Would be great if there was a way to embed the rating system within an app. The number of ratings would rocket! Going back to the point about knowing which device was behind the rating, I totally agree. At the moment a rating is tied to a user account. Wouldn't it be good if a rating was tied to

[android-developers] Setting of screen brightness broken in 2.0?

2009-11-17 Thread Brad Fullmer
I use the following code to dim the screen in one of my apps. Up until 2.0 I used this code to basically turn on and off the backlight: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = val; getWindow().setAttributes(lp); Now in 2.0 this is no longer

[android-developers] two Apks with dependency

2009-11-17 Thread allstars
hi i have two Apks , said A and B A may set an Intent to B and B will send the result back to A but if said i have added new commands and result code for them how can i prevent others still use wrong version of A or B?? thanks -- You received this message because you are subscribed to the Goo

[android-developers] Re-Register PhoneStateListener if application crashed

2009-11-17 Thread shahzad ahmad
Hi, i've registered a PhoneStateListener in BOOT_COMPLETED receiver by using following call: tm.listen(new TestCallStateListener(), PhoneStateListener.LISTEN_CALL_STATE); If the application crashes then system automatically unregisters the PhoneStateListener. Is there any mechanism of check

[android-developers] Re: weird issues with resources on Verizon Eris.

2009-11-17 Thread Alexey Volovoy
Thanks Mark, that is strange - i'll test more tomorrow but Sprint hero with both roms work fine ( or it least it was reported to me that they are ). I'm going to recheck tomorrow morning. On Nov 17, 8:03 pm, Mark Murphy wrote: > Alexey Volovoy wrote: > > With eris behavior is like this - if i dow

[android-developers] Activity lifecycle: onRestart vs onActivityResult

2009-11-17 Thread k7k0
Hi, I have two activities A1 (main) and A2 (children) and two processes P1 and P2. A1 has this behavior: a) First time in the application I need to trigger P1 (onCreate using a splash in foreground) b) When arrive from other's activities or from A2 without results I need to trigger P1 (onRestart)

[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread Jason Proctor
indeed, but don't use reflection, instantiate OS-dependent classes which implement a common interface by *name*. this breaks the class loading chain. reflection == last resort, IMHO At 6:01 PM -0800 11/17/09, sdphil wrote: >i think what this boils down to, is that you need to build everythin

[android-developers] Re: preventing a crashed service from restarting...

2009-11-17 Thread sdphil
ping... On Nov 16, 7:35 am, sdphil wrote: > do you mean using something like "android:oneshot" in the manifest > xml? > > core/init/readme.txt ??  is that from the Android source code? > > On Nov 15, 11:30 pm, Bytes wrote: > > > Just try the option 'oneshot' > > > The documentation about complet

Re: [android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Mark Murphy
Alexey Volovoy wrote: > With eris behavior is like this - if i download app from the market > everything is fine. User reported he turned device off and then he > turn it back on, app seems to "lost" some images. For example launch > icon changed to the random image ( which was supplied with the ap

[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread sdphil
i think what this boils down to, is that you need to build everything with 2.0 SDK, and then just make sure you're not using any APIs from versions you don't want. And you will want to abstract away calls you don't have using reflection. Simply doing something like "if (version >= 2.0) then makeS

[android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Alexey Volovoy
Hi all, i'll have more info tomorrow, once i'll have this device again, but i was shown very weird stuff today. We've updated app with hi-res graphics for the Droid ( only drawables ) around 4 days ago . Resources organized res drawable drawable-hdpi-v6 App was tested in working fine on devices dr

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
Jason Proctor wrote: > (sorry if this is obvious) > > if you have a hard reference to a class in another class, then the > classloader will (try to) load that one too. > > instead, use a factory to construct classes *by name* which implement > an interface that describes the OS dependent stuff.

[android-developers] Re: Android in China - What is going on?

2009-11-17 Thread shimsim
As you mentioned siuying, its the sync services that are getting blocked. westmeadboy, that is why everything else works fine, but if you need to collect gmail or download a market app or sign in to your account again, its not going to work. Whilst I am opposed to China blocking facebook, twitter

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Jason Proctor
(sorry if this is obvious) if you have a hard reference to a class in another class, then the classloader will (try to) load that one too. instead, use a factory to construct classes *by name* which implement an interface that describes the OS dependent stuff. this breaks the loader class chai

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
On Tue, Nov 17, 2009 at 4:55 PM, todd wrote: > In > our case our bg service only watches a particular directory waiting > for new files to be added. It's not *running*, it's waiting. Users go > off and kill our app then wonder why it doesn't work any more. > Are you saying you have a Service alw

[android-developers] Re: dmtracedump reports version error

2009-11-17 Thread James Wang
fadden, Thank you for your reply. I have been using ddms->VM Heap to monitor memory usage but I think it is useless. There is no much valuable information there. I doubt Google put such useless tool in tab. Maybe is my shallow! I wonder whether some people can tell me more about the usage of VM H

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread todd
Personally I would like to see this API go away. I'm finding we now have to code around task killing applications, which shouldn't be the case. Being a good Android citizen and following the rules, allowing the OS to do the work it was designed to do is the way to go. Users are confused when the ap

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Nic Strong
I think isolating the 2.0 calls to a separate class will work, but in away this will become almost as unwieldy as the reflection method (although I guessing will have some performance benefit over reflection). Please post what you find from your experiments. Thanks again, Nic On Wed, Nov 18, 2009

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
Nic Strong wrote: > I see your point. I am not a java expert but I am guessing there maybe > some conditions where the class loader my try to load the missing class > even though the code is not going to be called? I don't know the granularity of the classloading. Certainly if you mix Android 2.0

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Nic Strong
I have tried on a 1.6 emulator and device. But not a 1.5 emulator. I see your point. I am not a java expert but I am guessing there maybe some conditions where the class loader my try to load the missing class even though the code is not going to be called? For now I will stick with reflection. B

[android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread davemac
Have you looked into using a tag in your HTML? - dave On Nov 17, 6:27 pm, Mark Murphy wrote: > Jeremy Logan wrote: > > I actually just realized that mistake and tried it the way you > > suggested. No change. > > H...the only times I've used file:///android_asset has been for > single-file c

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Ok that works, thanks! On Nov 17, 3:53 pm, "nEx.Software" wrote: > This is what I do... > > HttpClient HTTPClient = new DefaultHttpClient(); > HttpConnectionParams.setSoTimeout(HTTPClient.getParams(), 15000); > HttpConnectionParams.setConnectionTimeout(HTTPClient.getParams(), > 15000); > > On Nov

[android-developers] SurfaceView transparency question

2009-11-17 Thread narkis
Problem is basic: If you can not/do not want to have your canvas instantly filled with renderings that your drawing thread drew - you are asked to draw a background everytime and "paint over" the previously drawn pixels on the canvas - just check out the Lunar Lander sample - LunarView > "doDraw(Ca

[android-developers] Re: HTC Hero Contacts ACTION_INSERT intent returns no result

2009-11-17 Thread jak.
I've come up with a work around for use on the HTC HERO, for getting the URI for a newly created contact after the ACTION_INSERT intent returns. Basically I just do a query on the Contacts.People table and return a URI with the newest id if the intent result returns RESULT_OK. code: //---

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
2.0 includes a UI showing you which -services- are running and the resources they are using. This is what you really care about, not whatever random processes are being kept around by the system in case it needs them later. (Fwiw, the worst that can happen is a bad app sits there spinning the CPU

[android-developers] list scroll question

2009-11-17 Thread Andrei
I have ListView in activity First activity starts another activity On return i from another activity i want to scroll listview to some position with setSelectionFromTop It does not work if i do it in onRestart or onActivityResult If i minimize and maximaze first Activity it scrolls to the right

Re: [android-developers] Re: Multitouch support in Android 2.0

2009-11-17 Thread Dianne Hackborn
Sorry I probably should not have written the document that way. The event flow will be: 1. ACTION_DOWN 2. 0 or more ACTION_POINTER_DOWN / ACTION_POINTER_UP as additional fingers go down and up. 3. ACTION_UP The final up may not be for the same finger as the original down, depending on how finger

Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Dan Sherman
Just do it within those 325 characters, and hope you don't have anything more important to say :) On Tue, Nov 17, 2009 at 6:12 PM, Paul Turchenko wrote: > I'm pretty sure we, as a developers, can warn users and explain why we > need certain permissions and assure him that we will not abuse them.

Re: [android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread Mark Murphy
Jeremy Logan wrote: > I actually just realized that mistake and tried it the way you > suggested. No change. H...the only times I've used file:///android_asset has been for single-file content; the only times I've used relative URLs were for content downloaded to the device... Other than swit

[android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread Jeremy Logan
I actually just realized that mistake and tried it the way you suggested. No change. Jeremy On Nov 17, 2:55 pm, Mark Murphy wrote: > Jeremy Logan wrote: > > I have a WebView that I'm using to display some html/image files > > stored in the assets/ directory. I'm able to have the WebView load and

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Paul Turchenko
I'm pretty sure we, as a developers, can warn users and explain why we need certain permissions and assure him that we will not abuse them. On Nov 17, 3:30 am, Jason Van Anden wrote: > On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software > > wrote: > > If I don't believe an application should require I

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Protuhj
In the future -- please search the forum first before posting a new topic... I asked the same question last week: http://groups.google.com/group/android-developers/browse_thread/thread/d2540d7972a0a9a1/33d71e7efede7f65#33d71e7efede7f65 It will help to be able to find solutions in one place. On No

Re: [android-developers] Re: ZXING Barcode Scanner

2009-11-17 Thread Jose Gomez
Thank YOU!!! Sincerely Jose C Gomez http://www.josecgomez.com On Tue, Nov 17, 2009 at 4:38 PM, nEx.Software wrote: > Copy > > > http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java > > and > > > http://code.google

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
Nic wrote: > We are upgrading our application to add 2.0 support. I have read > http://developer.android.com/guide/appendix/api-levels.html and the > older blog post > http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html. > I want to avoid using reflection if poss

Re: [android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread Mark Murphy
Moritzz wrote: > I'd like my application to get informed whenever an > application is started! You can't, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are

Re: [android-developers] WebView not loading Assets correctly... help?

2009-11-17 Thread Mark Murphy
Jeremy Logan wrote: > I have a WebView that I'm using to display some html/image files > stored in the assets/ directory. I'm able to have the WebView load and > html page fine with: > > mWebView.loadUrl("file:///android_asset/ContentRoot/SubDir/ > file.html"); > > or > > String data = inputStre

[android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread Moritzz
Nothing is wrong with the Android logger but it doesn't help with my problem. I'd like my application to get informed whenever an application is started! On 17 Nov., 23:01, PJ wrote: > What's wrong with using the Android builtin > logger?http://developer.android.com/reference/android/util/Log.ht

[android-developers] WebView not loading Assets corr ectly… help?

2009-11-17 Thread Jeremy Logan
I have a WebView that I'm using to display some html/image files stored in the assets/ directory. I'm able to have the WebView load and html page fine with: mWebView.loadUrl("file:///android_asset/ContentRoot/SubDir/ file.html"); or String data = inputStreamToString(getAssets().open("ContentRoot

[android-developers] Targeting multiple OS versions

2009-11-17 Thread Nic
We are upgrading our application to add 2.0 support. I have read http://developer.android.com/guide/appendix/api-levels.html and the older blog post http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html. I want to avoid using reflection if possible. I have found t

[android-developers] Re: Multitouch support in Android 2.0

2009-11-17 Thread PJ
> In fact, there isn't really a "primary" pointer. Well, the documentation for ACTION_POINTER_DOWN says that this applies to "non-primary pointers", which implies that there really *is* a "primary" pointer. So, I was just trying to explain why sometimes the pointers were generating ACTION_DOWN, a

[android-developers] Re: Dallas Android Developers

2009-11-17 Thread PJ
Everyone that is interested in joining the "Dallas Android Developers" group... We now have our own mailing list, so please use that to join! http://groups.google.com/group/dallas-android-developers Also, please use this mailing list to discuss everything related to this group, including fun topic

[android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread PJ
What's wrong with using the Android builtin logger? http://developer.android.com/reference/android/util/Log.html It's easy, just do stuff like: Log.d("TAG", "Your debug log message goes here."); Log.w("TAG", "Your warning message goes here."); Just be sure to turn off logging and debugging before

[android-developers] Re: Get info from mp3 file

2009-11-17 Thread PJ
Environment.getExternalStorageDirectory() will give you a Java File object to the directory of your sdcard: http://developer.android.com/reference/android/os/Environment.html Once you can access your mp3 file, extracting mp3 tag info is not an Android-specific issue, so you're probably better off

[android-developers] Re: How does Android build background?

2009-11-17 Thread Mike Collins
I'm having the opposite problem. Setting the background of a row in my list view it makes the row tall enough to hold the image completely. I tried getting the background resource (a PNG) and setting the gravity to center and that didn't help. tia, mike -- You received this message because

[android-developers] Issue creating shared preferences file in 2.0

2009-11-17 Thread cvance383
Trying to create shared preferences for my class representing my api and one for my main class. I create a shared preference file by making this call in my api & main classes String PREF_NAME = "API"; this.pref = context.getSharedPreferences( PREF_NAME, Context.MODE_PRIVATE ); the log gives me t

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Ken Adair
That could be. If that is the case, I'd love to hear why. Doesn't seem like it would be problematic or a security issue to provide such access. Hopefully, we can get an official answer here soon. On Nov 17, 1:48 pm, Rachel Blackman wrote: > On Nov 17, 2009, at 10:41 AM, nEx.Software wrote: > > >

[android-developers] Re: ZXING Barcode Scanner

2009-11-17 Thread nEx.Software
Copy http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java and http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentResult.java into your source code,

[android-developers] Re: sqlite in webview

2009-11-17 Thread mayor
I got it working with help from Joe over at PhoneGap. 1. import android.webkit.WebStorage 2. then throw these in your WebSettings: settings.setDatabaseEnabled(true); settings.setDatabasePath("/data/data/com.package.name/ databases"); 3. in your WebChromeClient you'll need to ove

[android-developers] ZXING Barcode Scanner

2009-11-17 Thread Jose Gomez
Hello All, I am writing an application that needs the ability to scan barcodes. I know that the ZXING Library can be used for this but I can't find a resource only that has a tutorial on how to use this library in your app. I want to be able to install my app and if the ZXING library isn't install

[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread Kai
I have the same question. 1.5 compiler is having problem with the new layout directories that I need for 1.6 and 2.0 how can I support 1.5, 1.6 and 2.0 at the same time? On Nov 3, 9:50 pm, sdphil wrote: > i need my app to support1.5and above. > > i noticed that if I create my build.xml file usi

[android-developers] Re: Copy protection bug statuses

2009-11-17 Thread Matt Hall
I would also love to hear anyone's experience on 1.5+ handsets. What I would really love though is a definitive answer from Google on this issue. I don't know why this can't be addressed officially, we're not asking for secret information to be revealed here - we have to know these kinds of things

[android-developers] Latest hot movies

2009-11-17 Thread Google
To Latest hot movies visti www.pakbs.110mb.com [1] Links: -- [1] www.pakbs.110mb.com -- 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 gro

[android-developers] Re: Samsung Moment (SPH-M900) - Application crashing

2009-11-17 Thread Don
Hi Niko, Thanlk you for the reply. In the particular activity that is crashing, the following classes along with some sqlite database stuff are used: import java.text.SimpleDateFormat; import java.util.Calendar; import android.app.AlertDialog; import android.app.DatePickerDialog; import android.ap

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Cédric Berger
On Fri, Oct 16, 2009 at 00:07, Dianne Hackborn wrote: > If you kill the process, it will not impact the alarms, the same as it won't > impact notifications etc. > > What these programs are doing is using the API that is tended to force stop > -everything- about the application: stop all services,

[android-developers] Re: http client connect timeout

2009-11-17 Thread nEx.Software
This is what I do... HttpClient HTTPClient = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(HTTPClient.getParams(), 15000); HttpConnectionParams.setConnectionTimeout(HTTPClient.getParams(), 15000); On Nov 17, 1:46 pm, Mark Wyszomierski wrote: > Jonas, could you post your whole examp

[android-developers] media button B/R accuring twice and service not stopping

2009-11-17 Thread Paul Townsend
Hi I got a a MEDIA_BUTTON receiver but when I press it, it appears to broadcast twice when I press the button once. Now because the emulator doesn't have the headset button and I have to use USB debugging to use it on my phone I cant use the debugger and it is making it a pain to find out what's ha

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Jonas, could you post your whole example? I'm on 1.5, same issue, the timeout never kicks in. Thanks On Nov 2, 8:45 am, Jonas Alves wrote: > It does work fine here. > > My target is 1.5. What's yours? > > On Nov 1, 3:28 pm, Andrei wrote: > > > > > Thank you > > > Firstly your code sets read/wri

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread stanlick
Both Wow! and over-the-top. Now I am excited. This pattern/technique was lifted from a distinguished Android pro's recent textbook. So does the wow imply there is a better way to accomplish the mission? I think I considered the contact PICK Intent, but I need to allow the user to select multipl

[android-developers] Re: dmtracedump reports version error

2009-11-17 Thread fadden
On Nov 17, 2:57 am, James Wang wrote: > when I used dmtracedump to analyze traces.txt which generated by OOM, > I got below error: dmtracedump is used for analyzing method-based profiling traces. For heap profiling, you want something like "jhat". See: http://developer.android.com/guide/devel

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread nEx.Software
"And as we've said repeatedly for everything, if you use private APIs you will break in the future, so that shouldn't be a surprise." You can also get your name on my handy dandy androidhallofshame website for using private APIs. :) On Nov 17, 1:31 pm, Dianne Hackborn wrote: > On Fri, Nov 6, 200

[android-developers] Re: DefaultUncaughtExceptionHandler - earliest opportunity to set?

2009-11-17 Thread fadden
On Nov 17, 9:17 am, westmeadboy wrote: > When is a safe time to set the default UncaughtExceptionHandler? It will be set by the Android app framework before your application starts. > In the implementation I assume its important to call through to > whatever the system default is? Yes, unless y

Re: [android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread Dianne Hackborn
On Fri, Nov 6, 2009 at 6:31 PM, Ravi wrote: > Now 2.0 Breaks every thing. > Wow that's pretty over-the-top. The original contacts API still works, as long as you weren't using private parts of it, and only for the primary Google account. So it still gives you the same functionality (the new fe

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread strazzere
On Nov 17, 3:24 pm, Guy Cole wrote: > So let them find another app.  That isn't the point. > > The point is that some people don't work for free. > > I have already decided not to create any new "stand alone" applications for > Android.  Only services, which effectively reduces Android to a clie

Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Guy Cole
So let them find another app. That isn't the point. The point is that some people don't work for free. I have already decided not to create any new "stand alone" applications for Android. Only services, which effectively reduces Android to a client. On Tue, Nov 17, 2009 at 12:11 PM, Kaj Bjurma

[android-developers] Re: Pass Data Between Activities: HashMap of WeakReferences to Objects

2009-11-17 Thread jotobjects
The suggestion that you quoted is to use a counter or timestamp that you are sure is unique. In general hashCode() is not a unique key so your code is probably not what you want to do. The suggestion in the FAQ is kind of odd really. The referenced object could be cleared at any point by GC, eve

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread stanlick
Hey Dmitri -- I have a question regarding the legacy apps only having access to the "primary" account. I am writing an application that interfaces with contacts and started on it before 2.0 was released. I am developing with a Motorola CLIQ running 1.5 and my app works fine. Today, I purchased

[android-developers] Re: Samsung Moment (SPH-M900) - Application crashing

2009-11-17 Thread niko20
I do remember seeing a post yesterday where someone that was using AudioRecord found out that on the Moment it only supports 8Khz sample rate, and he had not correctly checked for error codes in the getMinBufferSize call to AudioRecord. Are you perhaps using that API? -niko On Nov 17, 2:05 pm,

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Kaj Bjurman
I doubt that it would be as much as 10%. Most people will just try to find another app instead. On 17 Nov, 19:12, AlexK wrote: > On Nov 17, 7:14 pm, strazzere wrote: > > > On Nov 17, 10:32 am, AlexK wrote: > > > > In my case was stolen application with price $1.29 - pirates copies > > > reach

[android-developers] Samsung Moment (SPH-M900) - Application crashing

2009-11-17 Thread Don
Hi All, Has anyone had any problems with their applications crashing on the Samsung Moment? I have a customer who is reporting that my application keeps crashing at a certain stage on their Samsung Moment. The problem is I can't reproduce the crash on any of the following devices: - HTC Tattoo - H

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
On Tue, Nov 17, 2009 at 11:41 AM, jotobjects wrote: > Use Jason's solution. Also if the system kills the Process the > system will later restart the Process if it had a Service running but > it is up to the service to reset its own state. > Not when using this API, which kills -everything- abo

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
On Tue, Nov 17, 2009 at 11:36 AM, jotobjects wrote: > On Oct 15, 3:07 pm, Dianne Hackborn wrote: > > What these programs are doing is using the API that is tended to force > stop > > -everything- about the application: stop all services, cancel all alarms, > > remove all notifications, etc. Thi

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread jotobjects
On Oct 13, 8:09 pm, EboMike wrote: > Task killers aside, what about if the OS decides to stop a process > because memory is low? Say an app has an alarm set to happen in 2 > hours, and the user decides to run Google Maps for a minute. Android > might kill said app because memory runs low. Ten mi

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
That's not the purpose of this API, which is to allow the user to force stop an application right now, immediately, I don't care what the damn app wants. :} There is a UI in 2.0 for the user to explicitly stop any currently running services. On Tue, Nov 17, 2009 at 5:15 AM, Bo wrote: > I think

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread jotobjects
On Oct 15, 3:07 pm, Dianne Hackborn wrote: > What these programs are doing is using the API that is tended to force stop > -everything- about the application: stop all services, cancel all alarms, > remove all notifications, etc.  This is all working as intended, the apps > are just abusing this

[android-developers] G1 Wifi issue

2009-11-17 Thread julius
Hi, I continue to have issues with the Wifi on my G1 (running 1.6). When I hook it up to Eclipse I see the following errors when I try to connect to an access point: 11-18 08:20:10.204: ERROR/SettingsWifiLayer(6434): Config is still null, even after attempting to add it. 11-18 08:20:10.204: ERROR

Re: [android-developers] Re: Toast doesn't leave

2009-11-17 Thread Wayne Wenthin
Thats what I was thinking.I've had this happen on other apps before and could never reproduce it. I really need to get taskkiller for myself some day.[?] On Tue, Nov 17, 2009 at 10:36 AM, niko20 wrote: > I don't think the toast was your problem. It could be that something > else in the pho

Re: [android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Rachel Blackman
On Nov 17, 2009, at 10:41 AM, nEx.Software wrote: > onSignalStrengthsChanged is hidden from the SDK, unfortunately. Maybe they no longer want applications reading the signal strength, hence deprecating a public call while making the replacement private? -- You received this message because y

Re: [android-developers] Re: App Not showing up on Verizon DROID Phones

2009-11-17 Thread Hong
I heard the original Hero has the same problem with apps that has copy protection turned ON. They released a fix for Hero phones. Eris is based on Hero code base and is very likely inherited that bug. Not much you can do but hope HTC/Verizon release an OTA update soon. -- You received this messa

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread nEx.Software
onSignalStrengthsChanged is hidden from the SDK, unfortunately. On Nov 17, 11:38 am, Smelly Eddie wrote: > The documentation seems to distinguish > > onSignalStrengthChanged (deprecated) > > from > > onSignalStrengthsChanged > > note the 's' > > So which method are you using on 2.0? > > Ken Adair

Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-17 Thread Rachel Blackman
On Nov 17, 2009, at 10:21 AM, Jeff Sharkey wrote: > [ ... snip ... ] Thank you! I'll try to write up an updated FAQ this evening, with some short examples written for various queries, and post a draft. :) -- You received this message because you are subscribed to the Google Groups "Android D

  1   2   3   >