[android-developers] Re: Keystore tampered with or password incorrect

2009-09-24 Thread Streets Of Boston
I know it's too late now, but after you create a keystore, back it up! If it gets corrupted or lost, you can restore it. On Sep 24, 11:19 am, CaseyB wrote: > I had the same problem.  It happened right around the time I updated > to the 1.5 SDK.  I also updated Java around the same time.  I don'

[android-developers] Re: Problem to count number of days between Two dates...

2009-09-25 Thread Streets Of Boston
This may get you into trouble if a time-span crosses a DST change. A day does not necessarily have 24 hours. In many areas in the world, twice a year, a day does not have 24 hours, but 23 or 25 instead. Not to mention the occasional leap-seconds that are added to some years. On Sep 25, 12:22 am,

[android-developers] Re: Send me the Code - Custom AdapterView and onItemClickListener

2009-09-25 Thread Streets Of Boston
"lf.hl" wrote: > Hi, > > so onItemClickListener does not fire on views inside one row? > > I would like to handle all UI events in a central point and expected > to do this in onItemClickListener. > > Thanks and best, > > lf.hl > > On 24 Sep., 21:46,

[android-developers] zipalign and Eclipse: Does Eclipse do this automatically?

2009-09-28 Thread Streets Of Boston
Question: Does Eclipse automatically zipalign? In other words: If you use the Android 1.6 SDK, having it installed in Eclipse, and use Eclipse to sign your apk (right-click: Android Tools --> Export Signed Application Package), will your apk be zipaligned? --~--~-~--~~~---

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and "back button". How to restore progress dialog?

2009-09-29 Thread Streets Of Boston
If you want to keep your thread running after you press the home or back button, i'm afraid you'd have to use a service. When your activity is popped off the back-stack (e.g. pressing home), the OS could kill the process in which your activity is running and your thread will be terminated. As far

[android-developers] Re: zipalign and Eclipse: Does Eclipse do this automatically?

2009-09-29 Thread Streets Of Boston
ipalign-easy-optimiza... > > Xav > > On Mon, Sep 28, 2009 at 9:42 PM, Streets Of Boston > > wrote: > > > Question: > > Does Eclipse automatically zipalign? > > > In other words: If you use the Android 1.6 SDK, having it installed in > > Eclipse, an

[android-developers] Re: Run the same applications that are running J2ME

2009-09-29 Thread Streets Of Boston
http://www.netmite.com/android/ I don't know how well this MIDP runner works, but it's worth a try :-) On Sep 29, 1:21 pm, Ray da Costa wrote: > A helping hand, I have an Android G2 and would like to run the same > applications that are running J2ME on my other cell E62. Is it possible? > What

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and "back button". How to restore progress dialog?

2009-09-30 Thread Streets Of Boston
t I read a lot of information concerning the subject. > > On Sep 29, 4:32 pm, Streets Of Boston wrote: > > > > > If you want to keep your thread running after you press the home or > > back button, i'm afraid you'd have to use a service. > > > When your activit

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-09-30 Thread Streets Of Boston
No well, at least I haven't found any. I'm writing an app that creates images. I needed to code this from scratch: - Call bitmap.compress to store JPEG of full image and then use MediaScannerConnection to insert it into the MediaStore. - Generate thumbnails for my images: Insert new one into

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Streets Of Boston
I think that using the Number.valueOf and Number.toString methods should work fine. The system should deal with the currently installed and active locale. Unless you're creating an app that needs to deal with multiple locales at the same time or do some fancy formatting, i wouldn't bother much wi

[android-developers] Re: jsonarray as listview source

2009-09-30 Thread Streets Of Boston
Implement your subclass of BaseAdapter (e.g. JSONArrayAdapter). Implement/override the getCount(), getItem(int position), etc. to make your BaseAdapter a proper list-adapter around your jsonarray. Implement the getView method; it provides the 'position' and 'contentView' parameters. - Use positio

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Streets Of Boston
I meant 'valueOf' method of the various Number subclasses... :-) You're right. I just took a look at the code that is executed by Double.valueOf(...). It is hard-coded for using periods as decimal seperators. On Sep 30, 12:55 pm, Gerald wrote: > There is no valueOf method in the Number class. I

[android-developers] Re: jsonarray as listview source

