[android-developers] Re: Regarding Process Context

2009-09-24 Thread Raghu
ok thank you. i will post to android posting group On Sep 24, 2:12 pm, Dianne Hackborn hack...@android.com wrote: I think they are talking about modifying the platform (system service is the main process that runs the system services), in which case this should be moved to android-porting.

[android-developers] To Display Calendar ........

2009-09-24 Thread ragavendran s
i want to display calendar in screen ..when the user select the MM-DD- from calendar.. it should store in the database... can u tell any source or any site to find this... Thanks in advance... With Regards, Raghav.S --~--~-~--~~~---~--~~ You received this

[android-developers] How to detect All Ram Memory?

2009-09-24 Thread Reznic Alexander
I can see free Ram memory, but how to see all ram available? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Problem in using remote service from other App

2009-09-24 Thread Rahul Bhagwat
I’ve implemented remote service using aidl it is working fine if I’m using its service from same package. But If I tried to use the service from other application it gives me error as below 09-24 10:51:08.051: ERROR/dalvikvm(795): Could not find method

[android-developers] Re: Android as a virtual PBX

2009-09-24 Thread JoaJP
Oh yeah Asterisk. I spent a few hours last year to build Asterisk for ARM. On a Nokia N810, which runs proper Linux (Maemo), it ran right out of the box, without any compromise. I am sure you can figure what's on my holiday wish list. It'll be interesting to see how that plays out on a carrier

[android-developers] memory leak in activity

2009-09-24 Thread rukiman
In my app activity A creates activity B, however when the back key is pressed it goes back to activity A. This is a simplified version of my application. I would expect memory to be reclaimed when going back to Activity A. Going to activity B allocates more memory. I am using dumpsys meminfo to

[android-developers] Java heap outofmemory during dex

2009-09-24 Thread whitech
hi all, I've meeting a problem here: When I use ant to package my program, in the dex step, it crash like below: dex: [echo] Converting compiled files and external libraries into release/classes.dex... [apply] UNEXPECTED TOP-LEVEL ERROR: [apply] java.lang.OutOfMemoryError: Java heap

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-24 Thread sheik
Name : iCommuteLess Track commutes, Save time Category : Lifestyle By: Uttara Infosolutions Website :http://www.commuteless.appspot.com/ Description : iCommuteLess is an application to track your daily commutes. Based on commutes, the application has intelligence built-in to give users

[android-developers] Re: How to use hardware acceleration in OpenGL ES

2009-09-24 Thread String
Take a look at this thread: http://groups.google.com/group/android-developers/browse_thread/thread/67b902d80713dc66/d240e83fb982d599 First, it gives some baseline FPS results from the APIDemos which you can use for comparison. Second, it mentions some specific issues (and a solution) which may

[android-developers] How to access storage by using API?

2009-09-24 Thread bluestar
If I want to read/write external storage, like usb drive, does Android provide this feature to do? Or how do using Google API to read/write SDcard on Mobile? Where to get sample code for this goal? Thanks for your kindly help. --~--~-~--~~~---~--~~ You received

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-24 Thread dwass
I don't think it is possible that this is not an interesting question, based on the amount of activity in this and other similar posts about how to hide or show the sofkeyboard programatically. I've tested a lot of this behaviour on G1 and G2 (Hero) and the behaviour is either very buggy or there

[android-developers] Re: How can I get Activity object from Intent object or something else

2009-09-24 Thread HandsomeboyIT
So, There is only one remain method that using ADB deamon on devices/ emulator to keep track of other applications's informations. Now I can start ADBD service using adb shell service , port forward and telnet command to connect to adbd and get informations. But there is another problem in this

[android-developers] Re: Is audio stream analysis possible?

2009-09-24 Thread Ilya Shinkarenko
Thank you Chris, Could you pls tell me where do I find API for that? On Sep 24, 2009 4:11 AM, Chris Stratton cs07...@gmail.com wrote: Definitely possible when not on a call, not sure if you can do it when one is active. The actual analysis would not be android specific, and I'm not even sure

[android-developers] Re: Get active context dynamically of an application

