[android-developers] Re: Dalvikvm exception instantiating org.apache.http.entity.mime.content.FileBody

2012-04-15 Thread DennisG
Problem solved by using source code of httpmime module embedded into the project. I suspect that tehre is a problem converting jar library into dex code. вторник, 10 апреля 2012 г., 15:49:38 UTC+3 пользователь DennisG написал: Hi, I used to use org.apache.http.entity.mime.content.FileBody

[android-developers] Re: Search a contact using phone number

2012-04-15 Thread Ali Chousein
Atif, when you are working with contacts and your code works on the emulator but not on the device, it's usually the case that a contact entry on your phone is different than what you've thought. To elaborate, I guess you synchronized your phone with your GMail, right? In this case when you query

[android-developers] Re: Hello Everyone---a Quick question please

2012-04-15 Thread Soyer
Yes i know, it's very beginner, and i dint even expected to be the problem in my code, until i discovered it, i tried the other way with String[] t1 = str.split( ); right after posting my thread, but for some reason its still giving me the same output :S On Apr 15, 2:22 am, Justin Anderson

[android-developers] Re: Hello Everyone---a Quick question please

2012-04-15 Thread Soyer
yes i know its a very beginner question, i even dint expect to be the problem with my code, however i tried the other way String[] t1 = str.split( ); and for some reason it's still giving me the same output. On Apr 15, 2:22 am, Justin Anderson magouyaw...@gmail.com wrote: This isn't an android

Re: [android-developers] Re: Hello Everyone---a Quick question please

2012-04-15 Thread Farhan Tariq
String string = This is what i want to split; String[] tokens = string.split( ); for(int i =0;itokens.length;i++){ Log.d(TOKEN : , tokens[i]); } I think you are looking for something like this. This has nothing to do with android SDK, you should first google your questions up before you post

[android-developers] Re: Search action not working

2012-04-15 Thread Dwayne Boulden
Hi Ali, Thank you for the reply and I apologize for the delay. My wife had our third little one, so work came to a halt. Preface this with I am definitely new to this, so I offer this with a major does of humility. Please read it that way ;-) I am not trying to use web search. While I am

[android-developers] Re: Hello Everyone---a Quick question please

2012-04-15 Thread Soyer
my program it does a comparison after  splitting the lines, and  The problem is solved now, it was counting the ',' with the string which makes the comparison on and off correct, depending on the order of the strings, so if the string i want to match is in the beginning of the line then, a comma

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
The Activity just disappears. So, if I am on the home page, then I start my application, I get the first screen, then the second activity comes up, starts the remote service, and then I end up on the home page again, as the second activity ended. But, the exact same program works fine on Android

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread Farhan Tariq
Are you using 'startActivityForResult()' method in your code to start the new activity? On Sun, Apr 15, 2012 at 5:27 PM, James Black planiturth...@gmail.comwrote: The Activity just disappears. So, if I am on the home page, then I start my application, I get the first screen, then the second

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
I have it working, at the moment, by having this in my manifest: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=9 / So targeting SDK 11 or 18 leads to it to crash. And no, I just use startActivity(intent); with these flags:

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread Mark Murphy
On Sun, Apr 15, 2012 at 8:45 AM, James Black planiturth...@gmail.com wrote: I have it working, at the moment, by having this in my manifest:     uses-sdk         android:minSdkVersion=7         android:targetSdkVersion=9 / So targeting SDK 11 or 18 leads to it to crash. And no, I just use

[android-developers] How to pair and connect a device programmatically using bluetooth in Android?

2012-04-15 Thread Pawan
Hi, Well there are plenty of question already have been asked on StackOverflow about how to paired connect a remote bluetooth device with android. I have tried all the of them, haven't find any proper link or documentation regarding pairing with remote device. Also about I have tried with

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
That is the problem, with logcat there is no additional information. I have it attached to my computer through the usb connection, and am able to see all the data in logcat. That is why I decided to ask for help in how to approach it, as I am confused as to what is going on. Here is what I see

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread Mark Murphy
On Sun, Apr 15, 2012 at 9:02 AM, James Black planiturth...@gmail.com wrote: That is the problem, with logcat there is no additional information. Then it is not crashing. OK, then I see this, which may explain it: 04-15 08:50:08.682: D/CDA(5805): onBackPressed Called 04-15 08:50:08.682:

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
OK, I have tried it a couple of more times, and don't see the back button log again. This is what I see: 04-15 09:13:46.614: I/ErrandAssistantService(7015): Setting a new request for location updates 04-15 09:13:46.661: I/ErrandAssistantService(7015): saveProximityAlert - used GPS 04-15

[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-15 Thread FractalBob
On Apr 4, 11:51 am, Kostya Vasilyev kmans...@gmail.com wrote: Perhaps your base64 encoded data doesn't contain line breaks, or contains too few of them? There are none; the data stream is a single 5 MB line. Causing the readline() to try and read the entire 5 MB (or a large portion of it)

[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-15 Thread FractalBob
Yes, this is fine, until you try to convert the output to a String, which was what I needed until I took the approach I mentioned in my reply to Kostya. On Apr 5, 1:12 am, Vo Trung Liem lie...@gmail.com wrote: Follow the code may will help you. URL url = new URL(path);            

[android-developers] Declaring fragments in XML

2012-04-15 Thread Tom Opgenorth
Hello all, When adding a fragment to an XML layout file, it seems that one can use either the class attribute or the android:name attribute to declare the fragment class, i.e. both : fragment class=my.awesome.fragment / or fragment android:name=my.awesome.fragment / seem to work. Is there any

[android-developers] How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-15 Thread Narendra Singh Rathore
Hi all, I want to populate the listview (custom listview). I am doing that using - a) EditText, in which I type a word. b) Button, onClick of which sets the adapter to the list. c) SQLiteDatabase, for firing query in order to populate the list. *Note: *The query uses the text from EditText.

