[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Streets Of Boston
If i understand you correctly, you'd want to assign 'singleTop' to an activity's Launch Mode (in the manifest). This mode makes sure that there is at most one instance of your activity in your app, never more than one. When a 'singleTop' activity is created, its onCreate method is called. When a

[android-developers] Re: HoneyComb and LayoutInflator-cloning seems broken

2011-01-29 Thread Streets Of Boston
Hackborn hack...@android.comwrote: It's not by design.  If you could me code + an .apk that runs on both GB and HC and tell me what to look for in different behavior between the two, I can take a look. On Fri, Jan 28, 2011 at 1:43 PM, Streets Of Boston flyingdutc...@gmail.com wrote

[android-developers] Re: HoneyComb and LayoutInflator-cloning seems broken

2011-01-31 Thread Streets Of Boston
Hi Dianne, I haven't made an apk yet (i can't send you our entire app, my boss would kill me :-)), but when i do send the apk-sample, where do i send it? To your e-mail address? On Jan 29, 10:23 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Dianne, When I get back to work

[android-developers] Re: HoneyComb and LayoutInflator-cloning seems broken

2011-01-31 Thread Streets Of Boston
Email is on its way. Thank you! On Jan 31, 2:20 pm, Dianne Hackborn hack...@android.com wrote: Yeah just send it to me e-mail address.  Thanks! On Mon, Jan 31, 2011 at 7:59 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Hi Dianne, I haven't made an apk yet (i can't send you our

[android-developers] Re: Honeycomb Preview is back

2011-01-31 Thread Streets Of Boston
There was word from google (although a bit burried :-)): http://twitter.com/#!/androiddev On Jan 31, 4:13 pm, tvo tvoverb...@gmail.com wrote: FYI, am downloading the Honeycomb preview now via the SDK AVD Manager. Did not work an hour ago, now it does. Do not know what happened since it

[android-developers] Re: How to develop new android apps considering that the app will also be developed for other phones

2011-02-01 Thread Streets Of Boston
This problem you describe is hard. If you find the magic bullet, you'd be rich. However, others have tried to solve this problem: I'm not sure which platforms (i.e. phones) are currently supported by each of them, but try to use PhoneGap, AppCelerator, RhoMobile, etc. or just plain HTML5. On

[android-developers] Re: Dual mode (Honeycomb Gingerbread) is the same APK.

2011-02-03 Thread Streets Of Boston
I read this on android-developers.blogspot.com, from Dianna: http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html Quote: To address this, we plan to have the same fragment APIs (and the new LoaderManager as well) described here available as a static library for use with

[android-developers] Re: Is Android good for this?

2011-02-03 Thread Streets Of Boston
LOL And not much of snow melt or ice-away pellets either! On Feb 3, 11:44 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Android is good for everything! EVERYTHING I say!!! I can tell you from experience, Android makes a very poor laundry additive. -John Coryat -- You

[android-developers] Android Layout Editor for 'Honeycomb (Preview)' issue with color values: Exception thrown in Eclipse.

2011-02-04 Thread Streets Of Boston
Hi, The Android Layout Editor has been somewhat problematic for me when it shows the layout of the widgets on the screen. Some of the widgets are all shown crowded to the top. However, when showing the outline of the widgets, the outlines are drawn in the correct spot. However, when i select

[android-developers] Re: AsyncTask in Honeycomb

2011-02-04 Thread Streets Of Boston
Why do i really really really want a serialized queue? Our app uses AsyncTasks to complete HTTP requests. Multiple requests can happen at the same time and in some situations we really really really want it that way. As long as the onPostExecute is called correctly, it should not be a problem

[android-developers] Re: AsyncTask in Honeycomb

2011-02-04 Thread Streets Of Boston
Perfect! :) On Feb 4, 3:29 pm, Romain Guy romain...@android.com wrote: That's why AsyncTask now lets you execute tasks on your own thread pool. On Fri, Feb 4, 2011 at 11:51 AM, Shane Isbell shane.isb...@gmail.comwrote: On Fri, Feb 4, 2011 at 11:24 AM, Streets Of Boston flyingdutc

[android-developers] Re: Android Layout Editor for 'Honeycomb (Preview)' issue with color values: Exception thrown in Eclipse.