2009-09-24 Thread Atif Gulzar
bump. Thanks :) -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Fri, Sep 11, 2009 at 3:09 PM, Atif Gulzar atif.gul...@gmail.com wrote: Hi, How can get the active context of an application? The scenario is, I have an AsyncTask inside an activity_A. And on successful

[android-developers] Re: How to configure the sampling rate/period while audio capture?

2009-09-24 Thread Vishal.Android
How to capture the audio data from mic into a buffer instead of a file? On Sep 23, 2:43 pm, Vishal Gaonkar vishal.andr...@gmail.com wrote: I am working on a VOIP based application. I need to capture the audio from mic at 8000 hz sampling rate, get the 20msec packets, encode and send the

[android-developers] Re: Accessing SharedPreferences in Services and non-Activities

2009-09-24 Thread Mark Murphy
I have some shared preferences (user_id, email) that I want to access from services and classes that are not subclassed from Activity. I have been trying to implement this today and keep hitting roadblocks. In particular, when I try to access getSharedPreferences, I get a null pointer

[android-developers] Re: Using Picasa Web Albums Data API in Android

2009-09-24 Thread Raman
I do not want to use an existing Activity for Picasa related tasks, like showing the Picasa albums and creating new albums. Rather I want to develop a new application where it would directly interact with Picasa without a third application coming in between. May be, you would have heard of Picasa

[android-developers] Re: using tesseract on android

2009-09-24 Thread Mark Murphy
Does anyone know if all android devices are ARM at the moment? It seems a bit of a risk to depend on this as an app developer. Or should we just presume that any non-ARM tools/compilers would become available to us app developers as non-ARM handsets appear? Can anyone shed some light on

[android-developers] Re: Remote Interface - Parcelables problem...

2009-09-24 Thread Ne0
Thanks, though it doesnt look like you are doing anything different to i am. When you initialise an instance of your OnlineUser, would you do it using OnlineUser.CREATOR.createFromParcel(p), after packing your parcel? If you can see a problem with my code in my original post, please advise? The

[android-developers] Flash for android

2009-09-24 Thread Dantu
Hi I want adobe flash to be enabled in android, Does android support it , if so please help me out Thanks in advance Jyothi Swaroop Dantu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Flash for android

2009-09-24 Thread Mark Murphy
I want adobe flash to be enabled in android, Does android support it , if so please help me out Flash is a proprietary technology owned by Adobe. Certain Android handset manufacturers license and ship some version of Flash, such as HTC does with the Hero. AFAIK, there is no downloadable

[android-developers] Re: Recording WAV data from the /dev/msm_pcm_in device

2009-09-24 Thread Maarten Wijnants
Just for those interested: I was able to circumvent my problem by using the AudioRecord class ... On 4 sep, 15:51, Maarten Wijnants maarten.wijna...@gmail.com wrote: Hi all, When browsing the Android source code, I discovered the system/extras/ sound/playwav.c file which appears to contain

[android-developers] can i use external fonts ?

2009-09-24 Thread zeeshan
Hi Dear, i need to use my external font .ttf file for button's text. can anybody help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: can i use external fonts ?

2009-09-24 Thread Mark Murphy
i need to use my external font .ttf file for button's text. can anybody help http://developer.android.com/reference/android/graphics/Typeface.html then, call setTypeface() on your Button. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] Android append 2 image source files

2009-09-24 Thread Isuru danagalle
Hi All, Anybody tried to append 2 jpeg files in android? i.e: a.jpeg and b.jpeg sd be appended and sd give one c.jpeg image file consist of both images. Any idea? Thanks Isuru --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Just for test, Please ignore

2009-09-24 Thread Burne Xu
#123*234*3 95452334049545233404 #2 #0 902*23*53901 123*234*3*3*8*8*8 #23#234#22#23 #23*23423*2344 adf9545233404dasfe9545233442 adf9545233404dasfe#23df adf9545233404 jxp...@motorola.com 9545233404 sdfsda9545233404 adf9545233404dasfe 9545233404 9545233404 9545233404sdf9545233404

[android-developers] Re: Flash for android

