[android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread Streets Of Boston
Search for 'gluUnproject' on this developer-group board. You'll find quite a bit of info on this topic (mapping 2dimensional mouse- coordinates into 3dimensional model-coordinates). On Aug 13, 11:36 am, souza sadita...@gmx.net wrote: I have found the APIDemos example but I couldn't find the

[android-developers] Re: Themes and styles

2010-09-07 Thread Streets Of Boston
I fear that allowing the user to dynamically select a new skin (even with a restart of your app) is a very very difficult thing to do, if not impossible. There is a method called 'Activity.setTheme(int resourceId)', but this changes only the theme and would allow for dynamically changing only a

[android-developers] Re: One day sale made my paid app free, now I cannot revert!

2010-09-08 Thread Streets Of Boston
I think that you can't change a free app to a paid app because Google wants avoid developers trying to game the market. A free app gets tons more downloads than paid app (even if paid app is only $0.99); the difference is not measured in fractions, but in orders of magnitude. If the developer

[android-developers] Re: open my ass

2010-09-08 Thread Streets Of Boston
open my ass? I'd better shut my mouth :-) On Sep 7, 10:14 pm, saras sa...@itch.com wrote: when did open platform start blocking hardware google unfuck your self ps sorry the red am seeing red -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Do Services *really* run in the Background?

2010-04-09 Thread Streets Of Boston
You can call execute(...) once on one instance of an AsyncTask. But you can create a new instance of an AsyncTask and call execute(...) on that new instance. Multiple instances of an AsyncTask share a limited pool of threads. An AsyncTask instance is put into a queue when 'execute(...)' is called

[android-developers] Re: How to handle plural with resources

2010-04-09 Thread Streets Of Boston
Just google this On Apr 9, 11:40 pm, jfbaro jfba...@gmail.com wrote: Hi, Is there any best practice to deal with plural messages?         string name=info_files_deleted_plural%d files successfully deleted/string         string name=info_files_deleted_singular1 file successfully

[android-developers] Re: How to handle plural with resources

2010-04-09 Thread Streets Of Boston
http://groups.google.com/group/android-developers/browse_thread/thread/815f7c18da64e0f4 Use plurals element in your strings.xml. On Apr 9, 11:40 pm, jfbaro jfba...@gmail.com wrote: Hi, Is there any best practice to deal with plural messages?         string name=info_files_deleted_plural%d

[android-developers] Re: 'Avoiding memory leaks' article in android blog

2010-04-10 Thread Streets Of Boston
Yep, You don't directly see it, but if i have understood older posts correctly, sBackground has a reference to a context that was used when it was created. This context is the activity-context that holds on to the activity that originally was used when creating sBackground. So, via via,

[android-developers] Re: Service vs Singleton

2010-04-11 Thread Streets Of Boston
An Android application (APK) may consist of more than one Activity, more than one Service. Each Activity or Service can run in its own process, can share a process or are run in the process of the calling Activity (and the calling Activity may not even be part of your application: e.g. the Contact

[android-developers] Re: Generating a static HashMap from resources?

2010-04-11 Thread Streets Of Boston
Yep, Use reflection on the R.string class for strings. Or use reflection on the R.drawable class if you need to map strings to drawables. Query the (publicly) declared fields of R.string using reflection. The code below doesn't follow your example mappings exactly, but you'll get the idea:

[android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-13 Thread Streets Of Boston
Does Android even do anything with thread priority? In my experience: Yes. You can set a Thread's priority and it has an effect. Note, however, that the actual priority will never be higher than the groups priority. When i change a background thread's priority and set it very high, the UI

[android-developers] Re: onLowMemory not getting called

2010-04-14 Thread Streets Of Boston
AFAIK, there's no way to work on the full image directly Yes there is. My application Snap FX does that. It takes quite a bit of work, but i managed to be able to apply color-effect to 5MPixel (1st gen Android phones) or 9MPixel (2nd gen Android phones) images. On Apr 14, 9:24 am, mike

[android-developers] Re: Threads or ASyncTask?

2010-04-14 Thread Streets Of Boston
Depends. But since the OP mentioned Notifications, i guess the search results should be presented even when the user left the application. If so, yes, then a Service would be best. Still, i would use an AsyncTask (inside the Service) to do the actual work. This way you'll be sure that the

[android-developers] Re: onLowMemory not getting called

2010-04-14 Thread Streets Of Boston
...@gmail.com wrote: @Streets Of Boston, Is there anything further you can explain about your implementation?  Even a high-level strategy would be helpful. On Apr 14, 10:45 am, mike enervat...@gmail.com wrote: On 04/14/2010 07:17 AM, Streets Of Boston wrote: AFAIK, there's no way to work

[android-developers] Using ResolverActivity as a activity-alias

2010-04-14 Thread Streets Of Boston
Due to bug http://code.google.com/p/android/issues/detail?id=6579 is it safe to put this into my AndroidManifest.xml file?: !-- Below is a workaround due to the Market bug http://code.google.com/p/android/issues/detail?id=6579 -- activity-alias

[android-developers] Re: OutOfMemory calling MediaStore.Images.Media.getBitmap

2010-04-16 Thread Streets Of Boston
The 750,000 bytes are the size of the *compressed* JPEG. A Bitmap instance holds the *raw* color data, not the compressed data. E.g. if the raw color data has format ARGB_, then each pixel uses 4 bytes: 5MPixel images will use 20MBytes of memory. If the raw color data has the format RGB_565,

[android-developers] Re: Using ResolverActivity as a activity-alias

2010-04-17 Thread Streets Of Boston
Bumped it a little... ;) On Apr 14, 9:49 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Due to bughttp://code.google.com/p/android/issues/detail?id=6579is it safe to put this into my AndroidManifest.xml file?:   !-- Below is a workaround due to the Market bughttp://code.google.com/p

[android-developers] Re: OutOfMemory problem

2010-04-18 Thread Streets Of Boston
How big, in pixels, is the image? On Apr 18, 5:50 am, Kofa elk...@gmail.com wrote: I really don't know why it's giving me this error... I load an ImageView with an image of 692kb .jpg, using scroll options, so you can scroll it around... the strange it's that when the mobile it's connected to

[android-developers] Re: Developing for Android tablets, harder than developing for the iPad?

2010-04-19 Thread Streets Of Boston
Unfortunately Android does not have the same luxury to do this Where did you hear/read this? And, it's the opposite, it *does* have that luxury. Unless you specified in your app's manifest file that Android should not try to scale up your app's UI, Android will try its best to fit your app in the

[android-developers] Re: HTC Incredible no default external storage?

2010-04-19 Thread Streets Of Boston
I am also wondering how this all works with the getExternalStorageState() state function, does it always return MEDIA_MOUNTED ? Maybe not when you connect your phone to a PC and select 'Mount', for example... On Apr 19, 2:44 pm, webmonkey webmonke...@gmail.com wrote: According to this post:

[android-developers] Re: Android camera problem on HTC Desire

2010-04-20 Thread Streets Of Boston
mm that looks strange. From the stack-trace it (almost) looks like you're trying to access a 2nd camera on the device. I have no idea of how that could happen or why it would even try to do so. But, then again, i could be completely wrong and of no help to you at all.. :)

[android-developers] Re: OutOfMemory problem

2010-04-21 Thread Streets Of Boston
) is not part of the DalvikVM and won't show up when you do java memory profiling. However, this memory is part of the overall memory used by the app's process. On Apr 21, 2:57 pm, Kofa elk...@gmail.com wrote: the image it's 1920x1440 pixels On 18 abr, 17:59, Streets Of Boston flyingdutc...@gmail.com wrote

[android-developers] Re: XMPP service, jabber , push notification

2010-04-22 Thread Streets Of Boston
i'm just throwing it out here. Have you looked into the SMACK library for Android?: http://code.google.com/p/asmack/ On Apr 21, 4:17 am, SLY sly.andr...@gmail.com wrote: Hi, I am currently working on a project which requires a server to request data from the devices which are currently

[android-developers] Re: ViewFlipper not working inside a class which extends LinearLayout

2010-04-22 Thread Streets Of Boston
What thread is calling 'new ViewFlipper(ctContext)'? Is it the main UI-thread? If not, the calling thread must have a message-loop associated with it (A looper-thread). If it's not a looper-thread, you can't call 'new ViewFlipper(ctContext)' this way. On Apr 22, 10:58 am, Nithin

[android-developers] Re: Android camera problem on HTC Desire

2010-04-22 Thread Streets Of Boston
though. It would be great if other people with a HTC Desire could try the Camera Preview API demo to verify that they experience the same problem. Cheers, -- Jo On 20 apr, 23:45, Streets Of Boston flyingdutc...@gmail.com wrote: mm that looks strange. From the stack

[android-developers] Re: Restlet librairies use in Android project

2010-04-24 Thread Streets Of Boston
Hi Jerome, I'm using your restlet libaries as well on Android clients. So far, it has worked great :-) One thing i'd love to see implemented is a framework that helps in implementing caches. Not so much the implementation and handling of an actual cache, but some framework part of Restlet that

[android-developers] Re: ListView focus behaving different when using minSdkVersion=3

2010-04-24 Thread Streets Of Boston
Looks like a bug in the Android framework. What is your targetSdk value? What actual SDK version are you running your code on? On Mar 15, 10:13 pm, licorna lico...@gmail.com wrote: A few days ago I was trying to fix this issue: I have a header (three ImageButton's) and a ListView. If I use the

[android-developers] Re: Restlet librairies use in Android project

2010-04-25 Thread Streets Of Boston
. See this RFE for details:http://restlet.tigris.org/issues/show_bug.cgi?id=25 Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~http://www.restlet.org Noelios Technologies ~http://www.noelios.com Le 24/04/2010 19:46, Streets Of Boston a écrit : Hi Jerome, I'm using

[android-developers] Re: Saving ArrayList to .txt file

2010-04-26 Thread Streets Of Boston
Maybe that's a permission issue. Astro File manager is not allowed to look at your app's local data (data/files in its sandbox). However, why don't you just read the contents of the text-file you wrote? If that's successful, writing to the text-file was successful too. On Apr 26, 9:11 am, Tommy

[android-developers] Re: Lots of lost sales due to Credit Card authorization.

2010-04-26 Thread Streets Of Boston
You may experiencing a bug, since e-mails should be sent out to customers to update their incorrect payment details. At least it work sometimes, since i do see customers trying to update their payment info when authorization failed. You lost 120 sales... only 120... I lost wy more than that.

[android-developers] Re: onActivityResult not being called in Activity that uses GLSurfaceView

2010-04-26 Thread Streets Of Boston
What are the launch-properties of your sub-activity? Is it a 'singleTask' or 'singleInstance'? If so, the sub-activity won't report a result to your main-activity's 'onActivityResult()'. I ask this, because i was struggling with this same issue for a while until i discovered that my sub-activity

[android-developers] Re: ListView focus behaving different when using minSdkVersion=3

2010-04-26 Thread Streets Of Boston
the targetSdkVersion version. Do you know if this can cause problems? Also, by building my app while running the code on the 1.6 SDK will it still be available to 1.5 devices in the market? Thanks in advance. Cheers, Jason On Apr 24, 6:48 pm, Streets Of Boston flyingdutc...@gmail.com wrote

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-27 Thread Streets Of Boston
I would strongly advise against fighting the normal stack-based work- flow of android activities. If the user pressed the back-key, he/she probably wants to 'go back'. Don't fight your customer on this. Don't try to break or modify the work-flow model of Android. But, if you must, you could warn

[android-developers] Re: HTC Incredible no default external storage?

2010-04-27 Thread Streets Of Boston
Just great! NOT! I'll start another thread on this forum asking if Environment.getExternalStorageDirectory() still works on the Incredible or not... It looks like it doesn't. I hope some Google engineers can chime in. On Apr 27, 12:49 pm, webmonkey webmonke...@gmail.com wrote: It appears to

[android-developers] Question: Environment.getExternalStorageDirectory() on HTC Incredible. What is the return value?

2010-04-27 Thread Streets Of Boston
Question for Google engineers: Since the HTC Incredible does not come with an SD-card, what is the return value of this call: Environment.getExternalStorageDirectory() The documentation says this: Gets the Android external storage directory as a File. What is the return value of this method

[android-developers] Re: HTC Incredible no default external storage?

2010-04-27 Thread Streets Of Boston
Thank you Mark. I just updated my app's description that it requires an SD-card. On Apr 27, 7:11 pm, Mark Murphy mmur...@commonsware.com wrote: Streets Of Boston wrote: Just great! NOT! I'll start another thread on this forum asking if Environment.getExternalStorageDirectory() still

[android-developers] Re: Camera Error 100 on Nexus One, not on G1.

2010-04-28 Thread Streets Of Boston
Try to call the startPreview no earlier than the onResume. Maybe calling it in the onCreate is too soon. The SurfaceHolder may not yet be fully 'functional' (this is all guess-work on my part, but you could try :-)). On Apr 28, 9:54 am, Pavol Ban zum...@gmail.com wrote: That's the order i have

[android-developers] Re: Question: Environment.getExternalStorageDirectory() on HTC Incredible. What is the return value?

2010-04-28 Thread Streets Of Boston
I'll settle for the good ol'you :) Thank you Mark! That clears up a lot. On Apr 28, 1:54 pm, Mark Murphy mmur...@commonsware.com wrote: Streets Of Boston wrote: Question for Google engineers: I hope you'll settle for little ol' me. Since the HTC Incredible does not come with an SD-card