2009-09-30 Thread Streets Of Boston
) == 1 ? mIcon1 : > mIcon2); >             ... > > Which is basically list14 example from SDK. But, holder.text.setText > (valArray2[position]); returns error that Array is expected and mine > is JSONArray. How to cast my JSONArray to expected format? > > On Sep 30, 6:37 p

[android-developers] Re: activity leaked a window

2009-10-02 Thread Streets Of Boston
"I can't depend on onPause/onStop/onDestroy to dismiss them." Why not? Just add a method to your own TextView class that allows communication between the activity and the text-view. Best would be to show/dismiss this dialog in the Activity and have your TextView call your Activity's methods (e.g

[android-developers] Re: All developers check your transaction fees! They are charging 92% on some sales!

2009-10-02 Thread Streets Of Boston
Yep, I just checked my check-out account and it happened to me too a few times as well. On Oct 2, 9:56 am, Moto wrote: > First sorry about posting this in this group, but I think every > developer should be aware! > > During the past few days Google checkout was charging on some sales > 92% tran

[android-developers] Re: All developers check your transaction fees! They are charging 92% on some sales!

2009-10-02 Thread Streets Of Boston
But, I looked a bit further. They fixed it for me. Look in your Payout section in the 'Other Activity' colummn. I have been re-imbursed for these extra fees. All seems to be ok now :-) On Oct 2, 10:00 am, Streets Of Boston wrote: > Yep, > I just checked my check-out account an

[android-developers] Re: activity leaked a window

2009-10-02 Thread Streets Of Boston
when the > orientation changes but not in activty's onPause etc for the above said > reason. > > On Fri, Oct 2, 2009 at 8:57 AM, Streets Of Boston > wrote: > > > > > > > "I can't depend on onPause/onStop/onDestroy to dismiss them." > > Why not

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

2009-10-03 Thread Streets Of Boston
ot; wrote: > Thanks for this - very useful and works perfectly. > > But it compiles to 300kb which doubles to 600kb for copy protected > apps. > > Anyway to make a streamlined version of this app to just embed a gps > location in a jpeg file? > > Alex > > O

[android-developers] Re: updating UI from runnable

2009-10-03 Thread Streets Of Boston
It's quite a bit of code, but one thing's missing that you have to do: In your onCreate, you're not calling setContentView(...). You have to do this to show at least something :-) On Oct 3, 4:39 pm, vorcigernix wrote: > Hello, > > I didn't found clear answer for why my code does not work. I ass

[android-developers] Re: Publish Apps for Other Developers

2009-10-07 Thread Streets Of Boston
Why not. I don't think Google prohibits that. All the earnings (from Google Checkout) will go to the US publisher. It is up to him and his Russian counter-part to iron out all the copyright/legalities/payments/tax-issues between them. On Oct 7, 12:03 pm, polyclefsoftware wrote: > The country wh

[android-developers] Re: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-07 Thread Streets Of Boston
Your activity (and your list-view) is not yet visible in the onStart. Don't use 'getChildCount' and 'getChildAt' method to check your preference-settings. BTW: If your activity is not yet visible, how can a user make a selection? Shouldn't you query in the onPause, for example. And also, the pos

[android-developers] Re: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-08 Thread Streets Of Boston
> ListView.  The breakdown occurs when I try to set these items as > checked in the ListView when the activity starts back up. > > > Don't use 'getChildCount' and 'getChildAt' method to check your > > preference-settings. > > What is the proper metho

[android-developers] Question about LocationServices issue (3453): has this been solved in Donut (1.6)?

2009-10-09 Thread Streets Of Boston
The issue is about the location-services making the phone act very slow because of excessive CPU consumption: http://code.google.com/p/android/issues/detail?id=3453 Has this one been solved in Donut? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: app gives layout errors only on Sprint HTC Hero devices

2009-10-12 Thread Streets Of Boston
I might be mistaken, But this part of the stack-trace worries me a bit: android.view.LayoutInflater.inflate(LayoutInflater.java:276) com.altcanvas.readerscope.ItemDetails.(ItemDetails.java: 145) com.altcanvas.readerscope.ItemDetails.getInstance(ItemDetails.java: 566) com.altcanvas

[android-developers] Re: Noob question...using class variables inside listeners