2009-09-24 Thread Casper Bang
AFAIK, there is no downloadable version of Flash that can be applied to arbitrary Android devices the way you can download flash to PCs. Which is funny. You can often dig into a sophisticated community ROM's (i.e. Cyanogen's) and extract certain applications and put them on your own handset.

[android-developers] Re: Problem in using remote service from other App

2009-09-24 Thread Rahul Bhagwat
I found out the way. client should include aidl files in the project creating same package. Doing this above problem got solved but I'm facing one more problem. I'm sending custom object in callback, So I've implemented it using Parcelable. But client can not find the reference to this object ,

[android-developers] Re: can i use external fonts ?

2009-09-24 Thread Zeeshan Muhammad
thanks On Thu, Sep 24, 2009 at 9:46 AM, Mark Murphy mmur...@commonsware.comwrote: i need to use my external font .ttf file for button's text. can anybody help http://developer.android.com/reference/android/graphics/Typeface.html then, call setTypeface() on your Button. -- Mark

[android-developers] Re: IME Preference in LocaleText

2009-09-24 Thread Bahadır Yağan
Thanks, I have already done that. And I can see a menu item to enable my IME, it works fine. What I was trying to ask is how to add another menu item below it to show Keyboard Preferences (I have already implemented my preference screens, and I can launch it from the keyboard itself) Please see

[android-developers] Please Help Urgent: Get active context dynamically of an application

2009-09-24 Thread Atif Gulzar
I posted this questions twice. I will really appreciate your help. Am I asking very basic or vice versa? Or it is not possible in Android. Please help. On Fri, Sep 11, 2009 at 3:09 PM, Atif Gulzar atif.gul...@gmail.comwrote: Hi, How can get the active context of an application? The

[android-developers] How to display Dialog Box without showing the Activity!

2009-09-24 Thread Abdul Mateen
Hi, I want to display Dialog Box when the application is launched before loading and launching the activity. or you can say I want to show the dialog on launcher after the launch of my application. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Problem in using remote service from other App

2009-09-24 Thread Rahul Bhagwat
Again I got the solution for above problem. If you are using custom object passing from service to client , implemented using Parcelable, you have to provide source code of object to client. On Sep 24, 2:08 pm, Rahul Bhagwat rahul3...@gmail.com wrote: I found out the way. client should include

[android-developers] Re: Google Maps Exception? : cross-loader access from pre-verified class

2009-09-24 Thread rinda
It works after updating to 1.6SDK from 1.5. 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@googlegroups.com To unsubscribe

[android-developers] How to capture audio data from mic into a buffer?

2009-09-24 Thread Vishal Gaonkar
I am working on a packet switched network. I want to capture the audio data from mic into a buffer at a desired sample rate. How can I capture the audio data from mic into a buffer instead of a file? Also how can I control the audio capture rate as per the desired sample rate?

[android-developers] Re: How to display Dialog Box without showing the Activity!

2009-09-24 Thread Lee
There might be a better way, but this is how I do it: - assign an ID to the root layout of your activity, and set it to invisible - do showDialog in the onCreate method of your activity - in onDismissDialog of your activity, do rootLayout.setVisibility (View.VISIBLE) You get a black screen

[android-developers] Re: Flash for android

2009-09-24 Thread Wenwei Cai
I have no HTC hero. Did anyone try Adobe flash on it? If I remember well, Android webkit supports windows-less plugin only. Was this improved? Thanks! On Thu, Sep 24, 2009 at 4:26 PM, Mark Murphy mmur...@commonsware.com wrote:     I want adobe flash to be enabled in android, Does android

[android-developers] Re: How to display Dialog Box without showing the Activity!

2009-09-24 Thread Abdul Mateen
hmm thank you! - assigning an ID to root layout and setting it to invisible fine! works - but can you tell me how do I set the background of activity to be transparent there is no attribute in Manifest as background! On Thu, Sep 24, 2009 at 4:46 PM, Lee lee.wil...@googlemail.com wrote: There

[android-developers] Re: can i use external fonts ?

2009-09-24 Thread cyril.at...@gmail.com
I don't remember exactly since I do not have my laptop with me but you have to copy the font file inside res/raw/ You can then load the file with something like getResource(path) If you still have an issu just wrote it and I will copy-paste my code tonight at home. C. On 24 sep, 11:19,

