[android-developers] question on reading from socket in android ...

2010-01-18 Thread Antonio Si
Hi, I have a background thread in my android client which sends a request to a server using a socket and then tries to read the data back from the socket. The data sending part works fine, but when I try to read from the inputStream of the socket, I am getting a EOFException. Any suggestions or

[android-developers] Re: TableLayout will not draw new row addition

2010-01-18 Thread Conny
I guess I am missing the UI thread funda's right ? Please correct me.. Siddharth On Jan 17, 1:54 pm, MCON Dev mcon...@gmail.com wrote: I have  TableLayout defined in the main.xml. Simple, 1 header row and 1 data row. TableLayout android:id=@+id/*reportsTable*                    

[android-developers] how can i make any service running when the phone is switched on just after the booting.

2010-01-18 Thread Manoj
Hi , Can anybody tell about the Broadcast Receiver in android to make make my service to run when the the phone just finishes the booting. -- 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] How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Andre
Hello to all developers! First I want to say that I have read many articles on this subject in this forum and on some external resources(very helpful was Robert Green's diary at www.rbgrn.net and www.droidnova.com). However, despite all of this I want to start topic regarding FPS, and ask for

[android-developers] Re: ACTION_POWER_CONNECTED broadcast receiver not working

2010-01-18 Thread fhucho
Any idea what I could try? On Jan 18, 12:29 am, fhucho fhu...@gmail.com wrote: Hi, I want to do something after the the phone is put into charger. So I created ChargingOnReciever: public class ChargingOnReceiver extends BroadcastReceiver {         public void onReceive(Context context,

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Christine
What I said is that you _can_ specify that a user sees only the one relevant version of your app in the mp. The mp _does_ read minsdkversion and maxsdkversion. On Jan 17, 11:14 pm, Kevin Duffey andjar...@gmail.com wrote: Man..now that sucks. That is a bug if you ask me.. the market should NOT

[android-developers] Re: READ_SMS permissions not working

2010-01-18 Thread draf...@gmail.com
Hi Moneytoo, Is there a way to monitor changes in the outbox through an official API? I need to be able to listen out for an sms message beinging sent and be able to deal with that through my own application. However I have been researching the official API and I cant find anything that will

[android-developers] libstagefright on Android 2.0 source tree

2010-01-18 Thread HC
I fould this library libstagefright on android source tree (under / framework/base/media/). It seems could do http streaming download and play, but I dont know how to invoke it by mediaplayer. Does anybody try it? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: JDBC Driver for SQLiteDatabase

2010-01-18 Thread kristianlm
Hi folks, I guess we've concluded that the built-in JDBC for Android should not be used (even though it's there). Those of you who still want to use JDBC on Android can check out the JDBC driver I started myself for precisely this reason: http://code.google.com/p/sqldroid/ It's a relatively

[android-developers] Re: JSON string to Bean

2010-01-18 Thread Bert
You are always welcome to post. Thanks in advance On Jan 15, 7:34 pm, Brion Emde brione2...@gmail.com wrote: A JSONObject basically is a bean. It's a pretty sophisticated Map. I do similar stuff to you, but I don't fool with Beans. I encapsulated my web service as a content provider. It

[android-developers] Re: how can i make any service running when the phone is switched on just after the booting.

2010-01-18 Thread Nithin
Create a receiver like this in manifest and in receiver, start the service receiver android:name=.MyReceiver intent-filter action android:name=android.intent.ACTION_BOOT_COMPLETED / /intent-filter /receiver Nithin On Jan 18, 2:00 pm, Manoj

Re: [android-developers] how can i make any service running when the phone is switched on just after the booting.

2010-01-18 Thread Mark Murphy
Hi , Can anybody tell about the Broadcast Receiver in android to make make my service to run when the the phone just finishes the booting. First, please reconsider this plan: http://www.androidguys.com/2009/12/07/code-pollution-boot-time-services/ If you still need it, the general technique

Re: [android-developers] Porting android on a AT91SAM9G20 with 64MByte of RAM and 8MByte dataflash memory

2010-01-18 Thread Sunny Aujla
Hi SebFox, Looking at the spec of your board it should be just about ok. I have a similar spec board but in my case i am using a OMAP 2430 processor. I have got the android kernel working on my device. Regards, Sunny On Sun, Jan 17, 2010 at 6:44 PM, SebFox sebastien.philip...@gmail.comwrote:

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Marc Reichelt
Hi Andre, you should definitely read the Designing for Performance document from: http://developer.android.com/guide/practices/design/performance.html I think you might speed up your onDraw() method a little bit this way, though I think you might not reach more than 30 or 35 FPS. At first you

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Christine
I agree with Mark that older apps, like 1.6 apps, run happily on newer sdks. Most apps can do without the newer features, if you accept that sometimes you have to do more work, or the feature you build is slightly less attractive. Or, you can have a Factory class that returns the right version

[android-developers] Getting hold of a resource using generated string

2010-01-18 Thread Ray Benjamin
Ok, here's the problem. I have a layout file with 25 ImageButtons in in laid out in a 5x5 grid. During my application setup, I need to go through and add onClick and onLongClick handlers to each button and add the buttons to a local array. The problem is, I don't want to explicitly name every

[android-developers] Re: question on reading from socket in android ...

2010-01-18 Thread Marc Reichelt
Hi Antonio, it would be much easier if you would provide a small piece of example code. Otherwise we can only guess what your problem is. Regards Marc Reichelt || http://www.marcreichelt.de/ On 18 Jan., 09:16, Antonio Si antonio...@gmail.com wrote: Hi, I have a background thread in my

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread skink
On Jan 18, 10:16 am, Andre andranik.abra...@gmail.com wrote: From this output I can assume, that my main problem here is draw game stuff wich includes:   - draw 1 spaceship   - draw 5 asteroids   - draw from 1 to 30 bullets in drawAsteroids() i would assign GameEntity asteroid =

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Andre
Hello Marc, thanks for quick reply. I have read this document very carefully, though this is not my production code, I try to use some principles described there (local variables instead of class fields). Especially in those methods where I have loop: drawAsteroids, drawBullets, updateAsteroids,

[android-developers] Re: Finding if softkeyboard is visible in landscape mode

2010-01-18 Thread aniket ray
On Fri, Jan 15, 2010 at 6:09 PM, aniket ray aniket@gmail.com wrote: Hi, I wanted a way to find out whether a softkeyboard is visible at any given time. If I set the windowSoftInputMode property to adjustResize,  I receive resize events in the portrait mode (onSizeChanged gets called).

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Andre
Hello skink, thanks for advice I agree, my array manipulations is not quite well. And I think you right about getters too...(this is one of the key principles in designing for performance document), I don't yet replace them with members, just becouse my updatePhysics is take ~1ms to execute...

[android-developers] How to handle Async service + screen orientation change

2010-01-18 Thread Josep
I have a service that performs http operations and then notifies an activity with the result. The result is normally data but it can also be a success/error notification. e.g. this is one of the operations of the service: logon(String user, String pwd, ILogonListener callback) It works ok most

Re: [android-developers] Getting hold of a resource using generated string

2010-01-18 Thread Mark Murphy
Try Resources#getIdentifier(). Ok, here's the problem. I have a layout file with 25 ImageButtons in in laid out in a 5x5 grid. During my application setup, I need to go through and add onClick and onLongClick handlers to each button and add the buttons to a local array. The problem is, I

[android-developers] Re: how can i make any service running when the phone is switched on just after the booting.

2010-01-18 Thread Manoj
Is this the write code to start any service on bootup public class SmsIntentReceiver extends BroadcastReceiver { @Override public void onReceive(Context ctx, Intent intent) { ctx.startService(new Intent(ctx, SMSSchedulerService.class)); } } manifest

[android-developers] Re: Porting android on a AT91SAM9G20 with 64MByte of RAM and 8MByte dataflash memory

2010-01-18 Thread SebFox
HI Sunny, Thanks for your reply. How many RAM and Flash do you dispose to run Android? It is same as mine ? Have you got a datasheet link of your board OMAP 2430? Thanks SebFox -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread skink
On Jan 18, 1:01 pm, Andre andranik.abra...@gmail.com wrote: Hello skink, thanks for advice I agree, my array manipulations is not quite well. And I think you right about getters too...(this is one of the key principles in designing for performance document), I don't yet replace them with

Re: [android-developers] how can i make any service running when the phone is switched on just after the booting.

2010-01-18 Thread Rogério de Souza Moraes
Hi, I have an example of code bellow: private class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {

[android-developers] Re: How to navigate from one page to another?

2010-01-18 Thread Sam Dutton
Just to reiterate what TreKing says: you *could* build your app using just a ViewFlipper, but I think you're kicking against the platform if you try to avoid multiple Activities, and you may wind up reinventing a lot of Activity features -- especially as your app gets more complex than what you

[android-developers] Re: first frame of a video file

2010-01-18 Thread Daniel
I want to get this on 1.5, so i cannot use MediaStore.Video.Thumbnails. Any hint is greatly appreciated. On Jan 18, 9:43 am, Daniel danil...@gmail.com wrote: Can anybody help me with getting the first frame of a video file taken with the camera? -- You received this message because you are

[android-developers] Get name of current ring tone

2010-01-18 Thread Boozel
Hi i'm using the following method to set a ringtone public void setRingTone(Context context){ try { Log.d(LOG_TAG,setRingTone()); String filepath =/sdcard/schoolbell.mp3;

[android-developers] Re: Modal dialog

2010-01-18 Thread ls02
Yes, I read Android docs about dialogs. However, this still does not answer my trivial questions. I also do not want to block UI thread. Blocking UI thread means you block message pump and UI becomes unresponsive. What I want is to call the function from UI thread that would popup the dialog and

[android-developers] Re: Modal dialog

2010-01-18 Thread skink
On Jan 18, 1:52 pm, ls02 agal...@audible.com wrote: Yes, I read Android docs about dialogs. However, this still does not answer my trivial questions. I also do not want to block UI thread. Blocking UI thread means you block message pump and UI becomes unresponsive. What I want is to call the

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Andre
Yes, now I can do following: private void drawAsteroids(Canvas canvas) { GameEntity[] asteroids = mAsteroids; GameEntity asteroid; for(int i = 0; i MAX_ASTEROIDS; i++) { asteroid = asteroids[i]; if(asteroid.isAlive()) { canvas.setMatrix(null);

[android-developers] Upgrading code to 2.1

2010-01-18 Thread Albert
Hi there, I have a widget which I developed using the 1.5 SDK, I am now looking to make the necessary changes to make it work on 2.1. I have read the docs regarding this and I have set my manifest as uses-sdk android:minSdkVersion=3 / so that it can be used from 3 upwards. What is unclear to me

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread skink
On Jan 18, 2:03 pm, Andre andranik.abra...@gmail.com wrote: Yes, now I can do following: private void drawAsteroids(Canvas canvas) {     GameEntity[] asteroids = mAsteroids;     GameEntity asteroid;     for(int i = 0; i MAX_ASTEROIDS; i++) {         asteroid = asteroids[i];        

RE: [android-developers] rtsp error (Youtube's rtsp stream)

2010-01-18 Thread 李淼
i think something wrong about your code not about server.do you write buffer yourself? bro by th way wherer are you from Date: Sun, 17 Jan 2010 22:16:53 -0800 Subject: [android-developers] rtsp error (Youtube's rtsp stream) From: tsai.sta...@gmail.com To: android-developers@googlegroups.com

[android-developers] unix domain socket : permission denied issue

2010-01-18 Thread Gopi$h
hi, I have an Command Line Interface application. This application is dependent on a shared library in which it creates a unix domain socket. This is succesful scenario. but if i call the same Shared Library from the Android UI, it gives the following error.. Create_Unix_Domain_Socket |

[android-developers] Effectively using MediaPlayer and saving resources...

2010-01-18 Thread Breezy
I'm writing a program for my toddler and I'm running into a problem. I call mediaplayer numerous times. Each time a button is clicked it runs media player, but it's a different sound. So should I create a new instance each time? Here's what I'm looking at...

[android-developers] Getting a TextView to span the length of the screen

2010-01-18 Thread Breezy
I've a textview I want to span almost the length of the screen, then 2 buttons at the bottom. Right now I'm using a relative layout with a textview and two buttons and I can almost get it the way I want but the only thing is the textview isn't as long as I want it. I want it to be as long as

[android-developers] Re: JSON string to Bean

2010-01-18 Thread Brion Emde
I don't have this in a public repository, so pardon the large post. This cursor handles JSONObjects of two types: Page and Item. A Page holds some page information and a JSONArray of Items and Item is a single item. --- package com.eyebrowsoftware.gobeering; import java.util.HashMap; import

[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-18 Thread schwiz
there may be a better way but I start with a large text size and run a loop checking if the paint.measurestring getwidth and decrement text size each time. On Jan 18, 7:39 am, Breezy mbre...@gmail.com wrote: I've a textview I want to span almost the length of the screen, then 2 buttons at the

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Andre
Let me clarify... Lets look at two methods: - updateAsteroidsPhysics() - drawAsteroids(Canvas canvas) They both use getters instead of members, and asteroids[i] instead of asteroid variable, the only difference between them, that drawAsteroids (Canvas canvas) is also use canvas calls, and I

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread skink
On Jan 18, 2:49 pm, Andre andranik.abra...@gmail.com wrote: Let me clarify... Lets look at two methods:   - updateAsteroidsPhysics()   - drawAsteroids(Canvas canvas) They both use getters instead of members, and asteroids[i] instead of asteroid variable, the only difference between them,

[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-18 Thread Breezy
I'm close to that now... I'm running a large text size to get the height where I want it, but it's not exact and I want this to work on multiple handsets. On Jan 18, 7:44 am, schwiz sch...@gmail.com wrote: there may be a better way but I start with a large text size and run a loop checking if

[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-18 Thread Brion Emde
This appears to work, at least in Eclipse: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout

[android-developers] Re: horizentally center aligned

2010-01-18 Thread NoraBora
I guess this is because of the LinearLayout's android:layout_width=fill_parent. If width is fill_parent, it can't be horizontally centered. You can see that if you give background color to the LinearLayout. Try android:layout_width=wrap_content. Or change LinearLayout's

[android-developers] How Does HttpURLConnection work

2010-01-18 Thread And-Rider
Hi All, I need to send asynchronous calls to the server. During network connection this works fine. How ever if i disable my LAN from Network connections android will through a socket exception after the specified timeout for that particular call. Now the issue that i face is the time out happens

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread And-Rider
Just to be more clear why is the timeout not happening in a Asynchronous manner...? Why is it waiting for the first call to timeout before proceeding to the next call though i am opening two connections in two different threads...? -- You received this message because you are subscribed to the

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread theSmith
I believe that maxsdkversion has already been or is in the process of being depreciated, meaning the market no longer looks at that tag in the manifest. Which makes sense because if the OS updated to a newer version but not all the apps did, they would dissapear in the market to that user,

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread JP
Interesting... My recommendation here would be not to agonize over this and rather use NetworkInfo http://developer.android.com/reference/android/net/NetworkInfo.html to determine connectivity status and not create those threads in the first place during periods where no network connection exists.

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP
Hmm, I've toyed with that a while back, and as far as I remember, the app won't even launch, and crash with a class-not-found exception (makes somewhat sense). AFAIK, you cannot slide in dummy classes in Android's namespace work around that either. Or did I miss something? On Jan 18, 2:48 am,

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread And-Rider
Thanks for your reply. I do check for network connectivity before making a call. But the case i am referring to is if there is a Wifi network available but the Wifi does not have an internet connectivity. In that case the network connectivity check would fail. It will show as if we have an

[android-developers] Using permissions

2010-01-18 Thread ColletJb
Hi, I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can somebody explain me ? About the Permissions, it is possible to set four levels (Normal, Dangerous, Signature and SignatureOrSystem) The documentation is here :

[android-developers] End of fling within Gallery

2010-01-18 Thread Vince
Hi everyone, I'd like to implement a Gallery subclass that acts like the SlowAdapter sample, i.e. that loads the content of visible views once fling is over. While ListView is provided with OnScrollListener, which does the trick, I can't find such a simple solution for Gallery. At the moment,

[android-developers] End of fling within Gallery

2010-01-18 Thread Vince
Hi everyone, I'd like to implement a Gallery subclass that acts like the SlowAdapter sample, i.e. that loads the content of visible views once fling is over. While ListView is provided with OnScrollListener, which does the trick, I can't find such a simple solution for Gallery. At the moment,

[android-developers] Re: End of fling within Gallery

2010-01-18 Thread Vince
Okay. I think I got setCallbackDuringFling wrong. I will try again ;-) -- 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] Getting hold of a resource using generated string

2010-01-18 Thread TreKing
Alternatively, you could just create and set up these 25 buttons in code. for (int i = 0; i R.attr.GRID_SIZE; ++i) { for (int j = 0; j R.attr.GRID_SIZE; ++j) { ImageButton button = new ImageButton(this); setupButton(button,i,j);

[android-developers] Nexus One - Geocoder causes IOException - works perfectly with other devices and emulator

2010-01-18 Thread Stefan Klumpp
The code below works perfectly for real devices running on 1.5, 1.6 and 2.0 as well as the emulator running on 2.1. However, executing it on the Nexus One (running 2.1) raises an IOException: java.io.IOException: Unable to parse response from server at

[android-developers] App Died Signal 11

2010-01-18 Thread Iroid
Hello Everyone, I am developing one application which fetches the list of data/images from the server and shows on to the device. When I change the orientation, press Back button after doing it for 4-5 times app gets crashed. I am handling orientation change within activity itself

Re: [android-developers] Re: Modal dialog

2010-01-18 Thread swapnil kamble
I have solved this problem by a synch point between two thread i.e. using CountDownLatch On Mon, Jan 18, 2010 at 6:32 PM, skink psk...@gmail.com wrote: On Jan 18, 1:52 pm, ls02 agal...@audible.com wrote: Yes, I read Android docs about dialogs. However, this still does not answer my

[android-developers] Re: Using permissions

2010-01-18 Thread Brion Emde
I think that what it is trying to say is that your application may not receive the permissions that it is requesting. On Jan 18, 8:43 am, ColletJb collet...@gmail.com wrote: Hi, I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can

Re: [android-developers] Getting hold of a resource using generated string

2010-01-18 Thread Ray Benjamin
Thank you. I knew there had to be a way. Mark Murphy wrote: Try Resources#getIdentifier(). Ok, here's the problem. I have a layout file with 25 ImageButtons in in laid out in a 5x5 grid. During my application setup, I need to go through and add onClick and onLongClick handlers to each

[android-developers] Re: Modal dialog

2010-01-18 Thread guiha...@gmail.com
Hi, Can you post your solution? It will help others (like me :-)) thx guich -- 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: App Died Signal 11

2010-01-18 Thread guiha...@gmail.com
I just got this problem and found the answer. See this: http://osdir.com/ml/AndroidDevelopers/2009-04/msg03665.html and follow the steps commented with Works fine, but it will be better if Google make the Stack tool public. regards guich -- You received this message because you are

Re: [android-developers] Re: Modal dialog

2010-01-18 Thread Frank Weiss
I think I understand the issue, but I'm puzzled why you can't simply refactor your code to the Android API. Here's an example. Activity.myMethod() { { block A } ret = showModalDialog(); // they way you expect it to work if (ret == 1) { { block B } } This can be refactored to:

[android-developers] Google Add-On Maps for 1.5 and higher

2010-01-18 Thread MarcoAndroid
Hello, Can anybody clarify what is and isn't supported in which version of the SDK regarding the Google API add-on regarding Maps? When I look here http://code.google.com/intl/nl-NL/android/add-ons/google-apis/reference/index.html Maps is only available since level 4 (1.6). But in the hello

[android-developers] Re: App Died Signal 11

2010-01-18 Thread Iroid
Thanks for quick reply. It is helpful, but I do not have the build enviornment. I am working with SDK only. Could you please help me with SDK how can we figure out? Thanks once again On Jan 18, 12:19 pm, guiha...@gmail.com guiha...@gmail.com wrote: I just got this problem and found the answer.

Re: [android-developers] Google Add-On Maps for 1.5 and higher

2010-01-18 Thread Dianne Hackborn
Maps has been around since 1.0. However it is not part of the platform, it is a separate extension library that Google supplies to vendors who want to include it (which is why you need uses-library in your manifest). In the original documentation it was documented more closely with the platform,

Re: [android-developers] Using permissions

2010-01-18 Thread Dianne Hackborn
It means the UI behavior could change in the future. On Mon, Jan 18, 2010 at 7:43 AM, ColletJb collet...@gmail.com wrote: Hi, I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can somebody explain me ? About the Permissions, it is

[android-developers] Re: Modal dialog

2010-01-18 Thread ls02
Your block A abd block B are essentually two diffrent functions. It means after executing block A you need to save its state in the activity class member variables then popup the dialog which on close will call another method in the activity class that you call block B. This block B must

[android-developers] Listen to Virtual Keyboard events when within an EditText

2010-01-18 Thread mastix mc
Hi guys, this might be a pretty simple question, but I've tried several ways without finding an answer... I've set the following properties to the EditText to get the Smiley Button which is used by the MessagingApp: android:inputType=textShortMessage

[android-developers] Re: Click on Notification does not work as expected... (see screencast!):(

2010-01-18 Thread mastix mc
No ideas? I really thought that this was a simple question... Still guess that it's just a flag thing... :) On Dec 24 2009, 7:26 am, mastix mc masti...@googlemail.com wrote: Hi guys, first of all - Merry Christmas!!! I have a strange problem here and spent too many hours figuring out what

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread Robert Green
The little stuff definitely adds up and helps but when talking about such a small number of objects, I don't think it will double his FPS to fix. First of all, thanks Andre for actually posting your code so that we have some context to work with and I'm also glad to hear that you've read my dev

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Dianne Hackborn
On Mon, Jan 18, 2010 at 7:22 AM, JP joachim.pfeif...@gmail.com wrote: Hmm, I've toyed with that a while back, and as far as I remember, the app won't even launch, and crash with a class-not-found exception (makes somewhat sense). If you just do things correctly, it is fine. And correctly

[android-developers] Re: How Does HttpURLConnection work

2010-01-18 Thread JP
On Jan 18, 7:28 am, And-Rider rahulregunat...@gmail.com wrote: In that case the network connectivity check would fail. It will show as if we have an network connection but we actually don't have an internet connection. This can be the case at any point, regardless of data link. Still,

[android-developers] Re: Modal dialog

2010-01-18 Thread guiha...@gmail.com
Side note: this can be done when using only java. But if you call the blocking dialog from C, then this approach will not work. IMHO, i think that Google should have provided a way to let we make them process the events. This way, we could do (like in all other platforms): popup dialog while

[android-developers] Battery Temperature

2010-01-18 Thread Narseo Vallina
Hi, all I'm trying to obtain the battery temperature, the battery voltage and the battery current. The return value of the code (see below) for voltage and batteryTemperature is always 0 while the others work. I would like to know if there's any other way of obtaining this information and how.

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-18 Thread guiha...@gmail.com
Hi, 1. Get rid of all get/set methods. 2. Eliminate some of the System.currentTimeMillis (two consecutive calls leads to the same number) 3. Save a reference to the current object inside the array instead of accessing an array lots of times (e.g.: asteroids[i]) 4. Most important: don't call

[android-developers] Re: Click on Notification does not work as expected... (see screencast!):(

2010-01-18 Thread RNekic
If the app is not active, onNewIntent is not fired. Only onCreate will fire. On Jan 18, 1:16 pm, mastix mc masti...@googlemail.com wrote: No ideas? I really thought that this was a simple question... Still guess that it's just a flag thing... :) On Dec 24 2009, 7:26 am, mastix mc

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread Kevin Duffey
Good reply Dianne. I get pissed when I read blogs about how fragmented Android is as well. I don't get how it's fragmented. The only fragmentation that seems slightly just is the issue where individual phone vendors are providing their own special UI and extra features. I think the biggest issue

[android-developers] To the moderators: why are my messages being deleted?

2010-01-18 Thread guiha...@gmail.com
Hi, I already had about 4 messages deleted from this forum. :-( They were serious questions that i had and some moderator is simply deleting them. Now i'm unable to get help to my issues. I have an important project that must be delivered in Feb 1st and this attitude of the moderators is

Re: [android-developers] Re: Some application / market questions

2010-01-18 Thread Kevin Duffey
So can you download a pack to the SD card from a server.. and your app can then look on the SD card for packs and load them up dynamically? Your app would provide an interface, the packs would implement it, you could dynamically instantiate them like plugins, based on that interface

[android-developers] Re: Scaling icons on MapActivity with zoom

2010-01-18 Thread Kevin Duffey
So it looks like I may have to manually (programatically) listen for zoom events and scale the images myself... or has anyone been able to get their overlay icons to scale in size with zoom? On Tue, Jan 12, 2010 at 1:00 AM, Kevin Duffey andjar...@gmail.com wrote: Hey all, I been messing

[android-developers] Re: Google Add-On Maps for 1.5 and higher

2010-01-18 Thread JP
You're reading way more into these posts than there is to it. Maps has gone through some changes just like the rest of the platform, so questions migrating from version to version have been posted and answered. By and large, the API itself and therefore the code to use it hasn't changed much. Some

[android-developers] Mobile App Socialization - We Need an API

2010-01-18 Thread dadical
I've been thinking a lot lately about how to gain visibility for mobile apps. It's getting more and more difficult as an independent developer to get your application noticed among the piles of crap that are stacking up in the market. I think that we need some way to socialize our applications

[android-developers] Re: Phone calls recording on 2.0

2010-01-18 Thread appforce.org
Any updates after release of Nexus One? It's unavailable in my country, and I will appreciate a lot any first-hand information about voice recording from someone lucky to have it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: App Died Signal 11

2010-01-18 Thread guiha...@gmail.com
Ah... indeed. now i understand the problem. You're a Java developer... I think that someone could tell us how to get access to the libskia.so? If they can tell, i can get you the line numbers. Although i'm not confident that this will help. regards guich -- You received this message because

[android-developers] Re: App Died Signal 11

2010-01-18 Thread Iroid
Okay Great, I can fetch the libskia from Droid and share with you. would it work? Thanks alot for your help. On Jan 18, 2:24 pm, guiha...@gmail.com guiha...@gmail.com wrote: Ah... indeed. now i understand the problem. You're a Java developer... I think that someone could tell us how to get

[android-developers] Working in Windows 2000

2010-01-18 Thread guiha...@gmail.com
Hi, I know that Google elected Windows XP (eXtra Problems) to be the minimum operating system, but was anyone here able to run it on win2k? Being able to run the emulator OR install the native driver (to debug in the device) would be enough. I really would not like to have to buy a new computer

Re: [android-developers] To the moderators: why are my messages being deleted?

2010-01-18 Thread Urs Grob
Hi guich Are you sure that they got deleted? For example one discussion about accessing folders outside of the application folder was renamed. Maybe to give a better understanding what the discussion is about. Hi, I know that we can safely write to /data/data/app_package... however, can the

Re: [android-developers] Re: Scaling icons on MapActivity with zoom

2010-01-18 Thread TreKing
I haven't tried this at all, but I don't think this is part of the maps API and is probably that way on purpose. Given the size of the screens you'll be running on and the level of zoom you can achieve with the maps, if you scale your images proportionately so they appear the same size relative

[android-developers] Re: To the moderators: why are my messages being deleted?

2010-01-18 Thread guiha...@gmail.com
Hi, I remember that i saw the messages when i posted at home, then when i got at office, i didn't found the messages. I searched for guich (my nickname) and i didn't find the message anymore. best regards guich -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: App Died Signal 11

2010-01-18 Thread guiha...@gmail.com
Yes, you can send me it privately the file. How will you fetch the libskia from Droid? regards guich -- 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] java.util.TimerTask on android

2010-01-18 Thread richf
[hopefully this won't get posted twice. i tried posting it 3 days ago but have yet to see it on the group, so trying again...] Can I rely on Timer and TimerTask to work properly on Android? I have a background Service with a single Timer, and I schedule (possibly multiple) TimerTask's via

[android-developers] Re: java.util.TimerTask on android

2010-01-18 Thread richf
Egad, how come my post wasn't visible to me until immediately after I reposted? Sorry about that... Anyway, regarding the reply, I realize that the process and service can be killed and restarted. However, I am nearly certain that this is *not* what is happening in this case. Furthermore,

Re: [android-developers] Working in Windows 2000

2010-01-18 Thread Greg Donald
On Mon, Jan 18, 2010 at 1:30 PM, guiha...@gmail.com guiha...@gmail.com wrote: I really would not like to have to buy a new computer just because of android... since i already work with many other platforms without problems. But this is Java, it requires more horsepower than other platforms.

[android-developers] Anybody knows what the error: Error parsing keycodes w means?

2010-01-18 Thread Ambarish Malpani
I am created my own class from DialerKeyListener (which limits the number of digits entered). Whenever the dialer keyboard comes up, I get this error: Error parsing keycodes w App works fine, but why is this error showing up in my logs? Am I doing something wrong? My inheritor looks like this:

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-18 Thread JP
On Jan 18, 10:35 am, Dianne Hackborn hack...@android.com wrote: On Mon, Jan 18, 2010 at 7:22 AM, JP joachim.pfeif...@gmail.com wrote: Hmm, I've toyed with that a while back, and as far as I remember, the app won't even launch, and crash with a class-not-found exception (makes somewhat

[android-developers] Timezone changed intent action received too many times

2010-01-18 Thread ralf
One of my apps, Timeriffic, has a broadcast receiver on android.intent.action.TIMEZONE_CHANGED to recompute its alarms when the timezone changes. That works fine. The issue is that on some devices, the app receives just too many times this intent. I have logs of multiple users showing the

[android-developers] Re: Any way to go from an itermId to position in a ListView/Adapter

2010-01-18 Thread Ambarish Malpani
Isn't this a problem for other users? Ambarish On Jan 7, 3:29 pm, Ambarish Malpani ambar...@gmail.com wrote: Hi,      In a ListView/CursorAdapter, it is easy to go from a position to an itemId ((CursorAdapter)(listView.getAdapter()).getItemId(position); Is there any way to do the reverse

  1   2   >