[android-developers] Re: sqlite can't show chinese words

2009-09-09 Thread 楊健
I have try to store japanese and it works well.But the logcat can't show Japanese correctly,maybe you just test under eclipse, did you? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of tstanly Sent: Thursday, September

[android-developers] sqlite can't show chinese words

2009-09-09 Thread tstanly
hi all, I found that sqlite can't store chinese words and will shows random code in the application when retrieve data. can somebody give some help? thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-09-09 Thread kostmo
I have been investigating whether GoogleLoginService can substitute for ClientLogin (see http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html) on Google App Engine. To use ClientLogin, I solicit the username and password from the user in a dialog and exchange them on the Google se

[android-developers] Re: Native code is being called successfully but not executed properly

2009-09-09 Thread pink 444
Hai, I am newbie to Android ,Hence can you explain it in detail . Thanks in Advance, -Siva. On Sep 10, 11:02 am, Dianne Hackborn wrote: > Hi, you are more likely to get help on android-ndk. > > > > On Wed, Sep 9, 2009 at 9:36 PM, pink 444 wrote: > > > hai folks, > > >In Andr

[android-developers] Re: Multiple data for an intent

2009-09-09 Thread Dexter's Brain
Thanks Dianne, That, I guess answers my question. Dexter. On Sep 10, 10:59 am, Dianne Hackborn wrote: > Any application you are going to send multiple pieces of data to would need > to be written to explicitly support it -- it's not like maps is magically > going to do anything sane with multip

[android-developers] Re: Native code is being called successfully but not executed properly