[android-developers] How to launch my app if some one browses any xml file

2009-09-24 Thread manoj
HI all, I want your help for my app. The following is my new requirement. I have written a rss reader app. Now my requirement is to launch the app when we browse any xml/rss link. I mean if I type the xml/rss link in the phone browser, then instead of showing the content, my app should be

[android-developers] Join here

2009-09-24 Thread Sasikumar.S
pls join this group http://groups.google.com/group/mobile-application-developers -- Thanks Regards Sasikumar.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Just for test, Please ignore

2009-09-24 Thread Neil
There are test groups for testing. On Sep 24, 10:58 am, Burne Xu burn...@gmail.com wrote: #123*234*3 95452334049545233404 #2 #0 902*23*53901 123*234*3*3*8*8*8 #23#234#22#23 #23*23423*2344 adf9545233404dasfe9545233442 adf9545233404dasfe#23df adf9545233404  jxp...@motorola.com

[android-developers] Re: How to launch my app if some one browses any xml file

2009-09-24 Thread Sujay Krishna Suresh
On Thu, Sep 24, 2009 at 5:00 PM, manoj manojkumar.m...@gmail.com wrote: HI all, I want your help for my app. The following is my new requirement. I have written a rss reader app. Now my requirement is to launch the app when we browse any xml/rss link. I mean if I type the xml/rss link in

[android-developers] Re: memory leak in activity

2009-09-24 Thread Felipe Silveira
Hi rukiman, The best way to determine what is wrong in your scenario is taking some heap dumps and analysing them with MAT, for example. Markus Kohler's blog have a good tutorial to do this: http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html This Activity Leak is

[android-developers] Re: How to access storage by using API?

2009-09-24 Thread Chris Stratton
On Sep 24, 3:15 am, bluestar bluestar8...@gmail.com wrote: If I want to read/write external storage, like usb drive, does Android provide this feature to do? Not usb drives. Current android phones are usb devices which can only talk to usb hosts, not to other usb devices such as usb drives.

[android-developers] Re: ListView....

2009-09-24 Thread Timothy Collins
You know - I believe that would work quite nicely... When I saw the name Spinner I assumed (Yes, I know what that means but in this case only the Me part applies!) that it was some sort of thing that iterated between a few different values before looping back to the beginning... On Thu, Sep 24,

[android-developers] Re: How to save a canvas to disk

2009-09-24 Thread gjs
Hi, I made up the following to demonstrate what I meant. In this example when you press the trackball/dpad center button the view is written to a png file and also set as the wallpaper. You can change it to save as jpeg file etc. Hope that helps. Regards

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-24 Thread Ilya Shinkarenko
Name: Tennis Math Category: Misc Website: http://www.tennis-math.com/ Tennis Math is a free tennis scoring and statistics software for Android. We have designed it for tennis players, coaches or anyone interested in analyzing of the strong and weak points of their tennis. 2009/9/24 sheik

[android-developers] Re: How to display Dialog Box without showing the Activity!

