[android-developers] Re: Play Video Files in Android

2008-12-04 Thread Girish
Dear Jatin , if you just want to play a video on android emulator these are the steps go to this location /development/samples/ApiDemos/src/com/example/android/apis/media/ Edit MediaPlayerDemo_Video.java path = /sdcard/Yourfilename; //add your file name here Save and quit

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-04 Thread Romain Guy
The heap works pretty much like in a regular VM. As your app needs more memory the heap grows accordingly (but doesn't shrink.) For instance, if you are using 1 MB out of your 2 MB of allocated heap and need to load 2 more MB, the heap will grow to more than 3 MB, and you will use 3 MB out of the

Re: Fw: [android-developers] Re: Android and bluetooth

2008-12-04 Thread whitemice
Hi Nick I can see there is a use case for this. If we were to do this, it would be through a scary sounding bluetooth permission. This application can connect to untrusted Bluetooth devics. We'll have to think about this a little. I would do it this way: (1) Application permission: This

[android-developers] Network access problem on ubuntu

2008-12-04 Thread taosinker
Hi all: Now I build the android code on ubuntu, in the build I can launch the emulator on unbuntu. I met a problem, I cannot connect the website in the emulator. But under the same network env, the android emulator on windows xp can connect the website. I don't know the reason. Who can help me?

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-12-04 Thread Matthias
I'm pretty sure I used FLAG_CANCEL_CURRENT to no avail... passing different request codes each time was the only way to create a new intent. I spent a whole day on this combining flags to no avail, until I tried the workaround by Guillaume. On 25 Nov., 19:24, Dianne Hackborn [EMAIL PROTECTED]

RE: Fw: [android-developers] Re: Android and bluetooth

2008-12-04 Thread Marcio Alexandroni
Hi, Another common use for Bluetooth from applications is connecting to mobile printers through SPP, I use it very much on SFA and other applications that require printing. G1 (and forthcomings) are very likely to be used by corporate applications in this kind of automation. In other operating

[android-developers] How to replicate GUI of Android settings menu

2008-12-04 Thread ChisterNordvik
Hi! I want to make my settings menu look like the one in Android where they have a heading and a multiline text below the heading for each listitem. Anyone got the source code for that GUI? :-) --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Web Service and Authentication

2008-12-04 Thread Charlie Collins
Well, the question involved kSOAP, which is indeed what most people use to build a SOAP client on Android (and it's also used on other mobile platforms). The question was vague, yes, but I believe he is trying to make a SOAP over HTTP client on Android. On Dec 3, 1:24 pm, Michael [EMAIL

[android-developers] Re: How to replicate GUI of Android settings menu

2008-12-04 Thread Mark Murphy
ChisterNordvik wrote: I want to make my settings menu look like the one in Android where they have a heading and a multiline text below the heading for each listitem. Anyone got the source code for that GUI? :-) I'm assuming you are referring to the preferences screen. If you literally want

[android-developers] zipped android source code

2008-12-04 Thread sal
Hi All, Is there any location on Web where i can get a zipped version of android source code (though not fully , just a application part ). Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: hello

2008-12-04 Thread AndroidGeek
Or just select any one of them No Email or Unsubscribe from Edit my membership screen. ;) --~--~-~--~~~---~--~~ 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: How do i get a transparent background for icons/shortcuts?

2008-12-04 Thread AndroidGeek
I think Adobe Photoshop will help... as you are graphic designer you can create a icons Also I have experienced that many a times the bit depth causes problem try different icons with different bit depth. Hope it helps. --~--~-~--~~~---~--~~ You received this

[android-developers] Does anyone need an Android Developer Job??

2008-12-04 Thread Andrew Freundt
I have been tasked with hiring six to eight Android Application Developers in Richmond, VA. These are permanent (salaried) positions. How do I find qualified people? Do you have any recommendations on where to look? If so, I can be e-mailed at [EMAIL PROTECTED] or called at 1-800-452-7391. I

[android-developers] BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian
Hi guys ! I'm looking for a way to build a picture from an array of bytes here is the way I use to store my picture (read from a ZIP file) into a byte[] : Java source code: -- final

[android-developers] delete carriers table in TelephonyProvider

