[android-developers] why I can't access http://developer.android.com

2009-03-27 Thread kingfu
Now I am in China. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: why I can't access http://developer.android.com

2009-03-27 Thread Hu.Fu-Mei
I met this problem too. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of kingfu Sent: Friday, March 27, 2009 2:09 PM To: Android Developers Subject: [android-developers] why I can't access http://developer.android.com

[android-developers] Re: RingtoneManager.ACTION_RINGTONE_PICKER

2009-03-27 Thread damnesia
thank you for your reply. I am doing that in the method named getToneToRing(data). it is called in the code, but i did not include the method code. i can get the result it returns, but it returns one before I have a chance to pick any of them. Its like the setResult() method is being called

[android-developers] Re: why I can't access http://developer.android.com

2009-03-27 Thread Eric Chan
If you being China Mainland , it is blocked. Best Regards Eric Chan 2009/3/27 hu.fu-...@iac.com.tw I met this problem too. -Original Message- From: android-developers@googlegroups.com [mailto: android-develop...@googlegroups.com] On Behalf Of kingfu Sent: Friday, March 27, 2009

[android-developers] Re: RingtoneManager.ACTION_RINGTONE_PICKER

2009-03-27 Thread damnesia
Actually, thank you. After double checking against your code sample I found the problem. I was looking at the search requestCode, not the resultCode. Thanks again. On Mar 26, 10:21 pm, for android forandr...@gmail.com wrote: Yes you are missing in the onActivityResult U need to check the

[android-developers] Re: android.net.NetworkConnectivityListener$ConnectivityBroadcastReceiver @4337ce70

2009-03-27 Thread Agus
bump On Thu, Sep 4, 2008 at 7:45 PM, Ernest sunkil...@gmail.com wrote: Hi,     Anyone konws the ConnectivityBroadcastReceiver class? There is nothing clues in new SDK documents.When I ran my app,there is an error  in background  09-05 09:53:58.889: ERROR/ActivityThread(188):

[android-developers] Re: android.net.NetworkConnectivityListener$ConnectivityBroadcastReceiver @4337ce70

2009-03-27 Thread Agus
same problem here even though i never register any intentreceiver in my app. im using MapActivity, maybe there is a bug in the api implementation. On Thu, Sep 4, 2008 at 7:45 PM, Ernest sunkil...@gmail.com wrote: Hi,     Anyone konws the ConnectivityBroadcastReceiver class? There is nothing

[android-developers] Re: StartActivity in a LinearLayout object

2009-03-27 Thread Eric Chan
Remove or put super.onActivityResult(requestCode, resultCode, data); after add if (resultCode == RESULT_OK) int Result_ok =0 Best Regards Eric Chan On Fri, Mar 27, 2009 at 1:27 PM, xuxiake2...@gmail.com xuxiake2...@gmail.com wrote: I want to start a new activity in a sub class of

[android-developers] Some problems in cupcake imf

2009-03-27 Thread Paranoia
i am developing an ime on android. i have some questions. 1. why InputMethodService force the ime developer to follow the fixed layout - extracted text, candidate view and input view. i want to layout them by myself. can i do this via derive the AbstractInputMethodService? if yes, can android

[android-developers] Re: RingtoneManager.ACTION_RINGTONE_PICKER

2009-03-27 Thread damnesia
When I start the task I get this in the LogCat debug log: WARN/ActivityManager(54): Activity is launching as a new task, so cancelling activity result. Does it look like I am starting it incorrectly? Thank you. On Mar 26, 10:21 pm, for android forandr...@gmail.com wrote: Yes you are

[android-developers] Re: RingtoneManager.ACTION_RINGTONE_PICKER

2009-03-27 Thread damnesia
Nevermind. You already answered it with the Sample.zip. I didn't see the attachment. On Mar 26, 10:21 pm, for android forandr...@gmail.com wrote: Yes you are missing in the onActivityResult U need to check the result code. Look @ the sample i have attached. @Override     protected void

[android-developers] SurfaceView setBackground

