[android-developers] Re: JUnit on the emulator without instrumentation

2009-03-27 Thread gudujarlson
I discovered that at least some of JUnit exists on the emulator. In particular TestCase and Assert exist. However, TestRunner does not appear to exist. I find it odd that only parts of JUnit are present. --~--~-~--~~~---~--~~ You received this message because you a

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

2009-03-27 Thread Dianne Hackborn
On Fri, Mar 27, 2009 at 5:03 PM, Mark Murphy wrote: > You ain't just whistlin' "Dixie" -- it took me a while to figure out how > to implement it, and that was even *after* you described the pattern. > Heaven help me if I'd've been trying to noodle that out independently. Yeah this needs to be im

[android-developers] "Pretty" ways to animate a list?

2009-03-27 Thread Keith Wiley
AK Notepad does this nice little thing where, on displaying the file list, it "unravels" rapidly down the screen. Are they hacking that incredibly manually, or are there simple OS calls to make lists display in various ways? --~--~-~--~~~---~--~~ You received this

[android-developers] TabActivity in Theme Light

2009-03-27 Thread Gil
I am trying to use a TabActivty with theme Light. The contrast of the font in unselected tabs makes the tabs text unreadable. Also, due to the white background of the activity the edges of the tabs are barely visible. Are tabs supported for theme Light? Am I missing something? --~--~-~--~-

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

2009-03-27 Thread Mark Murphy
Dianne Hackborn wrote: > This is unfortunately tricky to do right now; in the future we would > really like to make wakelock management easier for these situations. You ain't just whistlin' "Dixie" -- it took me a while to figure out how to implement it, and that was even *after* you described th

[android-developers] problem with webview - unable to open database file HELP

2009-03-27 Thread chouman82
I am having problem using webview in my application. When ever the webviewclient and webview is trying to load, it will throw me and uncaugh exception here is the log E/Database( 515): sqlite3_open_v2("/data/data/#package name#/ databases/webview.db", &handle, 6, NULL) failed W/dalvikvm( 515):

[android-developers] Re: (To Google devs)Using the IM plugin class

2009-03-27 Thread Dianne Hackborn
This isn't currently supported in the SDK. I don't know what plans there are to have it in the SDK, if any. Certainly we aren't going to have anything in the SDK that requires you get a shared user ID with a system package. On Fri, Mar 27, 2009 at 3:49 PM, Colin wrote: > > I would like to use

[android-developers] problem with webview - unable to open database file HELP

2009-03-27 Thread chouman82
I am having problem using webview in my application. When ever the webviewclient and webview is trying to load, it will throw me and uncaugh exception here is the log E/Database( 515): sqlite3_open_v2("/data/data/#package name#/ databases/webview.db", &handle, 6, NULL) failed W/dalvikvm( 515):

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

2009-03-27 Thread Diego Torres Milano
On Mar 27, 4:07 pm, Michael MacDonald wrote: > Environmentvariables 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 theenvironment > variables there. > > Charles Lu wr

[android-developers] Re: Class Cast Exception after classLoader.loadClass() and newInstance!

2009-03-27 Thread fadden
On Mar 26, 7:53 pm, 冰咖啡不加糖 wrote: > but if use MyInterface instance = (MyInterface) o; > it failed: java.lang.ClassCastException: com.mygame.Race The exception means that "o" is an instance of com.mygame.Race, and cannot be cast to an instance of MyInterface. This would happen if "o" sees a

[android-developers] (To Google devs)Using the IM plugin class

2009-03-27 Thread Colin
I would like to use the IM plugin class thats included in the Android source, but it is not SDK friendly. I am happy to submit the revisions required, but I don't really know what to change. It requires access to the non-api android.im tree and UID sharing with android.uid.im. I'm stumped, but I'd

[android-developers] Re: Problem on creating Socket

2009-03-27 Thread ndefo arnauld
hi, please, it is possible to use a socket a android emulator to my own remote server???if yes how can i doplease i need your helm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

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