2009-09-24 Thread Lee
You could have a look at different themes e.g. android:theme=@android:style/Theme.Light.Panel (but that one doesn't have a title bar) You could try switching back to a normal theme afterwards, think it's Context.setTheme. Lee On Sep 24, 11:54 am, Abdul Mateen abmat...@gmail.com wrote:

[android-developers] ACTION_GET_CONTENT and Gallery

2009-09-24 Thread Christine
My app takes a picture and stores it either on the flash card or in the MediaStore. When retreiving the gallery content with an ACTION_GET_CONTENT intent doesn't show the new picture in either case. However, after switching the phone off and on again, they do show up. How do I force the Gallery

[android-developers] GC question.

2009-09-24 Thread Jiri
I have a simple question, in my ctivity i define a static private as so: private final FileFetcher ff = new FileFetcher(); what happens when this activity is destroyed, is the reference to the FileFetcher completly gone, and can everything be marked for GC? Or would it better to write

[android-developers] Re: How to display Dialog Box without showing the Activity!

2009-09-24 Thread Abdul Mateen
Thank You, I found a way by either android:theme=@android:style/Theme.Translucent Or android:theme=@android:style/Theme.Theme_Dialog On Thu, Sep 24, 2009 at 7:49 PM, Lee lee.wil...@googlemail.com wrote: You could have a look at different themes e.g.

[android-developers] Re: Using Picasa Web Albums Data API in Android

2009-09-24 Thread Christine
You can use httpclient to access any api. On Sep 24, 10:00 am, Raman raman86...@gmail.com wrote: I do not want to use an existing Activity for Picasa related tasks, like showing the Picasa albums and creating new albums. Rather I want to develop a new application where it would directly

[android-developers] Re: Please Help Urgent: Get active context dynamically of an application

2009-09-24 Thread Smelly Eddie
Your question is no more 'urgent' than anyone elses. Please respect etiquette and only post questions once. On Sep 24, 5:22 am, Atif Gulzar atif.gul...@gmail.com wrote: I posted this questions twice. I will really appreciate your help. Am I asking very basic or vice versa? Or it is not

[android-developers] Re: GC question.

2009-09-24 Thread Felipe Silveira
Hi Jiri, Static references remains on memory until the process where your activity is running is destroyed. So, in order to avoid memory leaks, point the reference to null in onDestroy() Regards, Felipe Silveira On Thu, Sep 24, 2009 at 10:58 AM, Jiri jiriheitla...@googlemail.com wrote: I

[android-developers] Re: GC question.

2009-09-24 Thread Mark Murphy
Actually, the OP's example is final, not static. Final references cannot be pointed to null, as they cannot be modified. However, they are also not static, so they should be garbage collected once the containing object (an activity in this case) itself is garbage collected. Static references

[android-developers] Re: Android append 2 image source files

2009-09-24 Thread Streets Of Boston
What is 'append'? Two images stitched together? One on the right, the other on the left? Or one above the other? Or one merged inside the other (overlay) What if they are of different size? You have to be more specific about what you ask :) On Sep 24, 4:51 am, Isuru danagalle

[android-developers] Re: How to save a canvas to disk

2009-09-24 Thread limtc
Thanks! I think the part that I am confused is that I never used view.draw (canvas) code in my program so I don't know when to call it... at this moment, says I wanted to clear a screen, this is my code in the view: public void clearScreen() { gradient = false; dots.clear();

[android-developers] Switch case on String

2009-09-24 Thread Abhi
Can I do a switch(String), case (compare with other string) and how? I am trying to compare string results and perform actions... Thanks, Abhi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] How to suggest Dev.android guide updates

2009-09-24 Thread Smelly Eddie
I have noticed a few minor things in the devguide that could be updated, debugging and android device on Jaunty Jackalope for instance. Is there a manner to submit recommendations to these pages? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to add external static libraries to Android.mk?

2009-09-24 Thread mmj
Hi, I have a few pre-compiled static libraries,*.a files.How to add them in Android.mk file?Finally i have to get a .so file . Here is the Android.mk file I am having: ** LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := abc

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

2009-09-24 Thread CaseyB
I had the same problem. It happened right around the time I updated to the 1.5 SDK. I also updated Java around the same time. I don't know if either of those had anything to do with it but something happened. I tried for a day or so to figure out how to salvage the keystore but ended up just

[android-developers] Re: How to suggest Dev.android guide updates

2009-09-24 Thread Mark Murphy
I have noticed a few minor things in the devguide that could be updated, debugging and android device on Jaunty Jackalope for instance. Is there a manner to submit recommendations to these pages? Just filing an issue at http://b.android.com. -- Mark Murphy (a Commons Guy)

[android-developers] 关于eclipse和A DT的问题

2009-09-24 Thread ms99 ster
各位: 今天解压了eclipse以后添加ADT0.9.1,结果却不能用,创建project的菜单里边不能创建android的project,只好又找到0.8.0的也放了进去才可以。 还有,performance-- android众SDK Location选择android-sdk-windows-1.5_r3提示Could not find D:\Program Files\ec...dk-windows-1.5_r3\tools\aapt.exe! 是不是ADT和SDK升级时候都必须有老的版本才行? Thanks Muchly