2008-12-04 Thread forrestxu
Hi, Please help me to understand if I delete carriers table in TelephonyProvider. What will be happened? I use code below: try { Uri mContacts = Uri.parse(content://telephony/carriers);

[android-developers] Re: Receiving SMS Messages in 1.0?

2008-12-04 Thread Cristina
Hi Joe, Firt of all, thanks for the code. However I have tested your code with the emulator and does not work for me. So there must be something I am doing wrong. Have you checked that with the emulator or with the G1? I am doing my tests in the emulator because I still don't hava a phone yet.

[android-developers] Re: How to replicate GUI of Android settings menu

2008-12-04 Thread Guillaume Perrot
Just use a PreferenceActivity and your settings will look the same as the G1. You can describe settings in XML with special tags, you can look at APIDemos. On Dec 4, 1:20 pm, Mark Murphy [EMAIL PROTECTED] wrote: ChisterNordvik wrote: I want to make my settings menu look like the one in

[android-developers] Webkit WebView soft error

2008-12-04 Thread Fred Grott(shareme)
I have a weird error in webkit webview and its soft error. In my html view two image items appear reverse order horizontially The only thing I can reason is to take off the align=left off every image item except the first one although no other image item is in reverse order. I have only

[android-developers] Re: Bitmap.getPixels()

2008-12-04 Thread Robert Green
Did you mean partially transparent green or fully transparent? On Dec 4, 1:21 am, jman [EMAIL PROTECTED] wrote: I painted a transparent green curve on top of a background bitmap. When I use Bitmap.getPixels() to get the result into byte array, I always get a black curve.  The curve position

[android-developers] Re: BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian
ps : my picture file is a .jpg file, encode with the flex jpg encoder. --~--~-~--~~~---~--~~ 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: Web Service and Authentication

2008-12-04 Thread Michael
There have been a lot of posts about dealing with self-signed SSL certificates in the past, do a search through the archives. What it comes down to is that you're going to have to make your own key store for your app, rather than using the system one (which cannot verify your certificate).

[android-developers] Re: BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian
the probleme was: I tried to use this picture as an OpenGL texture but, its width was 1023 with is not a power of 2... it works with the same picture, reSize to 1024. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Distorted Images taken from Camera

2008-12-04 Thread Mark K
I have my own camera app, works just fine on the G1, post the code maybe? Mark On Dec 3, 1:42 pm, ryan84c [EMAIL PROTECTED] wrote: Hi, I'm trying to develop an Android app that will allow users to take pictures. I've tried just about every sample out there, but one problem I

[android-developers] Re: BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian
in the OpenGL android API = Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. I load my OpenGL context using : mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig,EGL10.EGL_NO_CONTEXT, null); do you know what do I have to use i order

[android-developers] Re: Need help using hat to track down memory usage

2008-12-04 Thread Peter Jeffe
Swhen we can we expect to have a memory profiler for Android? I consider it a basic requirement for a mobile development environment to allow memory profiling. Can you explain why you broke the hprof format if you weren't going to release a tool that understands your format? How about

[android-developers] Re: BitmapFactory.decode*() = bug ?

2008-12-04 Thread Guian
I should create a new topic for this new question. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] OpenGL context = how to load non power of two dimension bitmap?