2009-10-12 Thread Streets Of Boston
Two solutions: Remove the 'this': okIntent.putExtra("com.example.challenge_no", challenge_number);// This is the problem line startActivity(okIntent); finish(); Or add Example.: okIntent.putExtra("com.example.challeng

[android-developers] Re: for Google attention

2009-10-13 Thread Streets Of Boston
There are sooo many more web-site offering paid Android apps for download. Some do it for free and other actually ask for money, either per download or a membership of their web-site/forum. On occasion I was able to remove my app from these sites. The owners of these sites were cooperative. Other

[android-developers] Re: Temp storage for bitmap

2009-10-13 Thread Streets Of Boston
When you store it in the EXTERNAL_CONTENT_URI, your image can already be shared with every other app on the phone. When you added (inserted) the image, your result was a Uri. This Uri can be used by any other app to obtain your image. On Oct 13, 4:42 pm, m_vitaly wrote: > My program creates a b

[android-developers] Re: Rotating Camera Preview

2009-10-15 Thread Streets Of Boston
Thanks! Does this work for every android phone out there? On Oct 8, 6:50 am, Anirudh wrote: > Hi, > > I have figured out a way to do this. You have to set the parameter key > called "orientation" to the value "portrait" using the set() method of > CameraParameters class. > Snippet: > > Paramete

[android-developers] Re: How to specify the maxWidth of a TextView as a percentage of screen width?