[android-developers] Re: Lots of lost sales due to Credit Card authorization.

2010-04-28 Thread Streets Of Boston
Sometimes a *successful* authorization can take more than a day. 99% of them are immediate (at least when measured in minutes). A few of them take up to a few hours and occasionally some take up to a day. On Apr 28, 9:41 pm, Paul idi...@gmail.com wrote: Well I'm really trying to address the

[android-developers] Re: Question: Environment.getExternalStorageDirectory() on HTC Incredible. What is the return value?

2010-04-29 Thread Streets Of Boston
this in a way that won't break on other phones? On Apr 28, 1:54 pm, Mark Murphy mmur...@commonsware.com wrote: Streets Of Boston wrote: Question for Google engineers: I hope you'll settle for little ol' me. Since the HTC Incredible does not come with an SD-card, what is the return value

[android-developers] Re: HTC Incredible no default external storage?

2010-04-29 Thread Streets Of Boston
I'm still curious as well :-) : How do we developers get access to a shared partition on the internal storage (e.g. /emmc)? What method call can we use to obtain it so that at least we can select it if necessary (e.g. give user the option to use external storage or shared internal storage)? How

[android-developers] Re: HTC Incredible, unified media content provider for internal/external storage

2010-04-29 Thread Streets Of Boston
Exactly. And how is the shared internal storage of the Desire (GLOBAL_CONTENT_URI, '/emmc') being accessed when the user wants to copy images from his/her PC onto the phone, and vice versa? What happens to the MediaScanner (if /emmc can be mounted and unmounted...)? I'm curious On Apr 29,