2008-12-04 Thread Guian
in the OpenGL android API (android.opengl.GLUtils.texImage2D() ) ( http://code.google.com/android/reference/android/opengl/GLUtils.html ) we can read= Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. I load my OpenGL context using : mEglContext

[android-developers] Is Bitmap.compress thread safe?

2008-12-04 Thread webmonkey
Because the Bitmap.compress(Bitmap.CompressFormat format, int quality, OutputStream stream) function can sometimes take a long time I am calling it in a separate thread with low priority. During this time I am drawing the same bitmap in the UI thread using Canvas.drawBitmap (Bitmap bitmap, float

[android-developers] Re: Newbe question - Application folders, how to?

2008-12-04 Thread Anders Rundgren
Thanx! But I wanted to create a folder in the application drawer (or what it should be called) that also should not look like a folder but as an app which would if pressed open the folder with the real apps. Isn't that what most mult-app installs need? On Nov 29, 11:59 am, Romain Guy [EMAIL

[android-developers] Re: zipped android source code

2008-12-04 Thread lucky4me
Maybe via GitWeb web interface, download snapshots, e.g. http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=HEAD;sf=tgz On Dec 4, 5:26 pm, sal [EMAIL PROTECTED] wrote: Hi All, Is there any location on Web where i can get a zipped version of android source code (though

[android-developers] ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt
The online docs for ContentProvider/SQLiteDatabase.delete() do not document the third parameter String[] whereArgs. I assume that the idea is that the second parameter (the where clause) could contain replaceable parameters in the form of question marks (?) and the Strings contained in the

[android-developers] Re: Cannot delete rows from sqlite database

2008-12-04 Thread Jack C. Holt
See http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction() On Nov 17, 3:28 pm, techvd [EMAIL PROTECTED] wrote: Hi, I'm having a strange issue deleting rows from a sqlite database. Here's the code snippet:         mDb.beginTransaction();    

[android-developers] Android Crash Files

2008-12-04 Thread Protocol-X
Anyone know where to find the files produced anytime android crashes? is ther e a place on the device. does android log its own crash logs for system crashes not 3rd part apps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Xavier Ducrohet
On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous [EMAIL PROTECTED] wrote: Hi , That error gone, i separately executed all the scripts... Now few more errors are like assert cannot be resolved client.java ddmlib/src/com/android/ddmlib Can you make sure you are setup

[android-developers] Re: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt
Does this fall under the Note About API Documentation sticky post? i.e., since it isn't documented, don't use it? On Dec 4, 9:52 am, Jack C. Holt [EMAIL PROTECTED] wrote: The online docs for ContentProvider/SQLiteDatabase.delete() do not document the third parameter String[] whereArgs. I

[android-developers] Change Tab Widget icon for currently active tab

2008-12-04 Thread mscwd01
This is not so much a problem, more a question about how to achieve something... I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an exact copy but in grayscale. What I want to do is have the coloured version of the icon displayed when the tab is active i.e. being viewed.

[android-developers] sending email

2008-12-04 Thread dilu
Hi i want to develop an aplication which can send email .so can any one provide me sample code or any link that is useful.I got one site davanum srinivas blog,but tht code is too old and full code is not available right now,they have removed it from site.So provide me some link. Thankss dilu

[android-developers] How to best build Android SDK samples in Eclipse?

2008-12-04 Thread Freddy
I installed the Android SDK and Eclipse and built some simple apps using the new Andriod Project wizard. Now I would like to build/debug some of the nice apps included with the SDK (samples\ApiDemos\src\com \example\android\apis\app) . For example, there's a PreferencesFromCode.java sample I

[android-developers] How to see logs on PC.from connected G1 device

2008-12-04 Thread achhabra1...@gmail.com
Hi, I want to see logs from my application,. Using logcat . I am able to do adb Logcat *.* on emulator and view logs. But there is some problem in viewing logs from device. My Device is attached with PC on USB. and I am using adb devices command and

[android-developers] Re: How to best build Android SDK samples in Eclipse?

2008-12-04 Thread Xavier Ducrohet
Hello, just use the new project wizard, and select create project from existing source. You can then point the wizard to the ApiDemos folder. Xav On Thu, Dec 4, 2008 at 11:26 AM, Freddy [EMAIL PROTECTED] wrote: I installed the Android SDK and Eclipse and built some simple apps using the new

[android-developers] Convert AMR-NB/WB to wav

2008-12-04 Thread ste
Are there any available java converters similar to SoX that can convert the audio recorded by a microphone to another format, like wav? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: adb devices showing device offline

2008-12-04 Thread bloodycorner
The drivers installed automatically by Vista are not the ones you need. You need to enable usb debugging on your G1, then point it to the drivers when it prompts you for them More details below: http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/ On Nov 2, 12:59 am,

[android-developers] Re: How to best build Android SDK samples in Eclipse?

2008-12-04 Thread Freddy
Great thanks. I was trying to add each project individually. I didn't realize the ApiDemos were all in a single project starting at the samples\ApiDemos folder. Thanks for the tip! Works great now. On Dec 4, 11:51 am, Xavier Ducrohet [EMAIL PROTECTED] wrote: Hello, just use the new

[android-developers] Re: Send message

2008-12-04 Thread andrex
I solved, Just look the class notification, and notificionManager, if somebody has a quesuion about how, just ask --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: sending email

2008-12-04 Thread Bill Napier
Searching this forum for the term send email gave me this mail: http://groups.google.com/group/android-developers/browse_thread/thread/88bb36c676e3217b/c1d0be41174b4999?lnk=gstq=sending+email#c1d0be41174b4999 Which has some example code that you could use. On Thu, Dec 4, 2008 at 10:51 AM, dilu

[android-developers] How to get ICCID ?

2008-12-04 Thread mianor
Hi, I'm looking for a way to retrieve the ICCID from the SIM card to authenticate a user. When googling it, it appears there was a class android.telephony.TelephonyProperties with the property PROPERTY_ICCID in a Android beta version. Google removed this class from the current release. Do you

[android-developers] Clear my understanding of RIL.java and RIL daemon

2008-12-04 Thread suneelkumar d
Hi , Can you please clear my understanding as mentioned below.. The interface between RIL.java and RIL daemon as i understand from the documentation that it is a JNI interface. Is there any good documentation for Telephony and SIM interface with RIL layer? Thanks SuneelD

[android-developers] Conference call

2008-12-04 Thread Rockingteam
Hi All, Android based phone allows us to make conference call by merging calls. Is it possible to initiate 2 or more calls and merge them through an application, ie., by code? If so then how to proceed? Thanks in advance. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Network access problem on ubuntu

2008-12-04 Thread Brian
Probably you forgot to configure APNs. Go to Settings - Wireless controls - Mobile networks - Access Point Names Press Menu to configure a new APN. On 12月4日, 下午5時01分, taosinker [EMAIL PROTECTED] wrote: Hi all: Now I build the android code on ubuntu, in the build I can launch the emulator on

[android-developers] Storing pictures in internal storage.

2008-12-04 Thread Brian
Hi all, The default behavior seems to store the pictures captured by camera into the external storage (the SD card). Besides, the Camera application won't even work if there is no SD card inserted. Why? Is there any possibility for users to store the captured pictures in the internal storage?

AW: [android-developers] Re: Cannot delete rows from sqlite database

2008-12-04 Thread visionera gmbh
hi, you have to use setTransactionSuccessful() as in int nRows = 0; mDb.beginTransaction(); try { nRows = mDb.delete(mytable, KEY_ITEM + = + rowId,null); mDb.setTransactionSuccessful(); // implies commit at endTransaction } catch( SQLException anyDbError } // error logging ... } finally {

[android-developers] Problem Launching Emulator after integrating codec

2008-12-04 Thread Yogi
Hi All, I have facing problem in launching emulator from the source code. I have also set the environment variable ANDROID_PRODUCT_OUT. I am getting the following error message, ~/bin# out/host/linux-x86/bin/emulator Cannot locate system directory, which contains 'system.img' and other system

[android-developers] intent-filter for addContact and editContact ?

2008-12-04 Thread jaspher
hello I'm looking for a intent-filter which can start my BroadcastReciver when somebody adds a new contact or edit a contact. Unfortunately I couldn't finde something like that. Does it exist? If not how can I get a Notification when somebody added a new contact or something like that? thanks in

[android-developers] regarding Googlenav and xmpp packages

2008-12-04 Thread Pratyush Chandra Malneedi a.k.a Vikky
Hai -- where can i find the classes related to googlenav and xmpp ? I did google every where but i couldnt see them -- are they from the old sdk can some one please help me I have seen some applications online using these classes in the import statements import com.google.googlenav import

[android-developers] Screen on/off Intents Can't Be Declared in AndroidManifest?

2008-12-04 Thread Carter
I'm trying to detect when the phone's screen turns on and off with the SCREEN_ON and SCREEN_OFF Intents. A BroadcastReceiver declared in the AndroidManifest doesn't work with these screen on/off Intents, but instantiating a BroadcastReceiver programatically at runtime does work. As far as

[android-developers] Tetris Game Clone - Ready to download - Any comment is welcomed

2008-12-04 Thread g1port.com
Hi guys, Here is probably the first read-to-download Tetris clone for Android G1. Any comment, bug, advice is highly welcomed. Thank you in advance. APK: http://www.g1port.com/application_bin/tetris_g1Port_demo_sgn.apk (sorry it is a demo version for now) Web Site: http://www.g1port.com/

[android-developers] Debugging applications with Google MAP api on an actual device

2008-12-04 Thread BobW
When I run my map application in the debugger, I can see the map on the emulator (I have a MAP key for my debugger from Google), but I can't see it from my actual device. I can get a release key from Google, and sign a apk with my certificate, but I am not sure how to install it on the device or

[android-developers] How to explicitly establish connection to the underlying GPRS or WiFi?

2008-12-04 Thread Qualyxx
In Window Mobile or Brew, the application has to make a ConnMgrEstablishConnection call to connect to the underlying data network. I don't see such API exists in Android. The question is: when is the the network connection with the underlying data network established? when the first Socket

[android-developers] kSOAP2 with SDK1.0

2008-12-04 Thread Smith, Miles J (DOH)
I'm having a helluva time trying to get ksoap2 working with Android. All the samples I see (including the modified .jar with AndroidHttpTransport in it) fail because of the relocation of org/apache/commons/httpclient/SimplehttpconnectionManager. Can someone provide me with a tutorial, sample,

[android-developers] Re: Play Video Files in Android

2008-12-04 Thread brian
Do this: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Alert on menu select

2008-12-04 Thread bo
Hi all, I'm trying to display pop-up alert when user clicks on menu option that has not been implemented yet (this is try it app so please do not tell me that I should hide or disable the opt). The dialog gets built fine but on dlg.show() I get the following exception

[android-developers] Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron
Hi all, I'm using a helper thread to post data back to a web site. What I notice is that I'm getting an Application Not Responding back in the main thread even though it's not doing anything other than interrupting the helper thread to wake up. If the amount of data in the post is small (~

[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Jean-Baptiste Queru
Space on internal storage is very very tight, and users are guaranteed to have an SD card with their G1. JBQ On Thu, Dec 4, 2008 at 12:41 AM, Brian [EMAIL PROTECTED] wrote: Hi all, The default behavior seems to store the pictures captured by camera into the external storage (the SD card).

[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron
On Thu, Dec 4, 2008 at 2:25 PM, Justin (Google Employee) [EMAIL PROTECTED] wrote: My guess is that you're calling Thread.run() from the UI thread. This will execute the thread in the UI thread. You need to call Thread.start () for it to execute in its own thread. No, I'm definitely calling

[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread Mark Murphy
enervatron wrote: FWIW, I'm using HttpURLConnection to create and read/write the data, Have you tried switching to the HTTPComponents API in Android? It's possible the problem is limited to the implementation of HttpURLConnection, and your problem will go away by using another HTTP API. --

[android-developers] Re: Bitmap.getPixels()

2008-12-04 Thread jman
It's 50% transparent, i.e. alpha channel is 0x80, paint color is 0x8000ff00 On Dec 4, 8:52 am, Robert Green [EMAIL PROTECTED] wrote: Did you mean partially transparent green or fully transparent? On Dec 4, 1:21 am, jman [EMAIL PROTECTED] wrote: I painted a transparent green curve on top

[android-developers] Re: invoking com.android.internal.*

2008-12-04 Thread dreamerBoy
Yes, I know about this URL and have downloaded much of the source code. The delicate problem is how to build in access to the internal classes that I need and have them be invoked correctly by Android. Question is, how to do this without in effect rolling your own version of Android i.e., doing

[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Jean-Baptiste Queru
You're right, I actually meant users are guaranteed to have received an SD card with their G1. Soldering the SD card in the G1 sounds like an elegant way to solve the issue about the lack of internal storage :) JBQ On Thu, Dec 4, 2008 at 2:50 PM, Mark Murphy [EMAIL PROTECTED] wrote:

[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier
I would start looking here: http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri, boolean, android.database.ContentObserver) with ContentObserver.registerContentObserver which sounds like it should do what you want. I haven't

[android-developers] Re: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Mark Murphy
Jack C. Holt wrote: The online docs for ContentProvider/SQLiteDatabase.delete() do not document the third parameter String[] whereArgs. I assume that the idea is that the second parameter (the where clause) could contain replaceable parameters in the form of question marks (?) and the

[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier
I would start looking here: http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri, boolean, android.database.ContentObserver) with ContentObserver.registerContentObserver which sounds like it should do what you want. I haven't

[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Dianne Hackborn
Yes, this is the way to monitor for content provider changes. Note that this is deliberately not done as a broadcast, you can only receive these while you are running by explicitly registering for them, because we didn't want to get in the situation of launching 1 or more apps every time some

[android-developers] Re: Is Bitmap.compress thread safe?

2008-12-04 Thread Dianne Hackborn
Should be fine. On Thu, Dec 4, 2008 at 9:00 AM, webmonkey [EMAIL PROTECTED] wrote: Because the Bitmap.compress(Bitmap.CompressFormat format, int quality, OutputStream stream) function can sometimes take a long time I am calling it in a separate thread with low priority. During this time I

[android-developers] Re: Foreign Language support/Adding new system fonts

2008-12-04 Thread Dianne Hackborn
Sorry, at this point applications can't add new system fonts, they can only use custom fonts in their own app. We don't even have a font picker, which I think would be the thing to do before allowing new fonts to be added. :) On Wed, Dec 3, 2008 at 4:19 PM, Eric [EMAIL PROTECTED] wrote: Can

[android-developers] Re: Application Context

2008-12-04 Thread Dianne Hackborn
Nope, there is no current context. You need to explicitly supply the context. On Wed, Dec 3, 2008 at 4:02 PM, Cezar Augustus Signori [EMAIL PROTECTED] wrote: Hi! It would be pretty good to obtain the application context from a static method, without the use of an Activity object. I

[android-developers] How to launch browser activity?

2008-12-04 Thread junker37
I have been unable to find out how to launch the browser activity in 1.0_r1. I've found a couple of posts giving examples of how to do it, but they seem out of date as some of the functions are no longer available. Here is what I have: Intent intent = new Intent();

[android-developers] Easy way to identify a missed call? (Broadcast)

2008-12-04 Thread code_android_festival_way
Hello! At the moment I want to write a small application that gives me LED notifications when I missed a call. (the system only provides me with notifications when I get a SMS, email or voicemail messages) Is there a broadcast that gets sent directly after the system missed a call? This would

[android-developers] Re: How to launch browser activity?

2008-12-04 Thread Mark Murphy
junker37 wrote: I have been unable to find out how to launch the browser activity in 1.0_r1. startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://...;))); should do it, I think. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron
Yes, I've already coded that up and it behaves identical to HttpURLConnection. So that's not the root cause of this. I just tested this on 3g vs. my home wireless and it too behaves identically, so it's not the kind of net connectivity that's causing this either. Mike On Thu, Dec 4, 2008 at

[android-developers] Re: audio recording issues

2008-12-04 Thread MichaelEGR
On Dec 2, 5:22 am, Dorn Hetzel [EMAIL PROTECTED] wrote: Maybe we need to start another mailing list for unrequited android realtimeaudio:) I'm all for focused discussion on this topic as it crosses between native concerns and public APIs via the SDK. In my longer original post I mentioned that

[android-developers] Re: Clear my understanding of RIL.java and RIL daemon

2008-12-04 Thread Brian
JNI is the general interface between any Java code and native C library. My understanding is that RIL.java communicate with RIL daemon via unix socket. You can check development/pdk/docs/telephony.html for more details. Regards, On 12月4日, 下午5時42分, suneelkumar d [EMAIL PROTECTED] wrote: Hi ,

[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Brian
Jean-Baptiste Queru [EMAIL PROTECTED] wrote: Soldering the SD card in the G1 sounds like an elegant way to solve the issue about the lack of internal storage :) Might be right. But, consider a situation that T-Mobile may want to provide some value added software pre-installed in the phone. An

[android-developers] Re: Problem Launching Emulator after integrating codec

2008-12-04 Thread Dianne Hackborn
This kind of discussion should go on one of the android open source platform groups, thanks! On Thu, Dec 4, 2008 at 12:40 AM, Yogi [EMAIL PROTECTED] wrote: Hi All, I have facing problem in launching emulator from the source code. I have also set the environment variable ANDROID_PRODUCT_OUT.

[android-developers] Re: Network access problem on ubuntu

2008-12-04 Thread taosinker
Brian: Thanks for your response. After I double check the issue, I found more strange things. If I lunch the emulator in file browser, the web browser in android can access the outside website. If I lunch the emulator in console by ./emulator command, the web browser in android cannot access

[android-developers] Re: Change Tab Widget icon for currently active tab

2008-12-04 Thread Dianne Hackborn
Make your tab drawable a selector drawable that picks other drawables based on its state, like the standard tab drawable: ?xml version=1.0 encoding=utf-8? !-- Copyright (C) 2008 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the License); you may not

[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Dianne Hackborn
The platform has pretty much defined that any android phone will have an sdcard filesystem available to applications, though it may be temporarily removed. IMHO, if a person gets an android phone with a removable SD card, and removes that card... well they get what they asked for. :) On Thu,

[android-developers] Re: OpenGL context = how to load non power of two dimension bitmap?

2008-12-04 Thread Dianne Hackborn
I believe the G1 hardware does not support non-power-of-2 textures. On Thu, Dec 4, 2008 at 8:48 AM, Guian [EMAIL PROTECTED] wrote: in the OpenGL android API (android.opengl.GLUtils.texImage2D() ) ( http://code.google.com/android/reference/android/opengl/GLUtils.html ) we can read=

[android-developers] Re: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread for android

[android-developers] Re: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread for android
Sorry.. textView. setCompoundDrawablesWithIntrinsicBounds(null, null, drawable, null); On Fri, Dec 5, 2008 at 10:00 AM, for android [EMAIL PROTECTED] wrote:

[android-developers] Re: audio recording issues

2008-12-04 Thread Dave Sparks
The reason this isn't in 1.0 is because we didn't want to ship a half- baked API. We have a solution coming soon in the form of a flexible base layer that supports push and pull models. For example, we have built an InputStream object on top of it that we will offer as sample code. In the

[android-developers] Re: sending email

2008-12-04 Thread dileep singh
Thanks Bill Napier On Fri, Dec 5, 2008 at 3:53 AM, Bill Napier [EMAIL PROTECTED] wrote: Searching this forum for the term send email gave me this mail:

[android-developers] EULA

2008-12-04 Thread lior
Hi folks, My friend and I are about to launch are first app on the Market. We are don’t have an incorporated company formed (yet) and we would like to protect us with an EULA. Can someone share an EULA format that would work for us. Any other advice on the topic of EULA will be great. Thanks in

[android-developers] Re: OpenGL context = how to load non power of two dimension bitmap?

2008-12-04 Thread Robert Green
Pretty much the rule with 3D stuff is that you always use power-of-2 size textures. Many times the texture won't be filled all the way with usable stuff (lots of black area) but that doesn't matter because you only really care about the areas within the UV maps anyway. On Dec 4, 8:39 pm, Dianne

[android-developers] Re: EULA

2008-12-04 Thread lior
Thanks, I actually meant an agreement example as most examples out them deal with companies (not single developers) On Dec 4, 9:54 pm, Xavier Mathews [EMAIL PROTECTED] wrote: Text File Html File pdf File pdf is the best by html. But not all devices can have a pdf reader. So I would go with

[android-developers] Re: Strange behavior with AlarmManager.RTC_WAKEUP and PowerManager.WakeLock

2008-12-04 Thread Jon Colverson
On Nov 29, 12:15 pm, Noam  Wolf [EMAIL PROTECTED] wrote: I have a BroadcastReceiver which acquires a lock onReceive.  I use an alarm manager with AlarmManager.RTC_WAKEUP set to broadcast my intent.  I have found that when the phone is locked (and asleep) it will not wake up sometimes, and

[android-developers] Re: invoking com.android.internal.*

2008-12-04 Thread Dianne Hackborn
If you want to use private APIs, you need to get the platform source and build it. You are only allowed to use private APIs if you are writing code that is built-in to the android system, so we really don't -want- to make it easy to do this unless you are doing it for the appropriate reason of

[android-developers] Does SensorManager work on emulator of SDK1.0?

2008-12-04 Thread Gameboy
Seems I can not let SensorManager work on SDK1.0 emulator, just copy some code from samples: mSensorManager = (SensorManager)getSystemService (Context.SENSOR_SERVICE); mSensorManager.registerListener(mGraphView, SensorManager.SENSOR_ACCELEROMETER |

[android-developers] Re: Newbe question - Application folders, how to?

2008-12-04 Thread Dianne Hackborn
If you mean you want to put such a thing in the sliding drawer that you pull up from the bottom, that is a flat list of apps. But you can just write an activity that goes in there, and when your activity is launched show a folder of whatever sub-activities you want. On Thu, Dec 4, 2008 at 9:06

[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Anonymous Anonymous
Hi Xav, Thank you, Now am clear with few of the errors(compiler compliance). I have synced to latest source, and for ddms i have added 3 projects(ddmlib,dddmuilib and app) by new project-new java project- browse to development/tools/ddms now remained with

[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Ralf
Make sure to run development/tools/eclipse/script/create_ddms_symlink.sh and then only import the ddms-plugin project (from dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't need the ddmlib and ddmuilib projects in Eclipse for ADT because they are symlinked under the

  1   2   >