[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-28 Thread Streets Of Boston
This is basically only the tools folder, but it also includes a SDK Setup.exe at the top SDK folder which calls android.bat in update mode. This should fix the lock problem. Xav On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston flyingdutc...@gmail.com wrote: I have the same issue

[android-developers] Re: Android SDK loads every time i open Eclipse

2009-10-29 Thread Streets Of Boston
Eclipse loads from a work-space (e.g. try to start eclipse up twice in a row and the second time it'll complain that the works-space is already in use). Create a different workspace that does not have Android SDK. Then start Eclipse from there. On Oct 29, 11:04 am, Teo teomina...@gmail.com

[android-developers] Re: Example Needed: a view containing a reference to its activity

2009-10-29 Thread Streets Of Boston
Or you could use the getTag and setTag methods on your view: myView.setTag(myActivity) ... myActivity = (MyActivity)someView.getTag(); ... On Oct 28, 5:08 pm, ClarkBattle clarkbat...@gmail.com wrote: Very tricky.  I like it!  Thanks. On Oct 28, 1:12 pm, RichardC

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

2009-10-30 Thread Streets Of Boston
How large is the bitmap (in pixels)? Don't make the bitmaps/pics in your resources too large. Don't make the larger than you absolutely need to (e.g. not much larger than your screen or larger than the view in which you tend to put them). On Oct 30, 6:17 am, Richard rtaylor...@googlemail.com

[android-developers] Re: Processing Pictures

2009-11-02 Thread Streets Of Boston
Few hints :) Search for ColorMatrix and ColorMatrixFilter on developer.android.com and search for ColorMatrix on Google for various ways of transforming color-images into BW. On Nov 2, 12:18 pm, polyclefsoftware dja...@gmail.com wrote: What I'd like to be able to do is take a picture with the

[android-developers] Re: Anyone know what happened to Cyrket?

2009-11-02 Thread Streets Of Boston
www.androlib.com is still up. On Nov 2, 5:50 pm, dadical keyes...@gmail.com wrote: I love, love, love that application, and have been missing it terribly since it went offline about a week ago.  Google's lack of any kind of real console for devs was made less painful by cyrket.  Anyone have

[android-developers] Re: AsyncTask and ProgressDialog

2009-11-07 Thread Streets Of Boston
Lance is absolutely right. I ran into this problem a few months ago. Possible solution: Hold a static handle to your currently active instance of your activity (works only if you have at most one active instance of your activity at any given time in your process). public class MyActivity extends

[android-developers] Re: AsyncTask and ProgressDialog

2009-11-07 Thread Streets Of Boston
to work.. The Toast popup appears twice, then the ProgressDialog just continues to run regardless On Nov 7, 5:14 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Lance is absolutely right. I ran into this problem a few months ago. Possible solution: Hold a static handle to your

[android-developers] Re: AsyncTask and ProgressDialog

2009-11-08 Thread Streets Of Boston
in onPostExecute() doesn't get executed because the phone has change orientation and it's trying to dismiss a dialog which doesn't exist. On 8 Nov, 03:52, Streets Of Boston flyingdutc...@gmail.com wrote: Show us your code that deals with showing/hiding the progress bar and show exactly what

[android-developers] Re: AsyncTask and ProgressDialog

2009-11-10 Thread Streets Of Boston
. But again to no avail, nothing I do seems to work. I've tried using the callback features whilst also implementing weak references which also doesn't work. Once I change orientation, the progressDialog never disappears, it's bugging me to hell On 8 Nov, 17:41, Streets Of Boston flyingdutc

[android-developers] Re: New Developer Distribution Agreement

2009-11-11 Thread Streets Of Boston
Chill out! :=) To me it looks like a more tight-knit version of their earlier agreement. About the 48hour: That was already happening, kind-of. I had some refunds that were about 36 hours after the sale. Am i happy with this long period, no... but it's nothing new, i think. The main changes

[android-developers] Re: How native Gallery is reading bigger images!

2009-11-11 Thread Streets Of Boston
I think the Gallery just uses BitmapFactory to read the images. But, the biggest images i've had on my phone are 2048x1539pixels (6MByte uncompressed, when using RGB_565). I've not tried to load a truly huge image. On Nov 11, 12:54 pm, gaetan.eleo...@gmail.com gaetan.eleo...@gmail.com wrote:

[android-developers] Re: Android 2.0 camera.setParameters(p) - Picture size must be 213x350?