2009-03-27 Thread Dan Raaka
In the APIDemos protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Create our Preview view and set it as the content of our // Activity mGLSurfaceView = new GLSurfaceView(this); mGLSurfaceView.setRenderer(new

[android-developers] Re: Some problems in cupcake imf

2009-03-27 Thread Dianne Hackborn
On Fri, Mar 27, 2009 at 12:04 AM, Paranoia zheny...@gmail.com wrote: 1. why InputMethodService force the ime developer to follow the fixed layout - extracted text, candidate view and input view. i want to layout them by myself. can i do this via derive the AbstractInputMethodService? if yes,

[android-developers] Re: SurfaceView setBackground

2009-03-27 Thread Romain Guy
Unfortunately no. You have to draw the background yourself onto the surface. On Fri, Mar 27, 2009 at 12:13 AM, Dan Raaka danra...@gmail.com wrote: In the APIDemos    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        // Create our

[android-developers] Re: SurfaceView setBackground

2009-03-27 Thread Dianne Hackborn
No a surface view punches a whole through your window at its location to let the surface be seen. Its whole point is that you have complete, direct access to the surface/pixels inside of it. If you are wanting to do something like this, you might want to think about whether you want a surface

[android-developers] Re: Parsing #xx; characters in XML

2009-03-27 Thread Mariano Kamp
Ok, got it. On Fri, Mar 27, 2009 at 6:53 AM, Tim Bray timb...@gmail.com wrote: On Thu, Mar 26, 2009 at 4:01 PM, Mariano Kamp mariano.k...@gmail.com wrote: Tim, I (http://newsrob.com) am parsing atom feeds using the XML pull parser and the title of type html contains those entities

[android-developers] Re: Some problems in cupcake imf

2009-03-27 Thread Paranoia
Thank you for such a quick reply! please see my comments in line. On Mar 27, 3:14 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Mar 27, 2009 at 12:04 AM, Paranoia zheny...@gmail.com wrote: 1. why InputMethodService force the ime developer to follow the fixed layout - extracted

[android-developers] Re: When save image, how to specify image name?

2009-03-27 Thread renshao
Can any one help on this? On Mar 26, 6:20 pm, Ren rens...@gmail.com wrote: I have the following code to save a bitmap to a jpg file. It works except I couldn't specify the file name. The image file is save in /sdcard/dcim/Camera. How do I specify a file name, or even the saved path?

[android-developers] Re: OnGestureListener vs ContextMenu, do they play together?

2009-03-27 Thread skink
Keith Wiley wrote: My View subclass is can be written one of two ways, I've tried both. One implements OnGestureListener, the other doesn't. In both cases, the Activity registers the view for context menus when the view is created and registers itself, the activity, as the context menu

[android-developers] Re: Some problems in cupcake imf

2009-03-27 Thread Dianne Hackborn
It may be broken. I don't know the state of the code you are working with. On Fri, Mar 27, 2009 at 12:23 AM, Paranoia zheny...@gmail.com wrote: Thank you for such a quick reply! please see my comments in line. On Mar 27, 3:14 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Mar 27,

[android-developers] Re: When save image, how to specify image name?

2009-03-27 Thread for android
did u try TITLE On 3/27/09, rens...@gmail.com rens...@gmail.com wrote: Can any one help on this? On Mar 26, 6:20 pm, Ren rens...@gmail.com wrote: I have the following code to save a bitmap to a jpg file. It works except I couldn't specify the file name. The image file is save in

[android-developers] Re: Some problems in cupcake imf

2009-03-27 Thread Paranoia
all right... i will follow this issue. hope for new change. On Mar 27, 3:46 pm, Dianne Hackborn hack...@android.com wrote: It may be broken.  I don't know the state of the code you are working with. On Fri, Mar 27, 2009 at 12:23 AM, Paranoia zheny...@gmail.com wrote: Thank you for such a

[android-developers] Re: StartActivity in a LinearLayout object

2009-03-27 Thread xuxiake2012
hi Eric Chan onActivityResult not be called I remove super.onActivityResult(requestCode, resultCode, data); but problem still exist On 3月27日, 下午3时03分, Eric Chan jude...@gmail.com wrote: Remove or put super.onActivityResult(requestCode, resultCode, data); after add if (resultCode ==

[android-developers] Re: How to track memory consumption? (Bitmaps)

2009-03-27 Thread Markus Junginger
Thanks Michael for your reply. On Mar 27, 12:07 am, Michael MacDonald googlec...@antlersoft.com wrote: AFAIK, bitmaps *are* created outside the Java heap, and there is a limit of 16MB imposed on the *sum* of the Java heap and the total of the allocated bitmaps. So, does this mean, that there

[android-developers] Access the environment variable in java layer

2009-03-27 Thread Charles Lu
Hi, I wish to get the environment variable which is set by a daemon in native but failed. Some details: in the daemon, which is started by root setenv(MY_NAME, name, 1); in java code, which is started by system String name = System.getenv(MY_NAME); Could anybody give some suggestion?

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Markus Junginger
I can confirm this issue. Since I switched from portrait to landscape, the sensor values are messed up *sometimes* (swapped) and then I need to restart the app! Did we miss something or are the sensor values buggy in landscape mode? --~--~-~--~~~---~--~~ You

[android-developers] Re: SurfaceView setBackground

2009-03-27 Thread Dan Raaka
It is the case of creating 3D views, which is what that i am trying to do .. For setting the background with a color (equivalent of setBackgroundColor), using glClearColor(float red, float green, float blue, float alpha) with the right values does the trick in the function public void

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
Bit of reference material for you http://oreilly.com/catalog/linuxkernel/chapter/ch10.html Al. _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Dianne Hackborn Sent: 26 March 2009 23:16 To: android-developers@googlegroups.com

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Romain Guy
Yeah... none of them have background apps. On Fri, Mar 27, 2009 at 2:33 AM, Al Sutton a...@funkyandroid.com wrote: Ahh so that's how the PSP, DS, and iPhone do it Hold up, that doesn't sound right... :). Al. -Original Message- From: android-developers@googlegroups.com

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
And once again we get pointed back to the idea of pausing most (if not all) background apps to achieve a good user experience. Even the PS3 which has far better hardware than the G1 goes down this route as it pauses the game just to bring up an in-game menu. The only thing it ever tries to run

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Romain Guy
No, I was not pointing back to this idea. And the PS3 does that because it's a *video game console.* On which you usually do *one thing at a time.* On Fri, Mar 27, 2009 at 2:44 AM, Al Sutton a...@funkyandroid.com wrote: And once again we get pointed back to the idea of pausing most (if not

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Markus Junginger
Reading the bold docs in upper case is always good. :) I did not remember this info, and it's working as expected. Thanks! BUT: I use a *fixed* landscape orientation, so the orientation should not change. On the screen it does not when opening the keyboard, but if the sensor does it seems more