[android-developers] R cannot be resolved to a variable when deleting main.out.xml file

2012-04-15 Thread Ruben Royo
Hello, I had the mistake of clicking on Run on eclipse while I was on a xml file (main.xml). Eclipse created the main.out.xml file and I got a lot of problems. I deleted the main.out.xml file and cleaned the project and I still get the error that says: R cannot be resolved to a variable I

Re: [android-developers] Re: Search action not working

2012-04-15 Thread TreKing
On Sun, Apr 15, 2012 at 6:44 AM, Dwayne Boulden dwayne...@gmail.com wrote: @TreKing, I could not get debugging to work well. It kept crashing. You have to elaborate on not working well. What kept crashing? Your debugger? If anyone has a good overview to post on debugging, let me know.

[android-developers] noticed SET_ROOT_LAYER_MSG_ID called many times before native crash - SIGSEGV 11

2012-04-15 Thread stringa
Hey. I have a pure Java application written for Android and I've been investigating a native crash for the past week or so. I have noticed that this happens to my UIWebView app also when hitting the endpoint from an Android Native Browser. This crash dump is from an LG Thrill, which is android

Re: [android-developers] How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-15 Thread TreKing
On Sun, Apr 15, 2012 at 11:27 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: NumberFormatException: Unable to parse ' ' as number. What should I do in order to solve my problem? Check that what you're parsing is actually a number? Handle the exception?

[android-developers] Re: How to pair and connect a device programmatically using bluetooth in Android?

2012-04-15 Thread lbendlin
I thought the concept of pairing was created exactly to prevent stuff like that from happening. Plus, you normally only need to pair once. Why go through the effort to automate that? On Sunday, April 15, 2012 8:57:24 AM UTC-4, Pawan wrote: Hi, Well there are plenty of question already

[android-developers] Ubuntu Eclipse - Repos or Manual install?

2012-04-15 Thread Lindsay Mathieson
Ubuntu 12.04, 64 Bit Whats peoples opinions on installing eclipse on Ubuntu? Easy enough to do so from the repo (gets me Indigo) but I found that doing updates from eclipse pretty much broke my setup. Its also pretty easy to install manually so maybe thats the best way, but I don't like

Re: [android-developers] R cannot be resolved to a variable when deleting main.out.xml file

2012-04-15 Thread James Black
Have you added an import to your activity? You may want to look at this: http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error On Sun, Apr 15, 2012 at 1:34 PM, Ruben Royo rubenroyolo...@gmail.comwrote: Hello, I had the mistake of clicking on Run on eclipse while I

[android-developers] Re: Media Effect artifact

2012-04-15 Thread hmohtasham
I found out what was causing the problem: the width and height that were passed to the effect.apply() were different than the width/height of the texture at the time of creation. After fixing that I can now see some sensible output. I haven't seen the errors that I mentioned above as of the fix;

[android-developers] Re: DeviceOrientation API can't get right data from Orientation Sensor

2012-04-15 Thread dj
anyone help? On 4月13日, 下午4时02分, dj wy...@163.com wrote: hi, allDeviceOrientationAPIhas been impremented in Android 4.0. But i can't use javascript to get right data form Orientation Senor. Accelerometer Sensor and MagneticField Sensor are registered in DeviceOrientationService.java when i

[android-developers] Push notification for Android 1.6++

2012-04-15 Thread ndiiie 90
Hi all, i know that there is C2DM to support push notification for android, but it only supports 2.2++ based on this http://code.google.com/android/c2dm/ CMIIW I want to push notification supports 1.6++, is there any recommendation? Thanks -- You received this message because you are

[android-developers] Sub folders under 'layout'

2012-04-15 Thread Put_tiMe
The number of XML's in my layout folder is growing and is becoming difficult to manage. So I want to create sub folders, under layout, to better manage this. Is there any way the resource compiler can handle this? So instead of *R.layout.layout_a* I want to refer it as *

Re: [android-developers] Sub folders under 'layout'

2012-04-15 Thread Kumar Bibek
No. It's not possible. Btw, how many layouts you have now? Just curious. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Mon, Apr 16, 2012 at 9:44 AM, Put_tiMe putt...@gmail.com wrote: The number of XML's in my layout folder is growing and is

Re: [android-developers] How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-15 Thread Narendra Singh Rathore
On Mon, Apr 16, 2012 at 3:29 AM, TreKing treking...@gmail.com wrote: On Sun, Apr 15, 2012 at 11:27 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: NumberFormatException: Unable to parse ' ' as number. What should I do in order to solve my problem? Check that what you're

[android-developers] Problem while integrating Facebook in android application

2012-04-15 Thread Kamal Kambe
Hi, I'm trying to integrate facebook in my android application. I followed the guidelines provided in facebook developers page - http://developers.facebook.com/docs/mobile/android/build/ I was getting an exception while executing the following code: if (!facebook.isSessionValid()) {

[android-developers] Re: Getting a captcha-image without redownloading.

2012-04-15 Thread efi
On Apr 12, 10:54 am, Justin Anderson magouyaw...@gmail.com wrote: or maybe even find a way to OCR it Good luck with that one... Captcha's are designed to not be readable by OCR.  That would defeat the purpose. I was able to OCR this particular captcha with a simple android OCR app, but I

[android-developers] Listen to packet data receipt when Android in sleep mode

2012-04-15 Thread Heshan Perera
As stated in the answer to this (http://stackoverflow.com/questions/ 5120185/android-sleep-standby-mode) question, the CDMA and GSM radios are kept on, even after the CPU is put to sleep on an Android device. My questions are... When a call is received, what is it that wakes the CPU / phone up