2009-11-16 Thread Streets Of Boston
That's just in the emulator. The emulated camera only 'takes' 213x350 pixel pictures. And you need to deal with it anyway in your code, just in case you set some picture width/height that is not supported by some real Android phone. On Oct 29, 10:03 am, chrispix chris...@gmail.com wrote: I am

[android-developers] Re: Securing a paid app

2009-11-17 Thread Streets Of Boston
What would happen if someone gets a new android phone? The app's authentication will fail. You should hash/key on the user's google-account, the same key that is used by Android Market (you can download paid apps as often as you want - once you paid for them - based on your google-account) On

[android-developers] Re: fwd: get the file path from a URI instance

2009-11-17 Thread Streets Of Boston
When using openInputStream on the content-resolver, the returned input- stream is not as 'flexible' as a FileInputStream. For example, FileInputStreams can be retried if something goes wrong. The one returned by openInputStream can not. To get the fully qualified path-name to the image-file

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-21 Thread Streets Of Boston
Like some others suggested pre-process the large file, break it up in smaller chunks, each chunk being a proper JPEG Then put all the chunks in a RandomAccessFile or a database. Be sure to be able to find the chunks by a row and column index. Then put this RandomAccessFile or database on your

[android-developers] Re: OpenGL gluUnProject

2009-11-23 Thread Streets Of Boston
http://groups.google.com/group/android-developers/browse_frm/thread/9d2bf53e3a798cb6/07cfa3ee11507fc1?lnk=gstq=gluUnproject#07cfa3ee11507fc1 On Nov 22, 3:35 am, Anfernee anfernee2...@gmail.com wrote: i want to get the 3D coordinate from the android screen x,y coordinate i choose to use the

[android-developers] Re: Picture location on HTC sense phones

2009-11-23 Thread Streets Of Boston
If you do a ContentResolver.insert, instead of a MediaStore.Images.Media.insertImage, you have to provide the fully qualified path to the image-file in the ContentValues as well: // fullyQualifiedPathName is the absolute/canonical path-name to the JPEG file.

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Streets Of Boston
i've seen this too. I got around it by overriding the problematic View's onRestoreInstanceState method: public void onRestoreInstanceState(Bundle savedState) { ... ... super.onRestoreInstanceState(BaseSavedState.EMPTY_STATE); } I took a look at the android.view.View's implementation of this

[android-developers] Re: jpg images noisy on sdcard but fine in gallery, only on Android 1.6 (1.5 is fine)

2009-11-24 Thread Streets Of Boston
In your 'public void onPictureTaken(byte[] data, Camera camera)' method You have to create a BMP out of the 'data'. The 'data' is not JPEG. It is RGB data (if i'm not mistaken). Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length); Then you compress the bitmap into jpeg.

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Streets Of Boston
really advise you to not hack around the default implementation of onRestoreInstanceState()  but make sure that your UI is setup correctly. On Tue, Nov 24, 2009 at 7:28 AM, Streets Of Boston flyingdutc...@gmail.com wrote: i've seen this too. I got around it by overriding the problematic

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Streets Of Boston
, Romain Guy romain...@google.com wrote: That would be worrisome because we do not save/restore the state of views without ids. On Tue, Nov 24, 2009 at 2:39 PM, Streets Of Boston flyingdutc...@gmail.com wrote: I'm going to check that out. What if it occurs on a View without an ID

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Streets Of Boston
PM, Streets Of Boston flyingdutc...@gmail.comwrote: Thanks Romain, Did not work... still the exception... It occurs on a View with an ID set to 'container'. And i went into my View hierarchy to check. All looks fine.: There is only one view with the id set to 'container'. Every

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Streets Of Boston
().)... read more » On Tue, Nov 24, 2009 at 4:41 PM, Streets Of Boston flyingdutc...@gmail.comwrote: Thanks Romain, Did not work... still the exception... It occurs on a View with an ID set to 'container'. And i went into my View hierarchy to check. All looks fine.: There is only one

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Streets Of Boston
happen, despite me coding the ViewBundle incorrectly? On Nov 24, 9:43 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you, Dianne. This is in my log: From onSaveInstanceState, this one is being saved: 11-24 21:38:52.786: VERBOSE/smugdroid(12475):   Saved Bundle Instance

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Streets Of Boston
As in the comment in your bug-report by Romain, you're using too much memory. Note that you only have 16MByte total available RAM for your process, including your bitmaps. - Only load the bitmaps that are absolutely necessary (especially when they become quite large). - Load the bitmaps scaled to