[android-developers] What is the difference between View.ondraw and View.dispatchdraw?

2009-03-27 Thread admin.androidsl...@googlemail.com
Specifically I want to know if one can give me better performance. I want to draw the whole surface myself as I am scrolling a large bitmap. Basically I am trying to figure out how things like ListView / GridView do smooth scrolling (see thumbnails in picture viewer app) and writing custom

[android-developers] Re: android http GET 400 error

2009-03-27 Thread zeeshan
thanks Mark. I installed HTTPDebugger on Window and understand i was sending a post. i changed my code to HttpGet and its working fine now. On Mar 25, 4:16 pm, Mark Murphy mmur...@commonsware.com wrote: zeeshan wrote: thanks for the reply Mark! i tried httpget also but same 500 error.

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
I guess it comes down to the choice of do we want high performance games on Android or not. At the moment it seems clear that due to the ability of background tasks to continue running it is next to impossible to provide predictable performance for resource demanding games on all users devices

[android-developers] Re: Bouncing ListView?

2009-03-27 Thread Rajesh S
Here you go: http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1Sect2=HITOFFd=PALLp=1u=%2Fnetahtml%2FPTO%2Fsrchnum.htmr=1f=Gl=50s1=7,469,381.PN.OS=PN/7,469,381RS=PN/7,469,381 If an edge of the electronic document is reached while translating the electronic document in the first direction while

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Lukasz M
I had the same problem. I fixed it using a static sensor-reading object. Therefore while changing between activities sensors didnt swap. When the sensor- reading object was created every time a proper activity was started sensors did some pretty weird stuff. On Mar 27, 10:52 am, Markus Junginger

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Stoyan Damov
On Fri, Mar 27, 2009 at 12:06 PM, Al Sutton a...@funkyandroid.com wrote: I guess it comes down to the choice of do we want high performance games on Android or not. At the moment it seems clear that due to the ability of background tasks to continue running it is next to impossible to

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Romain Guy
You are looking at *ONE* use case. Android is trying to provide an efficient system to the users that also allows background apps. I'm not saying it's an easy problem to solve, I'm saying that the comparison with some other devices out there is moot when they're not trying to reach the same

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
Or an Exclusive app and App that can pause exclusive app pair of permissions. If you really want to make this user friendly the settings page could allow users to select which apps with the App that can pause exclusive apps permission actually can pause the exclusive app (some users will want to

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread admin.androidsl...@googlemail.com
As the OP of whats turned out to be a very long thread (!), I'd like to add a few thoughts. Android is indeed a great media / networked platform but I don't think this will be enough to sustain the platform longterm - I don't want to see Android develop into just a techy's phone - I want it to

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Sena Gbeckor-Kove
Hi Al, Are you sure the PS3 pauses games to show its menu? I'm pretty sure this is up tot the coder. S On 27 Mar 2009, at 10:44, Al Sutton wrote: And once again we get pointed back to the idea of pausing most (if not all) background apps to achieve a good user experience. Even the

[android-developers] Re: Bouncing ListView?

2009-03-27 Thread Rajesh S
but apple has infringed others' patents too... especially good old palm's. so palm went ahead to happily use apple's patents instead of suing.. revenge or understanding.. I wudnt know. but it is sick that some simple stuff like this can be patented .. just because you started using touch first.

[android-developers] Re: How to start serial interface(RS232) code in Android

2009-03-27 Thread Lukasz M
And how exactly do you want to use it? On Mar 26, 7:50 am, Venkateswara Saripalli venkateswara.saripa...@gmail.com wrote:  Hi All, I am beginner to android. I want user RS232 interface with android. Please suggest me where can I get sample code. Advance thanks for your help. Venkat

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Markus Junginger
On Mar 27, 11:11 am, Lukasz M lukasz.mosd...@gmail.com wrote: I had the same problem. I fixed it using a static sensor-reading object. Therefore while changing between activities sensors didnt swap. But what happens when you start the app with the keyboard open? Wouldn't you have swapped

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Stoyan Damov
Romain, You seem to underestimate the power of games. I can buy a phone for $20 or even less, which makes calls. I can buy a phone for $50 which has internet browsing, e-mail, sms, mms, blah, blah, blah. I can buy a phone for $100 which has GPS, and what not. People don't buy phones to make

[android-developers] Re: written file not found

2009-03-27 Thread Mak
What is the best way to create a file in my application, that I can use/ read outside of the application? Aren't i able to set a path for my file e.g. write it on the sdcard? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread ellipsoidmob...@googlemail.com
This is intentional - the values in the 1st three elements of the array depend on the orientation. If you want values that don't change, then use elements 3, 4, 5. It's noted in the onsensorchanged documentation as below: IMPORTANT NOTE: The axis are swapped when the device's screen orientation

[android-developers] How to return non-table-oriented data from a content provider

2009-03-27 Thread Jesse McGrew
I'm writing a content provider that returns data about game sessions. This data comes from an SQLite table. However, the client that consumes it will also want summary data: total wins, current/best winning streak, and so on. I'm not sure which approach to use. * Possible Approach 1: Do nothing,

[android-developers] Where and how can I put my map for gps?

2009-03-27 Thread Nio
Hi, I have installed my gps.apk on my android, and i think it works well as when i start the app, the log shows: jpeg error 53 not a jpeg file: starts with 0x%02x 0x%02x IllegalStateException on drawMap,wiping cache. Java.lang.IllegalStateException: Null Bitmap !/

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
Ahh so that's how the PSP, DS, and iPhone do it Hold up, that doesn't sound right... :). Al. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy Sent: 26 March 2009 22:12 To:

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
All the ones I've used pause the game. It may be up to the coder and the sample I have used is just a small sample (about 15 games), and I can see that with games allowing timers to continue counting down or enemies to attack you whilst you are using the menu bar would frustrate the user, so it

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Markus Junginger
I strongly agree with the idea that foreground processes should be preferred. Currently I develop a game, which - like most games - relies on a constant high frame rate. At first, the game pretty sloppy until I realized some background app was draining CPU resources. So I uninstalled some of them

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Al Sutton
What I'm advocating is the Building on the shoulders of giants principal. To start with we get to where everyone else is by using commonly accepted techniques (i.e. limiting background tasks), then we improve on it. Yes I am looking at one case, but in terms of revenue it's the big one, and that