[android-developers] Re: Feedback Experiment: Freeze/Crash Reporting

2010-04-30 Thread Streets Of Boston
It's still very 'beta' like. I can't see the feedback of any app but my own. At least in IE8, when i choose to see the feedback of com.android.browser (or another that's not mine), my browser keeps refreshing until eternity (although haven't waited *that* long :-)). I now can remove my

[android-developers] Re: Can I use OpenGL to make Bitmap without GLSurfaceView

2010-05-02 Thread Streets Of Boston
Below is a snippet of code that turns a buffer from GL into a buffer that can be used by a Bitmap. I'm not sure if you can get a buffer from GL without been having showing it before or if this is what you're exactly looking for. But here goes anyway :-) public void

[android-developers] Re: [Help] How to get thumbnail picture from HTC Hero?

2010-05-03 Thread Streets Of Boston
create a thumbnail by myself? Yes. I found that thumbnails are not always generated. On May 3, 4:39 am, Vincent Tsao caojunvinc...@gmail.com wrote: i'm trying to fetch a  thumbnail with picture URI using these code below:         long id = ContentUris.parseId(selectedImageURI);        

[android-developers] Re: Can I use OpenGL to make Bitmap without GLSurfaceView

2010-05-03 Thread Streets Of Boston
lightweight!  I bet you could get substantial performance gains doing that conversion natively and passing the processed array up to java. On May 2, 4:34 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Below is a snippet of code that turns a buffer from GL into a buffer that can be used

