[android-developers] Nexus 5X can not function well after flashing
Hi, All I've tried to build the Nexus 5X and the phone can not function well after "fast boot flashall" 1. it will hung in the booting screen for a long time 2. the bluetooth can not work after finishing booting After I replaced the system.img with the one in the offical release and it become OK. What's the issue with my build procedure? I downloaded the branch android-6.0.1_r10 (MMB29P) which I suppose support Nexus 5X. Then ./build/envsetup.sh lunch asp_bullhead-userdebug make -j8 fastboot -w flashall Thanks in advance Regards Wei -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/ddd0d159-2f3b-43e5-86e3-a8622dddfe83%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] YUV to RGB?
I'm writing a multimedia app. But I found it so confusing that Android APIs seem not providing methods to check if the output images (NV21 or YV12) are: 1. fullrange(0-255) or videorange(16-235) 2. ITU R bt. 601 or bt. 709 matrix based These info are essential to convert images between yuv and rgb. For comparison, in iOS image capturing, range preference can be specified during camera initialization and the color matrix info (bt. 601/bt. 709) is attached to imagebuffer. Any info would help, thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/59ea9b5a-ffd4-47f0-98bc-4adb5e914bde%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: noob developer, application keeps restarting
Murphy's logic should be subject to Murphy's law... On May 29, 9:03 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, May 29, 2012 at 10:53 AM, Yan yinor...@gmail.com wrote: Is it safe to assume the new activity will have priorty over the previous activity that is no longer accessible? Since I have no idea what you are talking about, I certainly cannot assume that. Will there not a potentially corrupted zombie-process still lurking as the app continues on its merry way? Only if you are a lousy developer. Is it not more likely an exit() of some kind would allow the system to clean-up unforeseen effects of the corruption than the chance that the system would bringing any back from the dead the next time the app starts up? By definition, to use exit() properly, you have to detect the conditions where exit() is needed. And, if you can detect when exit() is needed, then you do not need to call exit() -- you can reset your app to a well-known good state. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/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: Z-fighting in OpenGLES only?
Yes, I was getting a 16bit z-buffer, but discovered that OpenGLES needs ClearDepth to also be called from onDrawFrame! In the process of checking all my devices for 16bit buffers I noticed that most of them do not even support 24bit buffers, and those that do default to 16bits anyway. Now that really makes me wonder what percentage of Android devices out there even support 24bits? On May 29, 9:18 am, RichardC richard.crit...@googlemail.com wrote: Are you sure you are getting a 16bit z-buffer? What values of near and far are you using? On Tuesday, May 29, 2012 3:51:18 PM UTC+1, Yan wrote: I'm getting z-fighting polys on every Android device I test, but the same code has been working on ancient OpenGl platforms. The depth seems to behave as if it even less than 16, even with polys a magnitude apart than ususal. Is this another something specific to OpenGLES implementations? -- 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: Ball Racing
There's some API Demos close to what you're try do. Take a look at AnimateDrawables or FingerPaint for example... On May 28, 1:34 pm, Jagadeesh mjagadeeshb...@gmail.com wrote: Hi iam making game application ,i have designed gameplate with background and grid with canvas and paint . i need insert one ball with screen keepon coming from top of the screen how to implement ,i was trying insert image but background domainating can any one help this. here my code: package com.ibr; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.os.Bundle; import android.view.Display; import android.view.KeyEvent; import android.view.View; public class BallRacing extends Activity { DemoView demoview; int width = 0; int height = 0; int pass = 0; int xpos = 0; int ypos = 0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); demoview = new DemoView(this); setContentView(demoview); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { return super.onKeyDown(keyCode, event); } private class DemoView extends View { public DemoView(Context context) { super(context); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); // custom drawing code here // remember: y increases from top to bottom // x increases from left to right Paint paint = new Paint(); paint.setStyle(Paint.Style.FILL); // make the entire canvas white paint.setColor(Color.TRANSPARENT); canvas.drawPaint(paint); Display display = getWindowManager().getDefaultDisplay(); width = display.getWidth();//start height = display.getHeight();//end xpos = width / 7; ypos = height/7; for (int i = 0; i 7; i++) { paint.setColor(Color.WHITE); canvas.drawLine(xpos +(xpos*i), 0, xpos +(xpos*i), height, paint); //canvas.drawLine(startX, startY, stopX, stopY, paint) } paint.setStyle(Style.STROKE); for (int i = 0; i 15; i++) { paint.setColor(Color.WHITE); canvas.drawLine(0, (ypos*pass)+ 5, width, (ypos*pass)+5, paint); pass++; } } } } -- 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: Hardware accelerated Canvas.drawPicture support (or recommended alternatives)
One alternative would be to use OpenGL in 2D. There are a lot more examples out there of what you're trying to do, plus it could potentially run on other platforms... On May 27, 12:51 am, Josh Guilfoyle jast...@gmail.com wrote: I am hoping to use the svg-android project to implement a dynamic SVG viewer for files with fairly large amounts of detail. My initial smoke tests are promising as the SVG files I am using are rendered correctly however performance is poor without any sophisticated drawing optimizations. I believe this is due to the usage of Canvas.drawPicture (svg-android translates the SVG document structure into a single Picture), preventing hardware acceleration on supporting devices and possibly being implemented without efficient trimming of areas outside the clip bounds. Before I begin significant or fundamental optimization however, I'd like to confirm a few things about Android's rendering pipeline (both recent and older versions). Hopefully this will allow me to utilize existing research already conducted by the Android team or other community developers. Specifically: 1. What performance gotchas may exist with simply constructing my own macro notion of a Picture and replaying the raw Canvas operations on draw? That is, define a very simple op-code interpreted language in which I can represent a Picture and simply execute it on draw myself much like how I assume Picture is natively implemented. Will this alone be sufficient to permit hardware acceleration? I'm assuming no given that Android developers would have implemented drawPicture on the hardware accelerated path if it were this simple, but I'd like to understand why and if there may be anything I can do to mitigate the issues in my specific case. 2. I believe an asynchronous tiling bitmap layer may be an appropriate solution where sections of the SVG are dynamically rendered to off- screen bitmaps and blitted on screen. A separate renderer thread would be used to manage writing to a cache of off-screen bitmaps. Can hardware acceleration help in some way with this off-screen rendering or would it merely kick in with improved performance when blitting those tiles to screen? If no, I may be able to avoid the issues with #1 entirely since hardware acceleration wasn't going to speed up the off-screen rendering anyway. 3. What is the runtime nature of attempting to draw paths and primitives (lines, rects, etc) that are entirely outside the canvas' clipped bounds? Is it necessary or appropriate for me to call Canvas.quickReject myself or can I rely on this rejection happening at a lower level automatically? Can I expect that it behaves consistently when drawing a Picture versus drawing a Path? This is especially important if I implement a tiling renderer as per #2 where a large number of draw requests will be made for the full graphic to render into discrete sections. If Canvas cannot reasonably minimize cycles for this case I will likely need to implement my own culling optimizations. If anyone has other suggestions for things I didn't consider please feel free to let me know. I'm hoping to drive toward an elegant and efficient solution that works optimally on newer hardware but with acceptable performance on other devices. -- 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: starting avd fails, saying it can't find emulator, but it exists
I recall this happening because something failed when installing the Eclipse plugins. The only way could resolve that was to install an older version of Eclipse and always run it from the terminal (so Ubuntu would not load the newer broken one)... On May 25, 8:35 pm, David Karr davidmichaelk...@gmail.com wrote: 0 down vote favorite share [g+] share [fb] share [tw] I've installed the SDK on Ubuntu 12.0.4. I started up the SDK manager and updated several packages. I ran the avd manager and tried to create an avd, but it just failed with no information. I then tried to create the avd from the command line, using the same information I tried to use from the gui, and it worked. When I tried to start that AVD, it failed with (some strings elided): Failed to start emulator: Cannot run program myhome/apps/android/ android-sdk-linux/tools/emulator: java.io.IOException: error=2, No such file or directory This is what I see when I look for this file: $ ls -lt myhome/apps/android/android-sdk-linux/tools/emulator -rwxrwxr-x 1 me me 24828 May 25 08:20 myhome/apps/android/ android-sdk-linux/tools/emulator* As you can see, the path it's looking for DOES exist. What's going on here? -- 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] Z-fighting in OpenGLES only?
I'm getting z-fighting polys on every Android device I test, but the same code has been working on ancient OpenGl platforms. The depth seems to behave as if it even less than 16, even with polys a magnitude apart than ususal. Is this another something specific to OpenGLES implementations? -- 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: noob developer, application keeps restarting
Is it safe to assume the new activity will have priorty over the previous activity that is no longer accessible? Will there not a potentially corrupted zombie-process still lurking as the app continues on its merry way? Is it not more likely an exit() of some kind would allow the system to clean-up unforeseen effects of the corruption than the chance that the system would bringing any back from the dead the next time the app starts up? On May 28, 3:11 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, May 28, 2012 at 4:56 PM, Yan yinor...@gmail.com wrote: Thanks for the idea to pull out the battery notification! You guessed right about the category of people treating Android like Linux. Which begs the question of what system call would you use if your app's data got corrupted and the final() call could not handle it. Would you consider it permissible to kill your own process? No. In the beginning, the device does not have your app. Then, the user installs your app. Then, the user runs your app for the first time. At this moment, your app has no data on persistent storage (e.g., databases). Hence, your app needs to handle the first-run scenario where your app has no data on persistent storage -- otherwise, your app can never run successfully, and this is all a moot point. Similarly, at this moment, your app has no data in memory (e.g., static data members). Hence, your app needs to handle the first-run scenario where your app has no data in memory -- otherwise, your app can never run successfully, and this is all a moot point. If, during the operation of your app, you determine that your data is irreversibly corrupted, you wipe the data in persistent storage, null out the static data members, and start over, along with launching an activity with FLAG_ACTIVITY_CLEAR_TOP + FLAG_ACTIVITY_SINGLE_TOP to let the user know that you had to wipe out their data. You do not need to terminate your process to achieve any of this. -- 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: noob developer, application keeps restarting
Thanks for the idea to pull out the battery notification! You guessed right about the category of people treating Android like Linux. Which begs the question of what system call would you use if your app's data got corrupted and the final() call could not handle it. Would you consider it permissible to kill your own process? On May 26, 9:46 am, Kristopher Micinski krismicin...@gmail.com wrote: On Sat, May 26, 2012 at 11:37 AM, Yan yinor...@gmail.com wrote: Yes, strongly recommended against is more realistic, and polite, than universally a sign that the programmer took the cheap, unprofessional way out. Its good to see of other ways of handling corruption. Because Dianne works for Google, she has to be a lot more professional because anything she says will probably subsequently be quoted. I'll put it this way: in all of the questions seen here, situations brought up by people, including all of the examples you have provided so far, there is *always* a better way, and this has *universally* been used by people who took a C programming course where they (also taking the cheap way out, doubly so in the presence of threads) were taught to do an exit(n) whenever they needed to just quit. They then saw the method, without fully understanding the Android lifecycle / system interaction, and transcribed that experience over to their new apps. This behavior goes in the bin with people treating Android like Linux. There's no doubt what the professional-opinion is in the episode when the OFF button is outlawed... Of course, typically the off button these days is simply a sleep button.. and to get the real effect you have to pull out the battery :-)... kris -- 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: noob developer, application keeps restarting
Oops, I meant finish(), not final()... Thanks for the idea to pull out the battery notification! You guessed right about the category of people treating Android like Linux. Which begs the question of what system calls would you use if your app's data got corrupted and the final() could not handle it. Would you consider it permissible to kill your own process? On May 26, 9:46 am, Kristopher Micinski krismicin...@gmail.com wrote: On Sat, May 26, 2012 at 11:37 AM, Yan yinor...@gmail.com wrote: Yes, strongly recommended against is more realistic, and polite, than universally a sign that the programmer took the cheap, unprofessional way out. Its good to see of other ways of handling corruption. Because Dianne works for Google, she has to be a lot more professional because anything she says will probably subsequently be quoted. I'll put it this way: in all of the questions seen here, situations brought up by people, including all of the examples you have provided so far, there is *always* a better way, and this has *universally* been used by people who took a C programming course where they (also taking the cheap way out, doubly so in the presence of threads) were taught to do an exit(n) whenever they needed to just quit. They then saw the method, without fully understanding the Android lifecycle / system interaction, and transcribed that experience over to their new apps. This behavior goes in the bin with people treating Android like Linux. There's no doubt what the professional-opinion is in the episode when the OFF button is outlawed... Of course, typically the off button these days is simply a sleep button.. and to get the real effect you have to pull out the battery :-)... kris -- 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: noob developer, application keeps restarting
Yes, strongly recommended against is more realistic, and polite, than universally a sign that the programmer took the cheap, unprofessional way out. Its good to see of other ways of handling corruption. There's no doubt what the professional-opinion is in the episode when the OFF button is outlawed... On May 25, 6:42 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, May 25, 2012 at 8:30 PM, Yan yinor...@gmail.com wrote: I agree it may be dirty and icky, but its presumptuous to state that You should absolutely *should not* be doing this. Not particularly. There are many real-world situations where a program must be exited imediately or this call would not have been made available in the Android API. https://groups.google.com/group/android-developers/browse_thread/thre...https://groups.google.com/group/android-developers/browse_thread/thre... If the authors of Android (e.g., Ms. Hackborn) tell you not to do something, you would be well advised to heed their warnings. -- 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] Re: noob developer, application keeps restarting
I agree it may be dirty and icky, but its presumptuous to state that You should absolutely *should not* be doing this. There are many real-world situations where a program must be exited imediately or this call would not have been made available in the Android API. Perhaps you all don't remember the programmer that got sued for a bug that killed a patient with too much radiation because he didn't stop the program. There are many other non life-threatening cases where the right thing to do is to just halt the program. What would you do if you had zombie-game that users start running on some really slow devices and the frame-rate grinds down to 2 fps and your zombies look, well too dead, and then your app starts getting really bad ratings??? On Friday, May 25, 2012 12:08:48 AM UTC-6, Kristopher Micinski wrote: Because it's dirty, kills resources, goes against the application lifecycle, is a dangerous way of destroying things without finalizing things first, ... basically, for the same reasons you don't want to unplug your machine while it's running... kris On Fri, May 25, 2012 at 1:47 AM, Yan wrote: Why? On May 21, 10:07 am, Kristopher Micinski wrote: On Mon, May 21, 2012 at 9:45 AM, Yan wrote: An easier but less graceful way is just to System.exit(0) in the onPause then start from scratch every time... You absolutely *should not* be doing this. kris -- 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: noob developer, application keeps restarting
Why? On May 21, 10:07 am, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, May 21, 2012 at 9:45 AM, Yan yinor...@gmail.com wrote: An easier but less graceful way is just to System.exit(0) in the onPause then start from scratch every time... You absolutely *should not* be doing this. kris -- 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] LogCat popping up with HDMI errors
Whenever I start playing audio with the MediaPlayer on the HTC EVO 4G the LogCat comes up in Eclipse with these two red messages: HDMIStatusObserverstatus: UNPLUG MediaPlayeronHDMIStateChanged I know HDMI is not part of the Android API but should there be any concern about these messages? I would prefer not to switch to another device given that the EVO is the only one that allows me to turn off all the screensavers for an indefinite period of time... -- 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: factory data reset in source code?
You could get alot of people with unlocked devices mad at you if their phones get relocked and they don't have a code to unlock them again... On May 20, 7:42 pm, Serj bekdja...@googlemail.com wrote: Hi guys, can someone tell me which class in the source code of Android 2.x.x implements a function for menu icon Settings/Privacy/Factory data reset? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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: Using eclipse with ubuntu
With some of the *buntus you have to change the USB Vendor ID in the SYSFS{idVendor} statement for every device, but with some of the more recent *buntus you only have to set it up for one USB Vendor ID then after that it will recognize most any other devices plugged in, that is, if you only plug one in at a time... On May 21, 1:59 am, Yaron Reinharts yaron.reinha...@gmail.com wrote: Hi, Did you follow this guide (section 3)?http://developer.android.com/guide/developing/device.html Hope this helps /Yaron -- Yaron Reinharts Smart Drive Applicationshttp://www.poncho.co.il/gateaway.phphttps://market.android.com/details?id=com.poncho.gsm.gate.activities On 05/18/2012 02:55 AM, Telmo Neves wrote: Hi everybody I am developing an application to android and now i want to test it in my android samsung with froyo but i am using eclipse in ubuntu and is never reconigzed. I appreciate any help Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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: Performance issues on android
I just sprinkle Log.d's with time deltas around the bottleneck areas and see what's wasting time... On May 17, 7:53 pm, Henry pup...@gmail.com wrote: Hi - I have an android app that is continuing to have loading and speed issues, regardless of the numbers of users. Does anyone have experience is performance optimization on android that might be able to help? Please let me know Thanks, Henry -- 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: Bitmap rotation performance
They could possibly be using an OpenGL texture to do that in a very fast manner... On May 18, 7:48 am, Mauro mau.non...@gmail.com wrote: Hi you all, the question is simple: how to accomplish the bitmap rotation for big size bitmap without blocking the user for a lot of seconds? For example in the default android gallery you can rotate an image in a very fast manner. I thought to apply the matrix rotation on the ImageView (which can be done in a few time) and compute the same matrix rotation for the bitmap on an AsyncTask, but if the app is stopped before the task termination i get an inconsistent state. Any help will be appreciated. Thanks, Mauro. -- 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: noob developer, application keeps restarting
An easier but less graceful way is just to System.exit(0) in the onPause then start from scratch every time... On May 21, 1:14 am, Raghav Sood raghavs...@gmail.com wrote: When it is in the background, Android kills your application when it needs more resources. One way to keep your data would be to write it to SharedPreferences in onPause(), and read it from the same in onResume(). http://developer.android.com/reference/android/content/SharedPreferen... Thanks On Thu, May 17, 2012 at 12:33 AM, jon dattilo j.dattil...@gmail.com wrote: Hi everyone, I'm working on developing my first real application beyond the basic tutorials. It is a fairly simple flashcard program for me to use in school and I have it up and running smoothly. It utilizes a set of variables to keep track of how many and which cards I have seen, nothing too fancy. However, sometimes when I switch to another application and come back to my program, it restarts everything, while in other instances it will pick up where the program left off. There doesn't seem to be any pattern to when the program resets, and I don't have any task killer software installed that would end the program without my knowledge. I am inquiring how I tell the program to simply continue running in the background, and then if there is a function I can insert to quit the program so I can assign that to a button? I posted the start up code below, and would be happy to post more if someone could direct me to what would be relevant. As you can see I have it programed to go to the app's home screen when the app loads for the first time, which works if the app has quit and is restarting, but in most circumstances it resumes the flashcard portion, almost as if you had loaded the program and pressed the resume button from the home screen (which is what I want to happen all the time). I would be fine with loading the home screen every time someone switched out of the application, as long as the variables didn't reset when that happens. Any advice would be much appreciated. @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.home); goHome(); } public void goHome(){ //defines the home screen setContentView(R.layout.home); final Button instructionButton = (Button) findViewById(R.id.instructionButton); instructionButton.setOnClickListener(this); final Button newButton = (Button) findViewById(R.id.newButton); newButton.setOnClickListener(this); final Button resumeButton = (Button) findViewById(R.id.resumeButton); resumeButton.setOnClickListener(this); final Button reviewButton = (Button) findViewById(R.id.reviewButton); reviewButton.setOnClickListener(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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them.http://www.appaholics.in/- Founderhttp://www.apress.com/9781430239451- Author +91 81 303 77248 -- 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: surface (identity=xxxxx) is invalid, err=-19 (no such device)
At what exact points in your code does this happen? On May 17, 9:55 pm, Tamás Kovács falcon.firebre...@gmail.com wrote: This is a logcat ERROR entry which I get in 3 (three) instance at the same time, but the game I develop works fine. I'm just worried because this is an error, not a warning. I get the 3 identical entries when my game screen (GLSurface) is resumed due to Activity.onResume(). The screen behavior is absolutely fine in the same practice. Details: my game is subject to GLSurfaceView.onResume() as well as orientation change (i.e. it's set to landscape in the manifest and in configchanges, but obviously Android needs to change orientation to landscape when I return from my home screen to the game). So I get the error shortly after the GL thread is resumed (during texture reloading). Should I worry? It's an Error, after all. -- 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 Emulator
I would think that's going to grind the emulator to a near halt on just about any machine, even if it has good drivers for that resolution... On May 18, 12:29 pm, ASHISH ashishkcusa...@gmail.com wrote: Hi, I want to create a avd based on GT-S5760 Samsung, Screen Resolution 2592 x 1944 , My Problem is every time when i create AVD with above configuration My Emulator did not start .I am using SDK 4.0. Please help!! Thanks And Regards Ashish Keshri -- 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: lsusb unable to enumerate an HTC G1
I tried all that you suggested except booting in recovery since I don't have one of the old-style SD cards for it. One thing I neglected to mention is that when I plug in the USB cable the G1 gives the notification USB debugging connnected; A computer is connected to your phone. I wonder if that in itself rules out it being a hardware issue? On Apr 6, 9:16 am, Chris Stratton cs07...@gmail.com wrote: Could be either an electrical failure or a low level usb software failure, on either the device or pc end, or the cable. If the device is running ordinary software, you might try it on another computer or even another USB port on the same computer (especially switching between front and rear panel ports). For an marginal-electrical-performance issue putting a hub in between can get you a different roll of the dice. On the software side, IIRC even with USB debugging not enabled in settings you would still see something of a USB interface, but that could be something to check as well. To try a different software environment you could boot the device to recovery and see if you have USB there. -- 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: rotating map
Looks like the text is sharing the canvas that's being rotated... On Apr 5, 9:56 am, RedBullet scottedchap...@gmail.com wrote: And for completeness for the rotation I do the following: public void onSensorChanged(SensorEvent event) { RideRouterApp.i(String.format(Sensor Name: %s, oriented %f, event.sensor.getName(), event.values[0])); synchronized (this) { mHeading = event.values[0]; invalidate(); } } @Override protected void dispatchDraw(Canvas canvas) { canvas.save(Canvas.MATRIX_SAVE_FLAG); canvas.rotate(-mHeading, getWidth() * 0.5f, getHeight() * 0.5f); mCanvas.delegate = canvas; super.dispatchDraw(mCanvas); canvas.restore(); mapView.invalidate(); } -- 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: What needs to be considered about memory/management usage
When importing data into memory do it in small chunks because you don't want to get to close to your heap limits given by: Runtime.getRuntime().maxMemory() On Apr 5, 4:35 am, srikanth srikanth0...@gmail.com wrote: Hi , I wanted to know some information regarding memory management of android while writing system level tests. I am new to android and android architechture. While writing test/ cases related to system testing, what needs to be considered under point of reference when comes to memory management through out android from user perspective. Like if i want to test Contacts - I am importing several contacts via account/vcard/etc.. Where exactly will be the chances for memory point of view. Like wise what needs to be considered through out Android irrelevant to application. Any inputs would really helpful. -- 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] lsusb unable to enumerate an HTC G1
What's the most likely problem with this? Previously had this problem with the HTC EVO 4G and it was the cable, but with the G1 I've tried 3 different cables and this is all dmesg shows: [10055.352028] usb 2-7: new full speed USB device using ohci_hcd and address 94 [10055.532018] usb 2-7: device descriptor read/64, error -62 [10055.816021] usb 2-7: device descriptor read/64, error -62 [10056.096023] usb 2-7: new full speed USB device using ohci_hcd and address 95 [10056.276022] usb 2-7: device descriptor read/64, error -62 [10056.560024] usb 2-7: device descriptor read/64, error -62 [10056.840019] usb 2-7: new full speed USB device using ohci_hcd and address 96 [10057.248033] usb 2-7: device not accepting address 96, error -62 [10057.424028] usb 2-7: new full speed USB device using ohci_hcd and address 97 [10057.832026] usb 2-7: device not accepting address 97, error -62 [10057.832049] hub 2-0:1.0: unable to enumerate USB device on port 7 -- 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 can i make my texture (or polygon) transparent when i want? (opengl es 1.1)
That depends on how you currently display things. If you post some code perhaps someone could give you an idea of how to change it... On Mar 2, 1:31 am, saex elpablos...@gmail.com wrote: How can i do that? El viernes 2 de marzo de 2012 07:44:42 UTC+1, Yan escribió: Using the alpha values would add a huge layer of complexity to your program. Perhaps instead you may consider having a switch in your code to throw those polygons in your color buffer rather than your texture buffer... On Thursday, March 1, 2012 9:53:44 AM UTC-7, saex wrote: I have a square polygon with a texture (opengl es 1.1), and i need that when i want the polygon get's invisible and when i want the polygon turn's visible again. It's frustrating because seems to be a very easy thing but i can't find any tutorials or examples for do it on google or stackoverflow. please, can someone give me a sample to do it? thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 do I change the SDK version used in an application?
Sometimes Eclipse gets never gets it straight so I give-up and cut-and-paste the old project into a new one... On Thursday, March 8, 2012 6:17:41 AM UTC-7, Mark Murphy (a Commons Guy) wrote: Install it on a different device that runs a different version of Android. If you mean how do you control the build target, in Eclipse, you will find this in the Android area of project properties . On Tue, Mar 6, 2012 at 2:09 AM, R Keith Beal wrote: How do I change the SDK version used in an application? -- 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: Rounded Rectangle Image
If the background color is always going to be the same then perhaps just change the corners of the image to the same color as the background. (Even if its not, like my icons in the Android Market, it still looks fine). On Monday, March 5, 2012 5:37:38 AM UTC-7, Pricillia wrote: Hello guys, actually I am a newbie here I am not too really understand about android programming but I am trying to make a rounded rectangle image overview I try to googling but somehow it's show about shape, but I need to make rounded rectangle image from rectangle image. Can you guys help me? -- 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: Difficulty rendering an octahedron (2 pyramids attached at the bottom to each other)
Putting the phrase homework project in this group is probably not going to get you much help, but since I love this subject so much, how about just changing the colors to random combinations they are not already. It should not take too long to find the solution... On Monday, March 5, 2012 2:06:14 PM UTC-7, geoklee wrote: I am having difficulty with my homework project rendering an octahedron by modifying an existing project that renders a pyramid. The hint given is to change the vertices, colors, and indices objects. I did that but the best I could generate is the existing pyramid with 1 or 2 faces of the inverted pyramid shown while it is rotating on screen. I have been changing the order of the indices and vertices but still can not solve the problem. I think these values are correct if I draw it on paper. I would appreciate some tips to solve the problem as I have not make any progress after days of fruitless tinkering. Perhaps I need to modify other code? Thanks in advance! Here are the values of the vertices, colors, and indices: private float[] vertices = { // 6 vertices of the pyramid in (x,y,z) -1.0f, -1.0f, -1.0f, // 0. left-bottom-back 1.0f, -1.0f, -1.0f, // 1. right-bottom-back 1.0f, -1.0f, 1.0f, // 2. right-bottom-front -1.0f, -1.0f, 1.0f, // 3. left-bottom-front 0.0f, 1.0f, 0.0f, // 4. top //added vertex 0.0f, -3.0f, 0.0f // 4. bottom }; private float[] colors = { // Colors of the 6 vertices in RGBA 0.0f, 0.0f, 1.0f, 1.0f, // 0. blue 0.0f, 1.0f, 0.0f, 1.0f, // 1. green 0.0f, 0.0f, 1.0f, 1.0f, // 2. blue 0.0f, 1.0f, 0.0f, 1.0f, // 3. green 1.0f, 0.0f, 0.0f, 1.0f, // 4. red //added color 1.0f, 1.0f, 0.0f, 0.0f // 5. yellow }; private byte[] indices = { 2, 4, 3, // front face (CCW) - same as 4,3,2 or 3,2,4 4, 2, 1, // right face - same as 2,1,4 or 1,4,2 0, 4, 1, // back face - same 4,1,0 or 1,0,4 4, 0, 3, // left face - same 0,3,4 or 3,4,2 // inverted pyramid 3, 5, 2, 2, 5, 1, 1, 5, 0, 3, 5, 0, }; -- 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: Turn Screen Off/on
Why not just display the screen black a few times??? On Tuesday, March 6, 2012 11:30:24 AM UTC-7, Levi Ribeiro wrote: Hi, I'm trying to do a simple test, where the screen turn off and on several times. something like that: -- 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: Go To ( http://adf.ly/20PrE )-)-) Re: [android-developers] Re: Losing memory on tablet but not phone
Okay, I'm using VBO's to get around it, but now there's the same problem with BitmapFactory. Regardless of the amount of textures I load, there are always three textures that waste 2/3 the size of the texture + 64k. For example if the texture is 512x512x3=786432 then it consumes 512x512x2 + 64k = 589824 bytes. Multiply that by three and that's almost a couple MB of the precious heap that's lost forever, and probably a few extra million phones that will never run my app... On Mar 5, 1:06 pm, yinor...@gmail.com wrote: I may have to try using VBO's to get around 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: How can i make my texture (or polygon) transparent when i want? (opengl es 1.1)
Using the alpha values would add a huge layer of complexity to your program. Perhaps instead you may consider having a switch in your code to throw those polygons in your color buffer rather than your texture buffer... On Thursday, March 1, 2012 9:53:44 AM UTC-7, saex wrote: I have a square polygon with a texture (opengl es 1.1), and i need that when i want the polygon get's invisible and when i want the polygon turn's visible again. It's frustrating because seems to be a very easy thing but i can't find any tutorials or examples for do it on google or stackoverflow. please, can someone give me a sample to do it? thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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: OpenGL es and min3d - textures only load on certain hardware and how to fix.
Well there's an API calls that can easily load several different standard graphics file formats, for example: //Get the texture from the Android resource directory InputStream is = context.getResources().openRawResource(R.drawable.onlylowercasefilenameshere); Bitmap bitmap = null; try { //BitmapFactory is an Android graphics utility for images bitmap = BitmapFactory.decodeStream(is); } finally { //Always clear and close try { is.close(); is = null; } catch (IOException e) { } } If you are concerned about people replacing your image files with something else, then you can make that more difficult by doing some sort of checksum before using them. Otherwise, if you are concerned with people getting exact copies of standard image files, I don't know what to tell you. I wonder if anybody can suggest an efficient solution for that? On Thursday, March 1, 2012 4:34:00 AM UTC-7, Jim Andresakis wrote: Im using min3d to draw 3d boxes and Im applying textures to them in the updateScene method which works great on some devices and on others the textures wont load. Ive tried debugging by turning on the glflags but I dont see any errors what so ever. Ive done a lot of reading and googling the past two days on the matter and it looks like theres no real good answer on why opengl would work on one device and not on another. So far Ive tried making sure the images were in the power of two and that wasnt it. The way that Im accessing the images to use as bitmaps is by pulling bitmaps from images that are stored on the devices internal file system. I read in one thread some where that instead of decoding a file to make a bitmap you could turn the file into a stream and then decode that as a bitmap and that would work but I havent even tried doing that since I spent most of my time trying to debug to find any nullpointers or anything. At first I thought I had found some null textures but they were just textures that hadnt initialized yet. So as this is a common problem on android I was hoping others could help me out by shedding some light on how they tackled the problem of opengl textures not loading on certain devices. -- 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: ProgressBar in OpenGL
Maybe you should move the code that's slow-loading into your onDrawFrame along with some extra conditions something like this: if (continueLoading) { ContinueLoadingPartsHere(); DrawSomeMoreProgressBarHere(); if (loadingPartsDone) { continueLoading = false; } } if (!continueLoading) { DisplayTheMainGraphicsCodeHere(); } On Thursday, March 1, 2012 9:02:22 AM UTC-7, Rikki wrote: I need to create multiple progress bars in OpenGL. Can anybody help in creating that. 1.x or 2.0 any will be okay to use. I have tried a lot to achive that but all efforts in vain and I need to show something concrete in a very short duration. it will be helpful if anyone has something to share. -- 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: Losing memory on tablet but not phone
I'm sorry that I cannot afford to sell to the only 1% of the Android Market using ICS. I already have 6 apps that are not selling, but I digress... After further work I've discovered that allocateDirect is consuming exactly 65636 bytes for every vertexBuffer that is created (again, on the tablet, but not on the phones). Can anybody that has some understanding of how Java memory works please give me a hint of what might be going on so I can find a workaround for it? On Wednesday, February 29, 2012 12:57:18 PM UTC-7, Mark Ayers wrote: I've noticed a LOT of memory management issues with Honeycomb on my ASUS Transformer. I think there might be a defect in Honeycomb, because after my ICS OTA got pushed, all of those issues are gone. On Monday, February 27, 2012 8:53:30 PM UTC-8, Yan wrote: The following eats away the heap on the Toshiba Thrive but not on the LG G2X: byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); I've tried byteBuf.clear, byteBuf.reset, making byteBuf static, System.gc, and combinations of these, but nothing works. I wonder why this is only a problem on the Toshiba but not the LG? -- 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: Polarize effect in realtime
There's an awesome app in the Android Market called Paper Camera that's doing some kind of image processing. You should look into how they implemented it. Check out their YouTube demo at: https://market.android.com/details?id=com.dama.papercamera On Feb 27, 11:18 pm, Giuseppe porcelli.giuse...@gmail.com wrote: Someone know if is possible to apply polarize effect in realtime on the camera? -- 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 preferred rotation ?
Add to your manifest android:screenOrientation=landscape On Feb 26, 1:13 pm, mobidyc mobi...@gmail.com wrote: Hi, I want to set the preferred orientation for the system, How can I define it ? I tried to define in landscape with : android.provider.Settings.System.putInt(getContentResolver(), user_rotation, Surface.ROTATION_90); and even with the disabled ACCELEROMETER_ROTATION setting, It doesn't work. Can you 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: Good OpenGL ES Tutorials
The only GLES tutorials I know of can be found at: http://insanitydesign.com/wp/projects/nehe-android-ports/ but make sure you read the comments for bugs. There's now a memory one now that I cannot figure out: http://groups.google.com/group/android-developers/browse_thread/thread/dc931f47eb3c3e52/1eac9c75ac55dc1a?lnk=gstq=yinoryan#1eac9c75ac55dc1a On Feb 28, 10:04 am, Mark Ayers markthe...@gmail.com wrote: What are some really good GLES tutorials for those unacquainted with low level graphics APIs? -- 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] Losing memory on tablet but not phone
The following eats away the heap on the Toshiba Thrive but not on the LG G2X: byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); I've tried byteBuf.clear, byteBuf.reset, making byteBuf static, System.gc, and combinations of these, but nothing works. I wonder why this is only a problem on the Toshiba but not the LG? -- 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: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Thx Murphy. I try to fix it by like this: boolean activityActive = true; protected void onResume() { // do something activityActive = true; } protected void onPause() { // do something activityActive = false; } public boolean onKeyUp(int keyCode, KeyEvent event) { if (!activityActive) { return false; } // do something } public boolean onKeyDown(int keyCode, KeyEvent event) { if (!activityActive) { return false; } // do something } -- 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] java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Hi, I'm using a stability tool to test my app(my app is developed before ICS, but currently running on ICS), the tool is similar with the monkey. And this exception happen to me, but only 15% to reproduce. Here's the exception stack: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java: 1265) at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java: 451) at android.app.Activity.onBackPressed(Activity.java:2121) at android.app.Activity.onKeyUp(Activity.java:2099) at com.teo.SearchActivity.onKeyUp(SearchActivity.java:195) at android.view.KeyEvent.dispatch(KeyEvent.java:2582) at android.app.Activity.dispatchKeyEvent(Activity.java:2329) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchKeyEvent(PhoneWindow.java:1825) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at android.widget.TabHost.dispatchKeyEvent(TabHost.java:324) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1346) at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchKeyEvent(PhoneWindow.java:1898) at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java: 1380) at android.app.Activity.dispatchKeyEvent(Activity.java:2324) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchKeyEvent(PhoneWindow.java:1825) at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java: 3327) at android.view.ViewRootImpl.handleFinishedEvent(ViewRootImpl.java: 3300) at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2460) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4441) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:807) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:574) at dalvik.system.NativeStart.main(Native Method) And the code block near line 195 in SearchActivity.java is here: public boolean onKeyUp(int keyCode, KeyEvent event) { if (mListManager.getCurrentList().onKeyUp(keyCode, event)) { return true; } return super.onKeyUp(keyCode, event); // Line 195 } And someone has the same problem with me: http://groups.google.com/group/android-developers/browse_thread/thread/74eacf9d7a32f8d3/cfaa7c0b89561f0e?lnk=gstq=Can+not+perform+this+action+after+onSaveInstanceState#cfaa7c0b89561f0e but seems no approach in the above thread. Did this exception ever happen to you? If any, pls share your knowledge to me, thanks. BR/Teo -- 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: Image processing
FYI: There's an awesome app in the Android Market called Paper Camera that's doing some kind of image processing. You should look into how they implemented it. Check out their YouTube demo at: https://market.android.com/details?id=com.dama.papercamera On Sep 26, 11:54 pm, ko5tik kpriblo...@yahoo.com wrote: ... damn german keyboard On 27 Sep., 08:34, ko5tik kpriblo...@yahoo.com wrote: On 24 Sep., 12:26, Venki itzmesri...@gmail.com wrote: I know Image Processing. I don't know anything about android though. I know Java, J2EE so I think I know some basics.I have planned to do some android apps using image processing. Where should I start? Give me some tutorial related to image processing using android. If you have created any apps using image processing in android please tell me about it. Zou are welcome to your JavaOCR project: http://sourceforge.net/projects/javaocr We are focusing primarily on OCR , but OCR also involves some image processing - and we could use help on this. There are android demos (not yet complete, but sampling and teaching recognisers work, corresponding recogniser is not yet ready) An I already published applications using this library:http://www.pribluda.de/android/charger/http://www.pribluda.de/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] mp.getCurrentPosition() cannot be resolved in onDrawFrame
Sorry if I posted this already. It seems to have disappeared, probably because of size or copyright violations, so now I'm just posting a stripped-down example. If the Renderer is in a separate file how do I access getCurrentPosition from the onDrawFrame? For example: public class Run extends Activity { MediaPlayer mp; private GLSurfaceView glSurface; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mp = MediaPlayer.create(this, R.raw.yang13bs); glSurface = new GLSurfaceView(this); glSurface.setRenderer(new Test(this,mp)); setContentView(glSurface); } @Override protected void onResume() { super.onResume(); glSurface.onResume(); } @Override protected void onPause() { super.onPause(); mp.stop(); glSurface.onPause(); } } -- public class Test implements Renderer { private Context context; public Test(Context context, MediaPlayer mp) { this.context = context; cube = new Cube(); mp.start(); } public void onSurfaceCreated(GL10 gl, EGLConfig config) { ... } public void onDrawFrame(GL10 gl) { ... mPos = mp.getCurrentPosition(); } public void onSurfaceChanged(GL10 gl, int width, int height) { ... } } -- 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] Cannot getCurrentPosition from MediaPlayer
I would like to get this working with the OpenGL example code from the NeHe Android Ports, but when I try to access the timecode from the MediaPlayer within onDrawFrame, it gives the error: mp cannot be resolved I tried putting the MediaPlayer.create line in Lesson06.java but it gives the error: The method create(Context, int) in the type MediaPlayer is not applicable for the arguments (Lesson06, int) The music plays fine when the MediaPlayer.create is in Run.java, but the question is what's the easiest way to getCurrentPosition from within onDrawFrame in the following code? package com.nea.nehe.lesson06; import android.app.Activity; import android.media.MediaPlayer; import android.opengl.GLSurfaceView; import android.os.Bundle; /** * The initial Android Activity, setting and initiating * the OpenGL ES Renderer Class @see Lesson06.java * * @author Savas Ziplies (nea/INsanityDesign) */ public class Run extends Activity { MediaPlayer mp; /** The OpenGL View */ private GLSurfaceView glSurface; /** * Initiate the OpenGL View and set our own * Renderer (@see Lesson06.java) */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mp = MediaPlayer.create(this, R.raw.yang13bs); //Create an Instance with this Activity glSurface = new GLSurfaceView(this); //Set our own Renderer and hand the renderer this Activity Context glSurface.setRenderer(new Lesson06(this, mp)); //Set the GLSurface as View to this Activity setContentView(glSurface); } /** * Remember to resume the glSurface */ @Override protected void onResume() { super.onResume(); glSurface.onResume(); } /** * Also pause the glSurface */ @Override protected void onPause() { super.onPause(); mp.stop(); glSurface.onPause(); } } package com.nea.nehe.lesson06; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.content.Context; import android.media.MediaPlayer; import android.opengl.GLU; import android.opengl.GLSurfaceView.Renderer; /** * This is a port of the {@link http://nehe.gamedev.net} OpenGL * tutorials to the Android 1.5 OpenGL ES platform. Thanks to * NeHe and all contributors for their great tutorials and great * documentation. This source should be used together with the * textual explanations made at {@link http://nehe.gamedev.net}. * The code is based on the original Visual C++ code with all * comments made. It has been altered and extended to meet the * Android requirements. The Java code has according comments. * * If you use this code or find it helpful, please visit and send * a shout to the author under {@link http://www.insanitydesign.com/} * * @DISCLAIMER * This source and the whole package comes without warranty. It may or may * not harm your computer or cell phone. Please use with care. Any damage * cannot be related back to the author. The source has been tested on a * virtual environment and scanned for viruses and has passed all tests. * * * This is an interpretation of Lesson 06: Texture Mapping * for the Google Android platform. * * @author Savas Ziplies (nea/INsanityDesign) */ public class Lesson06 implements Renderer { /** Cube instance */ private Cube cube; /* Rotation values for all axis */ private float xrot; //X Rotation ( NEW ) private float yrot; //Y Rotation ( NEW ) private float zrot; //Z Rotation ( NEW ) private long mPos; /** The Activity Context ( NEW ) */ private Context context; /** * Instance the Cube object and set * the Activity Context handed over */ public Lesson06(Context context, MediaPlayer mp) { this.context = context; cube = new Cube(); mp.start(); } /** * The Surface is created/init() */ public void onSurfaceCreated(GL10 gl, EGLConfig config) { //Load the texture for the cube once during Surface creation cube.loadGLTexture(gl, this.context); gl.glEnable(GL10.GL_TEXTURE_2D); //Enable Texture Mapping ( NEW ) gl.glShadeModel(GL10.GL_SMOOTH); //Enable Smooth Shading gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);//Black Background gl.glClearDepthf(1.0f);
[android-developers] Re: AVD emulator: changing orientation?
Ctrl F11 On May 26, 2:41 pm, RobertB robert.c.bar...@gmail.com wrote: Is there any way to change the orientation of a running AVD emulator from landscape to portrait and back again? My emulator starts out in landscape, but I'd like to test flipping the device to see the layout change properly. Thanks for any help! --Rob -- 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: Portrait Width Delays
I was thinking this is probably just a problem with the emulator since it takes so long to start up the first time. If that the case, I wonder if something similar could ever happen on an android device? On May 28, 9:49 pm, Yan yinor...@gmail.com wrote: I have six programs in the Android Market that require android:screenOrientation=portrait only. I just tested the SDK Platform Android 3.1, API 12,revision2 and the first time I run my apps it gives me the landscape widths long before it give me theportraitwidths. Should I now put a delay in all my programs to wait for the proper widths to arrive? This problem happens for both ways I determine the width, that is: WindowManager window = getWindowManager(); Display d = window.getDefaultDisplay(); float width = d.getWidth(); Log.d(TestUI, window width= + width); ...and... float width = (float) (canvas.getWidth()); Log.d(TestUI, canvas width= + width); Here is the order the LogCat displays them: 05-29 03:17:19.420: DEBUG/TestUI(598): window width=1280.0 05-29 03:17:21.041: DEBUG/TestUI(598): canvas width=1280.0 05-29 03:17:21.440: DEBUG/TestUI(598): window width=800.0 05-29 03:17:21.740: DEBUG/TestUI(598): canvas width=800.0 -- 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] Portrait Width Delays
I have six programs in the Android Market that require android:screenOrientation=portrait only. I just tested the SDK Platform Android 3.1, API 12,revision2 and the first time I run my apps it gives me the landscape widths long before it give me the portrait widths. Should I now put a delay in all my programs to wait for the proper widths to arrive? This problem happens for both ways I determine the width, that is: WindowManager window = getWindowManager(); Display d = window.getDefaultDisplay(); float width = d.getWidth(); Log.d(TestUI, window width= + width); ...and... float width = (float) (canvas.getWidth()); Log.d(TestUI, canvas width= + width); Here is the order the LogCat displays them: 05-29 03:17:19.420: DEBUG/TestUI(598): window width=1280.0 05-29 03:17:21.041: DEBUG/TestUI(598): canvas width=1280.0 05-29 03:17:21.440: DEBUG/TestUI(598): window width=800.0 05-29 03:17:21.740: DEBUG/TestUI(598): canvas width=800.0 -- 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: Will maxSdkVersion=10 always block Honeycomb?
Ah, unofficial means. Good thing you mentioned that. I guess that could mean ROM's too. I better just redesign my user-interface... On Apr 6, 9:57 pm, TreKing treking...@gmail.com wrote: On Tue, Apr 5, 2011 at 11:35 AM, Yan yinor...@gmail.com wrote: can I be certain that any device with an API level 10 and less will never get updated to an API level 11? Uh ... no. Any device with API 10 can be updated to 11 (if the code ever becomes available) through unofficial means. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Will maxSdkVersion=10 always block Honeycomb?
If there is an unresolvable issue with the API level 11 that makes all my programs look bad and I set maxSdkVersion=10, can I be certain that any device with an API level 10 and less will never get updated to an API level 11? The following documentation is not clear to me in regard to this issue: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html For example it says: Warning: ... declaring the attribute can result in your application being removed from users' devices after a system update to a higher API Level. It also states: Future versions of Android (beyond Android 2.0.1) will no longer check or enforce the android:maxSdkVersion attribute during installation or revalidation. Android Market will continue to use the attribute as a filter, however, when presenting users with applications available for download. (15839) -- 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] Will maxSdkVersion set to 10 always block Honeycomb?
If there is an unresolvable issue with the API level 11 that makes all my programs look bad and I set maxSdkVersion=10, can I be certain that any device with an API level 10 and less will never get updated to an API level 11? The following documentation is not clear to me in regard to this issue: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html For example it says: Warning: ... declaring the attribute can result in your application being removed from users' devices after a system update to a higher API Level. It also states: Future versions of Android (beyond Android 2.0.1) will no longer check or enforce the android:maxSdkVersion attribute during installation or revalidation. Android Market will continue to use the attribute as a filter, however, when presenting users with applications available for download. (15839) -- 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 access certificate from inside app
Hi All, I m trying to access an app's signature/certificate from it's inside, so that when it runs, it can verify itself/do something with the certificate. I googled a bit, and found some code bellow: Class c = getClass(); ProtectionDomain pd = c.getProtectionDomain(); CodeSource cs = pd.getCodeSource(); Certificate[] signingCertificates = cs.getCertificates(); String st = signingCertificates[0].toString(); but here c.getProtectionDomain() returns null. any other way to do it? Many thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 get Application Label in different languages
Hi everyone, Is there a way to get the application label in different languages according to locale? For example, I can get the application label Settings of package com.android.settings in English, Ajustes in Spanish. -- 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] bitmap size exceeds VM budget
Hi: some of you may met the same problem, I was using BitmapFactory.decodeStream, and got this exception: 03-01 23:28:17.663: ERROR/dalvikvm-heap(940): 1572864-byte external allocation too large for this process. 03-01 23:28:17.663: ERROR/(940): VM won't let us allocate 1572864 bytes 03-01 23:28:17.663: DEBUG/skia(940): --- decoder-decode returned false 03-01 23:28:17.663: WARN/dalvikvm(940): threadid=27: thread exiting with uncaught exception (group=0x4001b188) 03-01 23:28:17.663: ERROR/AndroidRuntime(940): Uncaught handler: thread Thread-14 exiting due to uncaught exception 03-01 23:28:17.663: ERROR/AndroidRuntime(940): java.lang.OutOfMemoryError: bitmap size exceeds VM budget 03-01 23:28:17.663: ERROR/AndroidRuntime(940): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 03-01 23:28:17.663: ERROR/AndroidRuntime(940): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459) 03-01 23:28:17.663: ERROR/AndroidRuntime(940): at cc.pa.BitmapManager.fetchBitmap(BitmapManager.java:39) 03-01 23:28:17.663: ERROR/AndroidRuntime(940): at cc.pa.BitmapManager$2.run(BitmapManager.java:88) I know the reason is because the BitmapFactory is trying to decode an uncompressed version of a big image(in my situation, jpg). I can use BitmapFactory.Options.inSampleSize to fix it. but my question is what's the maximum size that VM would like to allocate for loading a image with BitmapFactory? so I can do some scale before it loads. thanks wei -- 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] Rotational forces doesn't work if the Activity is behind another Dialog-themed Activity
I have created an Activity A, which is blocked from rotating. I have implemented this by adding android:screenOrientation=portrait in the AndroidManifest.xml I have tested the app, Activity A didn't enter landscape mode when I rotated the phone, everything worked fine. Then I created another Activity B, which is a 'Dialog theme' Activity. Inside Activity A, I called startActivity(new Intent(this, B.class)); Now Activity A is behind Activity B, but still visible. At this point, if I rotated the phone, both Activity B and Activity A were rotated into landscape mode. android:screenOrientation=portrait doesn't work on Activity A any more. Is this a bug? Or did I do something 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: Rotational forces doesn't work if the Activity is behind another Dialog-themed Activity
I forgot to say that Activity B has been set as android:screenOrientation=sensor in the AndroidManifest.xml -- 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: Need an invitation to google Wave?
hi, please invite me yansong...@gmail.com, thanks a lot. Best Regards, Qu Yan Song TEL:8610-84732169 From: Abdul Mateen [mailto:abmat...@gmail.com] Sent: Wednesday, November 11, 2009 7:44 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Need an invitation to google Wave? I need a invitation also, can you please send it to abmat...@gmail.com. On Fri, Nov 6, 2009 at 8:18 AM, Paulo César pcfm@gmail.com wrote: Please, please I want invite me ... thank you... On 1 nov, 04:53, Thimmarayaswamy Krishnappa kavirayasw...@gmail.com wrote: Please invite me It will be a great help. I want know How it works? On Nov 1, 11:20 am, Auguste Lunang legraphi...@gmail.com wrote: Hi, i have some google wave. invits to share. tell me if u want .. thx -- 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 mailto:android-developers%2bunsubscr...@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 -- 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: Need an invitation to google Wave?
I would like to have one. Thanks~ On Nov 1, 7:20 am, Auguste Lunang legraphi...@gmail.com wrote: Hi, i have some google wave. invits to share. tell me if u want .. thx -- 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] Get the View info from process ID?
Hi, I know the process ID(pid) of my application which is running now. Is there a way to get the view information (such as width, height, title, and layout) of my application from its pid? Best Regards, Bob --~--~-~--~~~---~--~~ 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: Android emulator window small size
Hi, please try to modify configuration file ${WORKSPACE}/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.adt.prefs and delete the following line: com.android.ide.eclipse.adt.emuOptions=-scale 0.2 Bob On Fri, Sep 4, 2009 at 11:06 PM, timitssa...@gmail.com wrote: Hello, I added -scale 0.2 to the Default emulator option under eclipse and launched the emulator. After that I got a really small window. I then removed the -scale 0.2 but the emulator window remains small. I can start the emulator from command line and i get the normal size, but not with eclipse. Any help would be appreciated. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 use/set Ringtone?
Has anyone got this problem? Need help. On May 9, 11:01 am, Yan Shi shiyansu...@gmail.com wrote: In 1.5, I can't set ringtone for my own app's notification and neither can I get any notification sound. I always get this: E/MediaPlayerService( 542): Couldn't open fd for content://settings/system/ring tone E/MediaPlayer( 574): Unable to to create media player W/NotificationService( 574): error loading sound for content://settings/system/ ringtone W/NotificationService( 574): java.io.IOException: setDataSource failed.: status =0x8000 W/NotificationService( 574): at android.media.MediaPlayer.setDataSource(Nativ e Method) W/NotificationService( 574): at android.media.MediaPlayer.setDataSource(Media Player.java:610) W/NotificationService( 574): at android.media.AsyncPlayer$Thread.run (AsyncPla yer.java:76) And when I go to APIDemos-App-Notification-Status Bar and click Sound button, I got the same error. I am using Eclipse in Vista 32 with 1.5 R1. So what's wrong and how can I do 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] Can't use/set Ringtone?
In 1.5, I can't set ringtone for my own app's notification and neither can I get any notification sound. I always get this: E/MediaPlayerService( 542): Couldn't open fd for content://settings/system/ring tone E/MediaPlayer( 574): Unable to to create media player W/NotificationService( 574): error loading sound for content://settings/system/ ringtone W/NotificationService( 574): java.io.IOException: setDataSource failed.: status =0x8000 W/NotificationService( 574): at android.media.MediaPlayer.setDataSource(Nativ e Method) W/NotificationService( 574): at android.media.MediaPlayer.setDataSource(Media Player.java:610) W/NotificationService( 574): at android.media.AsyncPlayer$Thread.run (AsyncPla yer.java:76) And when I go to APIDemos-App-Notification-Status Bar and click Sound button, I got the same error. I am using Eclipse in Vista 32 with 1.5 R1. So what's wrong and how can I do 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] How to capture key events from on screen keyboard?
What I want to do is that when a normal key (such as A) is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard. How can I do that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 capture key events from on screen keyboard?
Still need help. I found there a flag in KeyEvent: KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? The key listener I registered never received any key events from soft keyboard. On May 6, 6:40 pm, Yan Shi shiyansu...@gmail.com wrote: What I want to do is that when a normal key (such as A) is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard. How can I do that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 capture key events from on screen keyboard?
Still need help... On May 6, 7:53 pm, Yan Shi shiyansu...@gmail.com wrote: Still need help. I found there a flag in KeyEvent: KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? The key listener I registered never received any key events from soft keyboard. On May 6, 6:40 pm, Yan Shi shiyansu...@gmail.com wrote: What I want to do is that when a normal key (such as A) is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard. How can I do that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 capture key events from on screen keyboard?
Anyone please? On May 6, 11:09 pm, Yan Shi shiyansu...@gmail.com wrote: Still need help... On May 6, 7:53 pm, Yan Shi shiyansu...@gmail.com wrote: Still need help. I found there a flag in KeyEvent: KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? The key listener I registered never received any key events from soft keyboard. On May 6, 6:40 pm, Yan Shi shiyansu...@gmail.com wrote: What I want to do is that when a normal key (such as A) is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard. How can I do that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 capture key events from on screen keyboard?
Hi I use the default InputMethodService. Can this be done? On May 7, 7:22 am, androidcrew androidc...@googlemail.com wrote: Hi, please post your code which is involved with the keyboard process. typically you need an eventlistener which you have to overwrite. On 7 Mai, 01:02, Yan Shi shiyansu...@gmail.com wrote: Anyone please? On May 6, 11:09 pm, Yan Shi shiyansu...@gmail.com wrote: Still need help... On May 6, 7:53 pm, Yan Shi shiyansu...@gmail.com wrote: Still need help. I found there a flag in KeyEvent: KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? The key listener I registered never received any key events from soft keyboard. On May 6, 6:40 pm, Yan Shi shiyansu...@gmail.com wrote: What I want to do is that when a normal key (such as A) is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard. How can I do that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 show soft keyboard in landscape mode?
I tried a lot of ways with no luck. Could anyone please help me? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe 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 an android code standard, who can help?
hi all, I need an android code standard, where can i find it? who can help? Best Regards, Qu Yan Song TEL:8610-84732169 --~--~-~--~~~---~--~~ 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] URGENT!!!!! Can't update apps in android market!!!
When I upload an apk update for one of my apps(Hello Yahoo), I was told that Market requires the minSdkVersion to be set in AndroidManifest.xml.. So I can't do the update! I already set this attribute in AndroidManifest.xml. What's wrong?? I even set it to uses-sdk minSdkVersion=3 /, but still I can't do the update. Has anyone met this problem? BTW, when I go to http://market.android.com/publish/Home today, I have accepted Term and Service again. I think already accepted it the first time I registered for it. Why should I accept it again? Could any google stuff look into this please? Thanks very much --~--~-~--~~~---~--~~ 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: URGENT!!!!! Can't update apps in android market!!!
Anyone please? On Apr 24, 2:16 pm, Yan Shi shiyansu...@gmail.com wrote: When I upload an apk update for one of my apps(Hello Yahoo), I was told that Market requires the minSdkVersion to be set in AndroidManifest.xml.. So I can't do the update! I already set this attribute in AndroidManifest.xml. What's wrong?? I even set it to uses-sdk minSdkVersion=3 /, but still I can't do the update. Has anyone met this problem? BTW, when I go tohttp://market.android.com/publish/Hometoday, I have accepted Term and Service again. I think already accepted it the first time I registered for it. Why should I accept it again? Could any google stuff look into this please? Thanks very much --~--~-~--~~~---~--~~ 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: Why can't my update be installed by users?
Hi Jon Thanks. Hope the android market would provide a more elegant way to fix this issue. On Feb 22, 4:24 pm, Jon Colverson jjc1...@gmail.com wrote: On Feb 22, 7:27 am, Yan Shi shiyansu...@gmail.com wrote: I did an app called Hello Yahoo and today I made an update. But users said it can't be installed because the package is not signed correctly. And after that the old version can't even be uninstalled because the device thinks it is uninstalled already.. I never experience that, but it is reported by many users. I've experienced this while changing between a development version of my app signed with the test key and the release version signed with my own key. Unfortunately your users will need to reinstall the old version, and then uninstall it. Then they can install the new version. -- Jon --~--~-~--~~~---~--~~ 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] Why can't my update be installed by users?
I did an app called Hello Yahoo and today I made an update. But users said it can't be installed because the package is not signed correctly. And after that the old version can't even be uninstalled because the device thinks it is uninstalled already.. I never experience that, but it is reported by many users. I do use a different keystore to sign it with the update. Is this the case? How can I fix 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 -~--~~~~--~~--~--~---