2009-03-27 Thread Dianne Hackborn
Please read again my explanation about what you need to do to keep the device from going to sleep -- you need to have the alarm sent to a broadcast receiver, which immediately acquires a partial wake lock, which then starts the service, and the partial wake lock is not released until the service co

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

2009-03-27 Thread Mariano Kamp
Also, as long as we don't have conditional permissions the user has to take the game with the "optimization" always on and cannot opt to still get his or her tweets/emails/whatever for a smoother scrolling experience. I feel it very much looks like a hack. Currently the UI thread and a background

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

2009-03-27 Thread clarkbriancarl
Dianne, I have used both AlarmManager.ELAPSED_REALTIME_WAKEUP and AlarmManager.RTC_WAKEUP. I am currently setting a repeating alarm "attached" to a pending intent in the GUI portion of the application. The pending intent starts the service. objPendingIntent = PendingIntent.getService(bServiceGU

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

2009-03-27 Thread Stoyan Damov
I don't know, I was speaking strictly theoretically. On Fri, Mar 27, 2009 at 10:51 PM, Jesse McGrew wrote: > > Is there a limit to the number of columns a content provider can > return? I see SQLite has a default limit of 2000 columns per table, > which is more than enough, but my phony summary

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

2009-03-27 Thread Jesse McGrew
Is there a limit to the number of columns a content provider can return? I see SQLite has a default limit of 2000 columns per table, which is more than enough, but my phony summary table wouldn't be backed by SQLite. Jesse On Mar 27, 1:40 pm, Stoyan Damov wrote: > With 5 you can have unlimited

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

2009-03-27 Thread Stoyan Damov
With 5 you can have unlimited # of columns. With 3, well, you can't. On Fri, Mar 27, 2009 at 10:35 PM, Jesse McGrew wrote: > > On Mar 27, 7:43 am, Stoyan Damov wrote: >> Possible Approach 5, similar to 3 - a phony table with 3 columns: >> >> 1. Name/Key/Whatever >> 2. Type ("enumeration") >> 3.

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

2009-03-27 Thread Jesse McGrew
On Mar 27, 7:43 am, Stoyan Damov wrote: > 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. Hmm. I'm not sure what the b

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

2009-03-27 Thread Al Sutton
Dianne, Assume what you will, but your assumptions may not reflect the facts. I posted my closing down statement hours before you sent your slightly insulting email. As you've raised a couple of new issues I'd like to point out a couple of inaccuracies in what you've said; 1) Most windows gam

[android-developers] Re: error executing aapt. Please check aapt is present at .......eclipse

2009-03-27 Thread Xavier Ducrohet
What exact platform are you using? Xav On Fri, Mar 27, 2009 at 7:40 AM, deepu wrote: > > i know a similar topic was already posted but i have tried the > solution mentioned there. > i am using eclipse version 3.4 and i have supplied it the sdk > location.i went to the location it mentioned and

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

2009-03-27 Thread Nmix
With some trepidation I am wading into this discussion... It seems to me that real-time applications where time is of the essence in providing a good user experience (like action games) need a way to tell the OS how it can protect that experience. One idea that comes to mind is maximum time that

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-27 Thread John
try this method: PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, SMS.class), 0); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, pi, null); it works well. On Mar 18, 4:53 am, Seer wrote: > > Thanks for

[android-developers] Re: content://sms/sent Read SMS

2009-03-27 Thread John
Hi Martin, can you share your code about how to read the SMS from inbox? I want to read the SMS according the phone number, but i have no idea about that. Thanks, John On Mar 19, 9:36 pm, Martin wrote: > Hi, I'm having a problem reading theSMSmessages from the device. > When acquiring a conten

[android-developers] Re: ImageButton flash orange when background image is set?

2009-03-27 Thread vprada
Hi! You have to create two background images for you ImageButton... one the regular background and the other the Orange background... then you create an xml like this one http://schemas.android.com/apk/res/android";> you name the xml as you want it, and on the ImageButton properties