[android-developers] Re: [Help] How to get thumbnail picture from HTC Hero?

2010-05-03 Thread Streets Of Boston
I wrote some comments for bug #1480 (under the name flyingdutc...@gmail.com). On May 3, 10:09 pm, Vincent Tsao caojunvinc...@gmail.com wrote: On Mon, May 3, 2010 at 9:55 PM, Streets Of Boston flyingdutc...@gmail.comwrote: create a thumbnail by myself? Yes. I found that thumbnails

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread Streets Of Boston
My apps haven't reached piracy rates that high (yet). But i'll keep an eye on your solution :-) Keep us updated. On May 4, 5:20 pm, dadical keyes...@gmail.com wrote: I've spent the last few weeks developing a new tool to stop piracy of my paid apps on the Android Market.  In a nutshell,

[android-developers] JUnit testing: Question; How the 'unlock' screen be avoided/closed?

2010-05-05 Thread Streets Of Boston
I'm writing some JUnit tests for my Android Activity. They run fine and report proper results. However, when i automate the test and start the emulator, the emulator starts with an unlock screen. This prevents the test from running correctly. How do I start an emulator without the unlock screen

[android-developers] Re: JUnit testing: Question; How the 'unlock' screen be avoided/closed?

2010-05-05 Thread Streets Of Boston
. Perhaps this setting would work there, too? It's under developement settings, next to allow usb debugging. -- Kostya 2010/5/6 TreKing treking...@gmail.com  On Wed, May 5, 2010 at 3:05 PM, Streets Of Boston flyingdutc...@gmail.com wrote: How do I start an emulator without