2009-10-16 Thread Streets Of Boston
Wrap another Layout (ViewGroup) around your text-view. Set this new layout's width to 50% of the parent's width (using Weight (or WeightSum... i can't remember) of 100 in the parent and layoutWeight or 50 of your new layout. Then the child of your new layout, your text-view, has a layoutWidth of

[android-developers] Re: Market screen shots

2009-10-16 Thread Streets Of Boston
The market compresses the uploaded images heavily. Just check the size of the images in your Market-Publish site of your app. They are quite small and tons of JPEG artifacts show up. Even if you uploaded PNGs, the images will become JPEGs, heavily compressed ones. On Oct 16, 11:48 am, westmeadbo

[android-developers] Re: Quick Yes/No question about the UI thread during a screen rotation

2009-10-19 Thread Streets Of Boston
If I remember correctly, if you post a Runnable to a Handler instance (AsyncTask does this), the messages(/Runnables) are posted back to your application on the main UI-thread, regardless whether your activity is active or destroyed. You do have to check *which* Activity instance is active (or ma

[android-developers] Re: Quick Yes/No question about the UI thread during a screen rotation

2009-10-19 Thread Streets Of Boston
Thanks Dianne, you posted your answer when i was typing mine. It confirms what i thought should work :-) About not processing any messages between the destruction and creation of activitie during config-change: Does this mean that i never have to check for 'ACTIVE_INSTANCE==null' in an onPostExec

[android-developers] Re: Temp storage for bitmap

2009-10-19 Thread Streets Of Boston
t; On Oct 14, 4:20 am, Streets Of Boston wrote: > > > > > When you store it in the EXTERNAL_CONTENT_URI, your image can already > > be shared with every other app on the phone. > > > When you added (inserted) the image, your result was a Uri. This Uri > > can be u

[android-developers] Re: Question about LocationServices issue (3453): has this been solved in Donut (1.6)?

2009-10-19 Thread Streets Of Boston
sorry for the bump, but i'm curious :-) On Oct 9, 3:53 pm, Streets Of Boston wrote: > The issue is about the location-services making the phone act very > slow because of excessive CPU > consumption:http://code.google.com/p/android/issues/detail?id=3453 > > Has this one

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread Streets Of Boston
RichardC and String are correct. You can't and shouldn't do this. Re-design your app so that the user does not need to push a GUI to the front at any possible given time. Also, your background service that waits in the background may have been killed by the Android OS due to low memory or low re

[android-developers] Re: Temp storage for bitmap

2009-10-20 Thread Streets Of Boston
where do I temporary store the image ? > I can store it in EXTERNAL_CONTENT_URI, Context.getCacheDir() or > Context.getFilesDir() ... > But what's preferable and why ? (considering: deletion timing, permissions, > locks, etc.) > Personally, I would choose cache dir. > >

[android-developers] Re: ListView with Streaming Content

2009-10-21 Thread Streets Of Boston
No need to call 'invalidate()' on your list-view. Call 'notifyDatasetChanged()' on your customer adapter instead, whenever you add or delete elements in your ArrayList or change the contents of existing elements in your ArrayList. On Oct 21, 7:53 am, Marc Lester Tan wrote: > Hi Migs, > > You can

[android-developers] Re: app gives layout errors only on Sprint HTC Hero devices

2009-10-21 Thread Streets Of Boston
> using > > > > Sprint HTC Hero devices. This problem hasn't been reported on any other > > > > phone. Is it fair to assume that it's a problem in that particular ROM? > > If > > > > that's so, then what options do I have to resolve this issue - should

[android-developers] Re: Is your Android app on Archos Market ?

2009-10-21 Thread Streets Of Boston
Same here. If they indeed did that, then i won't put my app there. On Oct 20, 1:25 pm, niko20 wrote: > Hi, > > Maybe I will wait until I find out if you really stole the code for > your app store from the andAppStore developers. At least that is the > current allegation. > > -niko > > On Oct 20,

[android-developers] Re: BitmapFactory.decodeStream sometimes returns null

2009-10-21 Thread Streets Of Boston
Hi everyone, Without (sample) code or a log-trace, there is not much that we can do to help you. On Oct 20, 11:44 am, "kevin.hooke" wrote: > I'm having a similar problem where BitmapFactory.decodeStream() is > working reliably in the emulator, but the same app transferred to the > phone is retu

[android-developers] Re: HTC Hero does not support colored LEDs (SDK way) - What can developers do in these cases? [Follow up from android-platform]

2009-10-21 Thread Streets Of Boston
Not good to hear this. This means, like JBQ said, that they (whoever 'they' is) need to really tighten the compatibility reqs. Google puts a lot of effort in to make it as easy as possible to support various devices but if manufactures (or even OHA members) are becoming lax... Most of the proble

[android-developers] Re: app gives layout errors only on Sprint HTC Hero devices

2009-10-21 Thread Streets Of Boston
s the problem for HTC Heros. If so, your particular problem is fixed. On Oct 21, 11:34 am, Jayesh Salvi wrote: > -- > Jayesh... > > read more » > > On Wed, Oct 21, 2009 at 7:39 PM, Streets Of Boston > wrote: > > > > > I still would try to inflate your view inside

[android-developers] Re: Is your Android app on Archos Market ?

2009-10-22 Thread Streets Of Boston
ndAppStore are right but I don't > think why Archos should stole codes... > > On 21 oct, 16:11, Streets Of Boston wrote: > > > > > Same here. > > If they indeed did that, then i won't put my app there. > > > On Oct 20, 1:25 pm, niko20 wrote: > >

[android-developers] Re: ArrayAdapter also works with java.util.List (was Re: ListView with Streaming Content)

2009-10-22 Thread Streets Of Boston
You're right. Even better! :-) If you back just a simple java.util.List, then the ArrayAdapter will take care of most, if not all, of your requirements for a list-view. On Oct 21, 11:58 pm, Miguel Paraz wrote: > Hi Marc and "Streets of Boston", > > Thanks for the t

[android-developers] Re: Stopping Content Provider

2009-10-22 Thread Streets Of Boston
Doesn't that happen anyway? If memory is low, Android starts closing all kinds of process down. But it will do so on its own terms and time :-) On Oct 21, 8:26 pm, "B++" wrote: > The Content Provider starts when the first applicable URI is resolved. > This will make the ContentProvider run forev

[android-developers] Re: synchronized SurfaceHolder hanging on my market app

2009-10-25 Thread Streets Of Boston
I cannot answer this question for you, but try to reproduce this issue on a real device while having it connected to your PC so that you can debug it. Let it run until it hangs. Then start the ADB debugger and pause all threads. See which threads are causing the deadlock. This may give you some m

[android-developers] Re: ListView setAdapter in onCreate, getChildCount is zero in onStart?

2009-10-27 Thread Streets Of Boston
Put the data whether a checkbox of a list-item is selected inside the *adapter's* data, like my example i gave you in an earlier post (selectableString.isSelected). If you want to pre-select a check-box of a list-item, set its corresponding element in the adapter (SelectableString) as selected (s

[android-developers] Multitouch support in Android 2.0

2009-10-27 Thread Streets Of Boston
Kind-a burried inside the blog-post on developer.android.com (http:// developer.android.com/sdk/android-2.0-highlights.html), i saw that multi-touch is now supported: >> Android virtual keyboard •An improved keyboard layout to makes it easier to hit the correct characters and improve typing speed

[android-developers] Re: Multitouch support in Android 2.0

2009-10-27 Thread Streets Of Boston
API allows for an > arbitrary number of fingers, not just 3.  I just happened to define > convenience constants for the first 3 finger down/up actions, but given > their weird naming as seen above and the finger ID mask is actually 255, it > is perhaps best just to ignore those constants.

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

2009-10-27 Thread Streets Of Boston
I have the same issue. I started android.bat from the command prompt. Since android.bat is in the directory that is reported to be locked, my command prompt is holding a lock to it when starting android.bat not very handy... On Oct 27, 7:36 pm, Xavier Ducrohet wrote: > Hi, > > the issue is

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

2009-10-27 Thread Streets Of Boston
he lock problem. > > Xav > > On Tue, Oct 27, 2009 at 5:44 PM, Streets Of Boston > > > > > > wrote: > > > I have the same issue. > > > I started android.bat from the command prompt. > > Since android.bat is in the directory that is reported

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

2009-10-27 Thread Streets Of Boston
should work > from Eclipse. > > Xav > > On Tue, Oct 27, 2009 at 5:59 PM, Streets Of Boston > > > > > > wrote: > > > It doesn't work under Eclipse either... same message as when using the > > command prompt. > > > I guess all Windows use

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

2009-10-27 Thread Streets Of Boston
. However, when i click on 'Available Packages', i get the message "Some packages were found but are not compatible updates." On Oct 27, 9:16 pm, Streets Of Boston wrote: > I wish i could say that; i had only my Eclipse open and a few browser > windows...and still i got t

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

2009-10-27 Thread Streets Of Boston
I still have this "Some packaget ... updates" message, but it does not seem to affect anything negatively. On Oct 27, 9:33 pm, Streets Of Boston wrote: > It looks like adb.exe holds a lock to the problematic directory. > When you start Eclipse, adb.exe is started. And when

[android-developers] Re: How to "hide" activity on BACK key without onDestroy?

2009-10-28 Thread Streets Of Boston
I agree with Piotr. Tomei, We may be able to help you with the *how*, if you told us *what* you are trying to accomplish. I am almost 100% it could be done without trying to circumvent Android's lifecycle management. On Oct 28, 4:42 am, Piotr wrote: > If you think how to get "around" applicatio

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

2009-10-28 Thread Streets Of Boston
all > > > That's correct. > > > Windows users who are not using eclipse, we recommend that you > > download the SDK package at > >http://developer.android.com/sdk/index.html > > > This is basically only the tools folder, but it also includes a "SDK > >

[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 wrote: > Can i stop that?

[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 wrote: > Very tricky.  I like it!  Thanks. > > On Oct 28, 1:12 pm, RichardC wrote: > > > > > In your activity onCreate meth

[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 wrote: > I'm getting some re

[android-developers] Re: Application doesnot quit on calling finish()

2009-04-28 Thread Streets Of Boston
Probably System.exit(). But why would you want to do that? Why not leave it up the the OS to kill your process when necessary? Your activities should be able to handle the Android life-cycle process correctly (onCreate, onResume, onPause, onDestroy, etc). On Apr 28, 8:56 am, Sudha wrote: > So

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-28 Thread Streets Of Boston
orks fine, and pretty fast ( on all 100 > > > elements ), > > > but than begin problems with last cell. > > > Animation not child-view's. Each cell is a imageView with animation on > > > it. > > > > On 27 апр, 20:43, Streets Of Boston wrote: &g

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-28 Thread Streets Of Boston
; working fine in that case, but don't working if I run it in getView > method, even with your algorithm? > > On 28 апр, 16:55, Streets Of Boston wrote: > > > > > Don't rely on the order in which getView is called. It is not a bug. > > It is a decision of the d

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-28 Thread Streets Of Boston
er ( e.g. something > > >> >> like .addView() method ) ? > > > >> >> On 27 апр, 21:38, Illidane wrote: > > > >> >> > My GridView shows all 100 cells on the screen ( all visible at one > > >> >> > moment ) > > &

[android-developers] Re: Why doesn't w.requestFeature(Window.FEATURE_RIGHT_ICON);work?

2009-04-29 Thread Streets Of Boston
It's a bug. I don't know if it's fixed in Cupcake, but in 1.1 and 1.0 this does not work. The icon will always be on the left. On Apr 29, 4:39 am, quill wrote: > Hi all, > I just want to set an icon in the right of titlebar, so I use: >         Window  w = getWindow(); >         w.requestFeature

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-29 Thread Streets Of Boston
lease (see its note about how it is more finnicky about the depth and width of view-hierarchies). Instead, you have just one view with 100 small bitmaps/drawables. On Apr 29, 3:03 am, Illidane wrote: > Extend the GridView or write my own class which will manipulating 100 > cells as drawables

[android-developers] Re: GridView and BaseAdapter position bug

2009-04-29 Thread Streets Of Boston
w with 100 small > > bitmaps/drawables. > > > On Apr 29, 3:03 am, Illidane wrote: > > > > Extend the GridView or write my own class which will manipulating 100 > > > cells as drawables? > > > > On 29 апр, 00:27, Streets Of Boston wrote: > > >

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-04-30 Thread Streets Of Boston
In my app, i've been dillegently 'unloading' bitmaps when i need memory. I clear out as much as I can. E.g. when a view becomes invisible (onPause) or just before you start loading a big bitmap: - do a setImageBitmap(null) (or similar methods, depending on which class of View you're actually usin

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-04-30 Thread Streets Of Boston
c variables in Android as the plague. And, if i really need one, i make absolutely sure the static variable is either cleaned up properly (set to null) and/or that it holds no (indirect) references to activities. On Apr 30, 4:39 pm, Ward Willats wrote: > Thanks for these tips. > > At

[android-developers] Re: Weird bug when saving picture to file system!?

2009-05-01 Thread Streets Of Boston
I had the same problem. You can fix it yourself (for now), by running the MediaScanner over the file you just saved. Get the DATA column of your image-uri. The DATA ("_data") column holds the physical file-path of your image. Use this file-path in the MediaScanner (and MediaScannerConnection) to

[android-developers] Re: How to avoid out of memery exception

2009-05-01 Thread Streets Of Boston
You can load full-size pics with restrictions. I found out, i can load a full-sized pic (3MPixels) in RGB_565 mode. But trying to load it in ARGB_ fails (OOM exception) and i need to load it in a smaller size. Still, in my app i dilligently try to clean up bitmap memory (call recycle and

[android-developers] Re: Do I need a dev handset, or can I develop using a standard G1 from T-Mobile?

2009-05-03 Thread Streets Of Boston
Hi Robert, I'm developing my apps on my retail G1. I don't have a dev-phone. The advantage of having a dev-phone is that you can flash it with the latest SDK (1.5/CupCake) and try your apps out on a real device. With my retail G1, i cannot load 1.5 on it. But, for me, that's not a biggie. I can

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Streets Of Boston
I really hope that this is *not* possible. A background application that steals key-strokes is not a good idea. I won't doubt that your application only has good itentions, but the idea that i could be downloading a key-stroke sniffer is not very appealing. I'd rather not have my passwords stolen

[android-developers] Re: Playing shoutcast mp3 stream in background crashes in 1.5

2009-05-05 Thread Streets Of Boston
I see you already tried to put it in a service. How do you stop/start this service? If your activity just binds to the service, the service will stop when the activity goes away. To fix this, do a 'Context.startService' as well. This will cause your service to stay running in the background, even

[android-developers] Re: onDraw() help

2009-05-06 Thread Streets Of Boston
Nope. Try this. -Create a mutable bitmap the size of the screen. Save this bitmap as a variable of your instance. -Create a Canvas from this bitmap (i think you can 'cache' it, save this canvas as a variable of your instance). -Draw your touches into this canvas. Then in the 'onDraw(Canvas scre

[android-developers] Re: onDraw() help

2009-05-06 Thread Streets Of Boston
Nope. Try this. -Create a mutable bitmap the size of the screen. Save this bitmap as a variable of your instance. -Create a Canvas from this bitmap (i think you can 'cache' it, save this canvas as a variable of your instance). -Draw your touches into this canvas. Then in the 'onDraw(Canvas scr

[android-developers] Re: Alternatives to Android Market

2009-05-06 Thread Streets Of Boston
Handango.com MobiReach.com (mobihand.com) slideme.com and a bunch of others :) On May 6, 10:51 pm, Jose de Paula Eufrasio Junior wrote: > I know that this list's objective is not to talk about the Market, but if I > need a developer's POV... > I just now discovered I can't even signup on the Ma

[android-developers] Re: Weird bug when saving picture to file system!?

2009-05-06 Thread Streets Of Boston
You have to wait until the mediascanner posts a callback when you it is done. I wrote a wrapper around this behavior, which you can call by this example: // msListener's 'ready(...)' method is called when the imgUri has been scanned completely. MediaScannerNotifier.run(getApplicationContext()

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-07 Thread Streets Of Boston
Developers need to backup their key-stores (and save their passwords to it) to prevent the exact problems you have right now. If one could change the signature of an app with a new key and the Market would allow the app with this different signature to be uploaded, people could hijack your app re

[android-developers] Re: nullifying imageview src

2009-05-08 Thread Streets Of Boston
thrownCardsImgs[thrownCardIndex].setImageBitmap(null) this will clear the image from your ImageView (card). On May 8, 1:33 pm, Sheepz wrote: > can you elaborate on that? > > On Apr 7, 6:51 pm, Streets Of Boston wrote: > > > > > Try to do setImageBitmap(null) instead.

[android-developers] Re: OutOfMemoryError when changing screen orientation

2009-05-08 Thread Streets Of Boston
Your image is probably too big. By setting a 2048x1536 pixels image, you will eat up about 6MByte of memory right there. The memory of the large bitmap may not be cleaned up quick enough when chaning orientation. To get around this issue, scale the bitmap yourself: Read in the full-size bitmap by

[android-developers] Crash of emulator.exe on Windows Vista Ultimagte 64Bit

2009-05-08 Thread Streets Of Boston
Hi, I'm developing under Eclipse 3.3, Windows Vista 64bit. It took me quite a while, but finally i got my projects to build on the new 1.5SDK. I created two devices, one for target 1.1 and the other for 1.5. When i run my projects in the emulator, it all works well for the 1.1. device. However,

[android-developers] Just installed SDK1.5: I cannot open DDMS perspective properly

2009-05-08 Thread Streets Of Boston
I'm running under Windows Vista 64bit and after installing SDK 1.5, i no longer can use the DDMS perspective. All views that are tried to get opened fail (LogCat, Heap, Threads, etc.). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] com.android.ide.eclipse.ddms.views.LogCatView problems

2009-05-08 Thread Streets Of Boston
I just installed the SDK1.5 and i get this message when i try to look at my logcat: Problems occurred restoring perspective. Could not find view: com.android.ide.eclipse.ddms.views.LogCatView I use Eclipse 3.3 under Windows Vista 64bit. Is this a known issue? --~--~-~--~~--

[android-developers] Re: Crash of emulator.exe on Windows Vista Ultimagte 64Bit

2009-05-08 Thread Streets Of Boston
t; Please run the emulator manually with your avd with debugging > information and post the result here: > >   emulator -debug all @your_avd_name > > Thanks, > R/ > > On Fri, May 8, 2009 at 6:35 PM, Streets Of Boston > > > > wrote: > > > Hi, > > >

[android-developers] Re: The app got crashed on SDK 1.5 which is working fine on SDK 1.0

2009-05-11 Thread Streets Of Boston
I'm not absolutely sure, but i remember reading that sdk1.5 is much much more conservative on the allowable depth and width of your screen's layout. If you go very deep (from parent-views to child-views) or very wide (many 'sibling' views), sdk1.1 had a bit of a hard time, but could handle it. Ho

[android-developers] Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Streets Of Boston
Hi, Part of my application allows the user to color-correct images. When i open an image for editing, i'd like to know what, more or less, the available bitmap memory is for the device that the app is running on. For the G1, the limit is use is about 6MByte (about a full-size image that can be t

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Streets Of Boston
is limited to 16MB. > > On Wed, May 13, 2009 at 10:35 AM, Streets Of Boston > > > > > > wrote: > > > Hi, > > > Part of my application allows the user to color-correct images. When i > > open an image for editing, i'd like to know what, m

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Streets Of Boston
wise allocate it and tell the VM to account for that as part of its > heap usage). > > On Wed, May 13, 2009 at 11:24 AM, Streets Of Boston > > > > > > wrote: > > > Hi Dianne, > > > Thanks for your response. > > > I know that there is no r

[android-developers] Re: Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

2009-05-14 Thread Streets Of Boston
I had similar issues. I have no idea exactly how i fixed it. At some point i noticed i forgot to set the target for each project i have (target is 1.1 or 1.5) and after setting this, and after re-starting Eclipse, refreshing and rebuilding, the issue was resolved. I don't know if this was *the* f

[android-developers] Re: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Streets Of Boston
As a side-note: I think the TextView's (and EditText) 'gravity' should have been called 'alignment'. It's called that way in most UI's. :=) On May 14, 10:54 am, Romain Guy wrote: > Hi, > > Well, first of all RelativeLayout ignores layout_gravity. Then you > need to know that gravity means "app

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-14 Thread Streets Of Boston
That's what i do right now. My app does its best to have as much memory as possible before starting to open a big image for editing (i have written a notification-system that caches and other classes can register with. They'll then get notified when bitmap memory is necessary, asking them to free

[android-developers] Re: How to select open GL objects from motion event?

2009-05-14 Thread Streets Of Boston
You can map it onto the 3D world. You just have to do some math. Get the x and y coordinates of your touch-event. Then you have to do this for both z=0 (near plane) and z=1 (far plane): Translate the line (x,y,0) --> (x,y,1) in screen-coordinates into your 3D coordinates (hint: use gluUnProject(

[android-developers] Re: loading apk resources into a WebView

2009-05-14 Thread Streets Of Boston
This works for me: E.g. In one of my apps, I load an HTML page as follows: webView.loadUrl("file:///android_asset/help/helpgube.html"); Below is a snippet from the helpgube.html: And here a snippet from helpgubecss.css body { BACKGROUND-POSITION: 0px 0px; BACKGROUND-IMA

[android-developers] Re: UI problem

2009-05-15 Thread Streets Of Boston
You want a delay between changing the button's text and showing the new content-view? If that's the case, private void markUser(int index) { btnArray[index].setText(mark); btnArray[index].setClickable(false); postDelayed(new Runnable() {

[android-developers] Re: Using glColor4x

2009-05-18 Thread Streets Of Boston
I think the color values are values between 0 (rgb = 0) and 1 (rgb = 255). And, if i'm reading your code correctly, the 'red', 'green' and 'blue' values in your code-example have values between 0 and 255 (in fixed format: 0.0, 1.0, 2.0 --> 255.0). http://www.khronos.org/opengles/documentation/open

[android-developers] Re: How to know it's week when input random date?

2009-05-19 Thread Streets Of Boston
Note that this code may not compile (typo's), but i hope you'll get the idea. [code] Date sampledate = ... ...; ... Calendar cal = Calendar.getInstance(); cal.setTime(sampleDate); int weekNumInYear = cal.get(Calendar.WEEK_OF_YEAR); int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); ... etc. etc. [/co

[android-developers] Re: Wait for activity finishes

2009-05-20 Thread Streets Of Boston
As far as i know, you can't do this. Maybe you want to implement a modal dialog. Launch a (subclass of) android.app.Dialog instead. However, even when using dialogs by calling yourDialog.show(), the show () call returns immediately. It doesn't wait. It looks like you have to re-write some of you

[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time

2009-05-20 Thread Streets Of Boston
on't be any faster. > > On Wed, May 20, 2009 at 10:58 AM, Streets Of Boston > > > > wrote: > > > In your example, it seems you don't need the getCount() or moveToFirst > > () at all. > > > The snippet below works well without using getCount or mov

[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time

2009-05-20 Thread Streets Of Boston
In your example, it seems you don't need the getCount() or moveToFirst () at all. The snippet below works well without using getCount or moveToFirst(). [code] Cursor c = db.query(var1, var2, var3 .); while (c.moveToNext()) { // do something with cursor c ... } [/code] On May 18, 10:47 

[android-developers] Re: Very strange StackOverflow exception

2009-05-21 Thread Streets Of Boston
"But I'm confident I don't deal with so much levels." I count about 30 draw() calls on either ViewGroup or FrameLayout in the stack. You are dealing with quite a number of levels... probably too many of them. On May 21, 4:44 am, Vince wrote: > Hi fadden, > > Here is the stack trace: > > 05-21 08

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