[android-developers] Spying camera application

2009-03-27 Thread srik
Hi I worked on N95 mobile, my goal is to capture image for every 2 min and send the image data to server without user help.I am done with image capturing manually but I am unable to capture image automatically could you please suggest me.I am getting certification message pop up. Is there any w

[android-developers] Re: Sensors don't work on partial wake lock

2009-03-27 Thread romario13
Hi, Have you a news or workarounds about this issue? I have ADP 1.1 and can to confirm this sensor behavior when screen is off. There is a closed issue http://code.google.com/p/android/issues/detail?id=1685 But i cannot understand: what is fixed? Statement onSensorChanged() receives correct da

[android-developers] Get a GPS location :: Need to open "Maps" to get the getLastKnownLocation return a correct value.

2009-03-27 Thread 6real
Dear all, I am facing a strange issue and I'm certainly doing something wrong ... Here is the scenario : I open my emulator I send a geo fix via telnet I open my app and try to be geolocated... getLastKnownLocation return null (the first time, or the last position after opening "Map"), my code i

[android-developers] Re: 电子工业出 版社博文视点找寻Android图书作者(限于中国人和华 人)

2009-03-27 Thread rem1x
希望能尽快见到中文版的android图书面世。 2009/3/26 David Hu > 胡先生: >您好! >我也有这方面的打算,整理过一些资料,原打算6月底开始正式整理。 > > 胡亚军 > > 2009/3/24 huzoor > >> 大家好! >> 开门见山:Android在国际上吸引眼球很久了,国内关注Android也有相当一段时间。我们与多家企业联系过,有很好的推广 >> Android图书的途径。现在国内缺乏Android中文图书,我们关注这个市场很久了,希望找到合适的Android图书作者。希望有意者可以和我

[android-developers] GsmCellLocation.getCid() returns very large numbers.

2009-03-27 Thread Richard Schilling
For the most part, when we call GsmCellLocation.getCid, we get normal looking numbers: public synchronized static int GetCellId() { GsmCellLocation location = (GsmCellLocation) phoneMan.getCellLocation (); return (location.getCid()); } This method often times returns small nu

[android-developers] error executing aapt. Please check aapt is present at .......eclipse

2009-03-27 Thread deepu
i know a similar topic was already posted but i have tried the solution mentioned there. i am using eclipse version 3.4 and i have supplied it the sdk location.i went to the location it mentioned and the aapt file was there. but i have no clue as to why it can't execute it. any help will be apprec

[android-developers] pricing model on a service based android application/game?

2009-03-27 Thread naru
I do understand that a self sufficient or standalone android application can be bought/sold for one time price. But what are various ways a user can be charged if an android application was a service based application, meaning every time user playing a new game would fetch some data from a servic

[android-developers] Gallery pain

2009-03-27 Thread szabolcs
Hello everyone! I have recently been working with the Gallery (SDK1.0_r2) and have found the following 3 issues, the first 2 of which have caused me a fair amount of pain: 1. not having a callback on the 'last item selected' in the gallery during a fling and/or scroll, 2. Gallery layout change w

[android-developers] Re: Touch screen slowdown

2009-03-27 Thread jgf1979
It's actually a conversion from a J2ME game and not one that otherwise requires a lot of performance. I have tried using wait() and notify() as suggestion in the thread you mention but i have found that since i am using postInvalidate() to repaint the View then it sometimes skips painting frames.

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

2009-03-27 Thread John
it doesn't matter, you can access it via proxy server. John On Mar 27, 2:34 pm, Eric Chan wrote: > If you being China Mainland , it is blocked. > > Best Regards > > Eric Chan > > 2009/3/27 > > > I met this problem too. > > > -Original Message- > > From: android-developers@googlegroups.

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