[android-developers] Re: How to use hardware acceleration in OpenGL ES

2009-09-24 Thread CaseyB
If I use the line mView.getHolder().setType(SurfaceHolder.SURFACE_TYPE_HARDWARE); It just shows a black screen! The only type that seems to work is the GPU type and it's pretty slow. On Sep 24, 3:15 am, String sterling.ud...@googlemail.com wrote: Take a look at this thread:

[android-developers] Get Telephony Country code

2009-09-24 Thread rollbak
Hello, I need to retrieve country info from the device. And i found the following methods to retrieve that info: android.telephony.TelephonyManager.getNetworkCountryIso() android.telephony.TelephonyManager.getSimCountryIso() I need to know if this ISO refers to: ISO 3166-1 alfa-2

[android-developers] Re: IME Preference in LocaleText

2009-09-24 Thread Dianne Hackborn
You need to specify the settings activity in your meta-data. You can look at the LatinIME code as an example. 2009/9/24 Bahadır Yağan bahadir.ya...@gmail.com Thanks, I have already done that. And I can see a menu item to enable my IME, it works fine. What I was trying to ask is how to add

[android-developers] Re: IME Preference in LocaleText

2009-09-24 Thread Dianne Hackborn
Or the doc is here: http://developer.android.com/reference/android/R.styleable.html#InputMethod On Thu, Sep 24, 2009 at 9:15 AM, Dianne Hackborn hack...@android.comwrote: You need to specify the settings activity in your meta-data. You can look at the LatinIME code as an example. 2009/9/24

[android-developers] Re: Get active context dynamically of an application

2009-09-24 Thread Dianne Hackborn
There is no such concept as an active context. You need to explicitly pass the context you want to use to where you want it used. On Thu, Sep 24, 2009 at 12:53 AM, Atif Gulzar atif.gul...@gmail.com wrote: bump. Thanks :) -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On

[android-developers] Re: How can I get Activity object from Intent object or something else

2009-09-24 Thread Dianne Hackborn
You can't do this on production devices. It might be more productive if you describe more about what you are trying to accomplish, rather than how you are getting there. On Thu, Sep 24, 2009 at 12:38 AM, HandsomeboyIT handsomebo...@gmail.comwrote: So, There is only one remain method that

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-24 Thread Dianne Hackborn
How about no time to get into long involved discussions. On Wed, Sep 23, 2009 at 11:51 AM, Mike Collins mike.d.coll...@gmail.comwrote: Should I take the lack of reply as not an interesting question, no idea or we're checking/thinking? I would like to have some ammunition when I go up

[android-developers] Re: AsyncTask doesn't work with WebView (was Re: long-running loadUrl() JavaScript with a callback)

2009-09-24 Thread Miguel Paraz
I figured this out - I violated the The task instance must be created on the UI thread rule stated in the Reference. On Sep 22, 8:47 pm, Miguel Paraz mpa...@gmail.com wrote: On Sep 21, 6:11 pm, Mark Murphy mmur...@commonsware.com wrote: I made an example that sleeps inside the Runnable. The

[android-developers] Re: How to update expandable view when adapter's data changed

2009-09-24 Thread lunatic
1. What can I do to replace empty view with list view? Ok, I've realized, that it is needed to requery cursor before calling notifyDataSetChanged method of adapter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Sampling data from the internal Mic, and from a headset Mic.

2009-09-24 Thread Julian Bunn
This turned out to be a non-problem. The audio data stream comes from the headset Mic just fine. What confused me was the relative levels between the two. On Sep 23, 10:42 am, Julian Bunn jjb...@gmail.com wrote: My app takes audio samples from the Mic, and processes them. The app works fine

[android-developers] Re: Switch case on String

2009-09-24 Thread Felipe Silveira
No, you can't. In Java we don't have switch with Strings. Regards, Felipe Silveira On Thu, Sep 24, 2009 at 11:56 AM, Abhi abhishek.r.sha...@gmail.com wrote: Can I do a switch(String), case (compare with other string) and how? I am trying to compare string results and perform actions...

[android-developers] How to get back result of the Activity (setResult) in a test?