2009-09-09 Thread Dianne Hackborn
Hi, you are more likely to get help on android-ndk. On Wed, Sep 9, 2009 at 9:36 PM, pink 444 wrote: > > hai folks, > >In Android , Native code is written as follows. > > JNIEXPORT void JNICALL Java_com_android_Test_show(JNIEnv *env, jobject > obj) > { > printf("THIS IS TEST"); >

[android-developers] Re: Content Provider VS SQLiteDatabase

2009-09-09 Thread Dianne Hackborn
Content provider is (generally) built on top of SQLite. You don't pick one or the other. On Wed, Sep 9, 2009 at 9:24 PM, Chris wrote: > > I would like to know the exact difference between Content provider and > SQLiteDatabase. If we have to share our data among applications then > we use Conten

[android-developers] Re: Multiple data for an intent

2009-09-09 Thread Dianne Hackborn
Any application you are going to send multiple pieces of data to would need to be written to explicitly support it -- it's not like maps is magically going to do anything sane with multiple geo URIs even if there was a way to get them to it. Intent supports one data field. I doubt this will chang

[android-developers] Re: Supported Media Formats Programmatically

2009-09-09 Thread kk
Hi Ajeet, Thanks for the reply. This is great information, but unfortunately does not address my question. I am not certain that querying the Webkit interface gurantees that the mimetype is support on across the platform, let alone via Webkit based applications. Documentation to sparse to dete

[android-developers] Re: Security framework available on android??

2009-09-09 Thread Roman ( T-Mobile USA)
The Bouncy Castle framework is part of Android. You can find it in the dalvik/libcore. If you want to use bouncy castle on SDK level you can download a jar package from http://www.bouncycastle.org/ -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and s

[android-developers] Re: Multiple data for an intent

2009-09-09 Thread Dexter's Brain
But, I don't have control over the target application. Suppose, I want to send 3 geo points info to the google maps application, will this solve my problem? Thanks, Dexter. On Sep 10, 10:20 am, AJ wrote: > You could put all data in Bundle and send this Bundle with the Intent. > This will solve

[android-developers] Is there any method to read sms and gmail?

2009-09-09 Thread 楊健
Hey everybody! Is there any method to read sms and gmail? It seems there is not any provider to read sms and gmail. But in Manifest.permission I found "READ_SMS"(Allows an application to read SMS messages.). The android.telephony.gsm.SmsManager class allow us to sent a sms but read. If possible

[android-developers] Re: Multiple data for an intent

2009-09-09 Thread AJ
You could put all data in Bundle and send this Bundle with the Intent. This will solve your problem. Thanks, AJ On Sep 10, 10:02 am, "Dexter's Brain" wrote: > Hi All, > > I was just wondering if it is possible to give the intent a set of > data, instead of just one. A particular scenario where

[android-developers] Multiple data for an intent

2009-09-09 Thread Dexter's Brain
Hi All, I was just wondering if it is possible to give the intent a set of data, instead of just one. A particular scenario where this could be applicable would be a music application. You select a list of songs, and pass all these data (file path) to the Music Player's application. Another sce

[android-developers] Security framework available on android??

2009-09-09 Thread Sudeep Jha
Which security framework is available or can be ported to android ? Warm Regards, Sudeep --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develop

[android-developers] Native code is being called successfully but not executed properly

2009-09-09 Thread pink 444
hai folks, In Android , Native code is written as follows. JNIEXPORT void JNICALL Java_com_android_Test_show(JNIEnv *env, jobject obj) { printf("THIS IS TEST"); } JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env; JNINativeMethod meth;

[android-developers] Content Provider VS SQLiteDatabase

2009-09-09 Thread Chris
I would like to know the exact difference between Content provider and SQLiteDatabase. If we have to share our data among applications then we use Content provider, otherwise SQLiteDatabase. Is this is the ONLY difference, OR using Content Provider has something to do with performence??? Any input

[android-developers] Re: how do real-time monitor the state of SD card

2009-09-09 Thread jerry
my quetion is from switching "usb connected" in the phone notifications,which pop up from taskbar. try to all the ACTION_MEDIA_* series of Intent actions,but these are all failed.these actions couldn't real-time monitor the state of SD card. also, use broadcast receivers,the code like this, but it

[android-developers] Re: how do real-time monitor the state of SD card

2009-09-09 Thread jerry
my quetion is from switching "usb connected" in the phone notifications,which pop up from taskbar. try to all the ACTION_MEDIA_* series of Intent actions,but these are all failed.these actions couldn't real-time monitor the state of SD card. also, use broadcast receivers,the code like this, but it

[android-developers] Re: Play audio over an active phone call, so other end can hear it

2009-09-09 Thread Dianne Hackborn
You can't do this on the G1 class hardware. This audio routing is handled by the baseband, which is a separate CPU running the radio and other related things. On Thu, Aug 20, 2009 at 8:39 AM, tcp wrote: > > jsdf - > > Did you find an answer to this question somewhere? > > It is related to one o

[android-developers] Re: change framework assets with alternate home screen

2009-09-09 Thread Dianne Hackborn
Correct, no way. On Wed, Sep 9, 2009 at 7:15 PM, Andy Droid wrote: > Thanks for the reply. So once the system.img is flashed to the phone, > there is really no way to change the contents of framework-res.apk? Sorry > for the redundant question, just verifying. > > And no way to change out a co

[android-developers] Re: Android WVGA support

2009-09-09 Thread Dianne Hackborn
Sorry, yes. On Wed, Sep 9, 2009 at 6:59 PM, Ed Burnette wrote: > > Did you mean ? > > On Sep 9, 12:37 pm, Dianne Hackborn wrote: > > You'd do > android:targetSdkVersion="4" /> and then configure the rest of the > manifest > > as desired. > > > > > > > > On Wed, Sep 9, 2009 at 2:12 AM, Al Sutto

[android-developers] Re: change framework assets with alternate home screen

2009-09-09 Thread Romain Guy
No and no :) On Wed, Sep 9, 2009 at 7:15 PM, Andy Droid wrote: > Thanks for the reply. So once the system.img is flashed to the phone, > there is really no way to change the contents of framework-res.apk? Sorry > for the redundant question, just verifying. > > And no way to change out a core a

[android-developers] Re: How can I start the ADB Deamon programatically ???

2009-09-09 Thread Dianne Hackborn
You could look at the source code and see how it is done. I believe adb is in the system/base project. On Wed, Sep 9, 2009 at 7:24 PM, HandsomeboyIT wrote: > > I believe that the deamon service can be communicate with other > application through TCP/IP protocol (localhost:5039). I just don't > k

[android-developers] Re: screen size of emulator?

