[android-developers] Re: How to set the default download files location
Hello, There is a library called "iText" which helps create pdf docs in Java. I read old posts from the author of iText regarding compiling this library for Android - not sure what the current status is. You can find some info about iText here : http://viralpatel.net/blogs/2009/04/generate-pdf-file-in-java-using-itext-jar.html If your requirement for PDF in Android is urgent, you may think of compiling iText for Android yourself - depending on whether the license terms allow it. Hope this helps. Regards, Priyanka On Jul 4, 9:45 am, uday wrote: > Files downloaded from browser by default they are stored under sdcard/ > downloads folder.. > 1) Is it possible to create the .pdf files using client program in > android device and how to write the .pdf file content from server into > the local files > 2) is it the better way to store any pdf files into the device's > internal memory if the internal memory is high??? > > On Jul 2, 9:35 pm, Mark Murphy wrote: > > > On Fri, Jul 2, 2010 at 8:50 AM, uday wrote: > > > From my application i can able to download the files from the > > > internet. but the files are downloaded to sdcard/downloads directory > > > by default. Is it possible to change this location so that user can > > > give the path to save the file?? Is it possible to save the files in > > > internal memory??? > > > Don't use the Browser for the download. Handle the download yourself, > > and you can store it wherever you can write to. > > > If you use the Browser for the download, it will download where the > > Browser wants to, not where you want it to. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > Android Training...At Your Office:http://commonsware.com/training -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Moving map method
How does the draw method track location changes? On Jul 3, 4:59 pm, Frank Weiss wrote: > Try this and let us know if it works for you: > > http://osdir.com/ml/Android-Developers/2010-06/msg01242.html -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with JNI - using Multiple Native Methods in a library
Hi, While using the NDK, I came across a very peculiar problem... Let's take case of the simple "hello-jni" sample. It has one method called stringFromJNI which works wonderfully. I add another method called stringFromMyJNI and it doesn't work. I then did some research and found something very peculiar... If I have more than one method, only first method is actually exported in the shared-object. So, I thought about naming it to something like "registerNatives" and ensure that it is called. And it does get called. But still unable to invoke any method. The code is given below... Thanks in advance! -- Happy Hacking, Gaurav Vaish www.mastergaurav.com - JNI Code - jstring Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env, jobject thiz ); jstring Java_com_example_hellojni_HelloJni_stringFromJNIx( JNIEnv* env, jobject thiz ); //* static JNINativeMethod methods[] = { { "stringFromJNI", "()Ljava/lang/String;", Java_com_example_hellojni_HelloJni_stringFromJNI}, { "stringFromJNIx", "()Ljava/lang/String;", Java_com_example_hellojni_HelloJni_stringFromJNIx}, }; //*/ JNIEXPORT void JNICALL Java_com_example_hellojni_HelloJni_registerNatives (JNIEnv *env, jclass clazz) { (*env)->RegisterNatives(env, clazz, methods, 2); } JNIEXPORT jstring JNICALL Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env, jobject thiz ) { return (*env)->NewStringUTF(env, "iHello!"); } JNIEXPORT jstring JNICALL Java_com_example_hellojni_HelloJni_stringFromJNIx( JNIEnv* env, jobject thiz ) { return (*env)->NewStringUTF(env, "iHello X!"); } - Java Code - public class HelloJni extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(stringFromJNI() + "\n" + stringFromJNIx()); setContentView(tv); } public static native void registerNatives(); public native String stringFromJNI(); public native String stringFromJNIx(); public native String unimplementedStringFromJNI(); static { extractAndLoadLibrary("hello-jni"); } private static void extractAndLoadLibrary(String basename) { String filename = "lib" + basename + ".so"; String pkg = "com.example.hellojni"; String sourceFile = "/data/app/" + pkg + ".apk"; String targetFolder = "/data/data/" + pkg + "/"; String libraryFile = targetFolder + filename; File f = new File(libraryFile); if(f.exists() && f.isFile()) { // System.out.println("File found! All IZ well"); System.out.println("File " + libraryFile + " deleted? " + f.delete()); return; } try { ZipFile file = new ZipFile(sourceFile); ZipEntry entry = file.getEntry("assets/" + filename); InputStream input = file.getInputStream(entry); System.out.println("Got the input stream..."); OutputStream output = new FileOutputStream(libraryFile); System.out.println("Got the OUTput stream..."); byte[] buf = new byte[1024]; int read; read = input.read(buf, 0, 1024); while(read > 0) { output.write(buf, 0, read); read = input.read(buf, 0, 1024); } output.close(); input.close(); System.load(libraryFile); registerNatives(); } catch(IOException e) { e.printStackTrace(); } } } -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to set the default download files location
Files downloaded from browser by default they are stored under sdcard/ downloads folder.. 1) Is it possible to create the .pdf files using client program in android device and how to write the .pdf file content from server into the local files 2) is it the better way to store any pdf files into the device's internal memory if the internal memory is high??? On Jul 2, 9:35 pm, Mark Murphy wrote: > On Fri, Jul 2, 2010 at 8:50 AM, uday wrote: > > From my application i can able to download the files from the > > internet. but the files are downloaded to sdcard/downloads directory > > by default. Is it possible to change this location so that user can > > give the path to save the file?? Is it possible to save the files in > > internal memory??? > > Don't use the Browser for the download. Handle the download yourself, > and you can store it wherever you can write to. > > If you use the Browser for the download, it will download where the > Browser wants to, not where you want it to. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training...At Your Office:http://commonsware.com/training -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Resource Alias not resolving
Hi Dianne, I wish I could share with you my source so you can see why its necessary. I've already tried various methods before settling on the solution I have now. My app now displays its custom graphics on the G1, Droid, and Dell Streak's specs on the emulator. My app is a utility that uses rendered graphics to make the app look nice. I have imagery that is 320x480 for use on mdpi devices, and imagery at 480x720 for use on hdpi and large devices. My goal was to create graphics that would not require resizing for the majority of high res devices. The Dell Streak being a high res device should have used the 480x720 imagery, but instead used the images in the 'drawable- mdpi'. It was only after I created a 'drawable-large' folder with a duplicate set of 480x720 images that the Dell Streak would finally use them. I could have worked it out so that the Streak would use the graphics in the mdpi folder and just scaled them up to fill the screen, but that would have been a bad solution for people capable of displaying high resolutions. I also tried creating a 'drawable-hdpi-large' folder, but it wouldn't work for some reason. I hope this makes sense and helps explain the issue I was having. I found that the resource aliasing only works from a 'drawable' folder. I've copied all my high res images into that folder and I have references in my 'drawable-hdpi' and 'drawable-large' folder. I believe it is a shortcoming of the way Android is designed where I can't run the alias's from anything other than the 'drawable' folder. I understand the difference between screen sizes and dpi', I'm just trying to find a simple way to make a device utilize graphics that its capable of supporting. Thanks, Stephen On Jul 2, 5:33 pm, Dianne Hackborn wrote: > Why do you want to do this? The Streak's screen is really what it reports > -- mdpi density, but more space. If you use hdpi graphics, then your > graphics will appear incorrectly large on the screen. You should layout > your UI to use the extra space, not blow it up larger. > > The main time I can think where it would be okay to just use larger graphics > is a game, where having everything blow up bigger is not so noticeable. In > that case, you should maybe just go down the path of picking the graphics > you want to use explicitly based on the raw space you have to work with. > Before going down that road, though, you should probably stop and consider > what it really means to be manually adjusting for whatever the screen is. > > > > > > On Fri, Jul 2, 2010 at 5:15 PM, Stephen Lebed wrote: > > I'm hoping there is an answer to my problem. I've created two sets of > > graphics for my app. A set for medium res phones and a set for high > > res phones. I've placed them into their drawable-mdpi and drawable- > > hdpi folders. > > > I've now learned that the Dell Streak identifies itself as a large- > > mdpi display. I've created a drawable-large folder and placed the > > high res images into it. Its so far, everything is working in the > > emulator. > > > My problem is I would like to create a single set of high res graphics > > and have it availalbe to both drawable-hdpi and drawable-large. I've > > tried using the example in the docs > > >http://developer.android.com/guide/topics/resources/providing-resourc... > > > but it doesn't seem to work. I wanted to use drawable-hdpi to store a > > single copy of all the high res images, and store the xml aliases in > > drawable-large. It compiles without error, but when my app tries to > > read the drawable, it throws an error, Null Pointer Exception. > > > Does the alias xml file only work with images in drawable, or can they > > be in a drawable-hdpi folder? When I try to pull the file from > > drawable-hdpi it causes the error. > > > Any help would be appreciated. > > > Stephen > > > -- > > 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 this group, send email to > > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Popup Window like 'Quick Contact'
Hi Kevin, Thanx a lot for the info, this is exactly as i want, i'll make a try.. Kind Regards - Lorensius W. L. T - On Sun, Jul 4, 2010 at 12:30 AM, kr...@boerse-go.de < obsidia...@googlemail.com> wrote: > Lorensius, > > On Jul 2, 2:28 pm, "Lorensius W. L. T" wrote: > > Hello all, > > > > Is there a way to create custom popup window like 'Quick Contact' or the > one > > in official Twitter application (image attached) ? I've read the Contact > app > > source code (downloaded from git) but still confused, it seems to use > > internal api. Thanx in advance. > > Google stated that they would release the source code of the official > Twitter client if I remember correctly, but I guess its not ready yet. > > I use simple-quickactions by Qberticus and am quite happy with it: > > http://code.google.com/p/simple-quickactions/ > > Other suggestions can be found here: > > http://stackoverflow.com/questions/2957860/quickactions-like-the-twitter-app > > Best regards, > > Kevin > -- > Kevin Read > Android developer > Boerse-Go AG > http://www.boerse-go.ag/ > > -- > 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 this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Kind Regards - Lorensius W. L. T - - http://www.londatiga.net - -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HDPI images looking like crap
Nevermind, I have found the solution. I changed to and added On Jul 3, 8:39 pm, Jeffrey wrote: > How do I get my HDPI images to not look like autoscaled versions? Do I > need to make the pixels per inch special or something? I use GIMP and > I've tried everything and my images still look terrible. I don't know > what property I have to change to make it work. > > Right now I have my ppi set at 72. Also I don't know if this matters > but the images are 9patch images. Also, I am using the HDPI button > image straight from the HDPI source folder, and it also looks like > crap when using .setBackgroundResource(R.drawable.imagename). > > The weird part about the button image is that it looks just fine when > it's set via XML as the background resource, but when it's reset > using .setBackgroundResource, it looks like shit. Please tell me what > I am doing wrong... -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: CursorAdapter notifyDataSetChanged doesn't work? What am I doing wrong?
Ahh just after I posted I think it clicked! So notifyDataSetChanged() seems to be more useful for ListViews adapters that aren't database driven... Such as array of data. The requery is exactly what it says it requeries the data it updates it... Thanks guys! :) On Jul 3, 10:23 pm, Moto wrote: > So from what I understand when I modify my database table and I want > the changes to show requery is the way to do it? I'm still a little > confused about notifyDataSetChanged() when that would be useful... > > @Android Dev, I don't see any function setNotifyOnChange(..)? > > Thanks for the help guys! > -Moto > > On Jul 2, 4:47 am, Android Development wrote: > > > I think for getting this callback, you need to call setNotifyOnChange(true). > > > On 7/2/10, Mark Murphy wrote: > > > > On Thu, Jul 1, 2010 at 10:51 PM, Moto wrote: > > >> But not sure if design wise is good? Why doesn't > > >> notifyDataSetChanged() work? what's the difference on what I just did? > > > > requery() reloads the Cursor's data. > > > > notifyDataSetChanged() tells an Adapter's listeners that its data has > > > changed. > > > > requery() on a Cursor will cause an attached CursorAdapter to call > > > notifyDataSetChanged(), after having loaded in the new data. > > > > Calling notifyDataSetChanged() yourself, without actually having > > > changed the data set, will not work. > > > > -- > > > Mark Murphy (a Commons Guy) > > >http://commonsware.com|http://github.com/commonsguy > > >http://commonsware.com/blog|http://twitter.com/commonsguy > > > > Android Training...At Your Office:http://commonsware.com/training > > > > -- > > > 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 this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: CursorAdapter notifyDataSetChanged doesn't work? What am I doing wrong?
So from what I understand when I modify my database table and I want the changes to show requery is the way to do it? I'm still a little confused about notifyDataSetChanged() when that would be useful... @Android Dev, I don't see any function setNotifyOnChange(..)? Thanks for the help guys! -Moto On Jul 2, 4:47 am, Android Development wrote: > I think for getting this callback, you need to call setNotifyOnChange(true). > > On 7/2/10, Mark Murphy wrote: > > > On Thu, Jul 1, 2010 at 10:51 PM, Moto wrote: > >> But not sure if design wise is good? Why doesn't > >> notifyDataSetChanged() work? what's the difference on what I just did? > > > requery() reloads the Cursor's data. > > > notifyDataSetChanged() tells an Adapter's listeners that its data has > > changed. > > > requery() on a Cursor will cause an attached CursorAdapter to call > > notifyDataSetChanged(), after having loaded in the new data. > > > Calling notifyDataSetChanged() yourself, without actually having > > changed the data set, will not work. > > > -- > > Mark Murphy (a Commons Guy) > >http://commonsware.com|http://github.com/commonsguy > >http://commonsware.com/blog|http://twitter.com/commonsguy > > > Android Training...At Your Office:http://commonsware.com/training > > > -- > > 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 this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: play RTSP stream using MediaPlayer or VideoView
MediaPlayer supports it. See, for example, dated though it is, http://justdevelopment.blogspot.com/2009/10/video-streaming-with-android-phone.html On Jul 2, 7:18 am, Yadnesh Phadke wrote: > Hi All, > > I wanted to stream A/V from my machine to Android over HTTP > (http://lists.mplayerhq.hu/pipermail/libav-user/2010-July/004944.html). But > that does not seem feasible using FFMpeg. I am planning to try FFMpeg > streaming over RTSP. But I am not sure whether MediaPlayer or VideoView > classes on Android support RTSP playback. > > Is playing RTSP stream possible in simple application? Is there any > example? > > Regards, > Yadnesh > -- > > -- > Christopher Morley - There is only one success - to be able to spend your > life in your own way. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HDPI images looking like crap
How do I get my HDPI images to not look like autoscaled versions? Do I need to make the pixels per inch special or something? I use GIMP and I've tried everything and my images still look terrible. I don't know what property I have to change to make it work. Right now I have my ppi set at 72. Also I don't know if this matters but the images are 9patch images. Also, I am using the HDPI button image straight from the HDPI source folder, and it also looks like crap when using .setBackgroundResource(R.drawable.imagename). The weird part about the button image is that it looks just fine when it's set via XML as the background resource, but when it's reset using .setBackgroundResource, it looks like shit. Please tell me what I am doing wrong... -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to Send Phone to Phone "Alerts" in Background?
There's a very cool thing starting in Froyo called "push notifications" that will probably work for you. Search Google for that topic to find more information. -John Coryat -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is automatic calling possible with android?
So this application is not possible with android? -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: share images with twitter app and buzz app
I still have this issue. Does anyone know what I am doing wrong. Other apps (like the gallery) can share images to Twitter/buzz; so, I must be missing something. On Jun 16, 2:11 pm, jdeslip wrote: > So, I added the following intent to my app to share images captured. > > Intent i=new > Intent(android.content.Intent.ACTION_SEND); > > i.setDataAndType(Uri.parse(sharedfilename),"image/jpeg"); > i.putExtra(Intent.EXTRA_SUBJECT, "Check out > this picture from SquirrelCam"); > i.putExtra(Intent.EXTRA_TEXT,"Taken with > SquirrelCam for Android"); > i.putExtra(Intent.EXTRA_STREAM, > Uri.parse(sharedfilename)); > startActivity(Intent.createChooser(i, "Share > Image")); > > It works as expected when using the intent to launch gmail/picassa/ > picsay/messenger but the image does not seem to attach it self when I > choose the Buzz of Twitter app from the share menu that pops up. I.e. > those two apps launch just with the text and not the image attached. > > Any idea what I am missing to have this intent launch buzz/twitter > with the image attached? -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] open other apk from my activity
Yep sure. It was just an example on how to start an external app from an activity ;) In a real scenario to get the package/class names the PackageManager would be used. On Sun, Jul 4, 2010 at 12:37 AM, Dianne Hackborn wrote: > On Sat, Jul 3, 2010 at 3:23 AM, YuviDroid wrote: > >> An example for the package and class name might be: >> packageName = "com.android.alarmclock"; >> className = "com.android.alarmclock.AlarmClock"; >> This intent would be used then to start the stock android clock (if it's >> present on the device). >> > > Note that using explicit package and class names like this is using > implementation details. Especially this kind of thing, these things will > vary all over the place: different manufacturers have their own apps, etc. > And this is a great example because even in the standard platform the app > that actually handles the alarm clock has changed across releases -- in fact > the code here will not work on newer platforms that have replaced the alarm > clock app with the desk clock/dock. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- > 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 this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- YuviDroid http://android.yuvalsharon.net -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Send Phone to Phone "Alerts" in Background?
Hello, In my app I am giving the option for users to share information with other users of my app. After two users decide to share, every time one of the sharers updates the app I need an alert/notification sent to the phone of the other user so that the app updates automatically with the new information. So basically I am looking for something along the lines of hidden text messages, which when received the app will automatically update. Can anyone point me in the direction of what to use? What Android has to offer to accomplish this? Thank you! Matt. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] open other apk from my activity
On Sat, Jul 3, 2010 at 3:23 AM, YuviDroid wrote: > An example for the package and class name might be: > packageName = "com.android.alarmclock"; > className = "com.android.alarmclock.AlarmClock"; > This intent would be used then to start the stock android clock (if it's > present on the device). > Note that using explicit package and class names like this is using implementation details. Especially this kind of thing, these things will vary all over the place: different manufacturers have their own apps, etc. And this is a great example because even in the standard platform the app that actually handles the alarm clock has changed across releases -- in fact the code here will not work on newer platforms that have replaced the alarm clock app with the desk clock/dock. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Moving map method
Try this and let us know if it works for you: http://osdir.com/ml/Android-Developers/2010-06/msg01242.html -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Video Render application using Native SurfaceFlinger APIs
It's not Java, but there was an interesting mention of something related here that is still in your app at least: http://developer.android.com/sdk/ndk/index.html > Adds support for Android 2.2, including a new stable API for accessing the > pixel buffers of Bitmap objects from native code. On Jul 2, 1:08 am, ganya wrote: > Hi all, > > This is about the issue, I am facing in Android display system(Video > Rendering using Surface Flinger Native APIs). > > As for my understanding, Android display system relies on > Surfaceflinger library( a system wide screen composer). > Surfaceflinger runs as a service along with Mediaserver service, > Camera service, Audioflinger and these services interact with each > other through Binder APIs at native level. If any user application > wants to access SurfaceFlinger native APIs, it requires Surfaceflinger > Access permissions. > > My requirement is that I want to create a SurfaceView at the JAVA > level (Android Application level) and render video data to that > Surface, means, pass video data to the Surface flinger library by > invoking native Surface Flinger APIs. But, because of Permission > Problems, I am not able to invoke Native Surface Flinger APIs from > Application Layer. > > Is there any ways to invoke Surface Flinger Native APIs from > Application Level ? > > Thanks & Regards, > Ganesh -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Moving map method
Is there any method that listens for map moves or zoom changes? I know there is a mapMoved() method in the map listener interface for the nutiteq map (I'm using google maps though) so I'm wondering if there is anything similar for google maps, or if not, if there is someway to listen for getMapCenter() changes. 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onLocationChanged doesn't draw
Typically you would change some variable or model object in your program onLocationChanged, invalidate some view you are showing, that will cause the view's onDraw method to be called, then you would draw to the Canvas provided to you in that method of the view: http://developer.android.com/reference/android/view/View.html#onDraw%28android.graphics.Canvas%29 Just drawing to a bitmap backed Canvas instance that you create on your own won't do anything. That's just creating an internal buffer if you never draw the bitmap to anything later. On Jul 2, 1:42 pm, havanakoda wrote: > Hi, > I've a problem, I call a method that draw a circle over a canvas > inside onLocationChanged but it doesn't do anything. > Can anyone tell me why ? -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone
On Sat, Jul 3, 2010 at 5:54 AM, alex.tchumel wrote: > Could you say more about your idea - what kind of the flags can be > helpfull? Position the cursor of your editor at the end of the line containing you setFlags() call. Press the backspace key enough times to eliminate all characters on that line. Save the file. Recompile, and test the modified application. > Do you think an alternative to FLAG_ACTIVITY_NEW_TASK flag or some > additional flag(s) to FLAG_ACTIVITY_NEW_TASK? Most startActivity() calls do not need setFlags(). Hence, I am suggesting that perhaps the flag you are presently setting is not merely "not needed" but also may be interfering with what you are trying to accomplish. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Deploy App on Google Android G1 Phone
On Sat, Jul 3, 2010 at 11:27 AM, Lamia Hannoun wrote: > Actually i've already tried to use the real IP of my machine but it didn't > work, and yes my my LAN is behind NAT. Do u have any idea? If you are using a 3G connection, your phone will be unable to access your Web service on your local machine, unless your local machine has a public IP address available to the entire planet (or at least to your mobile provider). If you are using a WiFi connection, make sure your Web service is set up to listen on your PC's real IP address and not just on localhost. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I pass my custom object to onSaveInstanceState?
On Sat, Jul 3, 2010 at 1:28 PM, jul wrote: > I created a RestaurantList class to hold my data (a list of some > Restaurant objects created to get some json data using gson). How can > I pass an instance of that class to onSaveInstanceState to be able to > restore my data when needed? You shouldn't pass an instance of that class to onSaveInstanceState(). Your data model is not part of your instance state. If you are trying to deal with orientation changes, return your RestaurantList in onRetainNonConfigurationInstance() and get it back in onCreate() via getLastNonConfigurationInstance(). Otherwise (or perhaps even if orientation is your issue), move that data out of the activity into a database, or in a pinch a Java object mediated by a service (so it will stick around despite activities coming and going). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I need to send message from api to the simulator where the test running
I have to create unit tests where I need to send message from api to the simulator where the test running(The test junit must check functionality which has place after as phone received sms). I searched in google but people always talk about sending message between simulators (using SmsManager) or sending message from shell. If this is not possible how I can test the above functionality ... Please for help !!! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Changing screen
So use a WebView, and make it a web application. You can set it up to only respond to your application's WebView. If you're more comfortable with Javascript than you are with constructing GUI objects, then I strongly recommend this choice. If not, then this really isn't that hard, but you see a bit unclear on some basic things that are stopping you before you start. ViewGroup is just the common parent to all the types of views that have children, such as the layout classes. To create views dynamically, you just create them as described in the XML file you'd use if you were doing it statically, and use addView(child) to put them together in a hierarchy. The only really tricky part of this is setting up the layout parameters -- you have to use the right LayoutParameters subclass that the parent expects. Other than that -- it's just a matter of, create an instance of the appropriate class, set the attributes, create a layout parameters object, set its parameters, associate it with the child view so the parent knows what to do with it, and add the child. On Jul 2, 1:24 pm, Harsha wrote: > Since its a test, it needs to be an native application so that the > student cant access different browsers. And since I am new to android > development I am just learning the language right now. Each question > is like one xml file which i need to read on fly and create the GUI > also on fly. > > I just came across some article that says using view groups would help > me create GUI on fly but I am not really sure what approach i need to > take, so I need advice from all expertise here which approach should i > follow -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Get all text (including encoded) from XML Text Node
I'm a little puzzled by this behavior. This is supposed to be controlled by this: http://developer.android.com/intl/de/reference/javax/xml/parsers/DocumentBuilderFactory.html#setExpandEntityReferences(boolean) which is supposed to default to true. On Jul 2, 8:06 pm, Julius Spencer wrote: > On closer inspection the index part I have misinterpreted - the whole string > might be broken into parts eg. > Text node j > EntityReference node ó > Text node bb > > Regards, > Julius. > > ("on closer inspection zees are loafers") > > On 3/07/2010, at 2:47 PM, Julius Spencer wrote: > > > > > Hi, > > > Thank you for the reply. > > >> Something's not right. Although I have no experience with > >> DocumentBuilder, (ask me a SAXParser question, please!) > > I'm starting to think about converting it all to SAX! > > >> the API > >> reference,http://developer.android.com/intl/de/reference/org/w3c/dom/EntityRefe..., > >> appears to say that character references should be expanded. What HTML > >> or XML processor, refered to in the API, are you using? > > I'm not sure what these terms mean exactly so I may not be responding > > accurately. > > > I use the following to retrieve a response from the server: > > > ResponseHandler responseHandler = new > > BasicResponseHandler(); > > String xmlResponse = httpClient.execute(getMethod, > > responseHandler); > > > (httpClient is from org.apache.http.client.HttpClient) > > > I then create a document using the following: > > > DocumentBuilder builder = > > DocumentBuilderFactory.newInstance().newDocumentBuilder(); > > Document doc = builder.parse(new > > ByteArrayInputStream(xmlResponse.getBytes())); > > > Regards. > > Julius. > > > -- > > 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 this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Popup Window like 'Quick Contact'
Lorensius, On Jul 2, 2:28 pm, "Lorensius W. L. T" wrote: > Hello all, > > Is there a way to create custom popup window like 'Quick Contact' or the one > in official Twitter application (image attached) ? I've read the Contact app > source code (downloaded from git) but still confused, it seems to use > internal api. Thanx in advance. Google stated that they would release the source code of the official Twitter client if I remember correctly, but I guess its not ready yet. I use simple-quickactions by Qberticus and am quite happy with it: http://code.google.com/p/simple-quickactions/ Other suggestions can be found here: http://stackoverflow.com/questions/2957860/quickactions-like-the-twitter-app Best regards, Kevin -- Kevin Read Android developer Boerse-Go AG http://www.boerse-go.ag/ -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I pass my custom object to onSaveInstanceState?
Hi, I created a RestaurantList class to hold my data (a list of some Restaurant objects created to get some json data using gson). How can I pass an instance of that class to onSaveInstanceState to be able to restore my data when needed? thanks Jul -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Error in an XML file eclipse
oh actually my post is right here: http://groups.google.com/group/android-developers/browse_thread/thread/60f5a07baaf345fc# On Sat, Jul 3, 2010 at 10:15 AM, Xavier Ducrohet wrote: > I reply to a different thread and I thought I started with a new > thread with an explicit subject but it looked like it never arrived. > > In any case, we are aware of it. This is a bug in Eclipse > (https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108) and are working > on a work around. > > Xav > > On Sat, Jul 3, 2010 at 12:28 AM, Al Sutton wrote: >> Have you guys put this information into b.android.com so it can be >> logged & tracked easily? >> >> Al. >> >> On Jul 2, 7:26 pm, Ryan Cook wrote: >>> I am also having this issue on multiple machines. It was working >>> before, and I think it stopped working (and started giving error) >>> after I upgraded to Helios (3.6). >>> I also tried removing all the strings entries from the file then >>> adding them through the GUI interface; it adds them with the same >>> format that and everything, but, if I hit save, close it, and then re- >>> open it, I get the same error. >>> >>> My Setup >>> == >>> OS: Windows XP Pro SP3 32bit >>> Eclipse: Helios (3.6.0.I20100608-0911) >>> ADT: 0.9.7.v201005071157-36220 >>> Android SDK Tools: r6 >>> Platform SDK: 2.1-update1, API 7, r2 >>> Java: 6 Update 20 >>> >>> Error Details >>> == >>> Problems occurred when invoking code from plug-in: >>> "org.eclipse.jface". >>> >>> java.lang.NullPointerException >>> at >>> org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(Elem >>> entImpl.java: >>> 259) >>> at >>> org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(Eleme >>> ntImpl.java: >>> 329) >>> at >>> com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShort >>> Description(Unknown >>> Source) >>> at >>> com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvid >>> er.getText(Unknown >>> Source) >>> at >>> org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerL >>> abelProvider.java: >>> 108) >>> at >>> org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLa >>> belProvider.java: >>> 164) >>> at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java: >>> 152) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe >>> r.java: >>> 934) >>> at org.eclipse.jface.viewers.AbstractTreeViewer >>> $UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102) >>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) >>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) >>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe >>> r.java: >>> 1014) >>> at org.eclipse.jface.viewers.StructuredViewer >>> $UpdateItemSafeRunnable.run(StructuredViewer.java:481) >>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) >>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) >>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) >>> at >>> org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java >>> : >>> 2141) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeVie >>> wer.java: >>> 2689) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(Abstract >>> TreeViewer.java: >>> 1867) >>> at >>> org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java: >>> 721) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi >>> ewer.java: >>> 1842) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi >>> ewer.java: >>> 1799) >>> at >>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi >>> ewer.java: >>> 1785) >>> at org.eclipse.jface.viewers.StructuredViewer >>> $7.run(StructuredViewer.java:1487) >>> at >>> org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVi >>> ewer.java: >>> 1422) >>> at >>> org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java: >>> 403) >>> at >>> org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVi >>> ewer.java: >>> 1383) >>> at >>> org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java: >>> 1485) >>> at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java: >>> 537) >>> at >>> org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java: >>> 1444) >>> at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock >>> $2.uiElementNodeUpdated(Unknown Source) >>> at >>> com.androi
Re: [android-developers] Re: Error in an XML file eclipse
I reply to a different thread and I thought I started with a new thread with an explicit subject but it looked like it never arrived. In any case, we are aware of it. This is a bug in Eclipse (https://bugs.eclipse.org/bugs/show_bug.cgi?id=318108) and are working on a work around. Xav On Sat, Jul 3, 2010 at 12:28 AM, Al Sutton wrote: > Have you guys put this information into b.android.com so it can be > logged & tracked easily? > > Al. > > On Jul 2, 7:26 pm, Ryan Cook wrote: >> I am also having this issue on multiple machines. It was working >> before, and I think it stopped working (and started giving error) >> after I upgraded to Helios (3.6). >> I also tried removing all the strings entries from the file then >> adding them through the GUI interface; it adds them with the same >> format that and everything, but, if I hit save, close it, and then re- >> open it, I get the same error. >> >> My Setup >> == >> OS: Windows XP Pro SP3 32bit >> Eclipse: Helios (3.6.0.I20100608-0911) >> ADT: 0.9.7.v201005071157-36220 >> Android SDK Tools: r6 >> Platform SDK: 2.1-update1, API 7, r2 >> Java: 6 Update 20 >> >> Error Details >> == >> Problems occurred when invoking code from plug-in: >> "org.eclipse.jface". >> >> java.lang.NullPointerException >> at >> org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(Elem >> entImpl.java: >> 259) >> at >> org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(Eleme >> ntImpl.java: >> 329) >> at >> com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShort >> Description(Unknown >> Source) >> at >> com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvid >> er.getText(Unknown >> Source) >> at >> org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerL >> abelProvider.java: >> 108) >> at >> org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLa >> belProvider.java: >> 164) >> at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java: >> 152) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe >> r.java: >> 934) >> at org.eclipse.jface.viewers.AbstractTreeViewer >> $UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102) >> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) >> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) >> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe >> r.java: >> 1014) >> at org.eclipse.jface.viewers.StructuredViewer >> $UpdateItemSafeRunnable.run(StructuredViewer.java:481) >> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) >> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) >> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) >> at >> org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java : >> 2141) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeVie >> wer.java: >> 2689) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(Abstract >> TreeViewer.java: >> 1867) >> at >> org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java: >> 721) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi >> ewer.java: >> 1842) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi >> ewer.java: >> 1799) >> at >> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi >> ewer.java: >> 1785) >> at org.eclipse.jface.viewers.StructuredViewer >> $7.run(StructuredViewer.java:1487) >> at >> org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVi >> ewer.java: >> 1422) >> at >> org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java: >> 403) >> at >> org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVi >> ewer.java: >> 1383) >> at >> org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java: >> 1485) >> at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java: >> 537) >> at >> org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java: >> 1444) >> at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock >> $2.uiElementNodeUpdated(Unknown Source) >> at >> com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.invokeUi >> UpdateListeners(Unknown >> Source) >> at >> com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.loadFrom >> XmlNode(Unknown >> Source) >> at >> com.android.ide.eclipse.adt.internal.editors.resources.ResourcesEditor.xmlM >> od
Re: [android-developers] Changing UI
hello there do you mean how to navigate between screens within a single application. well if that what you meant, you would use what is known as INTENT. INTENT are used either explicitly i.e to specify what screen or activity would handle the event or implicitly i.e framework to decide which activity is capable of handling the requested event [through INTENT Resolution ... INTENT FILTER ] i would recommend you make a bit of research on INTENT and INTENT FILTER . slam On Fri, Jul 2, 2010 at 1:15 PM, Muhammad Ali wrote: > Hello to All! > I am new to android! I have a query that I have one form in Android > app. When I click on next button it should load other components. and > hide the previous one or change the screen and load the new requested > form. > > Like if we go in settings and select "Call Settings" it loads the > screen with "Call Settings." How can we achieve this? > > Best Regards > > Syed Muhammad Ali Naqvi > > -- > 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 this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] multitouch for a piano
Hi does anyone have good way to impliment multi touch for a piano, thanks Jake -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: from FRF50 to FRF91
I am running FRF50. For only a few more minutes, as I just got the OTA update notice. No need to go back to 2.1 it would seem. <... five minutes later ...> Up and running on FRF91 now. On Jul 2, 4:47 pm, Ken H wrote: > Anyone know where (or if) I can manually update from FRF50 to FRF91? > I've got files for going from FRF50 to FRF83, and from FRF85B to > FRF91, but nothing in between. > > Ken -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Change the progress bar style dynamically
Ekhem... thank for your answer but the problem is that I don't know HOW to do this. So if it is possible I humbly ask for an advice how to do this, because I haven't seen any methods that regard to style in the progress bar class... -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Deploy App on Google Android G1 Phone
Hi ! Actually i've already tried to use the real IP of my machine but it didn't work, and yes my my LAN is behind NAT. Do u have any idea? Thx 2010/7/2 HeHe > is your LAN is behind nat? > > On Jul 2, 7:22 am, Lamia Hannoun wrote: > > Hi ! > > > > I actually want to deploy my app on a real phone after deploying it on a > an > > emulator.the problem is that i access to a web service (.net) hosted on > my > > machine , i used the address 10.0.2.2 to test it on emulator and everythg > > went well, when i install my app on my htc i couldn't access to my web > > service, i tried to change the address by using a real machine IP > connected > > to a LAN but it didn't work!!! > > > > Do u have any ideas to solve that issue. > > > > Thank you. > > -- > 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 this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Setting and testing state of WiFi Tether hotspot setting in 2.2
Me too! On Jul 2, 1:53 pm, Jens wrote: > I'm interested in this too. Is there already any experience with this? -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Request for test of a game on an Evo
Thanks Lance, that's appreciated. I've had a few people tell me they're confused by the control scheme, which surprised me slightly due to it being the standard one for top- down racing games - e.g Super Sprint, Super Off Road, Micro Machines. But I guess I'm just getting old and the youngsters these days aren't familiar with those classics :). I'm adding an easy mode where the car goes slower, so hopefully that will help. And I might try adding the top edge of a steering wheel at the bottom of the screen, to see how that works. Oh, and if someone doesn't understand an analog clock then I guess I've got my work cut out explaining it! Neil On Jul 3, 2:40 pm, Lance Nanek wrote: > Works as you intended on my Evo here. I can see how some users might > be confused, though. > > The control scheme you've chosen sometimes results in the user tapping > the left side of the screen and the car turning away from their > finger, not always towards it. So if the user is expecting the car to > sort of go where they are touching, they could get confused. It's not > like there are any buttons on the screen, with say a circular arrow > indicating what direction the car would turn, so someone who skipped > the tutorial might just assume, given a blank map, that it is a "touch > to move to location" sort of interface, which is more common. > > Similarly, sometimes the car is facing down. So a user might tap the > left side of the screen and expect the car to turn towards the left > side of the screen, but it won't. The user's left and car's left are > different directions then. Ask a person, "look to your left," and they > will make much fewer mistakes than if you ask them, "look to my left." > I remember reading something from someone who worked as a cashier who > duly noted a similar issue with customers often just mistaking their > orientation for the cashier's when talked to. > > Lastly, analog clocks are less common nowadays and the Market has > users who are not native speakers besides. Would a non-native speaker > understand "to the car's left" better than anti-clockwise? Beats me. > Bizarre stuff like this is what usability studies are for, I guess. > > On Jul 1, 2:12 am, Neil wrote: > > > > > Hi, > > > Can someone help me out and try a game I've released on an Evo? A user > > has reported that the controls are the wrong way round on the device. > > Like most arrogant developers :) I initially thought "dumb user > > error", but I suppose it *might* draw with the Y axis reversed. > > > The game is Pocket Racing Lite. Touching the left side of the screen > > should turn the car anti-clockwise, and the right side - clockwise. > > > Thanks, > > > Neil -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application state being lost
I've seen this happen when someone was forgetting to call superclass methods. If you override onSaveInstanceState, for example, you have to call super.onSaveInstanceState if you still want the default behavior of saving the state of all view's with an ID. There's a similar method in buttons and the like for handling state changes than can be overridden, but then if you don't call the super method the default state changes get ignored, etc.. On Jun 30, 11:16 am, stanlick wrote: > I have a situation where my input fields are losing their contents. I > have reviewed the sections on saving instance state and believe I have > coded it correctly, however, the problem persists. I actually wonder > if the problem might have to do with a second instance of the > application running as opposed to the original instance being > resumed. The reason I say this is because I have seen times where my > application presents itself as an empty page and hitting the "return" > button displays my application with all the data as it had been > entered. Can you tell me more about the manifest entries concerning > android:alwaysRetainTaskState="true" > and/or android:launchMode="singleTask" Also, I discovered an > attribute on the EditText control called android:saveEnabled="true". > > Can you assist in clearing up this seemingly trivial use case? > > Peace, > Scott -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Request for test of a game on an Evo
Works as you intended on my Evo here. I can see how some users might be confused, though. The control scheme you've chosen sometimes results in the user tapping the left side of the screen and the car turning away from their finger, not always towards it. So if the user is expecting the car to sort of go where they are touching, they could get confused. It's not like there are any buttons on the screen, with say a circular arrow indicating what direction the car would turn, so someone who skipped the tutorial might just assume, given a blank map, that it is a "touch to move to location" sort of interface, which is more common. Similarly, sometimes the car is facing down. So a user might tap the left side of the screen and expect the car to turn towards the left side of the screen, but it won't. The user's left and car's left are different directions then. Ask a person, "look to your left," and they will make much fewer mistakes than if you ask them, "look to my left." I remember reading something from someone who worked as a cashier who duly noted a similar issue with customers often just mistaking their orientation for the cashier's when talked to. Lastly, analog clocks are less common nowadays and the Market has users who are not native speakers besides. Would a non-native speaker understand "to the car's left" better than anti-clockwise? Beats me. Bizarre stuff like this is what usability studies are for, I guess. On Jul 1, 2:12 am, Neil wrote: > Hi, > > Can someone help me out and try a game I've released on an Evo? A user > has reported that the controls are the wrong way round on the device. > Like most arrogant developers :) I initially thought "dumb user > error", but I suppose it *might* draw with the Y axis reversed. > > The game is Pocket Racing Lite. Touching the left side of the screen > should turn the car anti-clockwise, and the right side - clockwise. > > Thanks, > > Neil -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is android 2.2 emulator support any flash or flash lite?
>what kinds of devices are supporting flash currently? In addition to what Mark said, my HTC Evo 4G running Android 2.1- update1 has Flash Lite. Maybe all phones with HTC Sense have this? It's something, at least. On Jul 1, 4:09 am, choi wrote: > Hello, > I read several article. they said always emulator doesn't support > flash, flash lite on the emulator. > so i just want to make sure it is true or not. i must report to my > boss. > > Anyway, if flash is not support, what kinds of devices are supporting > flash currently? > > Regards. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SoundPool queries
Hi there, I have been finishing off the port of one of my games to Android, with the last two things being music and sound effects. I have implemented the music system now, using a series of MediaPlayer instances, and that all seems to be working fine (I only need to do limited things with music, just playing, pausing and stopping really). I am now trying to finish of the sound effects, but I am struggling. 1. I am targeting Android 1.6+ and therefore do not have access to the setOnLoadCompleteListener function. What is my best way to wait until all sound effects are loaded? I am thinking my best bet is to load all my sounds, then load a dummy (short, silent) sound, and then sit in a loop attempting to play that sound (and then sleeping for 1ms) until the play returns non zero. Does this sound reasonable? Would it be crazy to do this process for every sound effect I load, as the calling code expects the load function to stall as long as it takes for the load to complete - I am not interested in the sound pool trying to do any async stuff for me, all of my background loading is done in a separate thread, and this thread can stall as long as it likes, as long as it actually loads what I am asking it to. 2. Is there anyway I can find out when a sound effect has finished playing? The games I am porting might have code along the lines of 'play sound effect, wait for it to complete, then fade the screen out and load next context' which on other platforms is easy enough to implement. In OpenAL for example, at the end of each frame I check if the OpenAL state for a given SFX is now stopped, in which case I update the game side sound handle to let it know it's now in the stopped state. But I just can't seem to find a way to achieve the same thing on Android. I am beginning to think my only option would be to (somehow) work out the length of the sample, and then when play is called, set a timer to trigger 100ms after the sample time (100ms to account for any delay in the sound starting), and in the timer function set the game side sfx state to be stopped. Does this sound reasonable? Are there any better ways of handling this? 3. Will a sound pool run out of ids? It seems it have been designed so you have one sound pool per 'level' and after each level you release the pool. This doesn't really fit too well with all my code so I am trying to avoid it. But I notice the documentation states a lot of functions will work even after a sound id is no longer valid (it has stopped for example), the functions won't do anything, but they want break anything. This to me says that id's are never recycled. So are there limits? If so what are the limits? 4. Finally, are there any plans for improving the sound pool system? Ideally I'd like to see it work in a similar way to the other main sound APIs. The reason being I target multiple platforms on the engine side, and have 100% generic game code, so I need to establish a base level interface to the API which will work across the board. This is made very difficult by the SoundPool API being set up to work in a specific way, as opposed to just having reasonable low level functions, and allowing the end user to wrap this up how they see fit. I like the fact there are high level classes around to handle this work of work, and I agree these should remain, but I'd like to see something perhaps lower level exposed, which the SoundPool could wrap around perhaps. Many thanks for your time, Steve -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] open other apk from my activity
You mean launch another application? You can set the package name and class name of the activity you want to start like this: Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName(packageName, className); An example for the package and class name might be: packageName = "com.android.alarmclock"; className = "com.android.alarmclock.AlarmClock"; This intent would be used then to start the stock android clock (if it's present on the device). On Sat, Jul 3, 2010 at 11:12 AM, CMF wrote: > HI, I want to open other apk from my activity. is there any way > similar to new Intent(...)? > > -- > 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 this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: https://dl-ssl.google.com/android/repository/repository.xml
You are not alone. The https link has never worked for me on Windows. Try http instead of https. That works for me. There's a Setting to force this to happen. Search this forum for similar reports. Also see: http://developer.android.com/sdk/eclipse-adt.html#troubleshooting On Jul 2, 3:31 am, Raj wrote: > Hi, > > When i dowloaded the Android for windows getting the Error "https://dl- > ssl.google.com/android/repository/repository.xml" during the > installation. Kindly let me the root cause for the problem as i > couldn't complete the installation. > > Thanks, > J.Gopi -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone
Could you say more about your idea - what kind of the flags can be helpfull? Do you think an alternative to FLAG_ACTIVITY_NEW_TASK flag or some additional flag(s) to FLAG_ACTIVITY_NEW_TASK? I spent a lot of time to fix this problem without of understandig it : ( I started a simple "launcher" activity from the service and started ACTION_CALL from the it. But it also doesn't work. My "launcher" activity is fine, but ACTION_CALL hangs up like from the service. I sent a broadcast message from the service to my activity and started ACTION_CALL from the it - not help - same bull...:( I think that it can be solved after understanding - why it happens. Probably the service should be running with some spesific attribute(s)? Probably it's a bug in InCallScreen activity? May be you know where I can find sources of 2.1-update1 firmware? Anyway, thank you very much! On Jul 3, 9:26 am, Mark Murphy wrote: > On Fri, Jul 2, 2010 at 6:11 PM, alex.tchumel wrote: > > I have a problem with starting ACTION_CALL activity from my service on > > Motorola Milestone after upgrade to 2.1 - update1 firmware version. > > > I have a very simple (worked before) code. > > > > > Intent dialIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel://" > > + dialOutNumber)); > > dialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > startActivity(dialIntent); > > > > Try getting rid of the setFlags() call and see if that helps. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training...At Your Office:http://commonsware.com/training -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] open other apk from my activity
HI, I want to open other apk from my activity. is there any way similar to new Intent(...)? -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Which development kit ?
Dear Stephane, Could I suggest you add http://www.mobiforms.com to your list. MobiForms is the world's first rapid application development tool designed for Android and is also cross platform compatible with other environments such as Windows Mobile and Symbian. MobiForms is ideal for creating data intensive business apps. With MobiForms there is no need to learn Java, XML, Eclipse or the Android SDK. Instead MobiForms offers one compact development and deployment environment with most programming done just by drag and drop. Kind regards, Tim @ MobiForms Stéphane wrote: > Greetings, > > Which environment do you use for your development and why ? > > - Google SDK ? > - http://rhomobile.com/ > - http://www.phonegap.com/ > - http://www.appcelerator.com/ > ... > Any suggestion ? > > Thanks for your comments, > > St?phane -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth pairing problem
No. I can only pairs without passkey. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't mark errors as old in the market developer console
To bump this thread... I also wish to "Mark as old" some exceptions in the market dashboard. But each time I just get the message "Server error" in red letters. Fix this please Google! On Jun 25, 5:32 pm, Olivier Guilyardi wrote: > Hi, > > in the developer console, I have a couple of errors, which although fixed in > the > code and markedoldin the console, still show up on the front page. And I > highly suspect that this is affecting the rank of my apps. > > This is obviously a bug in the developer console: > > 1. at the developer console homepage it says (in bold face): Errors (2) > > 2. when I click on "Errors", it shows: > > Freezes Crashes > 1 new 1 new > 0 reports 0 reports > 1old3old > 2 reports 7 reports > > 3. When I click on "1 New" in the "Freezes" column, it displays: > > OldANR keyDispatchingTimedOut 2 reports 0 reports/week > > 4. When I click on "1 New in the "Crashes" column, it says: > > OldNullPointerException 1 reports 0 reports/weekOldIllegalArgumentException 1 > reports 0 reports/weekOldNullPointerException 5 reports 0 reports/week > > As you can see these errors are all marked "old", and on individual error > pages, > there is only a "Markas new" button. > > Also, one of my apps, TapeMachine, has 4.5 stars, 973 downloads, and 83% > active > installs. For certain keyword searches in the market it has been the first > result for many weeks. And since these (bogus) errors are here, it has lost > its > rank falling under many applications with lower ratings. A similar issue > happened with the free version, which has 4 stars and about 20k downloads. > > Is there a workaround or a fix for this situation? > > -- > Olivier -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to handle SCREEN_OFF/_ON intents
Hi All, I'm trying to handle the events SCREEN_OFF and _ON when the device going to sleep mode. I tried creating the broadcast receivers registering in the manifest by using tag, and also tried using the registerReceiver() in a background running service, to get notified in all the times. But I couldn't receive any intent in my onReceive of both the cases. I want to display a dialog before the device is going to sleep mode. I tried creating the same in onReceive(), but I'm not getting the control to this place, when device is going to sleep mode. Could you please help me in solving this? Can you give me some suggestions, how it is working for you??? - Durga -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: is there an easier way?
Dear Friend, There is an easier way!!! If you want to master Android really fast then I suggest you have a look at rapid development tools such as our MobiForms Developer. MobiForms is the world's first rapid application development tool designed for Android and is also cross platform compatible with other environments such as Windows Mobile and Symbian. MobiForms is ideal for creating data intensive business apps. With MobiForms there is no need to learn Java, XML, Eclipse or the Android SDK. Instead MobiForms offers one compact development and deployment environment with most programming done just by drag and drop. For more information have a look at the MobiForms web site at: http://www.mobiforms.com Kind regards, Tim @ MobiForms Jokerstud31 wrote: > is there any other programs or ways to program with the SDK or the ADT > other then Eclipse because i am having nothing but troubles with it. -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with Quick Search Box: ContentProvider with a custom non-sqlite datasource
Mark (you legend!), thanks for heads up! MatrixCursor looks like just the kind of thing I need :D Cheers Charlie On Jul 3, 8:44 am, Mark Murphy wrote: > On Sat, Jul 3, 2010 at 3:41 AM, Charlie Chilton wrote: > > The problem is, that when the using the Quick Search Box, I can see > > the search query string arrive at my dummy content provider's query() > > method, but the main Activity doesn't get it's onCreate() called with > > a search intent; I suspect that this is because the dummy > > contentprovider returns Null for the cursor in the query() method, and > > then the SearchManager assumes there are no results to bother the > > activity with. > > Why are you returning null? Why not return a Cursor (e.g., > MatrixCursor) with the results of the query? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training...At Your Office:http://commonsware.com/training -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with Quick Search Box: ContentProvider with a custom non-sqlite datasource
On Sat, Jul 3, 2010 at 3:41 AM, Charlie Chilton wrote: > The problem is, that when the using the Quick Search Box, I can see > the search query string arrive at my dummy content provider's query() > method, but the main Activity doesn't get it's onCreate() called with > a search intent; I suspect that this is because the dummy > contentprovider returns Null for the cursor in the query() method, and > then the SearchManager assumes there are no results to bother the > activity with. Why are you returning null? Why not return a Cursor (e.g., MatrixCursor) with the results of the query? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with Quick Search Box: ContentProvider with a custom non-sqlite datasource
Hi, I've been trying to implement a quick search feature to my app Thinking Space this weekend without much success.. I've created a searchable.xml, modified the app's manifest, and created a 'dummy' content provider. My app doesn't use SQLite for data, as the searchable objects are MindMaps that are stored in XML files on the SDCard, so my trouble is with trying to get the Quick Search system to use my dummy content provider. My initial goal is just to have the opened map searchable, with the user's search queries being performed in code against the Java object model of the currently opened MindMap. The problem is, that when the using the Quick Search Box, I can see the search query string arrive at my dummy content provider's query() method, but the main Activity doesn't get it's onCreate() called with a search intent; I suspect that this is because the dummy contentprovider returns Null for the cursor in the query() method, and then the SearchManager assumes there are no results to bother the activity with. Has anyone else had success in utilising the Quick Search Functionality with non-SQLite datastores? Or should I abandon trying to use the Quick Search functionality like this, and implement my own method of doing it? Any help appreciated! Thanks Charlie -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: from FRF50 to FRF91
There was a FRF83 to FRF85B link circulating for a while, but it seems to have been pulled now. Your best option may be drop back to a 2.1 stock firmware and wait for OTA updates. Al. On Jul 3, 12:47 am, Ken H wrote: > Anyone know where (or if) I can manually update from FRF50 to FRF91? > I've got files for going from FRF50 to FRF83, and from FRF85B to > FRF91, but nothing in between. > > Ken -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Error in an XML file eclipse
Have you guys put this information into b.android.com so it can be logged & tracked easily? Al. On Jul 2, 7:26 pm, Ryan Cook wrote: > I am also having this issue on multiple machines. It was working > before, and I think it stopped working (and started giving error) > after I upgraded to Helios (3.6). > I also tried removing all the strings entries from the file then > adding them through the GUI interface; it adds them with the same > format that and everything, but, if I hit save, close it, and then re- > open it, I get the same error. > > My Setup > == > OS: Windows XP Pro SP3 32bit > Eclipse: Helios (3.6.0.I20100608-0911) > ADT: 0.9.7.v201005071157-36220 > Android SDK Tools: r6 > Platform SDK: 2.1-update1, API 7, r2 > Java: 6 Update 20 > > Error Details > == > Problems occurred when invoking code from plug-in: > "org.eclipse.jface". > > java.lang.NullPointerException > at > org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(Elem > entImpl.java: > 259) > at > org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(Eleme > ntImpl.java: > 329) > at > com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShort > Description(Unknown > Source) > at > com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvid > er.getText(Unknown > Source) > at > org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerL > abelProvider.java: > 108) > at > org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLa > belProvider.java: > 164) > at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java: > 152) > at > org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe > r.java: > 934) > at org.eclipse.jface.viewers.AbstractTreeViewer > $UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) > at > org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe > r.java: > 1014) > at org.eclipse.jface.viewers.StructuredViewer > $UpdateItemSafeRunnable.run(StructuredViewer.java:481) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) > at > org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java : > 2141) > at > org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeVie > wer.java: > 2689) > at > org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(Abstract > TreeViewer.java: > 1867) > at > org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java: > 721) > at > org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi > ewer.java: > 1842) > at > org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi > ewer.java: > 1799) > at > org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeVi > ewer.java: > 1785) > at org.eclipse.jface.viewers.StructuredViewer > $7.run(StructuredViewer.java:1487) > at > org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVi > ewer.java: > 1422) > at > org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java: > 403) > at > org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredVi > ewer.java: > 1383) > at > org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java: > 1485) > at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java: > 537) > at > org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java: > 1444) > at com.android.ide.eclipse.adt.internal.editors.ui.tree.UiTreeBlock > $2.uiElementNodeUpdated(Unknown Source) > at > com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.invokeUi > UpdateListeners(Unknown > Source) > at > com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.loadFrom > XmlNode(Unknown > Source) > at > com.android.ide.eclipse.adt.internal.editors.resources.ResourcesEditor.xmlM > odelChanged(Unknown > Source) > at com.android.ide.eclipse.adt.internal.editors.AndroidEditor > $XmlModelStateListener.modelChanged(Unknown Source) > at > org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.fireModelCh > anged(AbstractStructuredModel.java: > 553) > at > org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.internalMod > elChanged(AbstractStructuredModel.java: > 887) > at > org.eclipse.wst.sse.core.inte
[android-developers] Re: Simple Question about Res folders
They are *not* for resolutions. They are for screen densities (i.e. the number of pixels per inch on the screen). To illustrate this point, the Nexus One and the Dell Streak both have screens with a resolution of 800x480 pixels, but because the Nexus One has a smaler physical screen it has a hight pixel density, so the Nexus One uses assets from drawable-hdpi and the Dell Streak uses assets from drawable-mdpi. Al. On Jul 2, 3:45 pm, Kostya Vasilyev wrote: > 02.07.2010 18:37, B Woods пишет:> What are the differences between > drawable-hdpi, drawable-ldpi, and > > drawable-mdpi? Do I need to place my graphics in each of these folders? > > They are versions of the same graphics files for different screen > resolutions. > > If you don't provide hdpi and ldpi versions, Android loads the default > version from drawable and scales it as necessary. > > Sometimes this looks ugly, so you need to provide alternative versions > yourself. This can be done individually for each graphics file used in > your app's UI. > > http://developer.android.com/guide/practices/screens_support.html > > -- > Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Terminal Server access from an Android Tablet PC
You'll probably get a better answer on the android-discuss group. Regards, Al. On Jul 2, 9:26 pm, Peter Ciank wrote: > Dear People, > > very soon, I have to implement for my users something smaller than a > notebook. I've been searching and researching and I found iPad and > other Tablets with Android. I'm very interested in Android because, I > think, it's more flexible but one thing will deerminate my solutions > and it's gonna be "being able to connect to a Terminal Server". It's > the only way the can access tp their emails and other documents > securly. > > Do you know any free or paid software to perform this? > > Thanks in advance! > > Peter -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: User comments available in the developer console!
I'm of the opinion that those users who leave negative and incorrect feedback are a lost cause. What the comments we as developers leave are there for new users so they aren't confused by those incorrect negative words. -John Coryat -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GridView Issue
I am trying to show a textview below the gridview but it doesnt seem to work. The textview never appears. Below is the code i am using. Please suggest me how to use a TextView below the GridView. http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:background="@drawable/blue" android:layout_width="fill_parent" android:layout_height="wrap_content"> Thanks, Lardy -- 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en