[android-developers] Re: AsyncTask error handling

2009-07-20 Thread Streets Of Boston
Just have the AsyncTask's 'doInBackground' method return an object that contains the result of your background computation (including any possible error). myAsyncTask = new AsyncTaskMyParams,Progress,MyResult() { @Override protected MyResult doInBackground (MyParams... params) {

[android-developers] Re: Byte array from bitmap

2009-07-20 Thread Streets Of Boston
Just read the reference on developer.android.com. I'll give you a hint :-) Bitmap.getPixels( ... ) On Jul 20, 9:54 pm, Sharmila sharmcg...@gmail.com wrote: Is it possible to create a byte array from bitmap?How can I do so? Thanks, Sharmila

[android-developers] Re: Strange bug found when subtracting a float from another float, or a double from another double

2009-07-20 Thread Streets Of Boston
That depends... You can do floatNumber == 0 in many cases or floatNumber1 == floatNumber2. But you have to remember that precision-errors could be a problem. It depends on how floatNumber(1/2) has been assigned and what you're using it for. But to say 'never', that's a bit too strong. :-) On

[android-developers] Re: Use sqlite in AsyncTask freeze all

2009-07-21 Thread Streets Of Boston
It's hard to tell why this happens with your app. Try to debug it: Attach the Eclipse debugger to your process when it hangs and then pause the entire process. Then open up (expand) the threads and see where the stack-trace of each thread is currently at. This may give you a hint about why your

[android-developers] Re: Bitmap in GLSurfaceView

2009-07-21 Thread Streets Of Boston
You forgot GL_TEXTURE_WRAP_T. :=) On Jul 21, 2:30 am, kalyan simhan kalyansim...@gmail.com wrote: thanks for the reply.. but it still does not work.. the bitmap still repeats...i did this..         gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,                  

[android-developers] Re: Date.getTime() and Daylight Saving Time?

2009-07-21 Thread Streets Of Boston
Use Calendar instead for locale sensitive info (timezone, dst, etc). Code snippets: Date timeStamp = ...; ... // Get the system calendar for 'here' and set the timestamp (universal time). Calendar cal = Calendar.getInstance(); cal.setTime(timeStamp); // Get the system calendar for 'somewhere'

[android-developers] Re: SurfaceView to slow for games? OpenGL necessary to do games?

2009-07-21 Thread Streets Of Boston
Did you try to have the rendering done in a seperate thread? On Jul 21, 4:33 pm, klirr haskell...@gmail.com wrote: I use SurfaceView for my game, tried normal View first but that was to slow. Problem is, it still is. The redrawing just isn't anywhere fast enough for a game. So unless it is a

[android-developers] Re: How to use Thread with SurfaceView, ie draw in a separate thread?

2009-07-22 Thread Streets Of Boston
A seperate thread should not implement/extend SurfaceView or any other view. You still create your GameView as you had before, but you add a new class called (for example) GameRenderer. This GameRenderer will implement a Thread. The GameRenderer will execute its 'run()' method at some point.