[android-developers] Re: Cupcake Emulator do not mount SD card image

2009-03-27 Thread wangxianjian8311
remount the sdcard maybe ok! 在2009-03-27,冰咖啡不加糖 xinyu...@gmail.com 写道: me too. On Mar 27, 10:41?am, Eric Chan jude...@gmail.com wrote: I met the same question Best Regards Eric Chan On Wed, Mar 25, 2009 at 3:57 PM, Victor vkrugli...@gmail.com wrote: I just download a cupcake branch

[android-developers] Re: Building user interfaces at runtime with layouts from server

2009-03-27 Thread Daniel
Mark, thanks for your answer. You are absolutely right. This is an open source project. Yesterday I was just a bit annoyed to see that it won't work as easy as I hoped. I'll file an issue. On Mar 26, 4:08 pm, Mark Murphy mmur...@commonsware.com wrote: I chose the do it yourself approach and

[android-developers] Re: need some collection help

2009-03-27 Thread Mark Murphy
Josh Dobbs wrote: Here's what my code looks like... * private * Collection __cars_; Car _myCar_= *new* Car(1,1,*false*,5, blue); Car _myCar2_= *new* Car(1,1,*false*,5, red); _cars.add(myCar); _cars.add(myCar2); Collection is an interface, not a class. There are about 20