2009-03-27 Thread Dianne Hackborn
And are you using a partial wake lock? Note that if you absolutely need to run even when the device is asleep, this can be a little tricky -- you need to deliver the alarm to a broadcast receive (the alarm manager holds a wake lock during this time), acquire a partial wake lock there and start you

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

2009-03-27 Thread skink
On 27 Mar, 14:38, Keith Wiley wrote: > There is a OnGestureListener.onLongPress() method > however.  Is that what you meant? yes, i meant onLongPress but i've forgotten its void. i'm reakly sorry for that. other question: your View.onTouchEvent method. does it call super.onTouchEvent? if no

[android-developers] Re: Clear All Notifications called implicitly?

2009-03-27 Thread Dianne Hackborn
No it shouldn't. On Fri, Mar 27, 2009 at 10:36 AM, EboMike wrote: > > My app has a notification that is supposed to silence itself for a day > if you click on "Clear All Notifications". Every day, I see a > notification pop up as expected, but after I turn my phone off for a > while and then on

[android-developers] Parsing date with SimpleDateFormat

2009-03-27 Thread vincent.gann...@gmail.com
Hi all, I'm trying to parse the following date string "Fri, 12 Jan 2007 10:00:00 +0100" using SimpleDateFormat. Here is my code : Date date; String pubDate = "Fri, 12 Jan 2007 10:00:00 +0100"; SimpleDateFormat format = new SimpleDateFormat("EEE, dd MM HH:mm:ss zzz"); try { date = format

[android-developers] Clear All Notifications called implicitly?

2009-03-27 Thread EboMike
My app has a notification that is supposed to silence itself for a day if you click on "Clear All Notifications". Every day, I see a notification pop up as expected, but after I turn my phone off for a while and then on again, the notification is done. When I check my data, I see that the "silence

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

2009-03-27 Thread Ivan Soto
They are engineers, professionals, programmers. Don't expect them to act like a "technical support" guy. I prefer to read "WTF, you are doing it all wrong!" from them that crap like "This is not the proper way to achieve that. Please refer to the Developer Documentation at http://linktodevdocs.com

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

2009-03-27 Thread Dianne Hackborn
There have been a lot of changes in cupcake to how the status bar is hidden/shown, so it may be fixed there. On Fri, Mar 27, 2009 at 7:41 AM, tauntz wrote: > > 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

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

2009-03-27 Thread Mariano Kamp
Brendon, could you please comment out the button in your XML and run it again? Cheers, Mariano On Sun, Feb 1, 2009 at 10:40 PM, Brendon Drew wrote: > No, I am printing a log entry just before I call viewItem(), and I wasn't > seeing that log statement when touching the item. > > Though I thin

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

2009-03-27 Thread Mariano Kamp
It's likely the wrong way, but what you described works for me. I am showing the context menu manually. On Fri, Mar 27, 2009 at 3:38 PM, Keith Wiley wrote: > > On Mar 27, 12:33 am, skink wrote: > > > what do you return in OnGestureListener.onLongClick() method? > > I hadn't added that method at

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

2009-03-27 Thread Mariano Kamp
Hard to judge without any code. Do you use AlarmManager.RTC_WAKEUP? On Fri, Mar 27, 2009 at 5:45 PM, Mark Murphy wrote: > > clarkbriancarl wrote: > > THanks for the reply. I use your book as a reference from time to > > time. I would recommend it to anyone reading this. > > Thanks! > > > Before I

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

2009-03-27 Thread Sundog
This just emphasises the need for some sort of liason layer between app developers and the core team that wouldn't cause them so much irritation that it pushes them into acting unprofessionally. --~--~-~--~~~---~--~~ You received this message because you are subscri

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

2009-03-27 Thread ANKIT SOMANI
Hi, Thanks David. OnKeyDown() & OnKeyUp() worked for me. Thanks. 2009/3/27 TjerkW > > How do you register an activity to get trackball events? > > On 25 mrt, 18:31, David Turner wrote: > > You need to register your activity to the system to tell it that you can > > handle trackball events di

