[android-developers] Re: showing graph in Application

2009-04-10 Thread jj
Here is good solution http://android.arnodenhond.com/graphview --~--~-~--~~~---~--~~ 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 uns

[android-developers] Re: sdcard

2009-04-10 Thread Mattaku Betsujin
Do you have a real phone? If so, have you tried installing a video player app (from the Market) and play your videos? If you only have emulator, then probably it won't work. I had a video that worked fine in a real G1 phone, but shows up as black in the emulator, and the sound only played for a fe

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-10 Thread Muthu Ramadoss
I have an ADP1 bought from market that I use with a local GSM carrier in Chennai. The phone works perfectly, although we use only GPRS and not 3G. But the phone number is always displayed as "Unknown". On Apr 10, 9:45 pm, strazzere wrote: > What type of phone are you using? Does it have a simc

[android-developers] Re: sdcard

2009-04-10 Thread Marco Nelissen
Are the files in a supported format? How did you put the files in /sdcard? On Fri, Apr 10, 2009 at 10:33 PM, l hx wrote: > and i meet a matter such as: some file in the /sdcard can not be seen in the > trackbrowserActivity of music app. i found the file also can not be found in > the database o

[android-developers] Re: sdcard

2009-04-10 Thread l hx
and i meet a matter such as: some file in the /sdcard can not be seen in the trackbrowserActivity of music app. i found the file also can not be found in the database of the mediaprovider. who know why? On Sat, Apr 11, 2009 at 1:24 PM, Marco Nelissen wrote: > > It would help if you said what e

[android-developers] Re: sdcard

2009-04-10 Thread Marco Nelissen
It would help if you said what error you're getting. You can check whether the file is actually there by doing something like "adb shell ls -l /sdcard" and checking that the file exists. On Fri, Apr 10, 2009 at 9:23 PM, Nithin wrote: > > Hi to all > >           I push the one video file... and

[android-developers] WiFi

2009-04-10 Thread Nithin
Hi to all Can anyone tell me weather emulator support WiFi --~--~-~--~~~---~--~~ 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@goo

[android-developers] sdcard

2009-04-10 Thread Nithin
Hi to all I push the one video file... and tried to play that video file in emulator.. But i got error... Can any tell me how can i check weather video file insert or not... Thank You Nithin N V --~--~-~--~~~---~--~~ You received this message because y

[android-developers] play video