[android-developers] Re: High performance access on static data: What is your approach?

2009-11-25 Thread Streets Of Boston
I use a RandomAccessFile for a thumbnail database. Works pretty fast (i haven't done any exact benchmarking). On Nov 24, 3:09 am, Marc Reichelt mcreich...@googlemail.com wrote: Hi! I am writing a program where I have to access some static data, and now I am looking for the best method of how

[android-developers] Re: fwd: get the file path from a URI instance

2009-11-25 Thread Streets Of Boston
Thanks! I never thought about going through the file-descriptor. But why is using the DATA column discouraged? It works fine and it's a public column (not part of a private API or such). On Nov 17, 12:42 pm, Dianne Hackborn hack...@android.com wrote: On Tue, Nov 17, 2009 at 7:06 AM, Streets

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-25 Thread Streets Of Boston
such thing. We just got curious about its implement. @Robert, ko5tik, Streets Of Boston Pre-processor is a good suggestion. But the side effect of it is too many chunk files on SD Card or in flash. Maybe sharp has a smarter way to achieve it and we just do not know. @Mitch Thanks for your

[android-developers] Re: fwd: get the file path from a URI instance

2009-11-25 Thread Streets Of Boston
somewhere that is world-readable, which is basically only the media provider.  It really shouldn't be specified as a generic column, but something very specific to the media provider.  I would strongly recommend not using it. On Wed, Nov 25, 2009 at 11:29 AM, Streets Of Boston flyingdutc...@gmail.com

[android-developers] Re: Garbage collector is not recycling Activity

2009-12-01 Thread Streets Of Boston
Could be anything... Do you hold any static references? If so, are these static references to your Activity(s) or to objects that may contain themselves references to your activity? On Dec 1, 5:32 am, Jyothi Prasad ajp...@gmail.com wrote: Hi, I have an activity in my app. When I clicked back

[android-developers] Re: Pick photo from Gallery

2009-12-01 Thread Streets Of Boston
Take a look the the Intent framework. Start an activity given an intent (PICK_IMAGE) and this should start any app that responds to it (Gallery or some other 3rd party program). For examples, just take a look at the Contacts application in Android's framework's source-code. On Dec 1, 4:28 am,

[android-developers] Re: animation between two activities

2009-12-02 Thread Streets Of Boston
You can attach listeners to your animation: Attach an animation-listener to your rotate-animation. In the 'on- animation-ended' callback of the listener, do the startActivity(...). When the animation ends, this callback is automatically called and will then start the activity. On Dec 2, 3:19 

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

2010-01-17 Thread Streets Of Boston
I've seen this too in my app. If you add a layout-animation, that animates the grid-view children (i.e. the grid-items), you can clearly see this reverse order. On Jan 17, 4:03 am, Mike M mike.mos...@gmail.com wrote: Hey everyone, I have a gridview of images that I load from the internet.  

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

2010-01-17 Thread Streets Of Boston
That's how it works. You can have only *one* version of an app. Your app's ID is determined by its package-name. The code in your app should be able to run on a phone with an OS equal to minSdkVersion or higher. You can specify that your app only supports (i.e. runs on) a certain number of SDKs:

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

2010-01-18 Thread Streets Of Boston
(the position argument will not necessarily be sequential, incrementing or decrementing.) On Sun, Jan 17, 2010 at 8:57 PM, Mike M mike.mos...@gmail.com wrote: Streets of Boston, Thanks for the reply.  I do have an animation on my GridView, but I took it off and still notice the problem

[android-developers] Re: Hprof dump support in SDK 2.1

2010-01-19 Thread Streets Of Boston
It works quite well on 2.1 (and on 2.0, but i'm not sure, i just tried it on 2.1 with my nexus). When you do a hprof-dump and have the proper plugins installed in Eclipse, you get nice charts and graphs of your app's memory usage. I'm not sure how it works, but i think the device dumps a

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

2010-01-19 Thread Streets Of Boston
there was a uniform / sequential way that getView() was called... On Jan 18, 5:29 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Hi Roman, It does happen. :-) I can reproduce it almost every time like this: - Just create an activity with a Grid View with quite a few images (or grid-items

[android-developers] Re: Understanding how the Final keyword in Android Works

2010-01-20 Thread Streets Of Boston
The 'final' keyword is not android specific. It is a java keyword that declares that the variable-reference can never be changed after it has been defined. e.g. final int x; x = 10; // OK x = 20; // Compiler error, since x is declared final and cannot be changed. final String age; if (x = 0)

[android-developers] Re: Confusion about using Camera to take pictures from my application

2010-01-20 Thread Streets Of Boston
I'm going to upload a camera app in the market soon that does provide the Uri to full-sized images. If your intent requires an in-memory bitmap, it is still a small-sized image (100KBytes in size), but the Uri should point to the size of the image as it was taken by the camera. I'm still writing

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Streets Of Boston
Dirk, You cannot create UI elements in threads that don't have a message- looper themselves. I usually do this. Call the 'post' (or 'postDelayed') method. In your example, I assume that the method getEpisodes() is part of a Thread instances that is defined as a non-static inner (anonymous)

[android-developers] Re: Activity.finish() x System.exit

2010-01-21 Thread Streets Of Boston
System.exit() kills your entire process. activity.finish() just hides, stops and destroys your activity. Your process is still running. You should not call System.exit(). It could mess up Android's handling of the lifecycles of your activities and result in an awkward user- experience (e.g. when

[android-developers] Re: Serious android app problem in Canada

2010-01-21 Thread Streets Of Boston
Some (very) small consolation. Try, for now, to offer your app through other markets, such as SlideMe, Handango, MobiHand, etc. On Jan 21, 12:57 pm, Alex ixsan...@gmail.com wrote: No, you cannot either upload or download paid apps from android market in Canada. We are in the same boat and I've

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Streets Of Boston
Note that 'post' and 'runOnUiThread' takes a Runnable and it should *not* be a Thread (although that implements Runnable as well)! (Mis) using a Thread for this is not good. Just use a Runnable. Create a new instance of a Runnable and implement its 'public void run ()' method (see my example code

[android-developers] Re: How to close an application?

2010-01-21 Thread Streets Of Boston
If you want to make sure that your app shuts down completely: - Implement onPause to pause any threads running in the background (if you have any) - Implement onDestroy to clean up any other resources (stop threads, if any, for example) Short of the user pulling the battery, the onPause is

[android-developers] Re: AsyncTask discrepancy

2010-01-21 Thread Streets Of Boston
A Service, like an Activity, has a main thread with a message-loop. You can create an AsyncTask in the onX() callbacks of Services, just like in an Activity. The onPostExecute can do your handling of the results, as you described. However, AsyncTask is more geared towards the one-time

[android-developers] Re: Threading in activity and AsyncTask problem

2010-01-22 Thread Streets Of Boston
1. If your code is on onPostExecute(), your code is already running in the UI thread. Just call a method on your activity to execute that chunk of code (instead of holding a reference to 'context', hold a reference to your activity instead). 2. Just call this again: StudentTask st = new

[android-developers] Re: AsyncTask discrepancy

2010-01-22 Thread Streets Of Boston
: Streets of Boston, please forgive my ignorance. If I use AsyncTask within a service to retrieve data once, can I destroy the AsyncTask after? Or would I have to destroy the entire Service? Additionally, if I want to poll, say, every 5 minutes, wouldn't having AsyncTask in the service be a good

[android-developers] Re: AsyncTask discrepancy

2010-01-22 Thread Streets Of Boston
If your Service is running in the same process as your Activity, use a static reference to your Activity. E.g. MyActivity.ACTIVE_INSTANCE Be sure to update the ACTIVE_INSTANCE in onCreate (set it to 'this') and onDestroy (set it to 'null'). This will work when you can have only one instance of

[android-developers] Re: How to repeat Login dialog and progress dialog, coordinating with http thread

2010-01-25 Thread Streets Of Boston
I haven't read your code-snippet, but here is how i would do it: When the user wants to login, do a showDialog(idDialogLogin), containing the username/password fields Login/Cancel buttons. When Login is pressed, dismiss the dialog and start a progress-dialog and the actual logging in. Handle

[android-developers] US Taxes: Does Google send a 1099 tax form?

2010-01-25 Thread Streets Of Boston
Hi, I'm not sure where to ask this. So, here it goes :) Does google send a 1099 to holder of a Google CheckOut account for the Android Market. If not, how can we know what Google has reported to the IRS? Thanks! -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Using Nexus One as a development phone: Problem with USB driver under windows 7 64 bit

2010-01-26 Thread Streets Of Boston
First unzip the zip file somewhere. You'll find an *.inf file in the unzipped directory. When you attach your Nexus One to your PC, you will see it in your Devices (My Computer -- Properties -- -- Hardware/Devices or something... i don't remember exactly how it looks on XP). In the list of

[android-developers] Re: US Taxes: Does Google send a 1099 tax form?

2010-01-26 Thread Streets Of Boston
Thanks Mark. no different than any other business income true, but better be safe than sorry :-) E.g. I sell my pictures on smugmug.com and they do send a 1099 and report earnings to the IRS. When i wrote my question, I wondered whether Google Checkout had a similar setup. On Jan 25, 1:21 pm,

[android-developers] Re: Crop a Picture after Using Camera to Take It

2010-01-27 Thread Streets Of Boston
... The name of the action looks good... In my app, the image-Uri in the setData is different. You use a 'file:' uri. In my app, I use a 'content:' uri. Maybe the CROP action cannot handle 'file:' uris and can only handle images that are inserted into the Images content-provider. On Jan 27,

[android-developers] Re: US Taxes: Does Google send a 1099 tax form?

2010-01-27 Thread Streets Of Boston
About reporting a loss at tax time: You can't if you only make a few hundred bucks or so. It's considered a hobby and you cannot deduct more than your income on that hobby. E.g. i have a photography hobby as well. It would be nice to deduct all the costs of my camera and lenses if i just would

[android-developers] Re: US Taxes: Does Google send a 1099 tax form?

2010-01-27 Thread Streets Of Boston
in reverse. Sad. On Wed, Jan 27, 2010 at 7:27 AM, Streets Of Boston flyingdutc...@gmail.comwrote: About reporting a loss at tax time: You can't if you only make a few hundred bucks or so. It's considered a hobby and you cannot deduct more than your income on that hobby. E.g. i have

[android-developers] Re: AsyncTask and simultaneous network downloads

2010-01-28 Thread Streets Of Boston
AsyncTask is based upon the java.util.concurrent package's ExecutorService and FutureTask classes. When you create and execute an AsyncTask a thread is obtained from a pool of threads (i don't know what the size of this pool is for AsyncTasks) and your background process is executed on this

