[android-developers] Re: Anybody can help me with the control style?

2009-04-05 Thread Greg Krimer
Hi, A good place to start is to look at the ApiDemos application to see if there is anything there close to what you want. The best I found is com.example.android.apis.view.Animation2, which uses a ViewFlipper to transition from one view to another with various animations. It's not exactly what

[android-developers] Re: onDraw calling frequency

2009-04-05 Thread Greg Krimer
Creating a new Paint object is mentioned as something to avoid here: http://android-developers.blogspot.com/2009/02/track-memory-allocations.html I suppose it really depends on the frequency of the onDraw calls. I can tell you that it made a noticeable difference for us. We have a custom view

[android-developers] Cupcake SDKs available for download

2009-04-05 Thread Al Sutton
I've compiled up the Linux Mac OS X Intel SDKs from the public git repository and have put them up for download (If anyone can get instructions on building a Windows SDK I will do what I can to create a Windows SDK as well). *PLEASE NOTE* In order to ensure that I don't end up with a massive

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Pd
You could always use bittorrent if bandwidth is an issue plus we all wouldn't need yet another username and password if you put the file(s) on a public tracker ;-) Pd. Al Sutton wrote: I've compiled up the Linux Mac OS X Intel SDKs from the public git repository and have put them up for

[android-developers] Re: How to detect PDP context activation/deactivation and out of coverage scenarios?

2009-04-05 Thread ashutoshkagra...@gmail.com
Is this still not available? Can somebody comment on this? http://source.android.com/roadmap Regards, Ashutosh On Feb 13, 1:38 am, Regina Mitsue Azuma rmaz...@gmail.com wrote: I'm developing an application that makes an intensive use of data connection in GPRS network. I'm currently using

[android-developers] Re: How to use TextAppearence in Code without styleable?

2009-04-05 Thread Tseng
1. Well you can simply copy paste the styles you need from the android SDK and insert it in your own XML files (they can be found in the SDK1.0/tools/lib/res/default/values/styles.xml file). They way you can still use the same styles as before, but you don't have to access them from the

[android-developers] file uri doesn't work for Messaging