[android-developers] Possible Solution found: JUnit testing: Question; How the 'unlock' screen be avoided/closed?

2010-05-06 Thread Streets Of Boston
nounlock_package/ nounlock_package.NoUnlockScreenActivity From this moment you can run the (re)installation of your actual app and test-app and run the 'shell am instrument' to run your test-app. On May 5, 4:05 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I'm writing some JUnit tests for my Android

[android-developers] Re: Can anyone help me make REST calls using HttpClient from Android?

2010-05-07 Thread Streets Of Boston
I can't help you with the preemptive authorization, but why can't you use cookies? Cookies, when used as user authentication/authorization, do not violate any REST principles. In this case, cookies don't hold resource- state. They hold application-state. On May 6, 8:31 pm, Preston

[android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread Streets Of Boston
Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it :-) If you have an HDTV of 1080p, then the max resolution is 1920*1080 (about 2MPixels). There's no need to go larger. On Jun 27, 12:06 pm, xhy xhyg...@gmail.com wrote: i want to  paly a 8192*8192 image

[android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread Streets Of Boston
a value greater than 1). On Jun 27, 8:02 pm, xhy xhyg...@gmail.com wrote: In fact the clients demand it,so i have no idea. 2010/6/28 Kostya Vasilyev kmans...@gmail.com 27.06.2010 21:25, Streets Of Boston пишет: Wow, do you have a big screen TV capable of displaying 8192*8192 pixel

[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-28 Thread Streets Of Boston
in the About/Thank You section of my app :) Bara On Jun 23, 1:44 pm, Streets Of Boston flyingdutc...@gmail.com wrote: thisListView.setAdapter(r_adapter); r_adapter.notifyDataSetChanged(); If you do 'setAdapter', calling notifyDataSetChanged() is not necessary, if i'm not mistaken

[android-developers] Re: Comparing two strings get false

2010-06-29 Thread Streets Of Boston
Actually, it works the same for both Objects and primitive types. The == operator checks if the value held by both variables is the same. For primitive types (e.g. int), this value is a 32-bit value (or 64- bit for long, etc). For Objects, this value is the *reference* to an object, not the

[android-developers] Re: determine the cache size for bitmaps

2010-06-30 Thread Streets Of Boston
Depends on the size of the bitmaps. If they are for display only, i would advise loading them with RGB_565 (not ARGB_). This way, an image with 'width' by 'height' pixels will take up 'width*height*2' MByte. Your app's total available memory is either 16MByte (1st gen phones) or 24MByte (2nd

[android-developers] Re: Media.insertImage locked to heavy compression

2010-06-30 Thread Streets Of Boston
to refresh from the filesystem (this may be the sticking point) Any thoughts? On Jun 21, 7:18 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Compress (Bitmap.compress) the image yourself into a file. Then use the getContentProvider().insert

[android-developers] Re: Adding to ArrayList in Characters method of DefaultHandler SAX

2010-06-30 Thread Streets Of Boston
Don't check the qName. Use the localName instead. (localName.equals(event)). On Jun 30, 10:07 pm, Michael michael...@gmail.com wrote: Thanks again, but I'm still having a problem. public void endElement(String uri, String localName, String qName)                 {                         if

[android-developers] Re: Bump is letting users send paid apps?

2010-06-30 Thread Streets Of Boston
Thanks Jake, I already had a hard time believing Bump would do that... :-) I think it's a great idea to let friends (bumpers? :-)), share app- discoveries like that! On Jun 30, 1:50 pm, Jake Mintz jmi...@gmail.com wrote: Hi all, I am one of the founders of Bump Technologies, the company behind

[android-developers] Re: Possible to achieve using relative layout?

2010-07-10 Thread Streets Of Boston
Good luck with that one... i tried but no luck. If you think about it, it makes sense that this is not 'easy' to do with the standard controls (like the text view). The text-view knows about its parent (the rel. layout), not about its siblings (imageview). If you center the text-view in the

[android-developers] Re: Killi Process with files on SD card