[android-developers] Re: Use of final for locals on Dalvik

2010-01-29 Thread Streets Of Boston
I'm not sure about DalvikVM, but some compilers take advantage of 'final'. E.g. Final variables can be put in registers of the CPU without worrying that they may change during execution (constantly moving variable- values back and forth from memory to registers could be omitted for 'final' vars).

[android-developers] Re: device shaked? accelerometer once more

2010-01-31 Thread Streets Of Boston
I'm not that familiar with how the sensor works, but judging from the values you report, i looks like the device is not entire horizontal or vertical. Your computeRealForce hovers around 0.4 (horizontally) or -1 (vertically). I guess you have to find a proper 'baseline' against which you can

[android-developers] Re: Multi-threaded http requests cause exception

2010-01-31 Thread Streets Of Boston
Petroleam is right about AsyncTask using a thread-pool of only one thread on 1.5. Higher versions of Android use a pool of more than one thread. You can do something similar with ExecutorService and FutureTask classes (java.util.concurrent; i believe that AsyncTask is based upon these classes)

[android-developers] Re: BitmapFactory.decodeByteArray gives pixelated bitmap

2010-02-01 Thread Streets Of Boston
You are resaving a JPEG. You'll be compressing twice. Why don't you try to directly save the data obtained from the URL to a file on the SDCard. Don't do any compressing. Just a direct save of the JPG file from Flickr. After you've done that, you have a file (on the SDCard) that contains an