[android-developers] Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread Zhubham
Hi all, Alert dialogs which were properly displaying the full text (around 15 words) in SDK-1.0 , are trimming down the text to around 5 words in SDK-1.1. eg. SDK1.0 = Welcome. This is an android based application. SDK used is 1.1-Release 1. SDK1.1 = Welcome. This is an android based app...

[android-developers] Re: Building user interfaces at runtime with layouts from server

2009-03-27 Thread Daniel
Hi Lutz. Thanks for your answer. What you propose is what I tried first in different variations: XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); XmlPullParser xpp = factory.newPullParser(); The returned xpp is an instance of org.kxml2.io.KXmlParser and thus cannot handle the

[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread tauntz
Are you using dialog titles? Somebody from the Android team decided that dialog titles can't be longer than 2 lines anymore. That means they can not be longer than 2 words in some cases/languages. And no, nobody has explained the reasoning behind this move (other than - why are you using so long

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
I raised a bug for this: http://code.google.com/p/android/issues/detail?id=2311 By the way, I wonder what ContentResolver.startSync() does? Maybe one has to call this in order to see an up-to-date media DB? (Its documentation is, as usual, a bit lacking.)

[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread Sahil Arora
Yes, i m using dialog titles. So going ahead do i need to replace my alert dialog with something else?? What is the suitable replacement u recommend?? Thanks. On Fri, Mar 27, 2009 at 5:41 AM, tauntz tau...@gmail.com wrote: Are you using dialog titles? Somebody from the Android team decided

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
Oh and, how did you resolve a content URI to an image path? I realized that the read into memory approach does not work for me, because sometimes when I go through an open-read-close-open-read cycle for the image stream, I get an IOException (funny enough, not always).

[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread tauntz
If you are actually using your dialog title for the title and it won't fit, then I suggest you file a bug report (http://code.google.com/p/android/issues/ ) since for me this is a bug (eg dialog titles can be only 2 lines.. really - that's a problem in some languages where common words are way

[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread Sahil Arora
Hi man, Thanks for ur quick reply.. Yes i m actually displaying a message. So i will try it out with setMessage function and revert back. Thanks again. On Fri, Mar 27, 2009 at 6:04 AM, tauntz tau...@gmail.com wrote: If you are actually using your dialog title for the title and it won't fit,

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
okay, one solution is to do something like this: String path = Environment.getExternalStorageDirectory ().getAbsolutePath() + /dcim/Camera/ + [value of DISPLAY_NAME column for this image]; and then do a new File(path).length() but I'm not sure if that path value is

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Pd
I was thinking on the same lines. Maybe have a Gaming Mode where the user knowingly chooses to turn the device into a games machine for better performance. Pd. Markus Junginger wrote: I strongly agree with the idea that foreground processes should be preferred. Currently I develop a game,

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread Streets Of Boston
Read my post from yesterday at 10am again :-) Execute a query using your content-uri, and use the returned cursor to obtain the physical file-path (use the ImageColumns.DATA). On Mar 27, 9:27 am, matthias m.kaepp...@googlemail.com wrote: okay, one solution is to do something like this:      

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Streets Of Boston
But discarding background apps is not the appropriate solution, it's just one easy solution Easy solutions are usually pretty good! :-) But maybe not in this case. Romain, what would you deem to be appropriate solutions? Thanks Dianna, We are looking at more strongly enforcing that background

[android-developers] Re: need some collection help

2009-03-27 Thread Streets Of Boston
You can not create a Collection. It is an interface, as other already pointed out. Judging from your other posts, i'd suggest your using an ArrayListCar. An ArrayList is basically some behavior around an array of objects (in your case Car[]). Internally, it's using an array and it handles all

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
ah my bad, I missed that. Very confusing tho, since the documentation says about that column: public static final String DATA The data stream for the file Type: DATA STREAM Constant Value: _data that sounds to me more like a BLOB than a path! On Mar 27, 2:45 pm, Streets Of Boston

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Sundog
I call hack again. Imagine what the Android haters would say IMMEDIATELY! Your phone has to have a special mode to handle a simple display smoothly? BWAHAHAHA etc. etc. On Mar 27, 7:43 am, Pd lotusscr...@gmail.com wrote: I was thinking on the same lines.  Maybe have a Gaming Mode where the

[android-developers] Re: Track Ball Problem...

2009-03-27 Thread TjerkW
How do you register an activity to get trackball events? On 25 mrt, 18:31, David Turner di...@android.com wrote: You need to register your activity to the system to tell it that you can handle trackball events directly. If you don't, then the system will emulate the events with key down/up

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Pd
As you know the technical reasons you would think along those lines. Consumers don't know the ins and outs of the device so they probably wouldn't think the same as you or I. Turning a negative into a positive, a good marketing team would have a field day with this. Something along the

[android-developers] Re: OnGestureListener vs ContextMenu, do they play together?

2009-03-27 Thread Keith Wiley
On Mar 27, 12:33 am, skink psk...@gmail.com wrote: what do you return in OnGestureListener.onLongClick() method? I hadn't added that method at all. It looks from the docs like onLongClick() is a View method, not an OnGestureListener method as suggested above. There is a

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Stoyan Damov
On Fri, Mar 27, 2009 at 4:23 PM, Sundog sunns...@gmail.com wrote: I call hack again. Imagine what the Android haters would say IMMEDIATELY! Your phone has to have a special mode to handle a simple display smoothly? BWAHAHAHA etc. etc. On Mar 27, 7:43 am, Pd lotusscr...@gmail.com wrote:

[android-developers] Notificationbar on top of a fullscreen application.

2009-03-27 Thread tauntz
I don't know if this is a bug somewhere but I have observer the following odd behavior: Installed an app called Bar Control and made a shortcut to an app called Barcode Scanner (Bar Control puts the shortcut to the notification bar so you can launch random apps directly from there) Once out of

[android-developers] Re: OnGestureListener vs ContextMenu, do they play together?

2009-03-27 Thread admin.androidsl...@googlemail.com
Seen the exact same problem. Gave up on this one a while ago. On Mar 27, 2:38 pm, Keith Wiley kbwi...@gmail.com wrote: On Mar 27, 12:33 am, skink psk...@gmail.com wrote: what do you return in OnGestureListener.onLongClick() method? I hadn't added that method at all.  It looks from the

[android-developers] Re: How to return non-table-oriented data from a content provider

2009-03-27 Thread Stoyan Damov
Possible Approach 5, similar to 3 - a phony table with 3 columns: 1. Name/Key/Whatever 2. Type (enumeration) 3. Data (string) The client would only need to convert the data from string to the appropriate type. Cheers On Fri, Mar 27, 2009 at 11:21 AM, Jesse McGrew jmcg...@gmail.com wrote:

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Sundog
I think you are doing a disservice to the intelligence of both Android users and Iphone users... they're more sophisticated than THAT! BWA HA HA, your little Android has to have a special mode for what everything else can do out of the box... I don't think people are as gullible as you do, lol.

[android-developers] Re: Broken Gallery View? using Gallery.setSelection(int position, boolean animate)

2009-03-27 Thread jarkman
If you're still looking, I have two possible solutions for you, both slightly unpleasant: (1) You can make the gallery do a fling with a chosen velocity, thus: myGallery.onFling(null, null, velocity, 0); By tweaking the velocity, you can set up values to move the selection by one or two in

[android-developers] Observation and comments on Android and regularly scheduled events

2009-03-27 Thread clarkbriancarl
I have an observation concerning how Android handles scheduled events and would like any suggestions, comments, or feedback on how other developers have handled this behavior in Android. I have noticed that there does not appear to be anyway to schedule an event to happen at regularly scheduled

[android-developers] Re: Access the environment variable in java layer

2009-03-27 Thread Michael MacDonald
Environment variables will only be visible in processes descending from the process that sets them. Since the app processes in android aren't spawned from your daemon, you won't be able to see the environment variables there. Charles Lu wrote: Hi, I wish to get the environment variable

[android-developers] Re: OutofMemory exception when dealing with large Bitmaps

2009-03-27 Thread mark . kahrl
This is a common problem when using the BimapFactory.decode, there is a bug or memory leak. We've had lengthy discussions about this in previous threads. Using smaller bitmaps, using bitmap.recycle(), and turning down the sample size can mitigate, but not eliminate this problem.

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-27 Thread Mark Murphy
clarkbriancarl wrote: The best I can get in a 24 our period for an alarm scheduled every 10 miutes is about 75% (110 out of 144 repeating alarms). I have tried varying this interval from 1 minute to 30 minutes with the same result. I have tested on a non-rooted T-Mobile both 1.0 and 1.1

[android-developers] Re: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-27 Thread mark . kahrl
Java is a very general term these days, to Sun it is a 'brand' , in corporate speak. What the statement is trying to say is that Symbian devices accept J2ME which is a subset of the Java language and API's for mobile devices. Android and J2ME do not really have much to do with each other,

[android-developers] Re: Intercept Incoming SMS

2009-03-27 Thread mark . kahrl
That is because both your receiver and the onboard application both grab the message from the same intent, intents can be captured by more than one receiver, howerver your receiver cannot consume the intent such that it is not available to other receivers. Mark On Mar 24, 3:29 pm,

[android-developers] Re: Optimizing very big switch?

2009-03-27 Thread Stepan Korshakov
I have already try to use array of classes for every branch of switch, but it seems to be tooo slooow, because of Android architecture or of other reasons. My switch looks like: switch(opcode) { case 0x00: ... break; case 0x01: ... break; case 0x02: ... break; ...

[android-developers] TabHost and Scrollbars

2009-03-27 Thread mafro
Hey all, My app uses a TabHost containing one tab with a ListView and another tab with a simple form. When the keyboard is slid out in order to write into the form fields, I don't get automagic scroll bars added to the LinearLayout around my form elements. Does anyone know why this is? Or

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Marco Nelissen
On Fri, Mar 27, 2009 at 2:35 AM, Al Sutton a...@funkyandroid.com wrote: Or an Exclusive app and App that can pause exclusive app pair of permissions. If you really want to make this user friendly the settings page could allow users to select which apps with the App that can pause exclusive

[android-developers] Re: No callback when list item is touched.

2009-03-27 Thread matthias
I have a similar problem: When putting different widgets in a listview, things get out of hand. I had three custom relative layouts and a spinner in that listview, and everything worked fine. I then added another spinner and a button, and now the spinners do not update their focused/clicked

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Mike Hearn
Currently our approach for scheduling is that apps doing background work on a thread should lower that thread's priority Whoops. I released an app that didn't do this. It's not obvious, I think. We are looking at more strongly enforcing that background applications can not take too many

[android-developers] Re: who can tell me how to achieve this function?! thx!!!!

2009-03-27 Thread strazzere
papi games read you android id - then they simple link the name and android_id on the site :) On Mar 26, 9:59 pm, wanzi ! wanzihe...@gmail.com wrote: droozen, thanks your reply! But in fact,this application didn't read the number or IMEI code of my phone ,because the waring information of

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Pd
[/QUOTE] I think you are doing a disservice to the intelligence of both Android users and Iphone users [/QUOTE] Copy and Paste :-) Now that is exciting stuff! lol Where Google engineers are concerned I have complete and total respect for them. I know they will do the right thing.

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Romain Guy
The hack comment is not to say can't do it, users will know it's a hack, it's more like can't be done, the core team is too good to throw in a hack. If they're like most programmers I know, they'd quit before writing code they perceived as a hack. And this WOULD be a hack of gigantic

[android-developers] Re: TabHost and Scrollbars

2009-03-27 Thread Romain Guy
You need to use a ScrollView inside your tab. On Fri, Mar 27, 2009 at 8:47 AM, mafro mafro...@gmail.com wrote: Hey all, My app uses a TabHost containing one tab with a ListView and another tab with a simple form. When the keyboard is slid out in order to write into the form fields, I don't

[android-developers] Re: Bouncing ListView?

2009-03-27 Thread Romain Guy
Please do not discuss patents on this list. On Fri, Mar 27, 2009 at 3:21 AM, Rajesh S rajeshs...@gmail.com wrote: but apple has infringed others' patents too... especially good old palm's. so palm went ahead to happily use apple's patents instead of suing.. revenge or understanding.. I

[android-developers] Create Drawable IDs in a loop??

2009-03-27 Thread guruk
Just on Question. hope you have a sec to help me. if i have many drawables to request like mbs[0] = (Button) findViewById(R.id.cmd_door_0);mbs [0].setOnClickListener(myOcl); mbs[1] = (Button) findViewById(R.id.cmd_door_1);mbs [1].setOnClickListener(myOcl); mbs[2] =

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-27 Thread clarkbriancarl
Hi Mark, THanks for the reply. I use your book as a reference from time to time. I would recommend it to anyone reading this. Before I open an issue, I would like to hear from other developers to see if their experiences have been similar, and if not, do some code comparison to see what they

[android-developers] Re: Bouncing ListView?

2009-03-27 Thread Ivan Soto
Ha! Let's not be copycats. The spring list effect is cool but we can have different ones, even better. In the latest G2 video you can see a very cool effect when changing orientation. Still the slide screen effect that is supposed to come in the next version is really nice. The only thing that

  1   2   >