2009-09-24 Thread Gabor
Hi, I would like to verify the result of the Activity (setResult) if it is the expected one or not.(or maybe to check the returned bundle) in the Activity I have the following lines: setResult(RESULT_OK); finish(); I would like to test this Activity. (using for example

[android-developers] Re: Soft Keyboard

2009-09-24 Thread Eric Carman
Perhaps my previous question was not clear, so let me see if I can boil it down to something simple. Given: - an Android device running 1.5 - No physical keyboard Question: - How does the user force the soft keyboard to display? - Does long-press menu do this? - What other conditions have to

[android-developers] Re: IME Preference in LocaleText

2009-09-24 Thread Bahadır Yağan
Oh thats great. So it is in method.xml, not in androidmanfiest. Thanks a lot. On Thu, Sep 24, 2009 at 7:16 PM, Dianne Hackborn hack...@android.comwrote: Or the doc is here: http://developer.android.com/reference/android/R.styleable.html#InputMethod On Thu, Sep 24, 2009 at 9:15 AM, Dianne

[android-developers] Re: Switch case on String

2009-09-24 Thread Abhi
Ok. Thanks Felipe. I just figured that out. Regards, Abhi On Sep 24, 12:47 pm, Felipe Silveira webfel...@gmail.com wrote: No, you can't. In Java we don't have switch with Strings. Regards, Felipe Silveira On Thu, Sep 24, 2009 at 11:56 AM, Abhi abhishek.r.sha...@gmail.com wrote: Can

[android-developers] Re: Soft Keyboard

2009-09-24 Thread Chris Stratton
On Sep 24, 1:03 pm, Eric Carman ewcarma...@gmail.com wrote: Question: - How does the user force the soft keyboard to display? - Does long-press menu do this? Usually, however some means of catching key events will break this. I agree with you that not having an emulator which behaves the

[android-developers] Re: Soft Keyboard

2009-09-24 Thread Dianne Hackborn
Long press menu forces the keyboard to be displayed, as long as the app doesn't completely consume that key event, and there is a keyboard selected and it allows this (the default behavior is to allow it). On Thu, Sep 24, 2009 at 10:03 AM, Eric Carman ewcarma...@gmail.com wrote: Perhaps my

[android-developers] Re: Get Telephony Country code

2009-09-24 Thread Roman ( T-Mobile USA)
Which information do you exactly need? There are static information like - IMEI: (15 digit unique code, first 2 digits = country code of the approval-country) is related to your mobile device - IMSI International Mobile Subscriber Identity: first 3 digits represent the mobile country code

[android-developers] Extending a view class

2009-09-24 Thread jdekeij
Hoi I try to create my custom view inside a linearlayout. For example View android:id=@+id/ViewPaint class=com.example.android.helloactivity.HelloActivity$DrawingView/ In the java source I created a DrawingView class which extends View. Unfortunatly it does not get instantiated. I tried to

[android-developers] Re: SDK 1.6, ADT 0.9.3, Eclipse 3.4.2: Problem with Android Editors

2009-09-24 Thread Josch
Hi, that has nothing to do with Android, but with the XML editor in eclipse latest release. I have the exact same situation, after updating yesterday. Some JSF is causing this :-( I dont have a fix yet :-( --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-24 Thread PG1
Name: Geolover Category: Travel Website: http://geolover.com/android/ Geolover is an app for tourist. It can help decide which tourist attractions worth to visit. You can build an own list which can be viewed offline. --~--~-~--~~~---~--~~ You received this

[android-developers] Picasa intent return code

2009-09-24 Thread Zuli
Hi, I use the standard Picasa upload activity in my application to send images to the user Picasa account, but everytime the Picasa activity returns in my onActivityResult function the return code is RESULT_CANCELED, no matter if I cancel the upload, press the back button or correctly upload the

[android-developers] Re: SDK 1.6, ADT 0.9.3, Eclipse 3.4.2: Problem with Android Editors

2009-09-24 Thread Josch
Hi again, try following approach, a) install an old package b) do not use autoupdate, but manually update the packages in steps and test. I could just revert to my old configuration and everything worked again. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Utility class for database query

2009-09-24 Thread null
That's a good ideal.What can i do for you?I am a new one 在2009-09-24,Sudeep sudeep.neti...@gmail.com 写道: Thanks Jefferey. I don't want to extend the android.database.* package but I just want to simplify it. The idea is to build a utility package to help developers for easier,faster and robust

[android-developers] Re: Changing application label from code

2009-09-24 Thread Gustavo Lima
Sorry Dianne but the link you provided has several samples like values- mcc262-cs, values-mcc260, values-mcc204-de ... but none of them makes use of MNC. I'm having the same problem with with i18n for a specific carrier and values-mcc724-mnc005 are not working on the real device. I have tried

[android-developers] Re: Trouble in Printing Unicode Male Character

2009-09-24 Thread j.hadley
On Sep 23, 6:18 am, Gopal Biyani gopalbiy...@gmail.com wrote: At present, I am using emulator. And I don't know how to change font from Droid Sans Fallback to Droid Sans. Android automatically switches to the Droid Sans Fallback font when a currently selected font does not contain a character

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-24 Thread tao1
App Name: tWakeUpCallMaker Category: Lifestyle URL: http://www.taosoftware.co.jp/en/android/wakeupcallmaker/ Description: -- tWakeUpCallMaker is an alarm clock creator application. Let's present an alarm clock with your original ringtone to your friends! Let's wake up feeling

[android-developers] Having multiple gridviews in a activity

2009-09-24 Thread pavan
hi guys, I am tyring to get many gridview of images in an activity. The problem is i will get scrollbar for each such gridview. So is there anyway i can get a single scrollbar for entire activity and still smoothly scroll from one gridview to another (with some demarcation between 2 grids ). I

[android-developers] SMS Database with new Hero ROM

2009-09-24 Thread Markus
Hello I've developed an sms application. With the new Hero rom, the app doesen't work anymore. It seems as if the database has changed. I use the following approach to get the data I need: private String[] mProjection = new String[] {thread_id,address,body,read,date,m_type,type}; private Uri

[android-developers] About tab icon

2009-09-24 Thread setomits
I have a question about a tab icon. According to TabHost.TabSpec http://developer.android.com/intl/ja/reference/android/widget/TabHost.TabSpec.html I can set only one icon for each tab with setIndicator(), but also according to Icon Design Guidelines

[android-developers] Traceview: Error previous time!

2009-09-24 Thread alex-unstable
Hi all! I'm working with an OpenGL ES app in Android, but when I want to use traceview to profile my code, I always obtain the following error: ThreadData: 'android/XX/XX' call time () is less than previous time (xxx) for thread '[3] main' I've tried to call

[android-developers] ADT pluging for MyEclipse

2009-09-24 Thread rajveerg
Hi all, Iam working on MyEclipse 6.0 can any one suggest me how can i set ADT plugin for MyEclipse 6.0 Thanks in Advance -- RajveerG Heritage America http://bujjiaward.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Activity be destroyed after press home key.

2009-09-24 Thread play_net
My manifest: activity android:label=@string/app_name android:name=MainUI android:screenOrientation=landscape android:configChanges=orientation|keyboardHidden android:launchMode=singleTask intent-filter action

[android-developers] canvas.drawbitmap antialiasing

2009-09-24 Thread Blackpool
Hi There, I have a problem. I'm using a canvas to layer bitmaps on top of each other. I am doing a clock where I first draw the face using canvas.drawbitmap then I place the hands using canvas.rotate and canvas.drawbitmap. I use a Paint with anialiasing set but the hands are very jagged as soon

[android-developers] Re: Flash for android

2009-09-24 Thread James Slater
I have a T-Mobile G2 Touch, which is the same thing. Flash works on some sites, but not others. Ironically, when you go to Adobe's site promoting Flash on the HTC Hero, the Flash video doesn't work on that site (at least for me). -- James Slater

[android-developers] Is it necessary to introduce an Object Pool for our application

2009-09-24 Thread Larry.Liu
Hi, General speaking, is it necessary to introduce an Object Pool for common sense android applications? It would be better of course, but will there be any chance for common use applications to become unstable or cause memory leakage because of too many object creation? Let's have a

  1   2   >