[android-developers] Re: BitmapFactory.decodeByteArray gives pixelated bitmap

2010-02-02 Thread Streets Of Boston
But that restriction is only for your mobile network. Chances are it works well for your customers who are not bound to such a restriction. Maybe your network tries to have you sign up for a better data-package plan, that does not have this restriction... ? :-) On Feb 2, 11:32 am, michael

[android-developers] Re: getChildAt sometimes giving wrong child at particular position?

2010-02-02 Thread Streets Of Boston
The getChildAt(x) method of a list-view does not return the view of item number 'x'. It returns, more or less, the 'x'th visible child- view of your list-view. If you want to access an item amongst all your possible items that can be shown in your list-view, you have to access it throug the list-

[android-developers] Re: 3 dots at the end of the string in strings.xml

2010-02-02 Thread Streets Of Boston
I think it's just three dots (periods). As far as i know, these mean nothing special. On Feb 2, 2:37 pm, Rohit mord...@gmail.com wrote: I saw a strings.xml file and one of the entries in the xml was as follows string name=testStringthis is a long string to test .../string Why is there a

[android-developers] Re: VerifyError - how can I solve this error?

2010-02-03 Thread Streets Of Boston
To help you, you need to post the log (form LogCat) showing the stack- trace of the VerifyError. As an example, VerifyErrors can occur when you load a class compiled in Android 1.6 and using/calling 1.6 specific fields/methods and then the class is run in a Android 1.5 environment. I had one