[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-22 Thread Streets Of Boston
Same here. I have successfully removed (by asking moderators of online forums) my app from multiple forums where it could be downloaded freely, but I have not been able to keep up lately :( It's a fact of life, alas. Every piece of software is pirated. I just hope that most people think that 99

[android-developers] Re: facing problem with bitmap size.

2009-07-22 Thread Streets Of Boston
Why not make it smaller? Or load it scaled (inSampleSize 1). Your screen is only 320x480; you don't need 1000x1000. On Jul 22, 7:00 am, Y2U usman@gmail.com wrote: Hey guys, I am using bitmap image that i have to rotate on fling. its actually a circular image that will act like a spin

[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-23 Thread Streets Of Boston
This is actually one of the forums which honored my request to remove my app from offered to download. However, i see that some now post links from other sites on this forum (instead of hosting the apks on ip-forum itself) to download my, and many other, apps. On Jul 23, 12:01 am, NitroDesk

[android-developers] Download here library for reading/writing EXIF from your JPEG images

2009-07-23 Thread Streets Of Boston
Android does not provide an Exif Reader or Exif Writer in its SDK (it has a native implemenation, though, but that API is private). The Sanselan library, however, does provide a full fledged set of functionality for reading and writing Exif metadata. However, Sanselan pur sang cannot be

[android-developers] Re: Gridview loads in reverse on onConfigurationChanged

2010-02-28 Thread Streets Of Boston
= @43d0e2b8  pos = 2, v = @43d0e2b8, v.tag = 2 You can also notice I'm getting conView=null *twice* for position 0, this is also a problem i think. Any ideas? Mor. On Feb 26, 1:29 am, Bolha lucasros...@gmail.com wrote: Hi, Streets Of Boston. I haven't thought about that, maybe

[android-developers] Re: bitmap size exceeds VM budget

2010-03-02 Thread Streets Of Boston
This error message is thrown when the process' memory limit has been reached. In other words, there is no hard limit to the size of bitmap that can be constructed by the system. Most phones have a 16MByte heap-limit. Phones with larger cameras (allowing to snap pics with 5 or 8MPix) may have a

[android-developers] Re: Out of Memory resuming application

2010-03-03 Thread Streets Of Boston
constructor). My main concern is: Why if I'switch between this two views (Gamescreen and Gallery) 30 times, I have always the same amount of bitmap memory, and if I do it 2 times after pause-resume-pause-resume my memory consumption grows (driving me to a crash)? On Feb 25, 6:03 pm, Streets

[android-developers] Re: OutOfMemory with 9M free heap because of bitmaps!?

2010-03-03 Thread Streets Of Boston
Yes, you're right. The OOM exception is thrown if your process' memory would exceed 16MByte (or 24MByte on some phones). This includes non-JVM memory such as raw bitmap-data. You may have 9MByte available in the java-heap, but if your process is still holding on to almost 7MByte of bitmap- data

[android-developers] Re: Memory problem with Threads

2010-03-04 Thread Streets Of Boston
Note that your code is not synchronized and may cause problems. Your stopThread method sets blinker to null and stopThread is probably called by the UI thread. The 'run' method runs in the other thread and reads the value of 'blinker'. Since you haven't synchronized the writing and reading of

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-04 Thread Streets Of Boston
mm... my app makes use of saving and restoring instance state a lot and it works as well on the Nexus One as on the Droid or G1. But i don't use the onStop callback at all. And I don't use the onRestoreInstanceState either. Instead, i use the onRetainNonConfigurationInstance() and

[android-developers] Re: OutOfMemory with 9M free heap because of bitmaps!?

2010-03-04 Thread Streets Of Boston
...@greenrobot.de wrote: On 3 Mrz., 23:01, Streets Of Boston flyingdutc...@gmail.com wrote: Yes, you're right. I hope I am not, let's see... The OOM exception is thrown if your process' memory would exceed 16MByte (or 24MByte on some phones). This includes non-JVM memory such as raw bitmap-data

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-05 Thread Streets Of Boston
the onstart and onstop methods to coordinate their work, how come so few people have noticed that? Zuli On Mar 5, 6:00 am, Streets Of Boston flyingdutc...@gmail.com wrote: mm... my app makes use of saving and restoring instance state a lot and it works as well on theNexusOneas

[android-developers] Re: Write bitmap to data folder?

2010-03-05 Thread Streets Of Boston
Because the openFileOutput opens a file on your phone memory, not on your sd-card. Use Environment.getExternalStorage() to get to the root of your sd- card instead. (i may have mis-types the method above, but you get the idea :-)). On Mar 5, 10:01 pm, Ozymandias jor...@gmail.com wrote: I can't

[android-developers] Re: What to do about developers who publish games with the same name as what you have published...

2010-03-05 Thread Streets Of Boston
That's not good. :( Have you tried contacting the other developer? On Mar 5, 4:15 pm, greenrift jtgi...@gmail.com wrote: I have an app that was published last fall.  Recently a developer published an app with the exact same name as my app on the market. His app is very similar to mine.  He

[android-developers] Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-06 Thread Streets Of Boston
The Samsung Moment moment has a flash onboard that can be used for taking pics. But, from customers i learned that the Samsung Moment does not return anything when parameters.getSupportedFlashModes() is called. If this is a bug, what is are the android.os.Build.MODEL, android.os.Build.DEVICE and

[android-developers] Problem launching my own (camera) application on press of Camera-button (part 2)

2010-03-07 Thread Streets Of Boston
I am reviving this thread again... http://groups.google.com/group/android-developers/browse_frm/thread/6ce3f666d4a64bd5/e22a089fd7fcfb50 I have tried Marco's suggestion, but it doesn't work. It seems the broadcast is not ordered and canceling/aborting it has no effect. This causes for both my and

[android-developers] Re: Photoshop.com Mobile editor now available as an Intent

2010-03-07 Thread Streets Of Boston
Try a 'content:' Uri instead of a 'file:' Uri. On Mar 7, 9:38 am, ryan_f bluebaracu...@gmail.com wrote: I have Photoshop.com 1.1.0 (build 3) installed on my T-Mobile G1, Android 1.6 phone.  When trying to use the described intent, no application was found to handle it.

[android-developers] Re: Photoshop.com Mobile editor now available as an Intent

2010-03-07 Thread Streets Of Boston
scheme, please. =) On Mar 7, 1:45 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Try a 'content:' Uri instead of a 'file:' Uri. On Mar 7, 9:38 am, ryan_f bluebaracu...@gmail.com wrote: I have Photoshop.com 1.1.0 (build 3) installed on my T-Mobile G1, Android 1.6 phone.  When