[android-developers] Re: TabHost and Scrollbars

2009-03-27 Thread mafro
Thanks Romain, no idea how I failed to find this when searching for "scroll", "tab host" and "view". On Mar 27, 4:17 pm, Romain Guy wrote: > You need to use a ScrollView inside your tab. > > > > On Fri, Mar 27, 2009 at 8:47 AM, mafro wrote: > > > Hey all, > > > My app uses a TabHost containing

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

2009-03-27 Thread Mark Murphy
clarkbriancarl wrote: > THanks for the reply. I use your book as a reference from time to > time. I would recommend it to anyone reading this. Thanks! > 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 >

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

2009-03-27 Thread Ivan Soto
It would be really good to get a post in the Android blog regarding this.I found out about the thread priority when coding my activity. My twitter app allows you to read stored tweets while it gets the new ones + pictures on background. It was scrolling really bad (like SlideMe) until I modified

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

2009-03-27 Thread Dianne Hackborn
Okay I have to assume at this point that you two are actually trolling. First, NOBODY has said that it isn't important to be able to do well performing games. The only discussion here is about how to achieve that. (And Al, I don't need some snide little link to a doc on Linux kernel scheduling; I

[android-developers] Photo Viewer Share menu ->

2009-03-27 Thread Hans
I want to be able to handle the intent (which contains an image) which is generated when a user chooses my 'activity' from the Share menu but I want it to happen without displaying a UI after the user chooses my entry on the 'Share' acitivty chooser menu. Is it possible to create an Activity with

[android-developers] Re: need some collection help

2009-03-27 Thread Josh Dobbs
Thanks for the clear explanation. This is exactly what i needed! On Fri, Mar 27, 2009 at 6:57 AM, Streets Of Boston wrote: > > 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 > ArrayList. > An ArrayL

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

2009-03-27 Thread Sundog
On Mar 27, 10:16 am, Romain Guy wrote: > We know when to cut corners :) Hacks have their own qualities but not > at the API/interaction level. Hacks are fine when it comes to > implementation details. Heh. I'm Old School (tm)... hacks in the operating system are not OK. You're fired. Just k

[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 is

[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 are

[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] = (Butto

[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 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 wudnt know. but it i

[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 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 get automagi

[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 gigant

[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. Now

[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 !" 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 this application

[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 man

[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 state

[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 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 apps" > per

[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 indeed

[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; ... c

[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, Jo

[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, excpe

[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: 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: 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 variabl

[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: 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 eith

[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: 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 wrote: > > I'm writing a co

[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 wrote: > On Mar 27, 12:33 am, skink 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

[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

[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 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 wrote: >> I was thinking on the same

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

2009-03-27 Thread Keith Wiley
On Mar 27, 12:33 am, skink 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 OnGestureListener.onLongPress() metho

[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 line

[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 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 events. > I don't

[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 wrote: > I was thinking on the same lines.  Maybe have a "Gaming Mode" where the > user knowingl

[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 wrote:

[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 ArrayList. 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 the in

[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: 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 wrote: > okay, one solution is to do something like this: > >         String path = Enviro

[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 gam

[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 por

[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 wrote: > > If you are actually using your dialog title for the title and it won't > fit, then I suggest

[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 lon

[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 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 wrote: > > Are you using dialog titles? > > Somebody from the Android team decided that dialog t

[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 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: 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 p

[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: 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.

[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" wrote: > > I chose the "do it yourself" approach and parse the layout.xml

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

2009-03-27 Thread wangxianjian8311
remount the sdcard maybe ok! 在2009-03-27,"冰咖啡不加糖" 写道: > >me too. > >On Mar 27, 10:41?am, Eric Chan wrote: >> I met the same question >> Best Regards >> >> Eric Chan >> >> On Wed, Mar 25, 2009 at 3:57 PM, Victor wrote: >> >> > I just download a cupcake branch of source code and build it. >> >

  1   2   >