[android-developers] Re: How to get a remote logcat on error?

2010-02-03 Thread Streets Of Boston
This is not necessary, to catch every line of code. Register an uncaught-exception-handler (Thread.setDefaultUncaughtExceptionHandler). Before you set it, get the current one. You may need to call it from your own uncaught- exception-handler. In this handler, print out the stack-trace (and some

[android-developers] Re: VerifyError - how can I solve this error?

2010-02-03 Thread Streets Of Boston
They are all related to creating a new instance of AHighScore. Some part of the code in AHighScore uses a class, or classes, that are 'incompatible' with the version of the OS on which AHighScore would be running. Under what version of the Android OS did you compile your app? Under what version

[android-developers] Re: gluUnProject again - opengl bug?

2010-02-05 Thread Streets Of Boston
I found issues with the gluUnProject as well. I wrote a new one for my own app (The Gube) and it works very well. I use gluUnproject for tracking 2D finger-touches and flings into the 3D model-view/space. You can do a gluUnproject search on this forum and you will find this:

[android-developers] Re: Variable values just get lost!??!?

2010-02-06 Thread Streets Of Boston
I don't if it was a typo or not, but shouldn't this code be like this?: public static ServerConnection getInstance() { if(m_connection == null) m_connection = new ServerConnection(); return m_connection; } (added 'm_connection = ' to the second line of the function's

[android-developers] Re: gluUnProject again - opengl bug?

2010-02-06 Thread Streets Of Boston
:40 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I found issues with the gluUnProject as well. I wrote a new one for my own app (The Gube) and it works very well. I use gluUnproject for tracking 2D finger-touches and flings into the 3D model-view/space. You can do a gluUnproject

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Streets Of Boston
If you use them for fit-in screen display only, just scale them to the screen-size. You don't need any bigger. 1. Figure out the actual width and height of the image (inJustDecodeBounds = true) 2. When actually loading the pic, downsample (inSampleSize 1) so that the resulting image fits the

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Streets Of Boston
Store them full-sized (100%) on your SD-card. Then load the Bitmap from the copy on your SD-card. If you don't want these images to show up in the Gallery application, be sure to put them into a directory that starts with a period '.' . On Feb 8, 10:11 am, Samuh samuh.va...@gmail.com wrote:

[android-developers] Re: Variable values just get lost!??!?

2010-02-08 Thread Streets Of Boston
Did you check if you service is being destroyed (onDestroy) or being killed (entire service process is being killed by Android) and re- created later at points in your code that are unexpected? Put break-points in your service's onCreate, onDestroy and onBind and see what's going on. Another

[android-developers] Re: How to send motion Event down to another activity

2010-02-08 Thread Streets Of Boston
The activity that is no longer visible could have been destroyed by the OS. However, since your top-activity is (partially) translucent, this probably won't happen. If you really need to communicate back to the activity in the background, there are various methods: 1. Use a static variable that

[android-developers] Re: Modal Dialogs: the definitive solution

2010-02-08 Thread Streets Of Boston
You must be absolutely sure that the 'alert(Strin msg)' runs in a different thread than the UI-thread. Why do it this way? You can just call showDialog(int dialogID) in your activity. Then in the onClickListener of this dialog, you can implement the onClick method to handle the case when the

[android-developers] Re: Inadvertent breakage by SDK going forward

2010-02-15 Thread Streets Of Boston
That would be very 'icky'... I hoped that the 'targetSdkVersion' setting could prevent this. On Feb 12, 7:20 pm, jasper jasper...@gmail.com wrote: Does this truly mean that even if I compile to the 1.6 platform, if my code implements a 2.1 callback method, that method will *never* be invoked

[android-developers] Re: while onLongClick'ed

2010-02-15 Thread Streets Of Boston
Why not catch a MotionEvent and check for ACTION_DOWN (start rolling the dice) and for ACTION_UP (stop rolling the dice). On Feb 13, 12:11 pm, Ricky arsenickiss7...@gmail.com wrote: i have search and have not found a solution to my problem. my problem is that, i am trying to create a loop

[android-developers] Re: how to crop an image in android 2.x

2010-02-15 Thread Streets Of Boston
First, don't set the class-name. Your customer's phone may not have this particular activity (com.android.camera.CropImage) installed. But this should not give you the 'permission denial' error. Maybe the CROP action can only crop public images. You set yours to PRIVATE. On Feb 12, 9:18 am,

[android-developers] Re: Displaying thumbnails of images (present at different locations in the sdcard) in a listview

2010-02-16 Thread Streets Of Boston
Cache the thumbnails In my app (Snap FX) I have two cache levels. 1. In-memory cache (hash-map) 2. Thumbnail record file, much like Thumbs.db on Windows. 1. When requesting a thumbnail of an image, read first from the in- memory cache. 2. If this fails, read from the thumbnail record file (and

[android-developers] Re: Failed binder transaction when passing byte[] (from camera) between intents

2010-02-16 Thread Streets Of Boston
Binary data works upto about 100KByte. Anything larger, you very likely get that error. For images in RGB_565, this is about 277 x 184 pixels max (277 x 184 * 2 = 101936) On Feb 16, 4:17 am, Bart bvandep...@gmail.com wrote: Hi, I have a problem with an app that lets the user take a picture.

[android-developers] Re: Failed binder transaction when passing byte[] (from camera) between intents

2010-02-17 Thread Streets Of Boston
never make camera images that are higher resolution then 277x184? :S If I stuff all the camera code into my main activity, then it should work. But that's a little messy. Are you sure there isn't another way to pass the camera images? Thanks On Feb 16, 10:05 pm, Streets Of Boston flyingdutc

[android-developers] Re: add a scan barcode button to my webpage

2010-02-17 Thread Streets Of Boston
I just link to Google's charting site: http://chart.apis.google.com/chart?cht=qrchs=135x135chl=market://search?q=pname:com.streetsofboston.smugdroid.snapfx.paid This link generates a PNG image of 135x135 pixels. Replace the package name (value after 'pname:') with your own package name. Make it

[android-developers] Camera on HTC Hero: Calling camera.autoFocus(...) gives a IOException .. ?

2010-02-18 Thread Streets Of Boston
This is the stack trace: Android OS: 1.5 Model: HERO200 Make: heroc:sprint Caused by: java.io.IOException: autoFocus failed at android.hardware.Camera.native_autoFocus(Native Method) at android.hardware.Camera.autoFocus(Camera.java:313) at

[android-developers] Re: Is there a normal human way to copy image from one folder to another?

2010-02-18 Thread Streets Of Boston
No. You have to do this all yourself :( 1. Query from the mediastore all the info for your original image, including its file-path (DATA column). 2. Query from the thumbnail mediastore the info of all the thumbnails (can have more than one) for the given image. 3. Copy your image-file to another

[android-developers] Re: Camera on HTC Hero: Calling camera.autoFocus(...) gives a IOException .. ?

2010-02-19 Thread Streets Of Boston
I found some posts about not have a preview-callback. But my camera does not have a preview-callback set at all. I'm wondering where this IOException is coming from. Is it specific to the Hero? On Feb 18, 7:23 am, Streets Of Boston flyingdutc...@gmail.com wrote: This is the stack trace

[android-developers] Re: $3.00 Marketplace chargeback ?!?!

2010-02-20 Thread Streets Of Boston
Relax!!! It happened to me too a few times. It sucks, but this is just the cost of doing business. And it's in the Android Market agreement that you accepted. If you were to handle the credit-card transations yourself, you would be complaining much louder. Just do a google search for

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-02-22 Thread Streets Of Boston
About the 325 char limit: Maybe i'm a little slow, but I discovered just recently that you can put a little more text into your app's description using FireFox than when using IE. IE adds 2 characters for each newline (\r\n), while FireFox only adds 1 char (\n only). (and in FireFox, the

[android-developers] Re: Camera on HTC Hero: Calling camera.autoFocus(...) gives a IOException .. ?

2010-02-22 Thread Streets Of Boston
Bump... ... I'm not sure where else to ask this question. On Feb 19, 10:31 am, Streets Of Boston flyingdutc...@gmail.com wrote: I found some posts about not have a preview-callback. But my camera does not have a preview-callback set at all. I'm wondering where this IOException is coming from

[android-developers] Re: Camera on HTC Hero: Calling camera.autoFocus(...) gives a IOException .. ?

2010-02-22 Thread Streets Of Boston
: Streets Of Boston wrote: Bump... ... I'm not sure where else to ask this question. At the same time, at least I don't know how to answer it. I have not seen this error, but, then again, I have not tried auto-focus on the Hero. To be honest, I wasn't aware it was running an Android version

[android-developers] Re: Camera on HTC Hero: Calling camera.autoFocus(...) gives a IOException .. ?

2010-02-22 Thread Streets Of Boston
, Mark Murphy mmur...@commonsware.com wrote: Streets Of Boston wrote: Can i send you a debug version of my app to your e-mail address? Well, to be honest, I'd rather you created a little sample project that demonstrates the problem, so that: 1. You can post it tohttp://b.android.com(even

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-02-23 Thread Streets Of Boston
Yep, you're correct. Google gets only a small portion of the 30% to cover the costs of the payment transactions. The bulk of the 30% goes to the carriers. At an Android Dev Lab Google told us Google's share just covers their cost. On Feb 22, 9:16 pm, Maps.Huge.Info (Maps API Guru)

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-02-23 Thread Streets Of Boston
don't understand. Yahel On 23 fév, 15:58, Streets Of Boston flyingdutc...@gmail.com wrote: Yep, you're correct. Google gets only a small portion of the 30% to cover the costs of the payment transactions. The bulk of the 30% goes to the carriers. At an Android Dev Lab Google told us

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

2010-02-24 Thread Streets Of Boston
) {                         this.viewsBotoes[position] = new MyView (this.contexto);                 }                 return this.viewsBotoes[position];         } } I hope it helps. Best regards. Bolha On 20 jan, 00:35, Streets Of Boston flyingdutc...@gmail.com wrote

[android-developers] Re: No streamlined update system (What a mess)

2010-02-24 Thread Streets Of Boston
This is not an update issue. This is a fragmenation issue. Application developers decide, depending on their resources (money and time), to support only particular or all versions of the Android OS for their apps. Fragmentation is the problem here, since handset/phone makers still bring out

[android-developers] Re: How to know touched cube in opengl ?

2010-02-24 Thread Streets Of Boston
Brush up on your geometry. :=) Map from a two dimensional coordinate (screen) to a 3 dimensional one (model): (ScreenX, ScreenY, 0) --gluUnproject-- (ModelX1, ModelY1, ModelZ1) (ScreenX, ScreenY, 1) --gluUnproject-- (ModelX2, ModelY2, ModelZ2) Now you 'draw' an invisible line from (ModelX1,

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

2010-02-25 Thread Streets Of Boston
It could be anything. You have to post some code-samples that you think code be suspicious. Check your (static) caches, if you have them. On Feb 25, 6:49 am, REvolver luca.lupol...@gmail.com wrote: None? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: why I can't see google's nexus one from eclipse

2010-02-25 Thread Streets Of Boston
The drivers that come with the latest Android SDK download work well for Vista 64bit and Windows 7 64bit (i used it on both). I don't know about XP 64bit, though... On Feb 16, 9:51 pm, Bob Kerns r...@acm.org wrote: You might try running a VMWare Virtual Machine, with a 32-bit XP, and doing it

[android-developers] Re: Free Version of App

2010-02-25 Thread Streets Of Boston
How do you make a time limited trial version, where limiting the time is fairly fool-proof? How do you know how long the user has your app installed (including the possibility that the app has been uninstalled one or more times...)? Thanks! On Feb 25, 2:34 am, String sterling.ud...@googlemail.com

[android-developers] Re: How can I get the seconds since 1.1.1970 as a long in Android?

2010-02-25 Thread Streets Of Boston
System.currentTimeMillis() gets you the number of milliseconds sinc 1/1/1970 00:00:00.000 UTC. On Feb 25, 1:21 pm, Martin google-gro...@digle.de wrote: Hi! There are so many Date-classes (GregorianCalendar, Calendar, TimeZone, Date,.), I lost track. How can I get the seconds now since

[android-developers] Re: Android, send me logs! - code library for detecting force-close and sending logs

2010-02-26 Thread Streets Of Boston
I haven't made it public yet (i will at some point), but i have a similar system for my apps. The process of my activities registers itself by calling Thread.setDefaultUncaughtExceptionHandler(uncaughtXcptHandler) and binds to service that i wrote that runs in a different process (since my app

<    1   2   3   4   5   6   7   8   9   10   >