[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-08 Thread Streets Of Boston
. On Mar 6, 11:26 pm, Streets Of Boston flyingdutc...@gmail.com wrote: The Samsung Moment moment has a flash onboard that can be used for taking pics. But, from customers i learned that the Samsung Moment does not return anything when parameters.getSupportedFlashModes() is called

[android-developers] Device Seeding Program for Top Contributors to Community Forums

2010-03-09 Thread Streets Of Boston
This is similar to the seeding program for Android Market Developers. I don't know what the criteria are to get selected for this seeding program (which forums, how many posts, etc.), but many more of us can now expect an Android device being shipped to them. Thanks Google :) -- You received

[android-developers] Question about creating a thumbnail (more than one thumbnail for one image, avoiding problems with other Gallery-like apps)

2010-03-09 Thread Streets Of Boston
Hi, When creating a thumbnail (either by a plain 'insert' or by calling MediaStore.Images.Thumbnails.getThumbnail), is is it possible to use any value for KIND, or does it *have to be* either MICRO_KIND or MINI_KIND? If it has to be one of these 2 values, can you have more than one thumbnail per

[android-developers] Re: Best practice to test what happens when my application is killed

2010-03-09 Thread Streets Of Boston
If you want to test the case when Android kills your app, just use the DDMS view (as you said) and hit the red stop/kill button. This'll kill your app's process. Then restart your app and see what happens. On Mar 9, 7:40 am, qvark joseluishuertasfernan...@gmail.com wrote: Hi, I'm having

[android-developers] Re: How to detect when android kill my process?

2010-03-09 Thread Streets Of Boston
Try to avoid subclassing the Application class. Just use static variables. Initialize them to null/0/whatever and check them in the onCreate of your activity. If these are null/0/ whatever, initialize these static variable properly and continue. But re-initializing them *won't maintain* state.

[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-09 Thread Streets Of Boston
anyone... ? On Mar 8, 10:49 am, Streets Of Boston flyingdutc...@gmail.com wrote: Bump.. sorry... Anyone knows how to control the flash on Samsung (Moment)?  I guess it's some set of name/value pairs to be set in the Camera.Parameters instance. The Camera.Parameters.get(flash-mode-values

[android-developers] Re: Android Device Seeding Program - Differences in phone for developers?

2010-03-09 Thread Streets Of Boston
@Kevin Or being a top contributor to these community forums. I'll get an Android device as well. On Mar 9, 11:18 pm, Moto medicalsou...@gmail.com wrote: I can't wait for mine!  But they said it would be random selection... Droid or Nexus One... @Kevin you would gotten an email.  Supposedly

[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-10 Thread Streets Of Boston
? On Mar 10, 1:28 am, Dianne Hackborn hack...@android.com wrote: Flash APIs we defined in 2.0, so if this is a pre-2.0 device then there is a good chance this is a feature that is not visible to applications. On Tue, Mar 9, 2010 at 8:36 PM, Streets Of Boston flyingdutc...@gmail.comwrote: anyone

[android-developers] Fail to connect to camera service error on Acer Liquid A1

2010-03-10 Thread Streets Of Boston
Hello everyone, I have gotten some stacktraces from Acer Liquid A1 phones that failed to open the camera: java.lang.RuntimeException: Fail to connect to camera service at android.hardware.Camera.native_setup(Native Method) at android.hardware.Camera.init(Camera.java:85)

[android-developers] Re: Android Nexus One Update is causing problems!

2010-03-10 Thread Streets Of Boston
I guess the 'this' value of the activity of the second onCreate is different than the 'this' value of the onDestroy after that. It looks like a new activity is created first and then the old one is destroyed. The fact that onDestroy is not called when you hit Back could be OK (when you show the

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Streets Of Boston
I don't know what determines whether you get an Android device or not. I have 600 msgs overall on this board (in the top 10) and about 150 in Android Discuss. On Mar 10, 5:53 pm, nikhil nik...@gmail.com wrote: Whats the cut? On Mar 9, 10:37 am, Streets Of Boston flyingdutc...@gmail.com wrote

[android-developers] Re: anyone know what is the @SdkConstant before the public static final String

2010-03-11 Thread Streets Of Boston
I've never seen the @SdkConstant annotation either. Maybe this drives some JavaDoc compilation? I would just ignore this annotation. On Mar 11, 10:56 pm, a a harvey.a...@gmail.com wrote: I read the code in the intent.java, there have a lot of definition like following:    

[android-developers] Re: Problem launching my own (camera) application on press of Camera-button (part 2)

2010-03-12 Thread Streets Of Boston
, Streets Of Boston flyingdutc...@gmail.com wrote: I am reviving this thread again...http://groups.google.com/group/android-developers/browse_frm/thread/6... I have tried Marco's suggestion, but it doesn't work. It seems the broadcast is not ordered and canceling/aborting it has no effect

[android-developers] Re: Problem launching my own (camera) application on press of Camera-button (part 2)

2010-03-12 Thread Streets Of Boston
Tried the above: Did not work! :( On Mar 12, 10:28 am, Streets Of Boston flyingdutc...@gmail.com wrote: I found an answer here:http://groups.google.com/group/android-beginners/browse_frm/thread/b0... Put this in your manifest: receiver android:name=.MyReceiver   intent-filter

[android-developers] Re: Asynctask threads never end!

2010-03-13 Thread Streets Of Boston
Like Mark said, AsyncTasks use a pool of threads that manages itself. An AsyncTask is NOT a thread. It uses a pool of threads to execute a task on. It is based on the FutureTasks and ExecutorService of the java.util.concurrent package. When you create a new AsyncTask, you don't create a new

[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-15 Thread Streets Of Boston
Works pretty well on my Nexus One. I get about 30 - 35 frames a second. On Mar 15, 10:25 am, Kevin S. dada...@gmail.com wrote:    I've completed my first Android application.   It as 3D demo with a physics engine.   It uses the phone's accelerometer so that you can shake the world by moving

[android-developers] Re: Android Market Problem - cannot find my free app in the market

2010-03-15 Thread Streets Of Boston
What's the name of your app (the name as it would appear on the Android Market)? On Mar 15, 10:51 am, BlackLight blacklight1...@gmail.com wrote: Hello. I've got several messages from my users that they cannot download my app. My app should be available in any market from sdk 1.5 and up, but

[android-developers] Re: Out of Memory resuming application

2010-03-16 Thread Streets Of Boston
or loadProxyBitmaps      All the load Bitmaps methods are called in the gamescreen constructor. - When do you clear out the mBitmap and mProxy caches? (in onPause, onDestroy, ...?)      I clear my bitmaps in the gamescreen onDetachedFormWindow On Mar 3, 8:26 pm, Streets Of Boston flyingdutc

[android-developers] Re: how do i get the android unique id??

2010-03-16 Thread Streets Of Boston
Do you have android-market installed on your nexus? If so, do you have a SIM in your nexus? I noticed that when i remove my SIM from my Android phone, i no longer have access to paid apps. On Mar 16, 12:01 pm, g...@devicedriven ginokur...@gmail.com wrote: the funniest part is..on the emulator

[android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-17 Thread Streets Of Boston
True and not true. If google thinks that making an XNA like framework could enhance Android's adoption and device sales enough to bring more ad-revenues/ SaaS-revenues (because more phones would be around if such a framework existed), then google could be interested in creating such framework.

[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-17 Thread Streets Of Boston
Relax, 2.1 will come to your droid starting this week. http://androidandme.com/2010/03/news/verizon-droid-does-android-2-1-this-week/ On Mar 16, 11:54 pm, Kevin Duffey andjar...@gmail.com wrote: Well if it makes you feel any better, us Moto Droid owners were supposed to have an Android

[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-18 Thread Streets Of Boston
Sorry for this bump... I have no idea where else to ask this question... On Mar 10, 7:53 am, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, But wouldn't there be a value/name pair that one can set in the Camera.Parameters instance, e.g. 'cameraParms.set(flash- mode,auto

[android-developers] Re: Functional retrieval of strings?

2010-03-19 Thread Streets Of Boston
If you want to 'dynamically' load these strings, you probably could use reflection. Some 'pseudo' code: public String somehowGetStringAnotherWay(Resources res, String stringName) { try { Field stringField = R.string.class.getField(stringName); int stringID = stringField.getInt(null);

[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-19 Thread Streets Of Boston
for it: BRAND: Samsung DEVICE: SPH-M900 MODEL: SPH-M900 VER: 3 PRODUCT: Samsung On Mar 18, 11:48 am, Streets Of Boston flyingdutc...@gmail.com wrote: Sorry for this bump... I have no idea where else to ask this question... On Mar 10, 7:53 am, Streets Of Boston flyingdutc

[android-developers] Re: My ProgressDialog suffers from ANR timeouts?

2010-03-19 Thread Streets Of Boston
You should show some code-snippets of how you show/dismiss your progress dialog and how the download is handled. Right now, there is not enough info to help you. On Mar 19, 2:31 pm, dsukhram duanesukh...@gmail.com wrote: I am downloading a 230MB database file from a server. I am displaying the

[android-developers] Re: Cannot use third party library

2010-03-21 Thread Streets Of Boston
Big chance that the JAR file needs to use some Java classes that are not part of the Android SDK. In other words, if you would compile the classes in the JAR (instead of just including it), you would have gotten compiler errors. On Mar 21, 9:39 am, ColletJb collet...@gmail.com wrote: It seems

[android-developers] Re: Problem launching my own (camera) application on press of Camera-button (part 2)

2010-03-21 Thread Streets Of Boston
I think it's un-ordered, since abortBroadcast() is called, when i debug my app, but it doesn't abort anything. Since my code is reached (i.e. no abortion by the default camera app earlier) and my app's call to abortBroadcast doesn't help (default camera still starting up), i'm assuming it's an

[android-developers] Re: Activity's Thread ID

2010-03-22 Thread Streets Of Boston
All callbacks into an Activity happen on the same thread, the main UI thread. Just call, in onCreate, the method 'Thread.currentThread().getId()' On Mar 22, 10:04 am, MobDev developm...@mobilaria.com wrote: Hi, I'd like to retrieve the Thread Priority of one or more Activity's... To do so I

[android-developers] Re: Problem launching my own (camera) application on press of Camera-button (part 2)

2010-03-22 Thread Streets Of Boston
-by management of who will get the sticky binding. Way Hard for all vs Way Easy for all, respectively. I do not know why this is not working for us.  It seems to work for Button Shortcut. tone On Mar 21, 10:32 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I think it's un-ordered

[android-developers] Re: How to create graphical/advanced menus??

2010-03-22 Thread Streets Of Boston
If it's a limited menu, just show a list of ImageButtons. Show and hide them when the user presses the menu key. On Mar 22, 11:18 am, Kofa elk...@gmail.com wrote: wow...so...should I build a menu myself? there isn't another way to create something like the menu I need?? I just need

[android-developers] Re: AIDL in multiple projects in Eclipse

2010-03-22 Thread Streets Of Boston
Yes. On Mar 22, 1:07 pm, RAJ trra...@gmail.com wrote: I am facing same problem too. I dont ahve AIDL in both projects (i have it only in my service project) Am i supposed to have same AIDL in both projects? On Mar 17, 1:58 am, Andreas andreas.bex...@gmail.com wrote: Hi, Do you set

[android-developers] Re: Cannot use third party library

2010-03-22 Thread Streets Of Boston
... I've switched to Jericho parser and the issue is now that log4j is not found (even if it is included next to jericho's jar into the build path) On 21 mar, 15:16, Streets Of Boston flyingdutc...@gmail.com wrote: Big chance that the JAR file needs to use some Java classes

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Streets Of Boston
Cache the list as a file on the phone's SD-card. Fill it up as more and more data is downloaded from the server (this does require some for of syncing, though). Then load your list from the file on the SD-card, but only partially as not to make the ArrayAdapter too large (to have too many

[android-developers] Re: In-App Purchasing and the Market Agreement

2010-03-23 Thread Streets Of Boston
I wonder how Amazon.com (Music Store/MP3 Store) interprets these rules/ contract...? You can download music from Amazon.com on your Android phone without going through Android Market for each song/album purchase. You can buy movie tickeds from the Fandango application. Movie tickets are not

[android-developers] Re: The life cycle of a static

2010-03-23 Thread Streets Of Boston
What if you just close the connection to the database in the onDestroy? If the total number of connnections reaches 0, doesn't the database eventually shut-down? On Mar 23, 7:39 am, westmeadboy westmead...@yahoo.co.uk wrote: On Mar 11, 8:38 am, westmeadboy westmead...@yahoo.co.uk wrote: In

[android-developers] Re: The life cycle of a static

2010-03-23 Thread Streets Of Boston
connection to activities, but rather to the application/VM itself. On Mar 23, 5:24 pm, Streets Of Boston flyingdutc...@gmail.com wrote: What if you just close the connection to the database in the onDestroy? If the total number of connnections reaches 0, doesn't the database eventually shut

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Streets Of Boston
I tried this on G1, N1 and Nexus one, and it works for me: final Intent intent = new Intent(com.android.camera.action.CROP); intent.setData(mImgUris[1]); intent.putExtra(noFaceDetection, false); //intent.putExtra(outputX, width); //intent.putExtra(outputY, height); //intent.putExtra(aspectX,

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Streets Of Boston
: ERROR/AndroidRuntime(222): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.camera.action.CROP ... Maybe I'm missing a required configuration somewhere else? --Paul On Tue, Mar 23, 2010 at 2:22 PM, Streets Of Boston flyingdutc

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-23 Thread Streets Of Boston
):     at android.app.Activity.startActivityForResult(Activity.java:2661) What do you think? On Tue, Mar 23, 2010 at 2:57 PM, Streets Of Boston flyingdutc...@gmail.comwrote: Did you try my example? It works fine on my Motorola Droid and many other droids i know of. On Mar 23, 5:29 pm, Paul Tongyoo paul.tong

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Streets Of Boston
23, 2010 at 8:08 PM, Streets Of Boston flyingdutc...@gmail.comwrote: ... very strange, how come it works fine on my Droid (2.0.1), on my G1 (1.6) and my Nexus One (2.1-u1)...? I just tried it on all three phones. What phone are you trying it on? On Mar 23, 6:46 pm, Paul

[android-developers] Re: Did Google really remove the ability to call the CropImage activity from Android 2.x apps?

2010-03-24 Thread Streets Of Boston
, Paul On Wed, Mar 24, 2010 at 7:26 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Note that the emulator's camera application is NOT the ones running on most actual devices. Test it on an actual device, a few of them if possible. On Mar 24, 2:35 am, Paul Tongyoo paul.tong

[android-developers] Re: how to get the camera's focal length

2010-03-24 Thread Streets Of Boston
In the SDK, you can't. There's no access to the camera's shutter-time, aperture, ISO, white- balance (you can query the white-balance type, but not the exact kelvin and such), etc. No access for reading, no access for writing. On Mar 23, 6:16 am, g k gilad.priv...@gmail.com wrote: Hello, I

[android-developers] Re: Strange problem with Runnable interface

2010-03-24 Thread Streets Of Boston
It looks like the MySurfaceView instance is created during the XML inflation of your activity. It is indeed a bit puzzling :) What does the body of the 'public void run()' method contain? On Mar 24, 1:25 pm, Floof floofy.lagayovi...@gmail.com wrote: Hi list, I'm having hard times getting my

[android-developers] Re: Android Developer Device Seeding Program - Updates?

2010-03-25 Thread Streets Of Boston
I haven't heard anything yet. I think we just need to have a little patience :-) On Mar 25, 2:10 pm, Jeremy Logan jeremy.lo...@gmail.com wrote: I (as well as many others) received an email telling us that Google would like to give us a new Android device for your contribution to the success of

[android-developers] Re: Can an app upgrade itself?

2010-03-27 Thread Streets Of Boston
You can't 'automatically' upgrade your application. It always need user approval. When installing an APK, the user will be informed of the permissions and he/she can decide to install or upgrade the application. This is a good thing. If apps could automatically upgrade themselves, without user

[android-developers] Re: Can an app upgrade itself?

2010-03-27 Thread Streets Of Boston
thinking of how you can download, say plugins to a browser for example... is that even possible or does Android's classloader hierarchy completely prevent this ability to dynamically load classes from .jar files? On Sat, Mar 27, 2010 at 8:50 AM, Streets Of Boston flyingdutc...@gmail.comwrote

[android-developers] Re: left scrollbar

2010-03-28 Thread Streets Of Boston
Dianne, In the future, is there support planned for right-to-left locales on Android? On Mar 28, 12:37 am, Dianne Hackborn hack...@android.com wrote: But why do you want to put a scroll bar on the left?  Scroll bars on Android are on the right.  Making that different just makes things

[android-developers] Re: left scrollbar

2010-03-28 Thread Streets Of Boston
Good answer! :-) On Mar 28, 7:36 pm, Romain Guy romain...@android.com wrote: Yes. On Sun, Mar 28, 2010 at 2:21 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Dianne, In the future, is there support planned for right-to-left locales on Android? On Mar 28, 12:37 am, Dianne

[android-developers] Re: Android view refresh rate (FPS)

2010-03-28 Thread Streets Of Boston
Maybe you can code your app differently. Instead of publishing your progress by your background thread (pushing progress info), your main gui-thread could instead query for the updates (pulling progress info). Save the progress of your AudioTrack's audio stream into a variable of the background

[android-developers] Re: Magic Cube from the Sample Kube

2010-03-29 Thread Streets Of Boston
It's quite a bit of work! My app is The Gube and i needed to dust of my geometry books :-) Do a search of gluUnproject in this group and you'll be able to find out quite a bit. On Mar 29, 3:19 am, CMF manf...@gmail.com wrote: Is there any one has an experience on converting the code from the

[android-developers] Re: Which version of Java is used in Android?

2010-03-29 Thread Streets Of Boston
The Android SDK in Java 1.5 (v5) compatible. On Mar 26, 8:40 pm, Poldie pol...@gmail.com wrote: I've read that Android apps use Java syntax, and not Java per se, presumably because of the Davlik VM.  I'm a Java noob, so I may not be making sense here,  but don't different versions of Java

[android-developers] Re: Is there any changes in crop image activity

2010-03-29 Thread Streets Of Boston
I second that! :) On Mar 29, 8:36 am, anton.slut...@gmail.com anton.slut...@gmail.com wrote: Sure, makes sense.  My two cents is, it seems like a whole lot of people need to grab an image from the gallery and plop a chunk of a certain size out of that image.  Ofcourse, doing that by hand is

[android-developers] Re: deleteOnExit when and how does an Android JVM exit

2010-03-29 Thread Streets Of Boston
Usually, calling System.exit() should not be done. Depending on your manifest settings of your activity, it could be that your activity is loaded into a process of another application. Calling System.exit() will kill the entire application, not just your activity. In short, don't call

[android-developers] Re: Android market - limited distribution

2010-03-29 Thread Streets Of Boston
It would be nice if the Android Market would have some form of an 'enterprise application' section, where companies can publish apps just for their employees or customers outside of the general public. I'm not aware of any such plans by Google. It is possible with the 'Unknown Sources' setting

[android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Streets Of Boston
Nope. Your emulator won't 'shake'. I'm not sure what the call to 'context.getSystemService(Context.VIBRATOR_SERVICE);' returns when there is no vibration device in the phone. But i would check the return value of this call. If this call throws an exception, put it inside a 'try - catch' block:

[android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-03-31 Thread Streets Of Boston
It is income, so you ought to report it to the IRS. The fact Google doesn't send your income-details to the IRS (and it doesn't send you a 1099), doesn't mean it's exempt from taxes... we can wish, though. And who knows, the IRS may be able to figure it out when you get an audit. And i think

[android-developers] Re: Got my free DROID, who's paying for service?

2010-04-01 Thread Streets Of Boston
It's strange that it already had been activated I received a free droid about 2 months ago (and i just received another one) and it had a one-month subscription. If the month runs out, the 'signal' indicator will still indicate that all is fine and dandy (you can still call 911), but as soon

[android-developers] Re: Setting each pixel quickly?

2010-04-01 Thread Streets Of Boston
Google this: ColorMatrix threshold Here is a link that may be useful: http://keywon.com/wiki/index.php?title=ColorMatrix Draw your bitmap (newBitmap) into a bitmap-backed canvas (c) that has a ColorMatrixColorFilter set with a ColorMatrix that represents a so- called 'threshold' filter (see

[android-developers] Re: Phantom Gingerbread update

2011-03-02 Thread Streets Of Boston
Yep, with the same results as you: The phone is still 2.2.2 and the update to 2.3.3. has not happened. -- 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

[android-developers] Re: Fast way to save images in lossless format?

2011-03-03 Thread Streets Of Boston
(Lossless) compression is not necessarily faster than writing larger files. The speed you gain by not using compression may be lost because you need to write larger files (IO is not that fast). But you could experiment and see what's faster. If you don't want to use compression at all, you

Re: [android-developers] Re: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Streets Of Boston
I don't know how your app declares your activities, if they are public to be used by any other component/app installed on the phone. Let's assume your activities are all private, then there is a way to deliver 2 apps in one APK. You could do this by creating two separate code-paths for the 2

Re: [android-developers] Re: One app, multiple APKs targeting different SDK levels would be good for adding Honeycomb functionality

2011-03-03 Thread Streets Of Boston
From that link: Oh and I believe on Market that if you put up a new version of your app with a higher minSdkVersion, the most recent older version will still be visible to older devices. That is, the .apks you upload are never deleted; a new version just supersedes an older one for the devices

[android-developers] Re: Items Randomly Shift in ListView

2011-03-03 Thread Streets Of Boston
After doing a very quick read of your code snippet, move this code: // Bind the data to the new widget from the data from given list itemView.setName(device_list.get(position).getName()); itemView.setText(device_list.get(position).getText());

[android-developers] Re: Items Randomly Shift in ListView

2011-03-03 Thread Streets Of Boston
The 'convertView' is one of the CheckBoxItemViews you created when 'convertView == null': When returning a new CheckBoxItemView, it will be used for the given 'position' and it will be re-used if the CheckBoxItemView scrolls out of sight later. When it scrolls out of sight, it can be re-used.

[android-developers] Re: @override question

2011-03-03 Thread Streets Of Boston
The @Override annotation can be used to guard against a failing override of a method. E.g. you try to override a method of a base-class but make a subtle spelling mistake or the list of input-parameter is just a little different (different signature of the sub-class' method). When you use

[android-developers] Re: ListView update problem.

2011-03-04 Thread Streets Of Boston
Just before you call this.notifyDataSetChanged(), do you modify the arrays scripVector, closeVector and changeVector? BTW: I see a LOG message that examines the count of list-view childer (aView.getChildCount()). The number of children in the list-view (aView) is not the same as the number of

[android-developers] Re: XMLSerializer problem appending

2011-03-04 Thread Streets Of Boston
You append to the file, not the the ROOT element. -- 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: Unable to use Fragmentation API with android compatibility package

2011-03-04 Thread Streets Of Boston
Have you tried copying the JAR that was download with that package into your Android project (and adding it to your Java library path)? -- 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: How to set ImageView from internal storage (or SDCard)

2011-03-04 Thread Streets Of Boston
- Get the full path to your image file on your SD-card: Environment.getExternalStorageDirectory()+directory+filename - Create a file from the above path. - Create a FileInputStream from the above path. - Use the above file input stream in the BitmapFactory.decodeStream(InputStream is) method.

[android-developers] Re: [SOLVED] Items Randomly Shift in ListView

2011-03-04 Thread Streets Of Boston
When you call 'setChecked', the OnCheckChangedListener is called. Depending on the OnCheckChangedListener's implementation, the setChecked could have some side-effects. These may be the problems you have seen. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to set ImageView from internal storage (or SDCard)

2011-03-04 Thread Streets Of Boston
BTW: There is a BitmapFactory.decodeFile(String pathName) as well... you could skip the second and third step from my post above :-) -- 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: OnTouchListener does not translate during TranslationAnimation

2011-03-14 Thread Streets Of Boston
Look up the 'Sony Ericsson Tutorials' on the market. They have a list view with complex animations of the list-items that remain clickable even when animating. They, indeed, apply transformation matrices to the touch event, if I remember correctly. -- You received this message because you are

[android-developers] Re: OnTouchListener does not translate during TranslationAnimation

2011-03-14 Thread Streets Of Boston
Forgot to mention: That tutorial comes with links to blog posts by SE engineers explaining it all. -- 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

Re: [android-developers] unable to resize a button at onCreate() method of new activity

2011-03-17 Thread Streets Of Boston
Even in *onResume*, the layout heights and widths can still be 0. Instead, you could use the *Activity.onWindowFocusChanged(boolean hasFocus)*method instead, when hasFocus==true. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

<    4   5   6   7   8   9   10   11   12   13   >