[android-developers] Re: Emulator is crashing a lot

2011-04-13 Thread mudit
I tried creating emulators for other SDK versions also. But doesn't change anything. As soon as i start my emulator, it goes not responding. On Apr 12, 3:14 am, jtoolsdev brianjto...@gmail.com wrote: The 3.0 Emulator came up fast too.  Maps my splash screen right side up but the main screen is

[android-developers] OutOfMemoryError- while to download big data and storing in db4o

2011-04-13 Thread imran ali
Hi all, in my application i have to download big data approx 20MB text and after parsing i have to save in db4o for that i have been making lots of object of classes, i am doing all thing in separate thread and after use of object immediately i am giving null vales to all objects. still after

[android-developers] In-app purchase signature verification with PHP openssl

2011-04-13 Thread Nate Totura
In an attempt to follow some of the security guidelines for in-app purchase here: http://developer.android.com/guide/market/billing/billing_best_practices.html I am trying to do signature validation on a server instead of in the app iteself. I would ideally like to use the php openssl libraries

[android-developers] Re: Emulator is crashing a lot

2011-04-13 Thread Moose
I am having a similar problem with the 3.0 emulator. What resolution did you set. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block

2011-04-13 Thread rashmi
I have tried with simple string with out giving UTF-8 format. byte[] bts = encrypted.getBytes(); byte[] decrypted = cipher.doFinal(bts); Then also it will give same error. Thanks, Rashmi On Apr 12, 6:06 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: Blind shot - String != byte[] for

Re: [android-developers] Re: Compiling Android Source

2011-04-13 Thread Moose
Deleting the gen folder in the application's directory should clear up the duplicate class errors. Not sure about the SearchManager.SOURCE though. Looks like it doesn't exist... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: (Full) NFC support for Android (on a Nexus S, specifically)

2011-04-13 Thread JMC114
Hey Joe, As I understand it, *both *MAY be available. The PN544 controller has an embedded smartcard, so there's that, and it also supports SWP (for compliant SIMs). Which is used depends on the application, applications on the smartcard would be 'linked to your phone', while applications on

[android-developers] missing last 7 or 8 bytes while writing to file from inputstream?

2011-04-13 Thread Hitendrasinh Gohil
hi, i am just writing one file from other file,but last 7 or 8 bytes are missing.i am using below code to write the file. buf= new byte[4096]; int numRead = 0; while ((numRead = is.read(buf))0) { os.write(buf, 0, numRead); } can anyone tell me what

Re: [android-developers] In-app purchase signature verification with PHP openssl

2011-04-13 Thread Nikolay Elenkov
On Wed, Apr 13, 2011 at 3:44 PM, Nate Totura ntot...@gmail.com wrote: I am trying to do signature validation on a server instead of in the app iteself. I would ideally like to use the php openssl libraries and it looks like code such as the following should work: ... My problem is that I

[android-developers] Re: is there any idea that files are only used by application those are stored on media card?

2011-04-13 Thread Yahel
For a slightly more secure implementation you could encrypt/decrypt only a small part of the mp3 files, eg the header - enough to render them unplayable by other players, that way you don't need to encrypt/decrypt the entire .mp3 file We'd be on StackOverflow I'd +1 on you big time :D These

[android-developers] Re: The Blinking Activity of Death