2009-04-10 Thread Nithin
Hi to all I tried to play the video through sdcard image... But i got a error like "Cannot play the video".. Can anyone tell me what is the error in my code... public class SimpleVideo extends Activity { private VideoView myVideo; private MediaController mc; @

[android-developers] Re: How get MediaRecorder to record in MP3 format

2009-04-10 Thread Marco Nelissen
There is no mp3 encoder included in Android currently, so you can't record to mp3. On Fri, Apr 10, 2009 at 5:13 PM, admin.androidsl...@googlemail.com wrote: > > Would be more useful than AMR / MP4. > > Also would be compatible with the very handy source code for RingDroid. > > > --~--~

[android-developers] Dialogs: in(determinate) vs. spinner/horizontal style

2009-04-10 Thread Keith Wiley
I thought an indeterminate dialog was the circle and a "determinate" one was a progress bar, but now I see that these properties are set orthogonally. You can call setIndeterminate(true/false) entirely independent of calling setProgressStyle(STYLE_HORIZONTAL/ STYLE_SPINNER). All four combination

[android-developers] Re: ListView not touchable in my Activity - A clue...not the solution though..

2009-04-10 Thread monn3t
Thanks for answering... I ended descontructing the whole Activity until I came across what seems to be the cause of the problem. When creating the SimpleCursorAdapter I use: R.layout.row which is a layout that I created. When I use one of android's, for instance: android.R.layout.simple_list_ite

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Romain Guy
It is, this problem is just due to the fact that the SDK thinks the system is not provisioned. The SDK usually relies on a special apk to do this automatically and I don't know why it doesn't happen for you. On Fri, Apr 10, 2009 at 5:52 PM, Mattaku Betsujin wrote: > I built from GIT cupcake sour

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Mattaku Betsujin
I built from GIT cupcake source as well as the HOME button in the emulator still doesn't do anything. I understand that the SDK, especially Windows-based one, may be lacking, but is the HOME button in cupcake supposed to work the same way as in 1.0? Thanks On Fri, Apr 10, 2009 at 4:28 PM, David

[android-developers] Re: (pre- & post-) processing raw audio data

2009-04-10 Thread devi prasad
Hi Dave thanks much for the information. What I'm actually looking for is a bunch of functions equivalent to the WaveOut API of MS Windows. Are there equivalents to functions such as waveOutOpen, waveOutClose, waveOutWrite, waveOutReset, etc? thanks again On Fri, Apr 10, 2009 at 9:10 PM, Dave

[android-developers] How get MediaRecorder to record in MP3 format

2009-04-10 Thread admin.androidsl...@googlemail.com
Would be more useful than AMR / MP4. Also would be compatible with the very handy source code for RingDroid. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: Get the name of the owner of the phone? (the email sender)

2009-04-10 Thread tberthel
Did you ever find this solution? On Feb 18, 1:21 pm, Zombies and Robots wrote: > I've been doing some research on this topic myself, but so far, I > haven't come up with anything.  It seems like a very simple question. > > Does anyone else have an idea? > > I'm going back to scouring the API...

[android-developers] Re: SQLite Pre-populated Database

2009-04-10 Thread Howie
Do you need it as an on-device database? Can you make web services (or some other service) out of the data instead? Hosting providers don't charge all that much; I get 2500gb/mo for well under $200. On Apr 10, 3:32 pm, fg1921 wrote: > Thanks Mark > > None of these options work (apart from the

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread David Turner
On Sat, Apr 11, 2009 at 12:15 AM, Disconnect wrote: > ..so where is the SDK that the magic google team (or whomever else, don't > get picky here) is working with? > Right there in the public sources. The problem is really in packaging; building a proper SDK package is tricky at the moment and it'

[android-developers] Getting the network restarted after phone starts sleeping

2009-04-10 Thread Mike Collins
I have a long lived service, it wakes up (via the AlarmManager) at intervals and connects to a web server. If the phone goes to sleep and one of my polling intervals happens the phone wakes up enough to let me attempt to connect to the network but the ConnectionManager claims there is no network.

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Dianne Hackborn
On Fri, Apr 10, 2009 at 3:15 PM, Disconnect wrote: > ..so where is the SDK that the magic google team (or whomever else, don't > get picky here) is working with? We aren't working with an SDK, we develop in the platform tree. -- Dianne Hackborn Android framework engineer hack...@android.com

[android-developers] Re: SQLite Pre-populated Database

2009-04-10 Thread Mark Murphy
fg1921 wrote: > It's not > really easy/possible to split the DB up in any sensible form Run split (or equivalent Windows programs) to chop your binary database file into pieces, small enough to avoid the error. I'd start at 1MB and see if that is small enough. Since you are already unpacking it

[android-developers] Re: SQLite Pre-populated Database

2009-04-10 Thread fg1921
Thanks Mark None of these options work (apart from the downloading one). It's not really easy/possible to split the DB up in any sensible form nor can we spend 10 minutes constructing it at start up. The app we're working on is expected to have more than a thousand downloads a day, and all that

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Disconnect
..so where is the SDK that the magic google team (or whomever else, don't get picky here) is working with? On Fri, Apr 10, 2009 at 5:03 PM, Dianne Hackborn wrote: > This is why we want to be clear it is "unofficial," because it is not > actually a working SDK. If you really want to play around w

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Mattaku Betsujin
This is a sign to me that the HTC Magic won't come out for quite a while. I just hope not too many people are holding off buying the G1 to wait for the Magic. On Fri, Apr 10, 2009 at 2:03 PM, Dianne Hackborn wrote: > This is why we want to be clear it is "unofficial," because it is not > actual

[android-developers] Re: showing graph in Application

2009-04-10 Thread Kirk - Actual Metrics
I'm currently using Google Charts API, but do you know of any solutions that will allow for interactive charts? Thanks, Kirk On Apr 10, 2:07 pm, clark wrote: > In the API Demos in the OS section there is a Sensors demo which > graphs the sensor data.  You may want to take a look at that > impl

[android-developers] Re: showing graph in Application

2009-04-10 Thread clark
In the API Demos in the OS section there is a Sensors demo which graphs the sensor data. You may want to take a look at that implementation as well. ~clark On Apr 9, 10:48 pm, jj wrote: > Hello > I want to display graph(time ver distance) in Activity , how should be > this achieved in Android

[android-developers] Re: permissions related to /dev/alarm and setting the system

2009-04-10 Thread Dianne Hackborn
Please read the documentation in the SDK on the security model. You can look at the alarm device to see its permissions: $ adb shell ls -l /dev/alarm crw-rw-r-- system radio 10, 45 2009-04-10 09:03 alarm So anyone can read it, and only the system uid can write it. On Fri, Apr 10, 2009 at

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Dianne Hackborn
This is why we want to be clear it is "unofficial," because it is not actually a working SDK. If you really want to play around with it, please don't assume that any random thing you happen to experience is actually correct. :} On Fri, Apr 10, 2009 at 12:24 PM, Mattaku Betsujin < mattaku.betsu...

[android-developers] Re: SQLite Pre-populated Database

2009-04-10 Thread Mark Murphy
fg1921 wrote: > I must say I am surprised no one at google thinks it's important to > provide a better way of including a pre-populated database into a > package. Bashing the people who might offer you assistance is a curious tactic. > I've spent 10 hours trying to get a 3.5MB database working >

[android-developers] onsingletapup not called

2009-04-10 Thread Keith Wiley
My TextView subclass implements OnGestureListener and I successfully detect onDown events, but both taps and long presses cause onLongPress to be called and never onSingleTapUp. I realize I'm not provided much detail, but I'm not sure what nuances might be relevant. Please ask for any relevant e

[android-developers] SQLite Pre-populated Database

2009-04-10 Thread fg1921
I must say I am surprised no one at google thinks it's important to provide a better way of including a pre-populated database into a package. I've spent 10 hours trying to get a 3.5MB database working with my APK and have given up. This is what I tried, and would appreciate if someone has a solut

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Ralf
On Fri, Apr 10, 2009 at 12:24 PM, Mattaku Betsujin wrote: > I tried the 'unofficial' cupcake SDK and found that the hardware HOME button > doesn't bring me back to the home screen anymore. Is this a conscious UI > decision? What's the reason behind it? You are talking about the emulator, right?

[android-developers] Re: Please suggest me possible ways to get Image data from camera

2009-04-10 Thread Streets Of Boston
That's how it is. RAW data callback is not supported. The JPEG image data is the full-size image as it has been taken by the camera. Per default, it should be 2048*1536 px. And taking a picture takes this long, about a second. You can mitigate this by pre-focusing On Apr 10, 2:28 pm, srik wrote

[android-developers] permissions related to /dev/alarm and setting the system

2009-04-10 Thread Richard Schilling
I understand that userland apps on android cannot set the system clock. Wanting to know more about how the security mechanism is set up for the system I did some digging around in the source code. /dev/alarm is opened R/W to set the system clock using SystemClock.setCurrentTimeMillis. Can someo

[android-developers] Re: can replace default dialer?

2009-04-10 Thread Fred Grott(shareme)
Thanks I also found your other Feb answers which was helpful as well.. On Apr 9, 11:40 am, Dianne Hackborn wrote: > You can replace the entire "dialtacts" activity.  You can't replace just one > tab in it.  This is regardless of whether you are running as root. > > On Thu, Apr 9, 2009 at 9:03

[android-developers] Dispatch event from children to parent

2009-04-10 Thread arnouf
Hi all, I tried some stuffs, but i didn't find yet the solution, so question... I've a Layout containing some ImageView. I manage the TouchEvent on the layout, with a setOnTouchListener, to launch animation when user slide on screen. If I do a slide on an Image, nothing happens. So I would like

[android-developers] What happened to the HOME button in cupcake

2009-04-10 Thread Mattaku Betsujin
I tried the 'unofficial' cupcake SDK and found that the hardware HOME button doesn't bring me back to the home screen anymore. Is this a conscious UI decision? What's the reason behind it? Also, long-press on the HOME button doesn't bring up the task manager anymore. So, if I am in the browser, I

[android-developers] Re: Exception locking surface - lockCanvas() returns a null?

2009-04-10 Thread Stoyan Damov
Just my 2 stotinki -- I see more and more developers using this WRONG resource acquisition pattern with try...finally: try { acquireResource(); } finally { releaseResource(); } This is plain wrong. The correct way to obtain a resource and release it is to acquire it BEFORE the try block,

[android-developers] Please suggest me possible ways to get Image data from camera

2009-04-10 Thread srik
hi I am working on image processing in mobile. When Camera,takePicture(null,null,pictureCallback) called I am getting (640*480) JPEG image data, its taking 1 second delay.When I try to get raw data it returns null value.I am interested only on delay. Anyone please suggest me possible ways to

[android-developers] Re: require eclipse 3.1 , 3.2

2009-04-10 Thread Ralf
For your information, the ADT plugin for Eclipse requires Eclipse 3.3 or 3.4 (ganymede) now. R/ On Tue, Apr 7, 2009 at 11:08 PM, harne prashant wrote: > > hi group >  i want  eclipse 3.1 , 3.2 (europa )for developing application in Android. > i searched it but i didnt get > if any one has its re

[android-developers] Re: Updating TextView Values

2009-04-10 Thread ellipsoidmob...@googlemail.com
Hi You can only modify views from the UI thread - as per the docs: "Note: The entire view tree is single threaded. You must always be on the UI thread when calling any method on any view. If you are doing work on other threads and want to update the state of a view from that thread, you should u

[android-developers] Re: Exception locking surface - lockCanvas() returns a null?

2009-04-10 Thread mcmc
thank you sooo much, everyone! i've been meaning for someone to tell me that since a very long time ago, but no one did, so i was stuck! :) On Apr 9, 3:30 pm, Dianne Hackborn wrote: > If you want to use the standard 2d APIs, don't use OpenGL. > > > > On Thu, Apr 9, 2009 at 1:45 PM, mcmc wrote:

[android-developers] Re: Alias custom view path in XML

2009-04-10 Thread mawei1981
I like the full namespace, so I can find my custom component easy and clear. On 3月24日, 下午10时50分, Mark Murphy wrote: > Ward Willats wrote: > > Is there a way to alias the path to mycustomviewclass (perhaps in > > its ) so I can say > > > > > > in the XML, instead of > > > > > > (I played aro

[android-developers] Re: Custom View Subclass - How do I properly specify xmlns in my layout.xml file?

2009-04-10 Thread mawei1981
I thought you are not read the Dev Guide clear you can define like the follow code - --- Done. Good Luck. On 4月6日, 下午1时23分, Mark Rosenberg wrote: > I am following the LabelView.j

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-10 Thread strazzere
What type of phone are you using? Does it have a simcard and/or work on your carrier network? If the About phone/Status is not showing, then I doubt the snippit would work even if you could compile it (your not going to be able to using the standard SDK) On Apr 10, 11:22 am, Muthu Ramadoss wrot

[android-developers] Re: How to extend an ArrayAdapter?

2009-04-10 Thread craiget
Fantastic. listView.addHeaderView() works like a charm! It seems this usage was already thought of by folks more clever than myself. I guess it helps to know the API =) Thanks Mark. On Apr 10, 11:57 am, Mark Murphy wrote: > craiget wrote: > > I'm running into difficulties overriding an Array

[android-developers] Re: Programmatically delete a home-screen shortcut

2009-04-10 Thread Romain Guy
>   1) Is there a way to programmatically delete a home-screen shortcut > on Android? I know that it can be done manually but I want to do it in > code. You can use the UNINSTALL_SHORTCUT intent provided by Home. >   2) Is there a directory where all the contents of the home-screen > are stored

[android-developers] Re: CONTROL_LOCATION_UPDATES permission failure

2009-04-10 Thread alexdonnini
Hello again Richard, I have a quick question. The SignalStrength class and setSignalStrength methods in the two lines below are not part of the Android SDK or other Android telephony related classes. Did you write it, or did you find it somewhere else? SignalStrength.setSignalStreng

[android-developers] Re: How to extend an ArrayAdapter?

2009-04-10 Thread Mark Murphy
craiget wrote: > I'm running into difficulties overriding an ArrayAdapter to be > displayed in a ListActivity. > > The ArrayAdapter is filled asynchronously. > > What I'm trying to do is add a special "sentinel" object that sits at > the beginning of the list to show the progress of the computat

[android-developers] How to extend an ArrayAdapter?

2009-04-10 Thread craiget
Hello, I'm running into difficulties overriding an ArrayAdapter to be displayed in a ListActivity. The ArrayAdapter is filled asynchronously. What I'm trying to do is add a special "sentinel" object that sits at the beginning of the list to show the progress of the computation. Ultimately this

[android-developers] Re: playing of wma audio

2009-04-10 Thread Dave Sparks
The Windows Media codecs are not part of OpenCORE. They require a separate license which is typically negotiated between the hardware manufacturer and the codec supplier. On Apr 9, 4:49 am, l hx wrote: > now , the opencore can not play the audio of wma. is it right? and the total > time of the w

[android-developers] Keyguard does not unlock when intent fires while user is at home screen

2009-04-10 Thread Rob Franz
Hi, I have a pendingIntent that, when it is launched and the user is at the home screen with the keyguard locked and screen off, it does not always unlock the screen even after calling disableKeyguard. If the user is still in the application and the intent launches, I acquire the wakelock and the

[android-developers] Re: (pre- & post-) processing raw audio data

2009-04-10 Thread Dave Sparks
No, this is not supported. If we ever do support it, it would require a special permission that the user would have to grant, and it would break for DRM content for obvious reasons. On Apr 10, 1:44 am, devi prasad wrote: > I want to develop an app that lets one intercept raw audio data sent for

[android-developers] Re: ERROR/MediaPlayer(1066): setDataSource called in state 128

2009-04-10 Thread Dave Sparks
MediaPlayer states are protected by mutexes in the native layer. However, the playback complete is an asynchronous event that comes on a binder worker thread. It's possible that you could call reset() in the window after the native media player service has posted a playback complete message to the

[android-developers] Re: Margin-problem with changed layout for titlebar

2009-04-10 Thread elDoudou
If you take a look at the hierarchy viewer, you will notice that the customized title is contained in a FrameLayout with id "title_container", which has a left and right padding set to 7. I would be you, I'd try something like have a handle on your activity root view, ask for its parent (a FrameLa

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-10 Thread Muthu Ramadoss
My G1 says "Unknown" when (Settings > About phone > Status > Phone Number) I haven't tried your new code snippet. I'll report back with the results. Thanks. On Apr 10, 8:08 pm, strazzere wrote: > Does your G1 display the correct line number through settings? > (Settings > About phone > Status >

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-10 Thread strazzere
Does your G1 display the correct line number through settings? (Settings > About phone > Status > Phone Number) This method used by the system seems to always be accurate, but I believe it is a private API; // Snippit from http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=bl

[android-developers] Re: How to deploy and bundle third party dynamic library

2009-04-10 Thread Mark Murphy
Layeeq wrote: > Can i follow > the samples platform library example? The .so file is built with > android toolchain. Will that work even if i have no source code. Questions regarding using the Android source code are best asked on a discussion list pertaining to the Android source code: http:

[android-developers] How to deploy and bundle third party dynamic library

2009-04-10 Thread Layeeq
Hi, If the application needs to use a third party dynamically linked library (.so) file, how to package that as bundle?. Can i follow the samples platform library example? The .so file is built with android toolchain. Will that work even if i have no source code. --~--~-~--~~---

[android-developers] Re: Black areas during alpha animation on transparent PNGs.. Help !

2009-04-10 Thread quakeboy
Here is the screenshot ... I have compared it.. please take a look and someone help me http://img58.imageshack.us/img58/7016/sample.png this is just a sample.. on my real application due to the colors used, the blackness appears more.. On Mar 19, 9:29 am, quakeboy wrote: > No. It is not o

[android-developers] Can an Italian company sell apps directly?

2009-04-10 Thread jappit
Hi, checking the Google Checkout signup process, it seems that only UK and US companies can signup, and so sell apps through Android Market. Is this true? If yes, should a company look for a publisher in UK or US to sell apps? Are there any official plans on when Google will allow companies from

[android-developers] Re: String->Integer Hashmap alternative

2009-04-10 Thread Streets Of Boston
If you mean you map 'String's to 'int's, then yes, you have some overhead because of the autoboxing of Java, making 'int's into 'Integer's. If your map's keys (in this case Strings) can be any possible String, i would just use a Map. Depending on how you use this map, you should create a TreeMap

[android-developers] String->Integer Hashmap alternative

2009-04-10 Thread al capwn
Currently, I'm using a hashmap which maps strings to integers. I've read that using a wrapper for a primitive type in a hashmap has extra cost and was wandering if there is an alternative I could use. I've seen sparsearrays in the sdk, but they map ints to objects but I need the opposite. Is there

[android-developers] Re: Losing Data on Reboot

2009-04-10 Thread droozen
If it helps at all, I've discovered that this only happens if my bootup service tries to read certain preferences and install an alarm. I've used this process to install several other alarms, but for some reason the latest alarms I've added have been causing me to lose all my preferences on a rebo

[android-developers] Losing Data on Reboot

2009-04-10 Thread droozen
So, I made a mistake and I still had the debug version of my app (from Eclipse) on my phone when I tried to install a signed version. The install failed, but I could no longer access the debug version in Manage Applications to uninstall it. I was at work and couldn't reinstall the debug version in

[android-developers] Re: How to determine the amount of characters that will fit into a TextView

2009-04-10 Thread nEx.Software
I'd say if you know the text you want to put into the TextView, you should be able to measure the text and compare to the size of the TextView... In the API Demos, there is a measure text sample. I'd start there. On Apr 9, 3:11 pm, "nwmotog...@gmail.com" wrote: > I am trying to place only the ex

[android-developers] Re: More Than One Instance of Application

2009-04-10 Thread Jason Van Anden
I ran into this as well. Try adding this to the Activity tag ... android:launchMode="singleTask" Jason Van Anden http://www.smileproject.com On Thu, Apr 9, 2009 at 6:29 PM, Dianne Hackborn wrote: > It brings the currently running instance to the foreground. > > On Thu, Apr 9, 2009 at 2:39 PM,

[android-developers] How to remove the WebView top/left 8-pixel inner margin?

2009-04-10 Thread elDoudou
Hello. After some search, even in the WebView and related classes source code, I could not find where the built-in 8-pixel inner margin of a WebView is set. I would like to display a WebView with no inner margin: is it feasible, please? Or am I missing something and there is no top and left inner

[android-developers] Re: Calling web services in android

2009-04-10 Thread Mark Murphy
kavitha wrote: > For all these things,i need to make connection with PHP web service > and be able to call methods and get response. > > sample response xml from server is > http://www.permeative.com/projects/clearit/getall_global_scores.php > > How to do it in android? The same way you might do

[android-developers] Re: Calling web services in android

2009-04-10 Thread kavitha
Hi Charlie, I am trying to consume web service methods written in PHP which will give me information about score board in my game. I tried searching and execute examples,,but in vain. When new user starts playing game,,i need to send information to web service through post or get request to ins

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-10 Thread Mark Murphy
Muthu Ramadoss wrote: > Is there a way to look up the user phone number other than TelephonyManager? > > In my G1, this returns null: > > // get your phone number > TelephonyManager telephonyManager = (TelephonyManager) > getSystemService(Context.TELEPHONY_SERVICE); >

[android-developers] Re: Calling web services in android

2009-04-10 Thread Charlie Collins
It depends on what you mean by "web services," but there are many many many threads on this list about that topic. Try searching the list, you will find KSOAP examples (if you mean SOAP), and REST examples, and several discussions about when and where you should use "web services" with a mobile de

[android-developers] Re: How to use AutoCompleteTextView with SimpleCursorAdapter

2009-04-10 Thread Paul Moore
<> Many thanks. That was very helpful. I still have a question. I have now progressed to the point where list of entries is being displayed on the auto-complete box. However, when I try to narrow down the displayed choice by typing text into the auto-complete text box, the displayed list r

[android-developers] Re: showing graph in Application

2009-04-10 Thread Mark Murphy
jj wrote: > Hello > I want to display graph(time ver distance) in Activity , how should be > this achieved in Android. > is there any tut available? http://code.google.com/p/bluechart/ http://rapidandroid.org/wiki/Graphing http://www.java4less.com/charts/chart.php?info=android I am sure there ar

[android-developers] Calling web services in android

2009-04-10 Thread kavitha
Hi All, I am doing game project where in i need to call PHP web service and display scores in score board. I am new to android,Can somebody please help on how to call web services in android. I searched for so many examples,but no example looked to be working. It is urgent,Please help. Thanks

[android-developers] Re: who put an icon in status bar to indicate the mobile network type?

2009-04-10 Thread Mark Murphy
HelloWorld wrote: > In 1.5, I find an inco in status bar to indicate current network type > (2G or 3G). Would you please tell me which app sets this icon in > status bar? I'd like to go through the source code... Thank you in > advance. Questions regarding the source code are best asked on list

[android-developers] Re: Post subject: Store the data in raw folder of res directory

2009-04-10 Thread Mark Murphy
Honest wrote: > My application has requirements to store or edit the file data in the > file which is available in Raw folder. Can some one tell me how it is > possible ? You cannot modify an APK's resources in-place at runtime. You would need to copy the resource out to some other location (e.g.

[android-developers] Post subject: Store the data in raw folder of res directory

2009-04-10 Thread Honest
Hello, My application has requirements to store or edit the file data in the file which is available in Raw folder. Can some one tell me how it is possible ? I want to store the audio data in mp3 file which is available in res folder. --~--~-~--~~~---~--~~ You re

[android-developers] Re: no root access.. how to put file...

2009-04-10 Thread David Turner
On Fri, Apr 10, 2009 at 5:32 AM, BIRJODH wrote: > > I am not able to understand one simple issue.. if there is no root > access to file system even to the user who owns the phone then why on > earth would the dev guide include commands like > > adb push sdcard when the sdcard of emulator i

[android-developers] Programmatically delete a home-screen shortcut

2009-04-10 Thread Eborix13
Hi, I have some questions related to Android's home-screen contents: 1) Is there a way to programmatically delete a home-screen shortcut on Android? I know that it can be done manually but I want to do it in code. 2) Is there a directory where all the contents of the home-screen are sto

[android-developers] Email Configuration - Compose activity

2009-04-10 Thread Anonymous Anonymous
Hi All, Is there anyway i can know is the email application configured correctly, before i fire the intent? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] who put an icon in status bar to indicate the mobile network type?

2009-04-10 Thread HelloWorld
In 1.5, I find an inco in status bar to indicate current network type (2G or 3G). Would you please tell me which app sets this icon in status bar? I'd like to go through the source code... Thank you in advance. --~--~-~--~~~---~--~~ You received this message beca

[android-developers] Re: How to order the items of GridView?

2009-04-10 Thread HelloWorld
Thanks a lot, Romain. On 4月7日, 下午2时44分, Romain Guy wrote: > This is not supported by the default Home screen application. > > On Mon, Apr 6, 2009 at 11:43 PM, HelloWorld wrote: > > > Dear all, > > In emulator, the items of GridView(e.g. Launcher) are in > > alphabetical order. Would you plea

[android-developers] (pre- & post-) processing raw audio data

2009-04-10 Thread devi prasad
I want to develop an app that lets one intercept raw audio data sent for playback (possibly by a different app), and apply audio enhancements over this raw data. Does Cupcake allow such filtering of audio data? If so, which API should I use? I understand this may not be possible at an applicatio

[android-developers] Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-10 Thread Muthu Ramadoss
Is there a way to look up the user phone number other than TelephonyManager? In my G1, this returns null: // get your phone number TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String tel = telephonyManager.getL

[android-developers] Re: Key dispatching timed out

2009-04-10 Thread Ramesh
hi Streets Of Boston, I solved my problem. Once again thanks for your valuable reply.. This is my new code.. import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.URL; import android.app.Activit

[android-developers] Re: no root access.. how to put file...

2009-04-10 Thread Dianne Hackborn
On Thu, Apr 9, 2009 at 8:32 PM, BIRJODH wrote: > adb push sdcard when the sdcard of emulator is read > only.. Is this some kind of mockery or sarcasm with the users? Yes, we hate you, and laugh at every pain we can cause. Plus the sdcard provides world read/write access. -- Dianne

[android-developers] Re: Conversion to Dalvik format failed with error

2009-04-10 Thread Nithin Varamballi
Hi I tried in SDK emulator. Even i have Same problem like yours. Till now i didnt run video on emulator Thank You Nithin N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group