2011-02-04 Thread Streets Of Boston
Hi Xavier, I sent you an e-mail with a zip file containing the XML. On Feb 4, 4:18 pm, Xavier Ducrohet x...@android.com wrote: Streets, can you send me the XML you're inflating? thanks, Xav On Fri, Feb 4, 2011 at 1:11 PM, Xavier Ducrohet x...@android.com wrote: On Fri, Feb 4, 2011 at

[android-developers] Re: OpenJDK on Android

2011-02-04 Thread Streets Of Boston
nope, i don't think a web-page that loads a java-applet will be displayed on an Android browser. You'll probably get a warning/message/ text that the incorrect JRE is loaded. On Feb 4, 6:47 pm, Indicator Veritatis mej1...@yahoo.com wrote: Applets running under Android: but don't we already have

[android-developers] Re: Best practices for automatic retrying of AsyncTask

2011-02-07 Thread Streets Of Boston
When the user hits retry, you should create a new AsyncTask instance, giving it the same parameters/input as the original one (essentially clone it) and execute it. If you don't know the original AsyncTask's parameters/input, you should change your asynctask-baseclass and add some public methods

[android-developers] Re: Best practices for automatic retrying of AsyncTask

2011-02-08 Thread Streets Of Boston
Exactly. Just clone the original finished AsyncTask and call 'execute' on that clone. On Feb 7, 11:36 pm, Kevin Duffey andjar...@gmail.com wrote: What happens when the async task finishes? Whatever created the first instance of it, or whatever handles the response, should be able to create a

[android-developers] Question for Google employees: How would our apps run on the new Kyocera Echo?

2011-02-08 Thread Streets Of Boston
The new Kyocera Echo has *two* screens. Would 'regular' Android apps run on Kyocera Echoes? If so, is there SDK support for this? What problems can we expect for this dual screen phone? Or should it all run fine like any other new Android phone? Thanks! -- You received this message because you

[android-developers] Re: Spawning dialogs in ActivityUnitTestCase fails

2011-02-08 Thread Streets Of Boston
How do you call the showing of the dialog? Is it on the main UI thread (and not on the test-case thread)? On Feb 8, 11:47 am, Matthias m.kaepp...@googlemail.com wrote: Hi, we're running into an issue here where in a unit test for an activity, we test a dialog that's part of the activity.

[android-developers] Re: facebook session persists in my app even after logging out of the facebook app

2011-02-08 Thread Streets Of Boston
Does logging out of your Facebook application remove the entire Facebook account? (go to Menu -- Settings -- Accounts and check for the Facebook account). If so, then your app should also no longer be able to login. If not, then your app should be able to still login. If your app still logs in

Re: [android-developers] Re: Can't properly stop a thread

2011-02-10 Thread Streets Of Boston
You can call 'isFinishing()' in the onPause method to determine if the onPause is called during the destruction of an activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Checkout transitioning to monthly payouts?

2011-02-11 Thread Streets Of Boston
I have received these emails (there were several of them). If they go to your spam folder, you should change your spam-filters :-) However, the run-up to the new monthly payment schedule seems to have generated strange deposits into my checking account the last week or so... -- You received

[android-developers] Re: Android Unconference before Google IO?

2011-02-11 Thread Streets Of Boston
That would have been fun! But I already booked my flight and wouldn't be able to make it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: Honeycomb SDK

2011-02-12 Thread Streets Of Boston
Dianne said that Android 3.*0* will not be loaded onto any phone. Phones will just skip 3.0 and start with 3.1 (or anything after 3.0). This way you don't need two disjoint branches. There would only be trouble if the api-level of 2.3.3=10, the API level of Android 3.0=11 and a new

[android-developers] Re: Android MVC Framework

2011-02-12 Thread Streets Of Boston
First, welcome to the Android dev community! :-) Whether the Android is MVC framework or not, why are you specifically searching for one? I would just learn the Android SDK, its concepts and start creating my app that fits these concepts, MVC or not. But if your question is a question

[android-developers] Re: Serious problem on Android 2.3 and XmlSerializer