2009-04-05 Thread Gaurav
I have an image on my sdcard and I want to send this via email or message. Here is my code: Intent intent = new Intent(Intent.ACTION_SEND); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.setType(image/*); intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:/sdcard/mydir/ myimage.jpg));

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Jean-Baptiste Queru
-I'd like to point out that this isn't an official SDK, with e.g. no guarantee that applications developed with it will work on future versions of Android. Should anyone have questions about using it, please use the android-discuss group as android-developers is for questions about the official

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Al Sutton
Hi JBQ, - Who decides what is an official SDK of an open project :)? - There is no guarantee of future compatibility on any SDK (see my issue with buttons posted a couple of days ago). - Thanks for the window SDK pointer, I'm installing cygwin now. - If someone wants to setup a bit torrent

[android-developers] Re: Dialer App Source Code

2009-04-05 Thread bw
Actually, the dialer is here: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=tree On Apr 5, 11:52 am, bw ben.weisb...@gmail.com wrote: The web interface to view android source code is here: http://android.git.kernel.org/ From there you can get to the phone app:

[android-developers] Re: Dialer App Source Code

2009-04-05 Thread bw
The web interface to view android source code is here: http://android.git.kernel.org/ From there you can get to the phone app: http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=tree -Ben On Apr 3, 9:05 pm, TJ104 tiny.timmy.t...@gmail.com wrote: Hello, First of all,

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Jean-Baptiste Queru
[inline] On Sun, Apr 5, 2009 at 8:45 AM, Al Sutton a...@funkyandroid.com wrote: Hi JBQ, - Who decides what is an official SDK of an open project :)? The owners of the discussion group where official SDKs are supported :) Within the limits of the various licenses (which are generally very

[android-developers] How to retrieve data from two tables via the ContentProvider way?

2009-04-05 Thread Shawn_Chiu
Hi, all How to retrieve data from two tables via the ContentProvider way? I.E. the database of Calendar application, include many tables including Events and Deleted, and some others. I want to retrive records in Events table, whose _sync_id field is also in Deleted table. Usually, we write a SQL

[android-developers] Re: How to retrieve data from two tables via the ContentProvider way?

2009-04-05 Thread Mark Murphy
Shawn_Chiu wrote: How to retrieve data from two tables via the ContentProvider way? I.E. the database of Calendar application, include many tables including Events and Deleted, and some others. I want to retrive records in Events table, whose _sync_id field is also in Deleted table.

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Al Sutton
JBQ, I may be reading what you've written in a different way to you've intended, but it reads very much like you guys see Google produced Android stuff from the internal Google repository as Android, and anything else (including the public repository) is being an offshoot project. Al.

[android-developers] Re: Photo Picker

2009-04-05 Thread Peli
Here is the solution: You have to move your cursor from position -1 to 0 using moveToFirst(): android.database.Cursor cursor = activity.getContentResolver().query( intent.getData(), null, null, null, null); cursor.moveToFirst(); int idx =

[android-developers] Re: Windows Cupcake SDKs compilation

2009-04-05 Thread Al Sutton
I tried the instructions from the git repo for building windows and they don't work. To start with cygwin bases everything off /cygwin rather than / so even trying to run repo gets; /bin/sh: bad interpreter: No such file or directory And if you hack around that by altering repo to point to

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Mark Murphy
Al Sutton wrote: I may be reading what you've written in a different way to you've intended, but it reads very much like you guys see Google produced Android stuff from the internal Google repository as Android, and anything else (including the public repository) is being an offshoot project.

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Jean-Baptiste Queru
That's not what I wrote (or at least not what I meant to write). The fact that the open-source side of Android (which is fundamentally the true Android platform as it's the central one) is called Android Open-Source Project with the official Android logo should be a good hint that it's not an

[android-developers] send a image file on sdcard with email not messaging or other options

2009-04-05 Thread Gaurav
I need to send an image file on my sdcard using email in my application. Note that I don't want user to get option to use messaging or other ways to send the file. My current code, as shown below, gives option of both email and messaging whereas I want the user to get only emailing option. How do

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

2009-04-05 Thread ellipsoidmob...@googlemail.com
Might also be worth checking that you aren't drawing into the surface from a different thread, and that you aren't drawing before the surfaceCreated() callback --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Windows Cupcake SDKs compilation

2009-04-05 Thread David Turner
On Sun, Apr 5, 2009 at 6:36 PM, Al Sutton a...@funkyandroid.com wrote: I tried the instructions from the git repo for building windows and they don't work. To start with cygwin bases everything off /cygwin rather than / so even trying to run repo gets; /bin/sh: bad interpreter: No such

[android-developers] OpenGL: Difference on Emulator versus actual G1 phone for method glDrawTexiOES

2009-04-05 Thread Streets Of Boston
Hi, I have a problem drawing a background for my OpenGL app on the emulator. It all works well on an actual G1, but i'm worried that if the emulator has a problem, other android phones may have the same problem. On an actual G1 the background is drawn on the background. All other drawing is

[android-developers] Detecting Noise!

2009-04-05 Thread John Doe
Hi everyone. I am trying to develop a program which detects noise level of outside.Is it loud or silent? How loud? Where should I start? Is there any example ? Any comment will be greatly appreciated... --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Dialog

2009-04-05 Thread AlexNguyen
I am working with dialog, I have a question about dialog: 1. How can we set color for dialog message? 2. How can we modify size, font character in title or message in dialog? Thanks, --Alex --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Dialog

2009-04-05 Thread Mark Murphy
AlexNguyen wrote: I am working with dialog, I have a question about dialog: 1. How can we set color for dialog message? 2. How can we modify size, font character in title or message in dialog? I am assuming you are referring to AlertDialog. One approach is to use setView() and supply your

[android-developers] Re: [TextView] What are that XML Attributes in JAVA ?

2009-04-05 Thread Marco Schmitz
is there noone who want to help me on this? the most setter methods are documentated, but on this I get really nuts: android:layout_height=wrap_content thanks darolla 2009/4/4 DaRolla netzprofi.ma...@googlemail.com: Hi, I need to programm this XML in JAVA. Some I figured out, some not. Can

[android-developers] moving pictures like PicSay

2009-04-05 Thread Gaurav
How does PicSay move/resize/rotate an image on top of another image. Can someone please share some sample code/ideas on how to do this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: [TextView] What are that XML Attributes in JAVA ?

2009-04-05 Thread Mark Murphy
Marco Schmitz wrote: //android:layout_width=150px tv.setWidth(150); That will not reliably work AFAIK. See below. //android:layout_height=wrap_content ??? All of the layout_ attributes are messages to the widget's *container*, not to the widget itself. To adjust those layout_ attributes

[android-developers] Re: moving pictures like PicSay

2009-04-05 Thread Mark Murphy
Gaurav wrote: How does PicSay move/resize/rotate an image on top of another image. Can someone please share some sample code/ideas on how to do this. I have not used PicSay, but what you are describing sounds like the animation framework.

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Stoyan Damov
The ONLY change to this entire thread should be the subject, which should read UNOFFICIAL Cupcake SDKs available for download That said, no good goes unpunished. Cheers On Sun, Apr 5, 2009 at 10:42 AM, Al Sutton a...@funkyandroid.com wrote: I've compiled up the Linux Mac OS X Intel SDKs

[android-developers] javax.xml.transform

2009-04-05 Thread xspotlivin
I need to use the transform package (transformer, transformfactory, etc.) so that I can convert an xml node to a new document. However, when I try to import the package, it says that it cannot be resolved. Are you not allowed to use this package on Android? Below is the code subset of how I want

[android-developers] Re: javax.xml.transform

2009-04-05 Thread Romain Guy
Android does not provide the javax.xml.transform package. On Sun, Apr 5, 2009 at 2:23 PM, xspotlivin dmbrown2...@gmail.com wrote: I need to use the transform package (transformer, transformfactory, etc.) so that I can convert an xml node to a new document. However, when I try to import the

[android-developers] Re: send a image file on sdcard with email not messaging or other options

2009-04-05 Thread Andrew Stadler
We can work out ways to deal with this question, but I would ask first: How restrictive are you trying to be? For example the user might have a Gmail account set up, and both platform Email and K9 installed configured. Are you sure you want to restrict them to Email only? The user experience

[android-developers] opening a file within a service

2009-04-05 Thread Richard Schilling
I'm getting some weird behavior when I try to open a file within a service: code public class MyService extends Service{ public void onCreate(){ super.onCreate(); File myFile = getFileStreamPath(myfile.dat); if (myFile.exists()){ Log.i(MyService, myfile.dat exists); }

[android-developers] Re: send a image file on sdcard with email not messaging or other options

2009-04-05 Thread Gaurav Agarwal
I will like to restrict the user to Email only, user can choose which one. On Mon, Apr 6, 2009 at 3:00 AM, Andrew Stadler stad...@gmail.com wrote: We can work out ways to deal with this question, but I would ask first: How restrictive are you trying to be? For example the user might have a

[android-developers] UberColorPicker Demo

2009-04-05 Thread Keith Wiley
I have created what I believe is a relatively useful color picker, derived and massively extended from the ColorPickDialog example in the API Demos. If anyone would like to try it out, it is available on the Market at Applications/Tools/UberColorPicker Demo. It didn't put it in the Demo section

[android-developers] Re: opening a file within a service

2009-04-05 Thread Dianne Hackborn
That should work fine. That function does very little -- just builds a File with the proper path. You might want to attach the debugger and see the stack crawl when you are stuck. On Sun, Apr 5, 2009 at 2:37 PM, Richard Schilling richard.rootwirel...@gmail.com wrote: I'm getting some weird

[android-developers] UberColorPicker Demo

2009-04-05 Thread Keith Wiley
I have created what I believe is a relatively useful color picker, derived and massively extended from the ColorPickDialog example in the API Demos. If anyone would like to try it out, it is available on the Market at Applications/Tools/UberColorPicker Demo. It didn't put it in the Demo section

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
Ok. Well do you have any ideas or advice on how I can solve this problem? On Apr 5, 5:27 pm, Romain Guy romain...@google.com wrote: Android does not provide the javax.xml.transform package. On Sun, Apr 5, 2009 at 2:23 PM, xspotlivin dmbrown2...@gmail.com wrote: I need to use the

[android-developers] Re: Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES

2009-04-05 Thread geoff.stromberg
Well, this APK installation error (INSTALL_PARSE_FAILED_NO_CERTIFICATES) is caused by a change to my source (I didn't verify well enough that I had restored to a known good working source tree). The error is apparently triggered by changing the name of one of my layout XML files. With one name

[android-developers] Re: javax.xml.transform

2009-04-05 Thread Mark Murphy
xspotlivin wrote: Ok. Well do you have any ideas or advice on how I can solve this problem? You haven't stated a problem we can really help you solve. You asked: Are you not allowed to use this package on Android? As Mr. Guy indicated, you are correct. The package is not shipped with

[android-developers] Re: Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES

2009-04-05 Thread Mark Murphy
geoff.stromberg wrote: Well, this APK installation error (INSTALL_PARSE_FAILED_NO_CERTIFICATES) is caused by a change to my source (I didn't verify well enough that I had restored to a known good working source tree). The error is apparently triggered by changing the name of one of my

[android-developers] Button in Custom View

2009-04-05 Thread xspotlivin
I'm trying to create a button in a custom view that I've created. I'm looping through an XML document and drawing certain things. I want to be able to also create buttons to go in certain locations depending on the xml data. I'd like to do it in the view because I want to be able to call

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
I'm using xml, and after creating a document out of it, I'd like to create a new document out of some particular node (with all its children). Below XML is the larger document, and I want to make a new document from the node intervals. This is how I did it with the transform package: Node

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
I solved it. I was trying to do way to much work. Simple solution: Java: Node adherenceIntervals = reportXML.getFirstChild().getFirstChild(); Element adherenceIntervalsElement = (Element) adherenceIntervals; NodeList medicationNodes = adherenceIntervalsElement.getElementsByTagName(Medication);

[android-developers] Re: Current Preference Screen? (easyy)

2009-04-05 Thread Noam
? On Apr 1, 6:50 pm, Noam noam.ha...@gmail.com wrote: Is my code worth anything? --~--~-~--~~~---~--~~ 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: Cupcake SDKs available for download

2009-04-05 Thread Mark Murphy
Ivan Soto wrote: I've no idea how to run the emulator on Mac. Any advice? /Double-O:~ ivan$ /Users/ivan/Downloads/android-sdk_eng.al_mac-x86/tools/emulator ; exit;/ /emulator: ERROR: You did not provide the name of an Android Virtual Device/ /with the '-avd name'

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
Actually, this does not work when I ran the code on the emulator. It worked in a separate testing program I have. Back to step 1. On Apr 5, 8:08 pm, xspotlivin dmbrown2...@gmail.com wrote: I solved it. I was trying to do way to much work. Simple solution: Java: Node adherenceIntervals =

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Kevin Phillips
I have posted a mirror for the files that is registration free over at http://www.prosoftco.net/android/ Hope this helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: how to get the first frame of a video file ?

2009-04-05 Thread Wei
Hi Dave, Are you meaning I can not use this class in my own application? But in MediaPlayerPerformance.java(framework folder), it can import MediaMetadataRetriever. Is any lib I need to load or ? Please give me some hint - wei --~--~-~--~~~---~--~~ You

[android-developers] Why adb push to sdcard report Read-only file system for the emulator of the latest android source code

2009-04-05 Thread max
Hi Guys, This is a question that raised before, but I can't find answer for my case. I get the latest android source code, compile, and then set $PATH including the android_src/out/host/linux-x86/bin/ mksdcard 100M card.img emulator -sdcard card.img Then in another xterm window, I use adb

[android-developers] Re: Cupcake SDKs available for download

2009-04-05 Thread Jean-Baptiste Queru
This is definitely new in cupcake - it's part of the work that has been done by the tools team to allow a single SDK to work with multiple target configurations, and the visible effect is that launching the emulator outside of either the source tree or a fully-configured SDK distribution might

[android-developers] how to build ApiDemo with Eclipse

2009-04-05 Thread sunwrt
Any guy knows how to build ApiDemo in Android SDK with eclipse Thanks in advance! --~--~-~--~~~---~--~~ 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] Taking a picture Intent?

2009-04-05 Thread Ivan Soto
Hi, I have an Activity for my application to take pictures and store them with a content provider. The problem is that obviously I would like the picture to auto rotate depending if I have my phone in landscape or not and I would like to use the autofocus feature. So I'm wondering if I could just

[android-developers] Re: For launching a camera from appl which action requires?

2009-04-05 Thread Ivan Soto
Actually I may need the same. I to start the the camera app and get the latest added picture. Ivan Soto Fernandez Web Developer http://ivansotof.com On Mon, Feb 2, 2009 at 11:29 PM, jj jagtap...@gmail.com wrote: Hello James Thanks for replying me, Actually I want Uri of this

[android-developers] Re: Detecting Noise!

2009-04-05 Thread Marco Nelissen
That's not going to work on Android. On Sun, Apr 5, 2009 at 5:16 PM, MyLinuxSupport mashpl...@gmail.com wrote: You should be able to fork the audio in Linux and write a c program to do the analysis, then write your results to android...  The challenge you will have is getting your c program

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

2009-04-05 Thread Andrew Stadler
It's actually quite useful and doable to write pure unit tests within the InstrumentationTestRunner framework. For a working example, please take a look at ApiDemos, in the tests/ directory, and look for classes that extend the TestCase class. Benefits of doing it this way: 1. Although you

[android-developers] Re: Retrieving street info as in Google maps application

2009-04-05 Thread Pratap
can somebody from google provide a official statement on the issue mentioned above?? On Apr 3, 11:11 am, Pratap ajit@gmail.com wrote: anyone with any idea on the above issue? On Mar 31, 9:35 am, Pratap ajit@gmail.com wrote: Hi I am developing a simple maps application

[android-developers] Re: How the use same instances when launching application twice ?

2009-04-05 Thread Sarnoth
I posted with this same problem before and then it just seemed to disappear so I replied to my own post with a never mind, it works now and no real resolution. Well, as I've continued to develop I've run in to it again and figured out what is going on. There is a problem with the development

[android-developers] Video streaming

2009-04-05 Thread Nithin
Hi to all Can anyone tell me how video streaming can done. Thank You NIthin N V --~--~-~--~~~---~--~~ 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: WebView with theme doesn't show focused text field values

2009-04-05 Thread for android
Use this webView.loadDataWithBaseURL(http://m.myspace.com;, null, text/html, utf-8, null); On Sun, Apr 5, 2009 at 12:12 AM, Rmac ry...@mac.com wrote: I have encountered a problem with focused text fields in a WebView not showing entered text values. As long as a

[android-developers] Re: [TextView] What are that XML Attributes in JAVA ?

2009-04-05 Thread Desu Vinod Kumar
May We can use like this TextView tv = new TextView(this); tv.setLayoutParams(new ViewGroup.layoutParams(LayoutParamas.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); try this in java i think.. On Sat, Apr 4, 2009 at 1:25 PM, DaRolla netzprofi.ma...@googlemail.comwrote: Hi, I need to

[android-developers] Re: [TextView] What are that XML Attributes in JAVA ?

2009-04-05 Thread Dianne Hackborn
You need to create a LayoutParams the corresponds to the actual class of the parent, such as FrameLayout.LayoutParams. On Sun, Apr 5, 2009 at 10:30 PM, Desu Vinod Kumar vinny.s...@gmail.comwrote: May We can use like this TextView tv = new TextView(this); tv.setLayoutParams(new