2009-09-09 Thread Dianne Hackborn
You generally don't, your views get told the size they should be as part of the view hierarchy layout. Directly getting the size of the display is not recommended, because it may have no relation to the actual space your UI has available (such as if there are other screen decorations around, like

[android-developers] Re: How to get webview's content into a bitmap?

2009-09-09 Thread AJ
If somebody knows this, plz help me - AJ On Sep 9, 1:26 pm, Ajeet Singh wrote: > Hi gjs, > > Thanks for pointing that error. But that was a type error. Now I am > pasting the correct code here. > > > >

[android-developers] Re: Microphone signal ..source

2009-09-09 Thread Rud
What you are asking for is a non-trivial problem. To determine the frequency of a signal you have to capture a number of samples. Whether they go to a memory buffer or SD is a detail. You then need to perform a Fast Fourier Transform (or similar transform for the pedantic ones) to determine the fr

[android-developers] screen size of emulator?

2009-09-09 Thread mmkr
Hai, How can i get the screen size of my emulator? i used Display display = ((WindowManager) getSystemService (Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth(); Log.i("width",""+width); But it gives me different values each time. How to find the exact

[android-developers] Re: How can I start the ADB Deamon programatically ???

2009-09-09 Thread HandsomeboyIT
I believe that the deamon service can be communicate with other application through TCP/IP protocol (localhost:5039). I just don't know how to start it. The ADB server run on the development machine can do this. It can send some commands to deamon service to start the deamon and retrieve data from

[android-developers] Re: change framework assets with alternate home screen

2009-09-09 Thread Andy Droid
Thanks for the reply. So once the system.img is flashed to the phone, there is really no way to change the contents of framework-res.apk? Sorry for the redundant question, just verifying. And no way to change out a core app icon, such as Contacts? thanks On Wed, Sep 9, 2009 at 3:58 PM, Romai

[android-developers] Re: Android WVGA support

2009-09-09 Thread Ed Burnette
Did you mean ? On Sep 9, 12:37 pm, Dianne Hackborn wrote: > You'd do android:targetSdkVersion="4" /> and then configure the rest of the manifest > as desired. > > > > On Wed, Sep 9, 2009 at 2:12 AM, Al Sutton wrote: > > > Dianne, > > > In the blog post can you cover how to produce one app whic

[android-developers] Re: Setting empty text on listView that does not have @+android:list as its ID?

2009-09-09 Thread Mark Murphy
Lee wrote: > I've got a tabhost that has a number of tabs that all contain a > ListView (among other widgets). > > I need to address each ListView separately and so they all have a > unique ID that is not @+android:list. > > How does one define the empty text for a list if the only way that it >

[android-developers] Setting empty text on listView that does not have @+android:list as its ID?

2009-09-09 Thread Lee
I've got a tabhost that has a number of tabs that all contain a ListView (among other widgets). I need to address each ListView separately and so they all have a unique ID that is not @+android:list. How does one define the empty text for a list if the only way that it can be done is through the

[android-developers] Re: Microphone signal ..source

2009-09-09 Thread Josh
Im looking for the same thing? Can anyone help with this? On Aug 31, 1:08 pm, guruk wrote: > Hi, > i look for a very simple example what signal arrives at mymicin > realtime. > It does not need to be saved to sd-card or anything. > > Just a $vol=GetVolume   (0-) > $frequ=Getfrequ (0-28000) >

[android-developers] Re: Play audio over an active phone call, so other end can hear it

2009-09-09 Thread Josh
have you figured out how to do this? On Aug 20, 8:39 am, tcp wrote: > jsdf - > > Did you find an answer to this question somewhere? > > It is related to one of my own which is, can I write my own phone app? > > It would seem odd if there was no _possible_ programmatic interface to > the audio st

[android-developers] Re: How i can create usable android project's library

2009-09-09 Thread kostmo
Oops, I'll have to retract that; my test was invalid. The manifest lines I added were incorrect (forgot the tags), causing my new version not to be installed... I do indeed find problems in my log now, such as: 09-09 19:28:11.484: WARN/ResourceType(580): No package identifier when getting value

[android-developers] Integrate InstrumentationTestRunner on adb shell with ant for continuous integration and TDD

2009-09-09 Thread Agus
Hi all, I am just wondering if anyone has successfully integrate the result from calling InstrumentationTestRunner with ant, instead of parsing the log manually and extract the test results. my goal is to setup a continuous integration test-driven development by executing test cases periodically o

[android-developers] Re: Voice 2 text help

2009-09-09 Thread Mark Murphy
Abhi wrote: > Is there no one who could help me on this? Mark Murphy? Uh, hi! Sorry, I have not played with voice-to-text yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~

[android-developers] Re: Voice 2 text help

2009-09-09 Thread Abhi
Is there no one who could help me on this? Mark Murphy? On Sep 8, 10:15 am, Abhi wrote: > Hi guys, > > I have been trying to develop an app around the voice recognition > functionality of Cupcake. As a sample code, I used the > VoiceRecognition.java project available under API Demos. (http:// >

[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Dianne Hackborn
Thanks Mark, that is a great explanation. Another way one can look at this: your app is probably not nearly that important to most of your users. We are increasingly working on ways to let the users know which apps are doing this kind of stuff, so they can make good decisions about the things run

[android-developers] Re: How i can create usable android project's library

2009-09-09 Thread Mark Murphy
kostmo wrote: >> Bear in mind also that your library cannot package any resources, making >> activities that much more difficult to package in a library. > > I'm not sure that is true. > > I have created a .jar from a project that happens to include some > layout files. I import this .jar from

[android-developers] Re: latitude buddies content provider

2009-09-09 Thread Dianne Hackborn
This is not a public API. Any attempts you make at using it will break in the future. On Wed, Sep 9, 2009 at 3:54 PM, Arno den Hond wrote: > > Perhaps a developer who worked on the maps app can answer this > question? > would appreciate it a lot! > > > > -- Dianne Hackborn Android framework

[android-developers] Re: How i can create usable android project's library

2009-09-09 Thread kostmo
> Bear in mind also that your library cannot package any resources, making > activities that much more difficult to package in a library. I'm not sure that is true. I have created a .jar from a project that happens to include some layout files. I import this .jar from a second project, and add

[android-developers] Re: avoid splash screen if a service is running...

2009-09-09 Thread sdphil
hm... this is pretty good -- http://stackoverflow.com/questions/600207/android-check-if-a-service-is-running any objections? On Sep 9, 4:08 pm, sdphil wrote: > when my activity gets started, i want to check for a service, if it > exists, I want to show screen 2 and bind to the service, if the

[android-developers] avoid splash screen if a service is running...

2009-09-09 Thread sdphil
when my activity gets started, i want to check for a service, if it exists, I want to show screen 2 and bind to the service, if the service is not running, I want to show screen 1 and start the service. i could not find an easy way to know whether the service is running or not... tia. --~--~

[android-developers] Re: Video quality

2009-09-09 Thread Engin Arslan
To be more specific, When I captured video, it only capture left top of screen with low quality as if it zooms top left of screen. What can be problem? On Sep 9, 10:07 pm, Engin Arslan wrote: > Hi, i am capturing video with the code below. But there is problem on > videoquality, that is, when I

[android-developers] Re: change framework assets with alternate home screen

2009-09-09 Thread Romain Guy
No, it cannot do this. On Wed, Sep 9, 2009 at 3:55 PM, Andy Droid wrote: > > Could an alternate home screen app replace the assets such as s > "menu_item_background_pressed.9.png" or > "list_selector_background_focus.9.png", both found in  frameworks/base/ > core/res/res/drawable in the open sour

[android-developers] change framework assets with alternate home screen

2009-09-09 Thread Andy Droid
Could an alternate home screen app replace the assets such as s "menu_item_background_pressed.9.png" or "list_selector_background_focus.9.png", both found in frameworks/base/ core/res/res/drawable in the open source project? I have altered those by changing out the assets and recompiling. But c

[android-developers] Re: latitude buddies content provider

2009-09-09 Thread Arno den Hond
Perhaps a developer who worked on the maps app can answer this question? would appreciate it a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: Help with Spinner

2009-09-09 Thread Mark Murphy
EverettG wrote: > I am creating a Spinner but when it displays in the Emulator it does > not display any sort of arrow to let the user know to click on it. If > you click on it, it works properly and you can choose from the items. > I have looked through Internet resources and three books but cann

[android-developers] Re: android-developers - 26 new messages in 16 topics - digest

2009-09-09 Thread Bartolo Illiano
Who use a Titanium Developer for buld android apps ? --~--~-~--~~~---~--~~ 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 f

[android-developers] Help with Spinner

2009-09-09 Thread EverettG
I am creating a Spinner but when it displays in the Emulator it does not display any sort of arrow to let the user know to click on it. If you click on it, it works properly and you can choose from the items. I have looked through Internet resources and three books but cannot seem to find an answe

[android-developers] Re: Is it possible to use the accelerometer in a background service?

2009-09-09 Thread John Smith
2009/9/10 dadical : > > I register a listener to orientation sensor from within a background > service with no trouble.  Perhaps the following code may help.  These > methods are called from my service's onCreate and onDestroy methods: > >        private void startMonitoring(){ >                Se

[android-developers] Re: IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-09-09 Thread Lucas
Hello, Do you know the issue ID that this fix has assigned? Thanks, Lucas On Aug 24, 4:12 am, Romain Guy wrote: > This issue is fixed in Donut but the source code available in the open > is not the latest version. > > 2009/8/24 Justin : > > > > > > > This issue still happened in Donut. > > >

[android-developers] Re: About intercept api calls

2009-09-09 Thread Mark Murphy
tony wrote: > I want to write an app to do the api calls interception just like what > "Detour" does under windows. > Once the app is running it can hijack all the api calls other app made > to the system. > Anybody can give me any idea about achieving that? I sincerely hope it is impossible, as

[android-developers] How to use drawable resource in custom XML?

2009-09-09 Thread Robi
Hey guys, so I have an XML file: xml/catalog.xml which contains gallery and pictures. Like this: http://schemas.android.com/apk/res/android";>

[android-developers] Re: font android

2009-09-09 Thread Mark Murphy
arroyopablobenjamin wrote: > i want used the font of android in gimp or inkscape...where i can > download? > how this: > http://img.xataka.com/2007/12/Android_Logo.jpg http://www.android.com/branding.html "Android Custom Typeface: The custom typeface may not be used." Sorry! -- Mark Murphy (a

[android-developers] About intercept api calls

2009-09-09 Thread tony
Hi all there, I want to write an app to do the api calls interception just like what "Detour" does under windows. Once the app is running it can hijack all the api calls other app made to the system. Anybody can give me any idea about achieving that? Best Tony --~--~-~--~~--

[android-developers] font android

2009-09-09 Thread arroyopablobenjamin
i want used the font of android in gimp or inkscape...where i can download? how this: http://img.xataka.com/2007/12/Android_Logo.jpg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Mark Murphy
Lee wrote: > Following that philosophy to the end, the user should never turn the > device on. How much power cost is depends greatly upon what one is doing. An every-5-seconds service is pretty likely to be very bad for battery life. I really encourage everyone to watch Jeff Sharkey's Google I/

[android-developers] Translucent and FullScreen?

2009-09-09 Thread Illidane
Hi! I have an issue : I set Theme.Translucent.NoTitleBar.Fullscreen for my app, but status bar is still here. Is there a solution for it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Lee
> > You can detect screen off and set an alarm every 5 seconds to poke the > > service if you want to keep it doing something. > > While the service is busy, make sure you hold a partial wake lock. > > Have a look at the SMSPopup for an example of wakelock management. > > Please don't do this.  Wa

[android-developers] Re: Animation of a View

2009-09-09 Thread Eddified
another problem: c) if something changes and I need to reverse the animation from it's current half-way state, without completing the animation and without simply clearing it, I don't see any way to accomplish this using the Animation classes. Given these problems, what approach should I take? O

[android-developers] Animation of a View

2009-09-09 Thread Eddified
I understand that animating a View using startAnimation() with a TranslateAnimation object really just applies a transform on the canvas that is being drawn on. In my case, the problems with this are: a) sometimes I need to call bringChildToFront() (for a different View) on the ViewGroup during th

[android-developers] Mediastore thumbnail refresh

2009-09-09 Thread Christine
I use the image_capture intent to take a picture. But when I subsequently access the gallery from within my app, the picture doesn't show up. Apparently the thumbnails aren't refreshed in the mean time? How can I force a refresh of the gallery thumbnails? I couldn't find a method to do so - though

[android-developers] Re: Best practices for handling passwords/keys in open source projects?

2009-09-09 Thread Mark Murphy
Eric Mill wrote: > In my app, I'm taking advantage of a web-based API (the Sunlight Labs > API) that requires an API Key. The project is also open source, > hosted on Github. I want to avoid committing my API key into the > codebase. > > I'd be fine with creating some other .xml file of special

[android-developers] any update on ADC 2?

2009-09-09 Thread parchira tech
Is there any places we can view the submission list? has it begun to judge? Thanks! --~--~-~--~~~---~--~~ 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@g

[android-developers] Best practices for handling passwords/keys in open source projects?

2009-09-09 Thread Eric Mill
In my app, I'm taking advantage of a web-based API (the Sunlight Labs API) that requires an API Key. The project is also open source, hosted on Github. I want to avoid committing my API key into the codebase. I'd be fine with creating some other .xml file of special string values, and git-ignori

[android-developers] Re: can't bind to a local service.

2009-09-09 Thread sdphil
egads! that was it (well, kinda) I had it in there, but I had it as remote -- android:process=":remote" thanks! On Sep 9, 12:41 pm, Dianne Hackborn wrote: > Did you publish the service in your manifest? > > > > On Wed, Sep 9, 2009 at 11:37 AM, sdphil wrote: > > > I have the following base a

[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Dianne Hackborn
On Wed, Sep 9, 2009 at 9:45 AM, Mark Murphy wrote: > Dianne Hackborn wrote: > > For socket-level > > communication, you will wake up when you are receiving data. > Doesn't the WiFi radio get turned off, though, when the device is asleep? > It may. The device will always keep a data connection,

[android-developers] Re: can't bind to a local service.

2009-09-09 Thread Dianne Hackborn
Did you publish the service in your manifest? On Wed, Sep 9, 2009 at 11:37 AM, sdphil wrote: > > I have the following base activity. > > public class BaseActivity extends Activity > ... > ... > ... onCreate(...) { >this.bindService(new Intent(BaseActivity.this, > LocalService.class), ser

[android-developers] Re: Is it possible to use the accelerometer in a background service?

2009-09-09 Thread Dianne Hackborn
There is no need to use getBaseContext(); Service is itself a Context. On Wed, Sep 9, 2009 at 10:41 AM, Mike Collins wrote: > > > my service uses "getBaseContext()", seems to work just fine. Don't > use it for > GPS but we do use it for many other things. > > mike > > > On Sep 9, 6:57 am, John

[android-developers] Re: MyTouch Lag Problems

2009-09-09 Thread Dianne Hackborn
Yep, this is the current recommendation. In Eclair the system should be throttling event delivery to not more than 60/second, so this becomes a little less important (and the historical data more important). On Wed, Sep 9, 2009 at 12:07 PM, Robert Green wrote: > > Mike, here's something to try:

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

2009-09-09 Thread androiduser mobile
I got it working with a permission change in the manifest file. I added "WRITE_EXTERNAL_STORAGE" and it worked like a gem :)). On Sep 9, 12:13 pm, Chris Stratton wrote: > On Jul 17, 6:24 pm, doubleminus wrote: > > > Is it a permissions issue?  Trying to "touch" the sdcard via adb shell > > giv

[android-developers] Re: MyTouch Lag Problems

2009-09-09 Thread Mike
Thanks Robert, I'll have to play around with this idea and see what works. - Mike On Sep 9, 1:07 pm, Robert Green wrote: > Mike, here's something to try: > > When handling motion events, process all of the historical data in > order as if it's receiving those events like normal, > then:  Sleep

[android-developers] Re: what services are available at the API level?

2009-09-09 Thread Andy Droid
Yeah, that questions too vague. The link helped, though. On Sep 9, 10:41 am, Mark Murphy wrote: > Andy Droid wrote: > > That's a good point.  In addition to what I mentioned, I guess I'm > > really interested in ALL the API's, regardless of how they are > > implemented.  Are all API's documente

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

2009-09-09 Thread Chris Stratton
On Jul 17, 6:24 pm, doubleminus wrote: > Is it a permissions issue?  Trying to "touch" the sdcard via adb shell > gives me a "permission denied" message... FYI there's no "touch" command in the shell or /system/bin and the shell apparently considers "permission denied" to be a good substitute fo

[android-developers] Video quality

2009-09-09 Thread Engin Arslan
Hi, i am capturing video with the code below. But there is problem on video quality, that is, when I capture video with applicaiton I wrote its quality is not as well as video quality of telepohnes' which is recorded by Camcorder. public CamcorderPreview(Context context, AttributeSet attrs) {

[android-developers] Re: MyTouch Lag Problems

2009-09-09 Thread Robert Green
Mike, here's something to try: When handling motion events, process all of the historical data in order as if it's receiving those events like normal, then: Sleep 16 or 32 ms or so. You'll still receive all of the important stuff as historical data but you won't be flooded with events. You'll

[android-developers] Re: Tracking down libdvm crash

2009-09-09 Thread DaveG
On Sep 8, 1:25 pm, fadden wrote: > On Sep 8, 12:26 pm, DaveG wrote: > > > My app is running into the following crash and I'm having a hard time > > diagnosing it. We have multiple background threads (including a couple > > pthreads started via JNI that are making calls back up to Java > > occasi

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

2009-09-09 Thread androiduser mobile
Hi doubleminus, Did you resolve this issue? Can you please provide me the solution. I am stuck with this issue. Thanks, Android user On Aug 17, 7:15 am, Dany BREARD wrote: > Hi > > I have the same issue but I can't change my /sdcard permission. > > I have windows xp, I try to change /sdcard

[android-developers] Re: Is it possible to use the accelerometer in a background service?

2009-09-09 Thread dadical
I register a listener to orientation sensor from within a background service with no trouble. Perhaps the following code may help. These methods are called from my service's onCreate and onDestroy methods: private void startMonitoring(){ SensorManager lMgr = (SensorManag

[android-developers] Re: Detecting when launched by an Alias

2009-09-09 Thread modaddy
Bumping one time... On Sep 2, 1:46 pm, modaddy wrote: > Hello, > > I'm trying to figure out how my Activity can detect if it was launched > by analiasas opposed to by the main icon.  Is it possible to do > this? > > e.g. In my manifest file, I have: >     android:icon="@drawable/icon" > android

[android-developers] wifi RA certificate issue

2009-09-09 Thread Adam
hi all, Have you notice that user is not able to import WIFI RA certificate to android. i'm using HTC Hero and i was really surprised when i failed to add new certificate to my wifi connection. it is possible even on symbian so... you can edit advanced settings and then select add new certificate

[android-developers] how to get stack of activities?

2009-09-09 Thread Marco Aurelio
Hi all, I'll explain why: Assuming that my activity stack is ABC. (activity A is running and the next activity is B). I have to write a code that performs the following action: if A dies and the next activity to be executed is B, then recreate B. If the next activity is not B, do nothing. This

[android-developers] can't bind to a local service.

2009-09-09 Thread sdphil
I have the following base activity. public class BaseActivity extends Activity ... ... ... onCreate(...) { this.bindService(new Intent(BaseActivity.this, LocalService.class), serviceConn, Context.BIND_AUTO_CREATE); } ... private ServiceConnection serviceConn = new ServiceConnectio

[android-developers] How to listen for any change in the contact database

2009-09-09 Thread hap 497
Hi, I am trying to listen for any change in the contact database. So I create my contentObserver which is a child class of ContentObserver: private class MyContentObserver extends ContentObserver { public MyContentObserver() { super(null); } @Override

[android-developers] Re: How can I get current Activity object in Instrumentation object ????

2009-09-09 Thread Brett Chabot
It sounds like android.app.Instrumentation.ActivityMonitor might help. See http://developer.android.com/reference/android/app/Instrumentation.ActivityMonitor.html Brett. On Wed, Sep 9, 2009 at 1:14 AM, HandsomeboyIT wrote: > > I want to do some automated testcase with Instrumentation . Sugges

[android-developers] Re: J-unit testing issues

2009-09-09 Thread Brett Chabot
Comments below. On Tue, Sep 8, 2009 at 1:12 AM, jrichards1...@googlemail.com wrote: > > Hi, i am having two issues when doing Junit testing on my code. the > first issue is i cant seem to unit test a private method or class and > was wondering if its possible to do so. No its not possible. The

[android-developers] Re: GC and releasing physical memory

2009-09-09 Thread skink
On Sep 9, 8:02 pm, Dianne Hackborn wrote: > The current garbage > collector does no compaction, but it will release pages inside of the heap > that are free. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com thanks Dianne for your prompt reply how gc knows what page

[android-developers] Re: GC and releasing physical memory

2009-09-09 Thread Dianne Hackborn
It all depends on how the objects appear in the heap. The current garbage collector does no compaction, but it will release pages inside of the heap that are free. On Wed, Sep 9, 2009 at 10:51 AM, skink wrote: > > hi, > > i dont know if i understand how gc releases physical memory > > lets assu

[android-developers] GC and releasing physical memory

2009-09-09 Thread skink
hi, i dont know if i understand how gc releases physical memory lets assume that physical mem is divided into 4kB pages i allocate 2000 objects each 2kB long lets assume they are allocated one after another in physical memory then i release every even object 0, 2, 4 etc so i released 1000 ob

[android-developers] Re: Dialing IVR Systems, or sending DTMF tones after a call is made

2009-09-09 Thread Mark Ellul
Hi, After studying the code and trying a few different ways to do this, noting that in the Emulator the code works fine I come to believe that its a HTC Hero Issue. Unforunately I do not have a G1 to test on. If anyone does have a G1 they could test the code let me know I will send you the code

[android-developers] Re: onReceive not triggering for SEND / image

2009-09-09 Thread EnnaN
thanks :D and progress is being made, hopefully no more of these bumps in the road :D n. On Sep 9, 7:33 pm, Beth wrote: > Here is the nudge you wanted... > Your intent filter needs to be set on an activity.  The code you > posted shows it as a Broadcast Receiver. > Change: > > to > > and mov

[android-developers] Re: what services are available at the API level?

2009-09-09 Thread Mark Murphy
Andy Droid wrote: > That's a good point. In addition to what I mentioned, I guess I'm > really interested in ALL the API's, regardless of how they are > implemented. Are all API's documented in one place? http://developer.android.com/reference/packages.html But I suspect you've already been th

[android-developers] Re: Is it possible to use the accelerometer in a background service?

2009-09-09 Thread Mike Collins
my service uses "getBaseContext()", seems to work just fine. Don't use it for GPS but we do use it for many other things. mike On Sep 9, 6:57 am, John Smith wrote: > It seems trivial to use GPS in a background service, but how can you > do the same with the accelerometer? > > Everything I'

[android-developers] Re: what services are available at the API level?

2009-09-09 Thread Andy Droid
That's a good point. In addition to what I mentioned, I guess I'm really interested in ALL the API's, regardless of how they are implemented. Are all API's documented in one place? thanks On Sep 4, 2:53 pm, Dianne Hackborn wrote: > The fact that it has "Service" in its name is kind-of irrele

[android-developers] Access to the systems Download Manager

2009-09-09 Thread Nathan Ekstrom
Will normal applications ever be given access to the systems Downloads provider? Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] Re: onReceive not triggering for SEND / image

2009-09-09 Thread Beth
Here is the nudge you wanted... Your intent filter needs to be set on an activity. The code you posted shows it as a Broadcast Receiver. Change: to and move all your stuff from onRecieve to onCreate. That should take you forward. Good luck! On Sep 9, 10:25 am, EnnaN wrote: > and there we ar

[android-developers] Re: how to get events out of a service.

2009-09-09 Thread Mark Murphy
sdphil wrote: > well I am making a media player like application -- so do i want it as > a separate process using AIDL? That depends on how many third party UIs you are seeking to have built for your app. If the answer is "zero", then you probably do not want a separate process. > what are the p

  1   2   3   >