2011-04-13 Thread BoD
The problem is, this happens randomly, on several unrelated Activities and there are no problems 99% of the time. By the way I meant onCreate (not onStart) in my previous mail. In some of our Activities, we do lots of things in onCreate that might take too long (for instance in a few of them, we

Re: [android-developers] Re: In-app billing as a method of activating a trial feature?

2011-04-13 Thread Kostya Vasilyev
Zsolt, I filed a request for this in the market billing issue tracker yesterday: http://code.google.com/p/marketbilling/issues/detail?id=12 -- Kostya 13.04.2011 7:12, Zsolt Vasvari пишет: Well, I am not going to do that. I will just leave the feature disabled for the free version of my app.

[android-developers] Re: 3d engine advices

2011-04-13 Thread elix
Nice to hear from engine writers. As a note; The game was better than I expected to see :). On Apr 13, 3:12 am, Peter Eastman peter.east...@gmail.com wrote: Another engine to consider is Gamine (http://sourceforge.net/projects/ gamine).  I have some experience with it since, well, I wrote it.

[android-developers] Re: is there any idea that files are only used by application those are stored on media card?

2011-04-13 Thread Yahel
but can anyone tell me how can i apply drm rights to my songs. Google for these : WMDRM or AAC DRM But I'm not sure WMDRM is readable by Android. Just so you know : If your content is this valuable that you want to encrypt it with DRM(wich is flawed anyway) then be warned that this content

Re: [android-developers] Re: Supporting xlarge screens in sdk 8

2011-04-13 Thread Marcin Orlowski
On 13 April 2011 00:11, Kostya Vasilyev kmans...@gmail.com wrote: There is a compatibility check plugin written by Haris Peco available here: http://code.google.com/p/adt-addons/ Sadly it requires Eclipse 3.6. Is it now safe to update? I do not want to waste my time downgrading... Regards,

Re: [android-developers] Rounding Numbers

2011-04-13 Thread Daniel Drozdzewski
On Tue, Apr 12, 2011 at 5:55 PM, Gabriel gab...@gmail.com wrote: I have a calculator app and I want to round the number after comma. Like, if the result is 15,3 I want to keep it on 15,33 or 15,3 Does any know how to do that? Thanks, I really appreciate the help Do you simply want to

Re: [android-developers] Re: Supporting xlarge screens in sdk 8

2011-04-13 Thread Kostya Vasilyev
I've been using 3.6.1 and then 3.6.2 without any significant issues for a while now. For 3.6.1, I had to tweak a few things to avoid the infamous freezing code assist. For 3.6.2, this issue was fixed in Eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=329288 -- Kostya 13.04.2011

[android-developers] Re: In-app billing as a method of activating a trial feature?

2011-04-13 Thread Zsolt Vasvari
Wow, amazing we both thought of this at the same time Thanks! On Apr 13, 4:01 pm, Kostya Vasilyev kmans...@gmail.com wrote: Zsolt, I filed a request for this in the market billing issue tracker yesterday: http://code.google.com/p/marketbilling/issues/detail?id=12 -- Kostya

Re: [android-developers] Re: Rounding Numbers

2011-04-13 Thread Daniel Drozdzewski
On Wed, Apr 13, 2011 at 9:29 AM, Zsolt Vasvari zvasv...@gmail.com wrote: You should not use double/float when dealing with exact numbers, such as a calculator.  You need to use BigDecimal. All physical scientific calculators use floating points. There are places, where you cannot use anything

[android-developers] Re: Rounding Numbers

2011-04-13 Thread Zsolt Vasvari
You should not use double/float when dealing with exact numbers, such as a calculator. You need to use BigDecimal. On Apr 13, 2:18 am, Gabriel gab...@gmail.com wrote: I resolved it using:                 double result = //old result//                 *100                 double newresult

[android-developers] Re: Rounding Numbers

2011-04-13 Thread Zsolt Vasvari
The OP is talking about a calculator app. He should absolutely be using BigDecimals, which take care of rounding issues. I'd certainly wouldn't want to download a calculator app that's plauged by rounding errors. All physical scientific calculators use floating points. There are places, where

[android-developers] Re: Supporting xlarge screens in sdk 8

2011-04-13 Thread Zsolt Vasvari
That's what I do - bring up Project Properties every once in a while, and set Android build target to 1.6 (or whatever may be needed). But that doesn't really work, at least in my case. I conditionally use features from API Levels 4, all the way to 11. Setting the compiler to build against

Re: [android-developers] Re: In-app billing as a method of activating a trial feature?

2011-04-13 Thread Kostya Vasilyev
http://groups.google.com/group/android-developers/msg/6f3e495456642443 Amazing it would be if they actually implemented it. There is hope though, this request for a subscription model was Accepted: http://code.google.com/p/marketbilling/issues/detail?id=3 -- Kostya 13.04.2011 12:31, Zsolt

Re: [android-developers] Re: Rounding Numbers

2011-04-13 Thread Daniel Drozdzewski
Zsolt, I hear what you are saying and generally agree, however we have been using calculations 'plagued by rounding errors' for centuries and our bridges are not collapsing. Such is a nature of a calculator, even scientific one. there is a reason, why Math Java API or even Apache Commons Maths

Re: [android-developers] Re: Supporting xlarge screens in sdk 8

2011-04-13 Thread Marcin Orlowski
On 13 April 2011 10:36, Zsolt Vasvari zvasv...@gmail.com wrote: But that doesn't really work, at least in my case. I conditionally use features from API Levels 4, all the way to 11. Setting the compiler to build against Level 4 would cause compiler errors, which it should. This is normal,

[android-developers] Re: missing last 7 or 8 bytes while writing to file from inputstream?

2011-04-13 Thread Zsolt Vasvari
We don't know what kind of OutputStream you are using, but my guess is that you need to flush() it. On Apr 13, 3:25 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi, i am just writing one file from other file,but last 7 or 8 bytes are missing.i am using below code to write the

[android-developers] Re: (Full) NFC support for Android (on a Nexus S, specifically)

2011-04-13 Thread joe.scheidegger
Hi JMC, I agree with you. I hope that Android will support the SE on the SIM. So the user can have all the personal infos(billing, ticketing, etc) on the SIM and when he changes the phone he can take the infos to the new phone or when he loses the phone the operator can block the SIM. Cheers,

Re: [android-developers] Re: Supporting xlarge screens in sdk 8

2011-04-13 Thread Kostya Vasilyev
13.04.2011 13:06, Marcin Orlowski пишет: This is normal, unfortunately. If you use something from API 11, building against 4 will throw errors as such method/constant etc simply does not exist in API 4. That's why I said you shall build against highest API you use features of due to that.

[android-developers] Re: help for encryption of sd card storage?

2011-04-13 Thread Kacee
I have a similar situation, where my application stores some file on SDCARD and dont want anyone else to be able to see the contents or use the file. Encryption is one solution. However I was thinking if there is any way to restrict file permission on SDCARD. Since the file is created by my

[android-developers] Android List View and database data

2011-04-13 Thread Ian Menzies
Hey guys, I want to create a list view to display 1 image and a couple of strings and this data is coming from a MySQL database. Im a bit confused on how to do this and would really appreciate somebody telling me whats required to do this through explanation or a tutorial online or a tiny bit of

[android-developers] Display indeterminate progressbar in Status bar on Android

2011-04-13 Thread Akshay Goel
Hello, I am trying to display an animated graphic identical to the indeterminate progress bar (not the horizontal one, but the circular one) in the status bar while my on-going notification is alive. I tried to find the resource ID corresponding to the indeterminate progress bar, but found that

Re: [android-developers] Image not displaying from MySQL database

2011-04-13 Thread Ian Menzies
Yeah, The Paintingpic is the field that I wish to decode. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Hello Michael, I tried this with the intend filter. I am not getting my app triggered. somehow it is still landing on the Tags app. and I am not able to de.install the tags app. do you have a working source which can just detect a tag and show up the ID of the tag.. a Mifare classic one perhaps..?

[android-developers] Re: how to display all checked items from multiple choice listview

2011-04-13 Thread win
thank you so much for your reply ^_^ after many days..i managed to change my code but i still couldn't manage to get the button works..i still don't know how to do it..i'm not so clear with your explaination..its kind of hard for me to imagine it with the codes..(i'm still a beginner.. i'm so

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Hi Michael, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start Scanning. In which case, the scanning of the tag must be triggered after that button press. Once a tag is scanned, then it must get the ID of the tag back to the activity

Re: [android-developers] Re: help for encryption of sd card storage?

2011-04-13 Thread Kostya Vasilyev
The memory card uses FAT32, which does not support Unix-style owner and permission info. -- Kostya 13.04.2011 13:35, Kacee пишет: Encryption is one solution. However I was thinking if there is any way to restrict file permission on SDCARD. Since the file is created by my application, which

[android-developers] Perform device detection check after reboot

2011-04-13 Thread raki
Hello, I want to check if the status of all the devices in my Android tablet are the same after reboot. I have achieved reboot functionality using Monkeyrunner through Jython script. But how can I achieve the device detection functionality? Appreciate any help. Thanks and best regards, Rakesh

[android-developers] restart device from code

2011-04-13 Thread Károly Holczhauser
Hi there! Is there any chance to restart the hole device from code ?! Thanks: Károly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

Re: [android-developers] restart device from code

2011-04-13 Thread Jonas Petersson
On 2011-04-13 13:12, Károly Holczhauser wrote: Is there any chance to restart the hole device from code ?! Try this: new AlertDialog.Builder(this) .setMessage(Dear user, could you please restart?) .show(); Anything else would be a bad idea even if it was possible.

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread lbendlin
by calling setItemChecked() you are updating the UI, the data destination. What if someone at the same time changes the data at the source? Then your UI is out of sync with your data storage. Treat the UI as a one way system - it should only render a representation of your data model, but

[android-developers] Re: Writing Version-Specific Code

2011-04-13 Thread lbendlin
Here is an example for a custom audio manager that supports ducking (or not) package com.pocketgpsworld.cameralert; import android.content.Context; import android.media.AudioManager; import android.media.AudioManager.OnAudioFocusChangeListener; import android.os.Build; public abstract

[android-developers] Re: Writing Version-Specific Code

2011-04-13 Thread lbendlin
Here's an example of a custom audiomanager that supports ducking, but only for the newer OS versions package xyz; import android.content.Context; import android.media.AudioManager; import android.media.AudioManager.OnAudioFocusChangeListener; import android.os.Build; public abstract

[android-developers] Returning to previous screen after receiver activity.

2011-04-13 Thread arnoldl
Hello ... I have a app that has a activity that can be started from the start menu and a activity that is strated by a intent receiver. Now on boot , if the receiver is called , the activity is started...after backing out of this activity user returns to previous screen (could be home or

Re: [android-developers] Image not displaying from MySQL database

2011-04-13 Thread lbendlin
during debugging, have you confirmed that bit.length has the desired value? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] ImageView

2011-04-13 Thread b_t
Hi, I can't find it out how to use ImageView to get what I want: - fill parent vertically - maintain the original aspect ratio So the imageview should change its width. Thank you, T. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Re: MiFare Classic detection

2011-04-13 Thread Zaid Siryani
I have created an RFID Message on my phone how can i read it on my PC am using acr122 On Wed, Apr 13, 2011 at 1:37 PM, androidom saviodom...@yahoo.com wrote: Hi Michael, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start

Re: [android-developers] Re: MiFare Classic detection

2011-04-13 Thread Michael Roland
Hallo Domnic, could you show the complete AndroidManifest? And are you sure that your tag is MIFARE Classic? br Michael On 13.04.2011 12:29 androidom wrote: Hello Michael, I tried this with the intend filter. I am not getting my app triggered. somehow it is still landing on the Tags app.

Re: [android-developers] Re: MiFare Classic detection

2011-04-13 Thread Michael Roland
Hallo, Just another question, I would like to start scanning for a tag inside an activity on press of a button say - Start Scanning. In which case, the scanning of the tag must be triggered after that button press. Once a tag is scanned, then it must get the ID of the tag back to the

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Hi Zaid, You would have to use the RFID reader and get the data over to your pc over the serial or usb port. you can use java for that. either Global or Open platform. Java Card could be a good starting point.. look for examples using Nokia NFC 6212 classic. This form is about reading using

Re: [android-developers] Re: help for encryption of sd card storage?

2011-04-13 Thread Kostya Vasilyev
13.04.2011 15:49, Kacee пишет: I agree , Sdcard has FAT32. But since , android linux kernel accesses FAT32 to create file on it, isnt there any way to supply more information (like permissions) along with creating a file command ? I checked this post but cudnt get how to do it or even if it is

Re: [android-developers] Re: Writing Version-Specific Code

2011-04-13 Thread Mark Murphy
On Tue, Apr 12, 2011 at 11:12 PM, Jake Colman col...@ppllc.com wrote: Can you provide an example? https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC https://github.com/commonsguy/cw-android/tree/master/Prefs/FragmentsBC

[android-developers] Re: help for encryption of sd card storage?

2011-04-13 Thread Kacee
I agree , Sdcard has FAT32. But since , android linux kernel accesses FAT32 to create file on it, isnt there any way to supply more information (like permissions) along with creating a file command ? I checked this post but cudnt get how to do it or even if it is of any use.

[android-developers] GLSurfaceView + Android 2.3.x = EGL_BAD_ALLOC

2011-04-13 Thread Mario Zechner
Hi, i got some reports from users of our framework that opening/closing an OpenGL ES based app would force close with an EGL_BAD_ALLOC after ~20-30 open/close cycles on an Android 2.3 device. To eliminate any problems related to our framework i wrote the simplest GLSurfaceView based app i could

Re: [android-developers] restart device from code

2011-04-13 Thread Marcin Orlowski
2011/4/13 Károly Holczhauser holczhau...@gmail.com Hi there! Is there any chance to restart the hole device from code ?! No (unless you got root). What you need that for? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray*

[android-developers] Re: 3d engine advices

2011-04-13 Thread Mario Zechner
The overhead introduced by Interfaceing GL10/GL11 and GL20 is neglible i'd say. Sadly, there's no work around for that, i'd have prefered a static method solution if at all possible, but so is live. In real- world scenarios that overhead does not have an noticeable impact on your performance,

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Dear Michael, My Manifest is like this ?xml version=1.0 encoding=UTF-8? manifest android:versionCode=1 android:versionName=1.0 package=com.benya.storm.android.ticketing xmlns:android=http:// schemas.android.com/apk/res/android uses-sdk android:minSdkVersion=9 / application

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread harsh chandel
write the setitemchecked method withinin oncreate method. On Apr 13, 9:56 am, Akshay Goel xpectro...@gmail.com wrote: But I am manipulating the data by calling setItemChecked(). When I said updating the UI, I meant updating data that results in refreshing/ changing the UI. Thanks, Akshay

[android-developers] Re: GLSurfaceView + Android 2.3.x = EGL_BAD_ALLOC

2011-04-13 Thread Mario Zechner
Forgot to add: the problem does not appear on Android 2.3 (tested on Hero 1.5, Droid 2.1.1, HTC Desire HD 2.2.2). On 13 Apr., 14:31, Mario Zechner badlogicga...@gmail.com wrote: Hi, i got some reports from users of our framework that opening/closing an OpenGL ES based app would force close

Re: [android-developers] Re: MiFare Classic detection

2011-04-13 Thread Michael Roland
Hallo Domnic, Strange, the manifest looks good to me. uses-sdk android:minSdkVersion=9 / Your phone is Android 2.3.3 (i.e. API version 10, right?). Otherwise, the TECH_DETECTED intent is not available. activity android:name=verifytagscanact

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Looks like this would work only on 2.3.3 and above.. and not 2.3.1 ..! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Nope the phone is 2.3.1 level 9.. I am afraid as you said it would work.. I need to flash ver 3 I think.. can we do the upgrade using windows platform..? any suggestions..perhaps..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Best way to convert iPhone 3-D game code to run on Android devices?

2011-04-13 Thread harsh chandel
you have to move to java On Apr 13, 10:55 am, Atul Prakash atul.prakas...@gmail.com wrote: Dear Friends, I need to convert our existing iPhone 3-D action game code to run on Android. Recently, I have developed 2-D game on Android platform and now I am moving towards 3-D. These days I am

[android-developers] How to receive SDP from 200 OK in SIP in responce to INVITE

2011-04-13 Thread vikram jain
Hi I am sending Invite message with SDP. I intend to receive the 200OK which has some SDP description. Can you please guide me which API method will help me to receive it. Is it [ onCallEstablished (SipSessionhttp://developer.android.com/reference/android/net/sip/SipSession.htmlsession, String

Re: [android-developers] restart device from code

2011-04-13 Thread TreKing
2011/4/13 Károly Holczhauser holczhau...@gmail.com Is there any chance to restart the hole device from code ?! A restart is not going to fix a hole in your device =P - TreKing

[android-developers] Re: MiFare Classic detection

2011-04-13 Thread androidom
Nope the phone is 2.3.1 level 9.. I am afraid as you said it would work.. I need to flash ver 3 I think.. can we do the upgrade using windows platform..? any suggestions..perhaps..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] MapView - infowindow

2011-04-13 Thread TreKing
On Tue, Apr 12, 2011 at 3:49 PM, Richard Sámela feromak...@gmail.comwrote: please give me some advice or link me to some tutorial. Google Android Map Tutorial - TreKing

Re: [android-developers] restart device from code

2011-04-13 Thread Rogério de Souza Moraes
Hi, here with a bug in my program I could force the Android to restart, but I do not recommend this way. 2011/4/13 TreKing treking...@gmail.com 2011/4/13 Károly Holczhauser holczhau...@gmail.com Is there any chance to restart the hole device from code ?! A restart is not going to fix a

[android-developers] Help needed from someone with a Nexus S 2.3.2 system

2011-04-13 Thread Zsolt Vasvari
My app is crashing on that phone, but I only have the 2.3.1 emulator and a 2.3.3 Nexus One. If somebody could spend a couple of minutes and try my app on his 2.3.2 system, I would be greatful. Please e-mail me directly. zvasv...@gmail.com Thanks! -- You received this message because you are

[android-developers] Eclipse/ADT not rebuilding correctly

2011-04-13 Thread Jake Basile
I started noticing this problem about two weeks ago, but it's hard to nail down. I would change something in my code, wait for eclipse to finish building, deploy to my emulator or device, and proceed to step on the new code. I'd see no change and would then check my logs to see what happened:

[android-developers] Stop GPS request after pop last activity

2011-04-13 Thread Ashish Raut
Hi All, I have used GPS in my application, add GPS request for notification at run time multiple times, but i have query how to Stop GPS request when pop a last activity(On application close). I have used function gpsLocationListener.stop(); it's working in my prev. app. But in current

Re: [android-developers] Help needed from someone with a Nexus S 2.3.2 system

2011-04-13 Thread Mark Murphy
Note that at least some Nexus S's are on 2.3.3. Mine, for example. On Wed, Apr 13, 2011 at 9:34 AM, Zsolt Vasvari zvasv...@gmail.com wrote: My app is crashing on that phone, but I only have the 2.3.1 emulator and a 2.3.3 Nexus One. If somebody could spend a couple of minutes and try my app on

Re: [android-developers] Help needed from someone with a Nexus S 2.3.2 system

2011-04-13 Thread Jake Basile
By now most Nexus Ses (how do you pluralize that?) are going to be on 2.3.3. They do have an unlocked loader, so you can downgrade to 2.3.2. I don't know how off the top of my head, but I'm sure xda-developers has some thread on it. -- You received this message because you are subscribed to

[android-developers] What is the x y origin value of Touch/click on app screen?

2011-04-13 Thread henry
When I develop a app, I click at the up-left corner, I got x=0 y=59 or something. How do I determine the y value? There are two rows above my Touchable screen in my app: 1 first line/row is a tool/status bar which I don't know how to access it 2. next line is my app name like Hello World. I think

[android-developers] when activity loads first time onscroll method is called?

2011-04-13 Thread Hitendrasinh Gohil
hi, I am displaying listview within activity.and for list view i am loading data from server on scroll event. like public void onScroll(AbsListView view, int firstVisible, int visibleCount, int totalCount) { boolean loadMore = /* maybe add a padding */

[android-developers] EditText Issue

2011-04-13 Thread Bobbie
Hello all. I am running a DROID with Android 2.2.2 on it. I have a project I've been working on for a while, a chat client. However, this one is a specific type. I need to make it so the user can not move the cursor to any part of the text, so it has to stay at the end of the text they are

[android-developers] Re: OutOfMemoryError- while to download big data and storing in db4o

2011-04-13 Thread Streets Of Boston
My first answer would be: use less memory by chopping up the large text file in chunks. My second answer is this: Apart from setting null values to your (temporary) objects, try to call System.gc() as well. It *may* improve your situation somewhat, since Android's (DalvikVM's) garbage

[android-developers] Re: Best way to convert iPhone 3-D game code to run on Android devices?

2011-04-13 Thread Streets Of Boston
No, you don't *have to* move to Java. I would suggest staying on the NDK (using the NDK's opengl libs) for a high performing 3D game. -- 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: Stop GPS request after pop last activity

2011-04-13 Thread lbendlin
you need to keep references to all the listener requests. You can then use these references in the removeUpdates call. Don't forget the MyLocationOverlay!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] problem creating sqllite dabase

2011-04-13 Thread David Tabernero
Hi, I cant create SQLLite Database, gives me an FC: 4-13 16:20:48.225: INFO/ActivityManager(67): Start proc com.es.tele for activity com.es.tele/.tele: pid=490 uid=10034 gids={3003, 1015} 04-13 16:20:51.305: DEBUG/AndroidRuntime(490): Shutting down VM 04-13 16:20:51.314: WARN/dalvikvm(490):

[android-developers] Re: java.lang.NullPointerException

2011-04-13 Thread lbendlin
E/MyVideoAppView( 1829): \0x09at com.johnwei.android. MyVideoApp.MyVideoAppView.surfaceCreated(MyVideoAppView.java:66) Line 66 maybe? -- 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: problem creating sqllite dabase

2011-04-13 Thread lbendlin
at com.es.tele.tele.init(tele.java:77) What's at line 77? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] restart device from code

2011-04-13 Thread Marcin Orlowski
2011/4/13 Rogério de Souza Moraes rogerio.so...@gmail.com here with a bug in my program I could force the Android to restart, but I do not recommend this way. You say you found a bug when executed in your code causes the whole device to reboot? Regards, Marcin Orlowski *Tray Agenda

Re: [android-developers] problem creating sqllite dabase

2011-04-13 Thread Kostya Vasilyev
Android Activity / Service / etc. objects aren't fully operational until onCreate. Move these two lines inside onCreate. -- Kostya 13.04.2011 18:28, David Tabernero пишет: base baseDatos = new base(this,programacion,null,1); SQLiteDatabase db = baseDatos.getWritableDatabase(); -- Kostya

[android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread Streets Of Boston
It may have to do with the initialization of the database during the construction of your TabActivity: base baseDatos = new base(this,programacion,null,1); SQLiteDatabase db = baseDatos.getWritableDatabase(); These fields are assigned during the construction of your TabActivity. Move

Re: [android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread Kostya Vasilyev
13.04.2011 18:32, lbendlin ?: at com.es.tele.tele.init(tele.java:77) What's at line 77? The default no-arguments constructor generated by the compiler :) More interesting is line 100 in ContextWrapper.java, one line up in the stack dump. @Override public Context

Re: [android-developers] Re: 3d engine advices

2011-04-13 Thread Leigh McRae
Make a source directory for the the following package that provides all the interfaces. javax.microedition.khronos.opengles.GL.java javax.microedition.khronos.opengles.GL10.java javax.microedition.khronos.opengles.GL10Ext.java javax.microedition.khronos.opengles.GL11.java

[android-developers] Rarely getting ActivityNotFoundException?

2011-04-13 Thread Abhilash baddam
Hi, In my app rarely it's showing ActivityNotFoundException even i have mentioned all Activities in my manifest file. The app running properly sometimes only its showing that error...? What may be the reason? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Help needed from someone with a Nexus S 2.3.2 system

2011-04-13 Thread Zsolt Vasvari
Thanks, guys. It wasn't a 2.3.2 issue, so I don't need the help any more. Thanks! On Apr 13, 9:48 pm, Jake Basile jakerbas...@gmail.com wrote: By now most Nexus Ses (how do you pluralize that?) are going to be on 2.3.3. They do have an unlocked loader, so you can downgrade to 2.3.2. I don't

[android-developers] Re: PNG quality in WebView based app

2011-04-13 Thread Jake Basile
I am running into a very similar problem (see my post at https://groups.google.com/forum/#!topic/android-developers/el37eByuVb8/discussion), and I was wondering if you could post any details about your workaround? How did you split up the image, what size tiles did you use, etc? Did it

Re: [android-developers] Rarely getting ActivityNotFoundException?

2011-04-13 Thread Marcin Orlowski
In my app rarely it's showing ActivityNotFoundException even i have mentioned all Activities in my manifest file. The app running properly sometimes only its showing that error...? What may be the reason? Show the stack trace where the event occurs. You may want to catch exception

[android-developers] How to receive SDP from 200 OK in SIP in responce to INVITE

2011-04-13 Thread Scott
Hi I am sending Invite message with SDP. I intend to receive the 200OK which has some SDP description. Can you please guide me which API method will help me to receive it. Is it [ onCallEstablished (SipSession session, String sessionDescription) ] method of android.net.sip.SipSession.Listener,

[android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread ABSOLUT
Many thanks, Yes! I had the initialization during the construction and no in my TabActivity, so doen't works. One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? Thanks and sorry for my english! -- You received

[android-developers] Re: Bluetooth Walkie Talkie

2011-04-13 Thread Aditya Singal
Is it possible to get the code for an audio call using bluetooth headset? That may be helpful. That may help me to figure out how to send continuous streams of data. On Apr 6, 11:03 pm, Kristopher Micinski krismicin...@gmail.com wrote: You'll have to connect the phones right, and then send a

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-04-13 Thread Fox Mulder
Hi If you tried your URL from the emulator this is normal, I just have a try and got the same result. 04-13 17:49:58.547: INFO/StagefrightPlayer(33): setDataSource('httplive://wealthtv.apple-vod-geo.adaptive.level3.net/ sample/samsung/sample4/playlist.m3u8') 04-13 17:49:58.707:

[android-developers] Re: Android List View and database data

2011-04-13 Thread Mohit Sharma
Check the android API example,there is one activity which shows and image and some data in list view.There r many tutorial on the internet for displaying the data from database. On Apr 13, 3:19 am, Ian Menzies bumde...@gmail.com wrote: Hey guys, I want to create a list view to display 1 image

[android-developers] First insert didn't work when I using SQLiteDatabase.insert method.

2011-04-13 Thread Gustavo Costa
In my app I inserted a row since a button in main screen and recover this row in a Service process. But, when I clicked in the button that execute the SQLiteDatabase.insert, the first insert didn't worked. Immediately after I tried insert the row, I can recover the row, but when I tried recover

Re: [android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread Kostya Vasilyev
13.04.2011 19:44, ABSOLUT пишет: One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? class MyActivity { // Declare the variables in the class, outside any method // This way they are accessible to all methods in

[android-developers] Can we create UI component in a seperate XML file and load it

2011-04-13 Thread usher
So I have created this activity, and setContentView() with mail.xml layout file. Now I want to add some textView dynamically into this screen. I already have these text view defined in a seperate xml file named view.xml. How can I instantiate these textview components and add them into screen? I

[android-developers] Re: In-app purchase signature verification with PHP openssl

2011-04-13 Thread Nate Totura
On Apr 13, 12:27 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Apr 13, 2011 at 3:44 PM, Nate Totura ntot...@gmail.com wrote: I am trying to do signature validation on a server instead of in the app iteself. I would ideally like to use the php openssl libraries and it looks

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread Akshay Goel
OnCreate of what? The dialog? I want to uncheck the item as soon as the user checks All, without dismissing the dialog. Thanks, Akshay On Apr 13, 5:44 pm, harsh chandel harshdchan...@gmail.com wrote: write the setitemchecked method withinin oncreate method. On Apr 13, 9:56 am, Akshay Goel

  1   2   3   >