2011-02-12 Thread Streets Of Boston
The documentation of the *startTag* method mentions this: ... If namespace is null no namespace prefix is printed but just name... Regardless of the XML starndard, this means that null is a valid and documented input for this method. If this has suddenly become broken in 2.3 (i haven't seen

[android-developers] Re: Serious problem on Android 2.3 and XmlSerializer

2011-02-13 Thread Streets Of Boston
I think it was mainly meant for XML documents that don't use namespaces at all, since there is no startTag(String elementName) method. And i think you can leave it null if it implicitly takes on the namespace of its parent-element. Whether the acceptance of null for this parameter is OK or

[android-developers] Re: Mixing RelativeLayout and Absolute

2011-02-14 Thread Streets Of Boston
There are many ways to tackle this problem. But what about putting a horizontal LinearLayout at the bottom of the RelativeLayout, with width set to fill_parent, height to wrap_content. Then put 5 buttons inside this horizontal layout, give them equal weight. -- You received this message because

[android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread Streets Of Boston
When an activity is *finishing*, the onDestroy will be called. The documentation states that onPause is guaranteed to be called, but not the onDestroy in case an activity is part of a process that is about to be killed: Apps with foreground activities won't be killed -- onPause will be called,

[android-developers] Re: ImageButton with rounded corners and no padding

2011-02-14 Thread Streets Of Boston
Padding does not control any rounding of borders at all. If you want rounded border, use 9-patches or drawables: Drawables: http://developer.android.com/guide/topics/resources/drawable-resource.html http://idunnolol.com/android/drawables.html (look at 'shape' with a 'corner' element)

Re: [android-developers] how to find name of all weekdays with their date

2011-02-15 Thread Streets Of Boston
Indeed something like the code above, but with a different pattern for SimpleDateFormat: // for something like 'monday 14-feb-2011' new SimpleDateFormat(* d-MMM-*); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] code for analog clock

2011-02-16 Thread Streets Of Boston
LOL :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] Re: Fragment question: inter-fragment communication?

2011-02-17 Thread Streets Of Boston
Your 'activity' idea seems to be the best one. Fragments can be used to better separate Views from Controllers, where Fragments (and it constituent child-views) are the Views and Activities are the Controllers (note that Activities would still 'directly' update the action-bar, the title-bar,

[android-developers] Re: Clearning Activity's intent data randomly comes back, why?

2011-02-18 Thread Streets Of Boston
(i think that the implementation of onNewIntent is the only place where you can reliably call 'setIntent') I tried it, too, changing the intent like this, but was unsuccessful. What i did instead: Set the launch-mode of the activity to at least singleTop (i.e. the activity's current

[android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread Streets Of Boston
Is HTTP REST a better option for communication between my android client and server? Yes, much better option. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Honeycomb SDK

2011-02-18 Thread Streets Of Boston
Don't get hung up on the *preview* SDK. The api-level value 'honeycomb' will not be the real value. It will be a number, like 11 or 12. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Clearning Activity's intent data randomly comes back, why?

2011-02-18 Thread Streets Of Boston
the original intent might be restored by the system when the activity is restarted This is not my experience. The system restores the intent with which the activity was called last. If your activity is singleTop, its onNewIntent(...) is called with the intent that was used by the call to

[android-developers] Re: Issue Determining the Location

2011-02-18 Thread Streets Of Boston
No, the device doesn't *always* know where it is. That's why getLastKnownLocation() returns null sometimes. Obtaining and maintaining a GPS fix (location) is expensive for the battery. Only when needed locations are obtained and maintained. I think that in API-level 8 a new location provider was

Re: [android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread Streets Of Boston
The answer is; not necessarily. It is best described here: http://stackoverflow.com/questions/2917847/serialization-performance-and-google-android In other words: Don't serialize. Another reason is that it's relatively slow on Android. Use the Parcelable interface instead. -- You received

Re: [android-developers] Re: Clearning Activity's intent data randomly comes back, why?

2011-02-18 Thread Streets Of Boston
Not in my experience. See my previous posts in this thread. E.g.: public class MyActivity extends Activity { ... ... // This method is called when you need to 'refresh' the activity with modified intent-data. public void refreshWithNewData() { Intent newIntent = new

[android-developers] Re: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-09 Thread Streets Of Boston
Romain, There has been a bug in 1.0 and 1.1. that the onPrepareDialog is not properly called after a configuration change happened. Has this been fixed? http://groups.google.com/group/android-developers/browse_frm/thread/a32351c7ecfb24e9/b9970b4dd3700220 On Jun 8, 11:28 pm, Romain Guy

[android-developers] Re: In-place upgrade of app, outside of Market

2009-06-09 Thread Streets Of Boston
As far as i know, upgrading just happens when you click a link (e-mail attachment) that is a valid and signed APK file. As long as your new APK has the same signature as your current APK, all should go automatically and smoothly. What i have not 'tested', is the case that you downloaded the app

[android-developers] Re: SW (2D API) vs. HW (openGL) rendering

2009-06-09 Thread Streets Of Boston
Take a look at the Goolge IO sessions for gaming: http://code.google.com/events/io/sessions.html http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html On Jun 9, 10:38 am, Noonien Soong nooniensoong2...@gmail.com wrote: Is OpenGl rendering faster than the normal Java Canvas

[android-developers] Re: How to tell when application exits?

2009-06-09 Thread Streets Of Boston
you could still use onCreate/onDestroy. Just override the onRetainNonConfigurationInstance method. This method will be called before onDestroy. If this method is called, remember this fact by setting a boolean to true. Then in the onDestroy, if this boolean is true, a configuration change will

[android-developers] Re: ListView items in Activity Persist on G1 keyboard slideout, but not Dialog list items

2009-06-09 Thread Streets Of Boston
Ugh.. this is still the case :( In my app, i program around it. I have some code that determines if onPrepareDialog should have been called and, if not, that calls onPrepareDialog explicitly. On Jun 9, 1:04 pm, pawpaw17 georgefraz...@yahoo.com wrote: Guys, That's what I'm seeing.

[android-developers] Re: Loading images in the background - and being able to cancel them

2009-06-09 Thread Streets Of Boston
Thanks! But looking at your code, you can't stop an already ongoing download (i.e. cancel a download that takes too long). I've written a similar helper class does the same, like AsyncTask, but allows you to cancel or interrupt I/O operations immediately, e.g. cancel the download of an image

[android-developers] Re: Using the touchscreen and trackball with the GLSurfaceView

2009-06-10 Thread Streets Of Boston
I actually do use the Thread.sleep as a hack (i don't like it, but it works...) It just sleeps for just 20 milli seconds, though. It's enough for a notable improvement in the frame-rate of the other thread (game- thread) and not too big to miss input events. I only do it on the ACTION_MOVE. On

[android-developers] Re: Layouts animation with curvatures

2009-06-10 Thread Streets Of Boston
As long as your transformation fits into a transformation Matrix (x,y and z), you can do anything you like. http://developer.android.com/reference/android/view/animation/Animation.html#applyTransformation(float,%20android.view.animation.Transformation) Since the application of a

[android-developers] Re: Loading images in the background - and being able to cancel them

2009-06-10 Thread Streets Of Boston
the HttpUrlConnection. I decided to keep it simple for the moment but it would be nice for the ImageLoader class to dispatch progress and complete events. On Jun 9, 4:05 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Thanks! But looking at your code, you can't stop an already ongoing download

[android-developers] Re: 2D Double Buffering in Android 1.5 (with Canvas?)

2009-06-11 Thread Streets Of Boston
Why don't you use OpenGL ES for your 2D game. Take a look at the Google I/O session talks about gaming on mobile platforms. On Jun 11, 10:21 am, Avatar Ng ngchee...@gmail.com wrote: I only concern of my animation quality ... Caused the current approach give me a flickering effect (yes which is

[android-developers] Re: Browser doesn't respond to trackball click event (on certain webpage), touch screen click ok

2009-06-11 Thread Streets Of Boston
i've seen that happen on occasion on various web-pages. However, just rolling the trackball back and forth, moving the selection off the link and back on the link again, and then clicking usually works fine... On Jun 11, 2:11 am, jerryfan2000 jerryfan1...@gmail.com wrote: We found a way to

[android-developers] Re: How to tell when application exits?

2009-06-11 Thread Streets Of Boston
Note that the onDestroy (or the onStop) are not always called when your activity exits/ends. Read the info on developer.android.com and look at activities' life- cycle events. A process can be killed, and the only thing guaranteed to be called in your activities is onPause, and possible

[android-developers] Re: Android Market Automatic Updates

2009-06-11 Thread Streets Of Boston
Yes, they will be notified automatically by the Market application. On Jun 11, 5:06 pm, TjerkW tje...@gmail.com wrote: When i update my application in the android market.. Will users be automatically notified to download a new version? I just implemented veecheck for my game..

[android-developers] Re: Using the touchscreen and trackball with the GLSurfaceView

2009-06-12 Thread Streets Of Boston
...@gmail.com wrote: 20 ms would be 4ms too long for 60fps :). 16ms would be better, that's the time the device has to perform the rendering for a target of 60fps. On Jun 10, 7:20 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I actually do use the Thread.sleep as a hack (i don't like

[android-developers] Re: Using the touchscreen and trackball with the GLSurfaceView

2009-06-12 Thread Streets Of Boston
mrchazmob...@googlemail.com wrote: I can't for  the life of me get it to work, anyone more suggestions? On Jun 10, 6:20 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I actually do use the Thread.sleep as a hack (i don't like it, but it works...) It just sleeps for just 20 milli seconds

[android-developers] Re: How to tell when application exits?

2009-06-12 Thread Streets Of Boston
there are no guarantees, but this might be a better way for Max to *try* to determine whether the application is shutting down or an Activity is merely being closed. On Jun 11, 10:35 am, Streets Of Boston flyingdutc...@gmail.com wrote: Note that the onDestroy (or the onStop) are not always

[android-developers] Re: How to tell when application exits?

2009-06-12 Thread Streets Of Boston
My solution works fine to check if you have a configuration-change or not. But it won't work in case the OS decides to kill the process, e.g. when memory runs low or when the phone is shut off. The Application's onTerminate, as Mark noted, may help a little, but it's not guaranteed that this

[android-developers] Re: @ Android-Dev-Team: Request for AsyncTask.getThread() method

2009-06-14 Thread Streets Of Boston
You could call setAsyncThread(Thread.currentThread()) inside/during the AsyncTask's doInBackground method, likely at the start of the doInBackground. You'd create the public and synchronized methods setAsyncThread and getAsyncThread yourself as part of the AsyncTask's subcllass. On Jun 14, 7:14 

[android-developers] Re: handling errors in onCreateDialog(..)

2009-06-15 Thread Streets Of Boston
It's a dirty work-around, but call the onPrepareDialog yourself if it has not been called after a config-change. On Jun 15, 10:52 am, Spencer Riddering ponderyon...@gmail.com wrote: Hi Romain Guy, So, I updated the original issue. I don't see a problem with leaving the code as it is as long

[android-developers] Re: Download progress

2009-06-17 Thread Streets Of Boston
Why do you create a byte-array (content)? If the wall-paper is big, you're using quite a bit of extra memory. If you want to be able to monitor download progress, wrap it inside your own implementation of an input-stream URL url = new URL(address1); HttpURLConnection uc =

[android-developers] Re: How can I give my paid app away for free to some users?

2009-06-17 Thread Streets Of Boston
Coupons won't work ... http://www.google.com/support/forum/p/Android%20Market/thread?tid=4e8d63c44e5a22echl=en On Jun 17, 2:29 pm, Jeff j...@trackaroo.com wrote: I have refunded the money back to a tester and that works. I haven't used this yet, but Google Checkout has Coupon Codes

[android-developers] Question: How to do EXIF reading and writing

2009-06-17 Thread Streets Of Boston
Hi everyone, I've been looking around on the net and in this group, but i have not found any java package that can read and write EXIF data. I tried Sanselan. They say they don't use ImageIO/AWT, but they actually do use AWT. The class can not be loaded because there is an AWT dependency:

[android-developers] Re: Application Crashed

2009-06-18 Thread Streets Of Boston
Do you have any static variable that references (and therefore caches) an object that is either an activity/view or that is (indirectly) refering to an activity/view? If so, you may be leaking activities/views when doing a configuration change. Avoid the use of statics or be absolutely sure to

[android-developers] Re: vertice coodinates of Kube

2009-06-18 Thread Streets Of Boston
Yes, you are on the right track. :-) However, i could not get gluUnProject to work. I wrote my own: http://groups.google.com/group/android-developers/browse_frm/thread/9d2bf53e3a798cb6/c722628acdf6e2d9 (see messages no. 6 and 8) On Jun 18, 4:21 am, quill quill...@163.com wrote: Thank you

[android-developers] Re: NFC feature

2009-06-18 Thread Streets Of Boston
I think he means this: http://en.wikipedia.org/wiki/Near_Field_Communication mainly for using your cell-phone as a payment device...? Am i correct, BPB? Here in the USA i have seen it only on credit cards. E.g. Chase Freedom cc has a RFID chip that allows you to pay with a quick swipe. It's

[android-developers] Re: ContentProviders and concurrency

2009-06-18 Thread Streets Of Boston
That's indeed how I saw it work on the G1. However, i think you cannot assume anything. If you write a content- provider, it can be bound by any process. This causes me to believe that it can be called by several threads at the same time. Just to be sure, synchronize where necessary, depending

[android-developers] Re: Cannot Decode Images from sdcard using BitmapFactory.Options

2009-06-19 Thread Streets Of Boston
xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x%02x It seems that the file on your sd-card is not a JPEG file, at least not one recognized by SKIA. On Jun 19, 8:23 am, Shre555 shreyas1...@gmail.com wrote: Hi, I am tring to get a image from the images stored on the sdcard of

[android-developers] Re: vertice coodinates of Kube

2009-06-19 Thread Streets Of Boston
coordinates? On Jun 19, 12:21 am, Streets Of Boston flyingdutc...@gmail.com wrote: Yes, you are on the right track. :-) However, i could not get gluUnProject to work. I wrote my own:  http://groups.google.com/group/android-developers/browse_frm/thread/9...   (see messages no. 6 and 8

[android-developers] Re: Difference between invalidate() and postInvalidate()

2009-06-19 Thread Streets Of Boston
Really? *immediately*? I thought that invalidate() must be called on the UI thread. But invalidate() does not draw your view *immediately*, does it? I thought it will schedule a draw 'action' as soon as the UI-message thread gets a chance. If you call multiple invalidate()-s in a row, your view

[android-developers] Re: Difference between invalidate() and postInvalidate()

2009-06-19 Thread Streets Of Boston
You're right :) It's friday and i should read the posts a bit more carefully :) On Jun 19, 11:14 am, Marco Nelissen marc...@android.com wrote: On Fri, Jun 19, 2009 at 7:43 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Really? *immediately*? I thought that invalidate() must

[android-developers] Re: Application (.apk) Size

2009-06-19 Thread Streets Of Boston
It wil be smaller than the heap size limit per apps Not true. :=) I could imagine creating an app of 50MBytes. 2MBytes worth of code and 48MBytes worth of resources (images/assets/etc.). And if these resources are not loaded all at once, it should work. Of course, who would download such a big

[android-developers] Re: Exporting android project as a shared jarfile under Eclipse

2009-06-21 Thread Streets Of Boston
You can't create shared libraries like that. You can link your Android's Eclipse project up to 'regular' JARs (Project build path). When deploying, the classes in these jars will be 'dalviked' and these classes will be deployed with your app on the phone. You can link your Android's Eclipse

[android-developers] Re: horizontal/vertical finger swipe...

2009-06-22 Thread Streets Of Boston
Short question. Short answer :-) onGestureDetector On Jun 22, 11:13 am, Kent Loobey k...@uoregon.edu wrote: How do you detect a horizontal or vertical finger swipe? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: horizontal/vertical finger swipe...

2009-06-22 Thread Streets Of Boston
Sorry, typo... I typed an extra 'on': Here it is for real: http://developer.android.com/reference/android/view/GestureDetector.html On Jun 22, 11:22 am, Streets Of Boston flyingdutc...@gmail.com wrote: Short question. Short answer :-) onGestureDetector On Jun 22, 11:13 am, Kent Loobey k

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-22 Thread Streets Of Boston
You should not be paying the $10. You're out of the $3 (plus the 0.99 for your app), but you should not be paying the extra $10 (10.99). I would not send a message back to Robert, but to the team. I don't know where, but find the place where you can log an official complaint, 'cause what happens

[android-developers] Re: Problem with createBitmap method

2009-06-23 Thread Streets Of Boston
Try this: Before setting it to null, call mpBitmap.recycle(). But be sure, though, that the reference held by mpBitmap is not held somewhere else in your program by another heap variable, cache or an active View. On Jun 23, 9:07 am, hamlatzis i.hamlat...@gmail.com wrote: My application crashes

[android-developers] Re: Thread

2009-06-26 Thread Streets Of Boston
I assume that Thread B is the main UI-thread, handling messages, 'holding' the View. Thread A is a background thread doing some computation or other stuff. If I'm correct in this assumption, you can just post to the View from thread A. While in thread A: myViewInThreadB.post(new Runnable() {

[android-developers] Re: concurrency of AsyncTasks

2009-06-27 Thread Streets Of Boston
As long as you have the default pool-size set to 1, there should be no issues what-so-ever. On Jun 27, 8:00 am, joshv jvanderb...@gmail.com wrote: Interesting issue.  I can see the need to make this configurable though.  In some cases it would be nice to make sure that these background tasks

[android-developers] Re: Default number of Views constructed for a BaseAdapter?

2009-06-30 Thread Streets Of Boston
Your code in your getView implementation of the adapter looks good at first sight. The structure of this method looks good. I think there are a few issues though. In your getView(...) method, you access the variable 'appList': if (position = appList.size()) {

[android-developers] Re: - OpenGL - Question about gluProject().

2009-07-01 Thread Streets Of Boston
Hints: Instead of gluProject, you likely need gluUnProject (going from the touch (x,y) coordinate on the screen to the (x,y,z) coordinate of your model-space). To obtain the model-view matrix and the projection-view matrix needed for gluProject and gluUnProject, take a look at the API Demoes

[android-developers] Re: Is the limit of memory heap only 6M?

2009-07-01 Thread Streets Of Boston
Load the picture in the size you need it, by setting the BitmapFactory.Options.inSampleSize to a value larger than 1 (so far, i have only managed to use value that are powers of 2 for this inSampleSize attribute). Look at the api-docs for more info on this attribute. What i mean is that if you

[android-developers] Re: HttpsUrlConnection Problem

2009-07-01 Thread Streets Of Boston
I've had this issue even with regular HttpUrlConnection. Instead, i used the HttpClient interface instead (using HttpGet/ HttpPut/HttpResponse/etc) and this worked well for me. On May 20, 10:17 am, Binesy ross.bi...@gmail.com wrote: Hi I have been working with the HttpsUrlConnection class and

[android-developers] Re: How to cancel a connection ?

2009-07-01 Thread Streets Of Boston
thread and AsyncTask. Can somebody explain that ? Best Regards, Brad On 7月1日, 下午10時09分, Streets Of Boston flyingdutc...@gmail.com wrote: Like Dimitris said: Try to call 'cancel(true)' on the AsyncTask. It will invoke the thread's 'interrupt()' method, making sure that if the thread

[android-developers] Re: show and hide the titlebar

2009-07-02 Thread Streets Of Boston
You can't (at least on in sdk1.1) You have to not show the title bar and put one yourself, a View, at the top of your activity (a title bar that is a View inflated from your layout-files). Then you can hide/show this View whenever you want. On Jul 2, 8:36 am, l hx lihongxia8...@gmail.com wrote:

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread Streets Of Boston
Do you have static variables that reference (indirectly) an Activity or a View? If so, get rid of these static variables or make absolutely sure that you clean them up (set them to null, clear cache, whatever) when the activity's onDestroy is called. On Jul 7, 5:50 pm, schwiz sch...@gmail.com

[android-developers] Re: Orientation flip without major state change?

2009-07-09 Thread Streets Of Boston
Take a look at these two: http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance() http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance() On Jul 9, 4:30 pm, Keith Wiley kbwi...@gmail.com wrote: I have an

[android-developers] Re: Orientation flip without major state change?

2009-07-09 Thread Streets Of Boston
These two links don't work well (the parenthesis mess it up). Look at the onRetainNonConfigurationInstance and getLastNonConfigurationInstance methods. On Jul 9, 5:00 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Take a look at these two:http://developer.android.com/reference/android

[android-developers] Re: Making a persistant content observer

2009-07-10 Thread Streets Of Boston
I'm not sure at all if this would work, but have you tried to put the content-observer code inside a *service* (instead of in your activity). Start the service and keep it around. And if the content changes, create a notification. The notification can be noticed by the user and allows him/her to

[android-developers] Re: showDialog and dismissDialog behave strangely when changing orientation

2009-07-12 Thread Streets Of Boston
I'm seeing this behavior now too (Cupcake release). showDialog(id) -- config change -- dismissDialog(id) won't work more When calling dismissDialog(id) after a config change doesn't do anything (not dismissing the dialog, but no error-message either). Something is wrong here... On May 21,

[android-developers] Re: Multi-touch My Touch Phone Questions

2009-07-13 Thread Streets Of Boston
Some hackers have been able to enable multi-touch on the G1. The hardware is there, but because of legal issues, it has not been enabled. It is a patent issue. Just google this: apple patent multi touch And to be honest, i don't miss multi-touch that much. I like that i can use only one hand

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-07-13 Thread Streets Of Boston
Simple. :-) The error says that the file does not exist... that means you should create it. Use File#createNewFile(). On Jul 13, 5:53 pm, doubleminus doublemi...@gmail.com wrote: Romain is? I don't understand. Is there something I should be doing to avoid filenotfound exception? On Jul 13,

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-14 Thread Streets Of Boston
First: You directly modify the activity's attribute 'items' (that serves as your data in your list-adapter) in your background thread, without any proper synchronization with the main GUI-thread. This is bad news. It may work for a while, but it's bound to fail at some point. Second (and i

[android-developers] Re: OpenGL ES, How to rotate a cube?(3D Rotation)

2009-07-14 Thread Streets Of Boston
Take a careful look at the API Demo code. And then take a look at the OpenGL ES documentation (http:// www.khronos.org/opengles/) Having the code that shows you how to rotate around the X or Y axis, it should not be hard to figure out how to rotate along the Z axis On Jul 14, 11:23 am, quill

[android-developers] Re: OpenGL ES, How to rotate a cube?(3D Rotation)

2009-07-15 Thread Streets Of Boston
(mModelViewMatrix, 0) to reach the previous state and then do glRotatef, it can work when I slip my finger quickly, but it works bad when I slip slowly. On Jul 14, 11:34 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Take a careful look at the API Demo code. And then take a look

[android-developers] Re: getView from CustomizedAdapter called several times

2009-07-15 Thread Streets Of Boston
I'm not a google engineer, so i don't know the answer, but i have a theory why this may happen. In your layouts, do you use 'weights' (weightsum and layoutweight)? If i remember correctly, if you use these attributes, layout-code is called twice. If the layout-code for a list-view includes the

[android-developers] Re: extending parcelables

2009-07-15 Thread Streets Of Boston
It looks like your Animal class is abstract and should never be constructed. Declare Animal 'abstract' and see if you get an instantiation error. Have your tried to put the 'public static final Parcelable.Creator CREATORCat' and 'public static final Parcelable.Creator CREATORDog' variables and

[android-developers] Re: Disabling specific wireless radios in the airplane mode

2009-07-17 Thread Streets Of Boston
I think this is deliberate. If the user chooses Airplane Mode, he/she expects that all radios that need to be turned off (by law/airline-regulation) are indeed turned off. What's the use of Airplane Mode if it leaves some radios turned on that would make the phone not be in Airplane Mode, i.e.

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Streets Of Boston
Currently I'm writing an app that contains an image viewer. I implemented zooming as follows: Zoom in: Long press; Then a zoom-in icon appears at your finger-location. Then drag a rectangle (with aspect ratio of your screen) from your current finger position to another position; Move your finger

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

2009-07-19 Thread Streets Of Boston
Be careful with DST and such. I work for a company that tracks time (timecards, scheduling etc.). Handling DST properly is tricky. The method Date.getTime() is timezone-less. It is a 'universal' time, a *timestamp*, just a time without a definition of place/location! It returns the number of

[android-developers] Re: translated application dealing with English only server

2009-07-20 Thread Streets Of Boston
Kizza, If you need to be able to tranlate 'on the fly', then you need to do all translations yourself. Don't use the strings.xml file. On Jul 20, 9:52 am, Mark Murphy mmur...@commonsware.com wrote: kizza wrote: Hi, and thanks for your help. I've managed to make my own ListAdapter now, but

[android-developers] Re: Bitmap in GLSurfaceView

2009-07-20 Thread Streets Of Boston
For no repeat: http://www.khronos.org/opengles/documentation/opengles1_0/html/glTexParameter.html and look at GL_CLAMP. Texture y-coordinates go from the bottom to the top when y increases. Bitmaps/images usually go from the top to the bottom when y increases. Just flip your bitmap along the

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

2009-07-20 Thread Streets Of Boston
Doubles and floats have a limited precision. The extra -0.0019 you have in your result is a precision error. You'll find this behavior on any machine that implements floats and doubles according to the most prevailing spec: http://en.wikipedia.org/wiki/IEEE_754-2008 On Jul 18, 7:41 am,

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