2010-07-10 Thread Streets Of Boston
Register your broadcast receiver like this: IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_EJECT); intentFilter.addAction(Intent.ACTION_MEDIA_MOUNTED); intentFilter.addDataScheme(file); intentFilter.addDataAuthority(*, null); intentFilter.addDataPath((mIsExternal

[android-developers] Re: Killi Process with files on SD card

2010-07-11 Thread Streets Of Boston
, 2010 at 9:23 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Register your broadcast receiver like this: IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_EJECT); intentFilter.addAction(Intent.ACTION_MEDIA_MOUNTED); intentFilter.addDataScheme(file

[android-developers] Re: Easy and fast XML Parser?

2010-07-12 Thread Streets Of Boston
I myself use the android.sax.* classes and the org.xmlpull.v1.XmlPullParserFactory that's configured to use the org.xmlpull.v1.sax2.Driver class for the actual hard work. (I wrapped some extra classes of my own around these (android.sax.*) to better track the the current context (i.e. which

[android-developers] Re: Killi Process with files on SD card

2010-07-14 Thread Streets Of Boston
in receiver onReceive. On Jul 10, 9:23 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Register your broadcast receiver like this: IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_EJECT); intentFilter.addAction(Intent.ACTION_MEDIA_MOUNTED); intentFilter.addDataScheme

[android-developers] Re: Best way to logout each time the application/task goes to background

2010-07-16 Thread Streets Of Boston
You have no control over the application and/or activity life cycle. This will make is very hard to determine when the user 'exits' the app. I would do this: 1. Consider an explicit 'log-out' option for your users. 2. Add a time-out to your login-sessions. Refresh the session (time- out) when the

[android-developers] Re: Best way to logout each time the application/task goes to background

2010-07-18 Thread Streets Of Boston
presses the home button, they can get back in quickly. On Jul 17, 3:40 am, Streets Of Boston flyingdutc...@gmail.com wrote: You have no control over the application and/or activity life cycle. This will make is very hard to determine when the user 'exits' the app. I would do

[android-developers] Re: Issue with starting two instances of an activity with flag Intent.FLAG_ACTIVITY_REORDER_TO_FRONT and a new extra information in the Intent does not override the original Int

2010-07-18 Thread Streets Of Boston
I'm not sure if this will work or not in your situation or if you are already doing this, but you could try this: Implement the callback method 'onNewIntent(Intent newIntent)' in your class 'A'. Then when the oNewINtent is called, be sure to call 'setIntent(newIntent)'. The thing here is, that

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread Streets Of Boston
First a small correction on DanH's reply, ARGB_ uses 32 bits (4 bytes), not 64 bits. The memory used by a Bitmap is roughly Width*Height*Depth bytes. (e.g. a 1MPixel image in RGB_565 uses 2MByte of memory). I say roughly, because the Bitmap object itself, holding the raw data, occupies a few

[android-developers] Re: Is it possible for my Activity to be notified when the external storage state changes?

2010-07-24 Thread Streets Of Boston
Search for ACTION_MEDIA_EJECT on this forum. On Jul 24, 1:02 pm, Joseph Earl joseph.w.e...@gmail.com wrote: I would like my Activity to be informed when the SD card is removed, since it relies on files from the SD card (to keep apk size down) but for compatibility reasons is not targeted at

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread Streets Of Boston
or not the bitmap is allocated in Java heap, freeMemory() is not real useful, at least not without actually running a (full) GC cycle first. On Jul 24, 5:20 pm, Streets Of Boston flyingdutc...@gmail.com wrote: First a small correction on DanH's reply, ARGB_ uses 32 bits (4 bytes

[android-developers] Static variables cleared in JUnit tests! (???)

2010-07-30 Thread Streets Of Boston
Hello, I have this test-code: = package somepackage; import android.test.ActivityInstrumentationTestCase2; import android.util.Log; import com.kronos.mobile.android.Constants; import com.kronos.mobile.android.ExceptionsSummaryActivity; import

[android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread Streets Of Boston
I'm glad to not have to use pre-processors and hash-defines. I hated them when i worked in C (and C++) (they tended to get over- used, made code unreadable and difficult to debug) and for the last decade of Java programming i really never ever needed them. How can you develop on a mobile without

[android-developers] Re: How to cite/reference free images

2010-07-31 Thread Streets Of Boston
One possibility is to have an 'About' screen, reachable from your menu or from your settings/preferences activity. Put the references/ citations in the About screen. On Jul 31, 3:39 pm, AUandroid thevk...@gmail.com wrote: Hi All, I am about to release my first app on the market for free. How

[android-developers] Re: Static variables cleared in JUnit tests! (???)

2010-08-02 Thread Streets Of Boston
I made a typo in my question. The last change to the static variable declaration should read: ... ... When i then change that line to (changing String to Object, still using 'final'): private static final Object USER = tturner; ... ... On Jul 30, 6:02 pm, Streets Of Boston flyingdutc

[android-developers] Re: Static variables cleared in JUnit tests! (???)

2010-08-02 Thread Streets Of Boston
A colleague of mine tried it and he found out that not calling 'super.tearDown()' makes this problem go away. But not calling 'super.tearDown()' is probably not a good idea for these type of test-cases (instrumentation won't be properly cleaned up). On Jul 30, 6:02 pm, Streets Of Boston

[android-developers] Solved: Static variables cleared in JUnit tests! (???)

2010-08-02 Thread Streets Of Boston
of implementing this method seems worse than the problem it tries to solve. On Jul 30, 6:02 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Hello, I have this test-code: = package somepackage; import android.test.ActivityInstrumentationTestCase2; import

[android-developers] Chargeback fees have been waived since June 2010

2010-09-15 Thread Streets Of Boston
I didn't know this until just now, when i got a chargeback request from Google. Chargeback fees (that were $3) for purchases from the Android Market under $10 have been waived since June 2010. This is only my second chargeback ever, but still: $3 is three dollars :-). -- You received this

[android-developers] Re: Gallery widget, focus and selection gone?

2010-09-16 Thread Streets Of Boston
I'm facing the same problem. Did you find any solution? On Aug 26, 12:13 pm, Sebastián Treu sebastian.t...@gmail.com wrote: Hi there, I'm trying to realize how the focus and selection in theGallery widget is doing their job. I'm facing weird situations when trying to update information

[android-developers] Re: Activity onResumed not getting called

2010-09-23 Thread Streets Of Boston
Again, that is normal behavior. When the user comes back to your app, the last activity that was visible to the user will be shown. If your app's process wasn't killed, that last activity is just shown. If your app's process was killed, then that last-activity will be re-created first. The fact

[android-developers] Re: AsyncTask thread does not terminate

2010-09-23 Thread Streets Of Boston
AsyncTasks are like Future(Task) instances executing on ExecutorServices (java.util.concurrent). On Sep 23, 6:17 pm, John Gaby jg...@gabysoft.com wrote: I am using AsyncTask.  When I call the 'execute' function, a new thread is created.  However, when the doInBackground function returns, the

[android-developers] Re: Android market time to refund.

2010-09-24 Thread Streets Of Boston
Customers can uninstall their app within about 24-48 hours (the exact number of hours is not quite clear to me), without your intervention and their purchase is nullified. After that period, their credit-card (through Google Checkout) gets charged and the purchase has been made. Customers can no

[android-developers] Re: Is it possible to format individual row items of a list on Selection?

2010-09-25 Thread Streets Of Boston
Yep. Make sure that the items (the things returned by your adapter's getItem(int position) method) contain a boolean that determines whether one list-item is selected or not. E.g. 'isSelected=true'. In your list-view' onItemSelected listener, do a adapter.getItem(position) to get hold of the

[android-developers] Re: Android market and customers email...

2010-09-25 Thread Streets Of Boston
Yes, you could. But don't spam the users be careful :-) On Sep 25, 6:30 am, sblantipodi perini.dav...@dpsoftware.org wrote: Excellent, so am I authorized to send email to that email address to communicate something like free updates or news about the software? Thanks. On Sep 25, 12:13 

[android-developers] Re: Button Mashing Alert Dialog

2010-09-25 Thread Streets Of Boston
And in to avoid button-mashing in general, you could disable the button when clicked. On Sep 25, 2:05 am, Doug beafd...@gmail.com wrote: Why would you ever call onStart() manually (assuming that it's the onStart of your activity)? You might want to look into using showDialog() provided by

[android-developers] Re: Updated my app to use Google Apis level 8, customers complain font now way too small

2010-09-25 Thread Streets Of Boston
How did you set the sizes of your text (font)? Don't use 'dp'/'dip' and certainly don't use 'px'. Instead use the 'sp' measure for fonts (scale independent pixels). On Sep 24, 11:33 pm, pawpaw17 georgefraz...@yahoo.com wrote: Guys, I was cooking along with the basic Google Maps 1.5 SDK and

[android-developers] Re: Updated my app to use Google Apis level 8, customers complain font now way too small

2010-09-27 Thread Streets Of Boston
I don't know why not, but i had the same problem (when the original Motorola Droid came out) and using 'sp' instead of 'dp' fixed the problem. On Sep 27, 12:19 am, Kumar Bibek coomar@gmail.com wrote: On Sep 25, 7:46 pm, Streets Of Boston flyingdutc...@gmail.com wrote: How did you set

[android-developers] Why does failed to connect to camera serfice happen on occasions

2010-09-28 Thread Streets Of Boston
Hi, I get this stack-trace in my e-mail at times from my application: java.lang.RuntimeException: Fail to connect to camera service at android.hardware.Camera.native_setup(Native Method) at android.hardware.Camera.init(Camera.java:118) at

[android-developers] Re: Why does failed to connect to camera serfice happen on occasions

2010-09-28 Thread Streets Of Boston
Thank you Mark! If it is a time-gap, i'd wonder how would one go about fixing this issue? How long does one needs to wait to call Camera.open after it's released? On Sep 28, 9:45 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Sep 28, 2010 at 9:41 AM, Streets Of Boston flyingdutc

[android-developers] Re: Bitmap to Bytes then bytes to Bitmap

2010-09-28 Thread Streets Of Boston
Yep, When using the copyPixelsToBuffer you're copying compressed data (e.g. the JPEG raw data) into the buffer. When using decodeByteArray, it is expecting uncompressed raw data (e.g. ARGB_ or RGB_565 and such). This means that when you send compressed data (from the call copyPixelsToBuffer)

[android-developers] Re: scaleType=fitXY works scaleType=centerInside doesnt

2010-10-01 Thread Streets Of Boston
The Eclipse plugin sucks if you do a bit more than just simple layouts or drawables. The only way to check if it all works fine, is to check it during runtime (either on the emulator or, better, a real device). On Oct 1, 3:08 am, Shawn Brown big.coffee.lo...@gmail.com wrote: If you know or can

[android-developers] Voice Search from Keyboard not working (Voice Search works fine in Google Search, though)

2010-10-01 Thread Streets Of Boston
Since quite a while (i think after the the OTA update to Froyo (2.2)), my Voice Search from the keyboard stopped working. A Voice Search from Google Search, for example, still works fine without problems. But when clicking on the keyboard's microphone button to speak a text that needs entering in

[android-developers] Re: OutOfMemory exception in OnCreate

2010-10-02 Thread Streets Of Boston
You haven't shown us enough of your code (code snippets) for us to begin figuring out what may be wrong with your app. Could you provide more details? But to your questions; 1. The onCreate is called once per Activity instance. If you have instance-variables/fields in you activity, you can assume

[android-developers] Re: Goo Market Frustration(s) -- a request to experienced app developers

2010-10-08 Thread Streets Of Boston
Also, your app may not work on HIS hero-phone. It could be tons of things, depending on your app, that may have nothing to do with a particular (brand of) device, but with software loaded on it. E.g. your app uses services that a task-manager on his device keeps killing. E.g. your app may use

[android-developers] Slow initial showing/drawing of Activities when using own Theme

2010-10-08 Thread Streets Of Boston
When i create an activity that uses a custom-theme, e.g. android:theme=@style/MyLogonTheme. I create my theme in styles.xml: style name=MyLogonTheme parent=android:Theme item name=android:typefacesans/item item name=android:windowBackground@drawable/ android_screen_logon_bg/item /style

[android-developers] Re: Slow initial showing/drawing of Activities when using own Theme

2010-10-09 Thread Streets Of Boston
launch time. On Fri, Oct 8, 2010 at 3:50 PM, Streets Of Boston flyingdutc...@gmail.comwrote: When i create an activity that uses a custom-theme, e.g. android:theme=@style/MyLogonTheme. I create my theme in styles.xml: style name=MyLogonTheme parent=android:Theme    item name

[android-developers] Re: Slow initial showing/drawing of Activities when using own Theme

2010-10-09 Thread Streets Of Boston
mmur...@commonsware.com wrote: You could try Traceview and see where the time is going: http://developer.android.com/guide/developing/tools/traceview.html On Sat, Oct 9, 2010 at 5:32 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, I'll make sure to use

[android-developers] Re: How to draw a piece of Bitmap

2009-04-27 Thread Streets Of Boston
My app zooms in and out of pics and lets the user moved the (zoomed) in pic around. The key methods for mapping a sub-picture (the one the size of the screen) is done by using the calls Matrix.setRectToRect and Bitmap.createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m,

[android-developers] Re: How to display RGB 565 byte array on the screen

2009-04-27 Thread Streets Of Boston
Take a look at this method on developer.android.com: Bimtap BitmapFactory.decodeByteArray(byte[] data, int offset, int length, BitmapFactory.Options opts) and how to draw a Bitmap on the screen (onDraw; dispatchDraw; Canvas; etc.) On Apr 27, 6:20 am, lohith loh...@gmail.com wrote: Hi, Can

[android-developers] Re: Framerate killed by onTouchEvent spam

2009-04-27 Thread Streets Of Boston
One work-around works rather well if you do the onTouchEvent handling in the main GUI-thread and drawing the screen in another (background) thread. In your handling of your onTouchEvent (especially when handling the ACTION_MOVE) add a sleep statement for about 20 milliseconds (or a bit longer)

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