[android-developers] Problem viewing mp4 on first start up
Hi, I have implemented a video player but I have a problem. Playing 3pg files works fine but when I us my player to play mp4 files the image is ether all black or in strange colors the first time I start the video. If a stop it and starts the same video again i t works fine. Has some one a suggestion of what might be the problem? Tanks for helping. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem of resume a SurfaceView
At the beginning, the SurfaceView can draw OpenGL scene correct. But while I launch another Activity , after that close the new- launched Activity and return to the original Activity. Then the SurfaceView became empty and cann't draw anything. That's why? There are any action must be done in onResume() callback? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Rapidly unwinding Activity stack
hello heiko u there? i tried your solution but it doenst work On Apr 18, 10:06 am, Greg <[EMAIL PROTECTED]> wrote: > hello guys ?? > > On Apr 17, 6:03 pm, Greg <[EMAIL PROTECTED]> wrote: > > > i tried it but it still doesn't work > > same it shows old data for 2 secs then it refreshs when i used on > > resume > > > same it show > > > On Apr 17, 5:28 pm, Greg <[EMAIL PROTECTED]> wrote: > > > > you are right let me try great > > > > On Apr 17, 5:25 pm, Hielko <[EMAIL PROTECTED]> wrote: > > > > > If showing incorrect data is a problem, you should requery the data in > > > > the onResume() method of the subactivity. > > > > > On Apr 17, 2:20 pm, Greg <[EMAIL PROTECTED]> wrote: > > > > > > but in that case of deleting some data onto Factivityand then > > > > > showing refresh data on E > > > > > > how can we do this without startSubactivity ??? > > > > > > if user press back button user will be shown incorrect data which is > > > > > wrong > > > > > > if using startsubactivity activites are overlapping i have been > > > > > stucked here it have taked 3 days of mine i coudlnt sovle this problem > > > > > > On Mar 12, 1:33 am, hackbod <[EMAIL PROTECTED]> wrote: > > > > > > > Hi Chris, > > > > > > > There will be an API for this in an upcoming SDK. > > > > > > > On Mar 11, 9:27 am, cirion <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > I have multiple Activities that a user can navigate between. Each > > > > > > > stacks on top of the previous one, so the user starts at A, goes > > > > > > > to B, > > > > > > > then C, D, E, and F. Pressing the back arrow will return them to > > > > > > > the > > > > > > > previousActivity, as expected. > > > > > > > > Now, if the user takes a particular action inactivityF, I want to > > > > > > > return all the way toactivityA. The way I currently do this is to > > > > > > > always call startSubActivity when going to a new screen. In F, > > > > > > > I'll > > > > > > > call setResult(RESULT_OK) and call finish(). Then, in > > > > > > > eachactivity's > > > > > > > onActivityResult, I'll check the resultCode. If it's RESULT_OK, > > > > > > > I'll > > > > > > > repeat, calling setResult(RESULT_OK) and finish(). > > > > > > > > Functionally, this works fine - I can go from F all the way back > > > > > > > to > > > > > > > A. However, I see each intermediate screen briefly display for a > > > > > > > fraction of a second before going away. > > > > > > > > Is there a good way to jump back several Activities without > > > > > > > displaying > > > > > > > each intermediateActivity? > > > > > > > > Thanks, > > > > > > > Chris- Hide quoted text - > > > > > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I get the current page's url of the web browser?
I've tried: String[] mColumnStrings = { Browser.SearchColumns._ID, Browser.SearchColumns.URL, Browser.SearchColumns._COUNT, Browser.SearchColumns.DATE }; Cursor c = getContentResolver().query(Browser.SEARCHES_URI, mColumnStrings, null, null, null); But the return is always null, I don't understand... Someone can help me? Thanks D --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to create multiple tabhost by clicking a button
i'd like to creat multiple tabs by clicking a single button..is it possbile to create..can anyone tell me how to do that.. thanks.. Ashok.. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Will users be able to select text in the web browser?
Consider, for example, these situations: Suppose while you are browsing the Web, you see a phone number on a page - you'll want to be able to simply click it and call this number, or you see an address - you would just click and it opens on the Map, or you see something of interest that you'd like to keep permanently - you then select this text and store it in your application's database. I do not see any conceptual difficulties that would prevent extending the web browser in such a way so as to allow external applications to deal with the content of the web page being displayed. Why not create some sort of a plugin system for the standard web browser similar to that of Firefox, where all of the scenarios I mentioned are already available? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I get the current page's url of the web browser?
Hi, Megha It seems to me that WebView is to create a new browser in a application. That's not exactly what I want. I wonder if I can get the current page from the default web browser, I want my application just to listen to the default browser and to do something when the current page interests me. Will that be possible? I've found android.provider.Browser, but I didn't find the way to get the current uri yet. Thanks, D --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] set an OnClickListener for each button in a ListView's row
Hi guys, I'm trying to create a ListView, with a TextView and two ImageButton per row. The problem comes when I try to add an OnClickListener to each button. I did in this way: -- row.xml -- -- .java -- ... ImageButton ib1 = (ImageButton) this.findViewById(R.id.button1); ib1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { } }); But I get a NullPointerException. What's the right way to do that? Thanks, Pzikit Bloo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: What adapter to use with a Spinner and a ListView in the same layout?
Ah, so the xml you posted is notes_list.xml? That might be the problem. I think the adapter is looking for a layout file describing a single item in the list, not the layout that contains the listview. On Apr 17, 5:22 pm, "Fred Janon" <[EMAIL PROTECTED]> wrote: > > I was looking through your code and have one question... what is > > R.layout.notes_list? > > It's the id automatically generated for the "notes_list.xml" file where the > layout below resides. > > Fred > > On Fri, Apr 18, 2008 at 4:38 AM, Megha Joshi <[EMAIL PROTECTED]> wrote: > > I was looking through your code and have one question... what is > > R.layout.notes_list? > > > On Wed, Apr 16, 2008 at 3:56 AM, Fred Janon <[EMAIL PROTECTED]> wrote: > > > > I am trying to build a layout with some spinners and a list below the > > > spinners. The layouts and the code work fine when I get the spinner values > > > from an array resource. When I try to populate the spinners from an > > > array, I > > > get an exception, see below. Is it possible to have spinner and a list > > > view > > > in the same layout? Which adapter do I need for the spinners? > > > > Thanks > > > > Fred > > > > Uncaught handler: thread Main exiting due to uncaught exception > > > java.lang.ClassCastException: Landroid/widget/Spinner; > > > at > > > android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:240) > > > at android.widget.ArrayAdapter.getView(ArrayAdapter.java:221) > > > at > > > android.widget.ArrayAdapter.getMeasurementView(ArrayAdapter.java:217) > > > at android.widget.AbsSpinner.onMeasure(AbsSpinner.java:230) > > > at android.view.View.measure(View.java:5937) > > > at > > > android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2250) > > > at > > > android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:742) > > > at > > > android.widget.LinearLayout.measureVertical(LinearLayout.java:289) > > > at android.widget.LinearLayout.onMeasure(LinearLayout.java:231) > > > at android.view.View.measure(View.java:5937) > > > at > > > android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2250) > > > at > > > android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:742) > > > at > > > android.widget.LinearLayout.measureVertical(LinearLayout.java:289) > > > at android.widget.LinearLayout.onMeasure(LinearLayout.java:231) > > > at android.view.View.measure(View.java:5937) > > > at android.view.ViewGroup.measureChild(ViewGroup.java:2218) > > > at android.widget.FrameLayout.onMeasure(FrameLayout.java:146) > > > at android.view.View.measure(View.java:5937) > > > at > > > android.widget.LinearLayout.measureVertical(LinearLayout.java:385) > > > at android.widget.LinearLayout.onMeasure(LinearLayout.java:231) > > > at android.view.View.measure(View.java:5937) > > > at android.view.ViewGroup.measureChild(ViewGroup.java:2218) > > > at android.widget.FrameLayout.onMeasure(FrameLayout.java:146) > > > at > > > android.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:1202) > > > at android.view.View.measure(View.java:5937) > > > at android.view.ViewRoot.performTraversals(ViewRoot.java:341) > > > at android.view.ViewRoot.handleMessage(ViewRoot.java:584) > > > at android.os.Handler.dispatchMessage(Handler.java:80) > > > at android.os.Looper.loop(Looper.java:91) > > > at android.app.ActivityThread.main(ActivityThread.java:3052) > > > at java.lang.reflect.Method.invokeNative(Native Method) > > > at java.lang.reflect.Method.invoke(Method.java:356) > > > at > > > android.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1547) > > > at android.os.ZygoteInit.main(ZygoteInit.java:1445) > > > at android.dalvik.NativeStart.main(Native Method) > > > > Layout: > > > > > > > > > > > http://schemas.android.com/apk/res/android"; > > > android:layout_width="fill_parent" > > > android:layout_height="fill_parent" > > > android:orientation="vertical"> > > > > > > android:layout_width="fill_parent" > > > android:layout_height="wrap_content"> > > > > > > android:layout_width="wrap_content" > > > android:layout_height="wrap_content" > > > android:layout_weight="1" > > > android:text="Tags to look for" > > > android:textSize="20sp"/> > > > > > android:layout_width="wrap_content" > > > android:layout_height="wrap_content" > > > android:text="Reset all tags" > > > android:textSize="20sp"/> > > > > > > > > > > android:layout_width="fill_parent" > > > android:layout_height="wrap_content" > > > android:orientation="vertical"> > > > > > > android:layout_width="fill_parent" > > > android:layout_height="wrap_content"/> > > > > > > android:layout_width="fill_parent" > > > android:layout_height="wrap_content"/> > > > > > > android:layout
[android-developers] 70 countries submitted 1,788 entries to the Android Developer Challenge!
http://android-developers.blogspot.com/2008/04/android-developers-have-risen-to.html http://mobeegal.in find stuff closer. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashing constantly on Windows Vista
I'm seeing the same problem. The Windows message is: "adb.exe has stopped working A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" There is no "Details" button or anything of the sort. Only a "Close Program" button. Eclipse has the following message in the Console: [2008-04-18 04:41:28 - adb] This application has requested the Runtime to terminate it in an unusual way. [2008-04-18 04:41:28 - adb] Please contact the application's support team for more information. [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host Any ideas what could be causing this? On Mar 30, 12:28 pm, Digit <[EMAIL PROTECTED]> wrote: > but there must be a button like "Details..." that should give you more > information about the crash. if you could paste this information here, that > would be useful to understand what's happening... > > On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > The error message is that Emulator has stopped working. > > > nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashing constantly on Windows Vista
you should be able to get a better idea of the problem by doing the following: - close eclipse - kill any adb.exe process that is running on your machine - open a console, go to $SDK/tools - type "set ADB_TRACE=all" - type "adb nodaemon server" this runs the ADB server in the foreground, dumping all traces to the console now start Eclipse and try to use it as normal; when the ADB server crashes, send me the traces you collected until then thanks in advance On Fri, Apr 18, 2008 at 6:42 PM, Beginner <[EMAIL PROTECTED]> wrote: > > I'm seeing the same problem. The Windows message is: > > "adb.exe has stopped working > > A problem caused the program to stop working correctly. > Windows will close the program and notify you if a solution is > available" > > There is no "Details" button or anything of the sort. Only a "Close > Program" button. > > > > Eclipse has the following message in the Console: > > [2008-04-18 04:41:28 - adb] This application has requested the Runtime > to terminate it in an unusual way. > [2008-04-18 04:41:28 - adb] Please contact the application's support > team for more information. > [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing > connection was forcibly closed by the remote host > > > Any ideas what could be causing this? > > > On Mar 30, 12:28 pm, Digit <[EMAIL PROTECTED]> wrote: > > but there must be a button like "Details..." that should give you more > > information about the crash. if you could paste this information here, > that > > would be useful to understand what's happening... > > > > On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] < > [EMAIL PROTECTED]> > > wrote: > > > > > > > > > The error message is that Emulator has stopped working. > > > > > nitin > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: does the cell id is unique?
You should be able to build a longer string with country and carrier and cell id that is unique. On Apr 17, 12:23 pm, Rui Martins <[EMAIL PROTECTED]> wrote: > Cell ID identifies the current GSM cell where the mobile phone is > using. > > Many phones can be using the same cell ! > > Your phone only uses one cell at once, but can negotiate data with > more than one, when doing transfer from one cell to the other. > > Cell IDs, as far as I known can be reused in different countries. > > So it's probably not suited to what you need. > > On Apr 17, 2:48 pm, "E.D.I" <[EMAIL PROTECTED]> wrote: > > > > > i wonder if i can use the cell id as an ident in a DB on a server...- Hide > > quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] client mail
salut tout le monde svp j'ai besoin de faire developper un client mail sur android "envoie et reception des emails" alors j'ai besoin de code source qui peut m'aider. merci si quelqun peut m'aider --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashing constantly on Windows Vista
Thank You so much! I think the problem was with Windows. I upgraded to Windows Vista SP1, the problem is solved. Anyways, good piece of advise for the future. Regards Nitin Khanna www.hsc.com On Fri, Apr 18, 2008 at 10:02 AM, Digit <[EMAIL PROTECTED]> wrote: > you should be able to get a better idea of the problem by doing the > following: > > - close eclipse > - kill any adb.exe process that is running on your machine > - open a console, go to $SDK/tools > - type "set ADB_TRACE=all" > - type "adb nodaemon server" > > this runs the ADB server in the foreground, dumping all traces to the > console > > now start Eclipse and try to use it as normal; when the ADB server > crashes, send me the traces you collected until then > > thanks in advance > > > On Fri, Apr 18, 2008 at 6:42 PM, Beginner <[EMAIL PROTECTED]> > wrote: > > > > > I'm seeing the same problem. The Windows message is: > > > > "adb.exe has stopped working > > > > A problem caused the program to stop working correctly. > > Windows will close the program and notify you if a solution is > > available" > > > > There is no "Details" button or anything of the sort. Only a "Close > > Program" button. > > > > > > > > Eclipse has the following message in the Console: > > > > [2008-04-18 04:41:28 - adb] This application has requested the Runtime > > to terminate it in an unusual way. > > [2008-04-18 04:41:28 - adb] Please contact the application's support > > team for more information. > > [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing > > connection was forcibly closed by the remote host > > > > > > Any ideas what could be causing this? > > > > > > On Mar 30, 12:28 pm, Digit <[EMAIL PROTECTED]> wrote: > > > but there must be a button like "Details..." that should give you more > > > information about the crash. if you could paste this information here, > > that > > > would be useful to understand what's happening... > > > > > > On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] < > > [EMAIL PROTECTED]> > > > wrote: > > > > > > > > > > > > > The error message is that Emulator has stopped working. > > > > > > > nitin > > > > > > > > -- With Best Regards, Nitin Khanna Assistant Manager Hughes Systique Corp. USA --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashing constantly on Windows Vista
Just confirming that I am also seeing this. On Apr 18, 9:42 am, Beginner <[EMAIL PROTECTED]> wrote: > I'm seeing the same problem. The Windows message is: > > "adb.exe has stopped working > > A problem caused the program to stop working correctly. > Windows will close the program and notify you if a solution is > available" > > There is no "Details" button or anything of the sort. Only a "Close > Program" button. > > Eclipse has the following message in the Console: > > [2008-04-18 04:41:28 - adb] This application has requested the Runtime > to terminate it in an unusual way. > [2008-04-18 04:41:28 - adb] Please contact the application's support > team for more information. > [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing > connection was forcibly closed by the remote host > > Any ideas what could be causing this? > > On Mar 30, 12:28 pm, Digit <[EMAIL PROTECTED]> wrote:> but there must be a > button like "Details..." that should give you more > > information about the crash. if you could paste this information here, that > > would be useful to understand what's happening... > > > On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > wrote: > > > > The error message is that Emulator has stopped working. > > > > nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I get the current page's url of the web browser?
Hi, It is not possible to get information from one application to another, unless exposed by contentproviders, due to security concerns. Browser.SEARCHES_URI only returns strings the user puts in the GOTO box and picks Google Search. To get all the urls visited, you could use Browser.BOOKMARKS_URI. Thanks, Megha On Fri, Apr 18, 2008 at 5:12 AM, Dorothy <[EMAIL PROTECTED]> wrote: > > I've tried: > > String[] mColumnStrings = >{ Browser.SearchColumns._ID, >Browser.SearchColumns.URL, >Browser.SearchColumns._COUNT, >Browser.SearchColumns.DATE >}; > > Cursor c = getContentResolver().query(Browser.SEARCHES_URI, >mColumnStrings, null, null, null); > > But the return is always null, I don't understand... > > Someone can help me? > > Thanks > > D > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashing constantly on Windows Vista
I'm not sure if this is of any more help, but here we go [Trace from console] "failed to read packet from transport socket on fd 103 failed to read packet from transport socket on fd 108 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." The "failed to read packet" lines appear when I close the emulator [What I did] Here are the steps I took to get the problem... I'm not sure if they tell you anything or if they're useless. But I will include them just in case. - Delete old userdata img file - Run (not debug) emulator from eclipse - ./adb shell - cd data/misc/location - mkdir - exit - From eclipse File Explorer view - push properties file to - push kml file to - close emulator - start emulator again - run for 5 minutes (everything works fine) - close emulator - wait a few minutes - see error I hope this helps, but I'm sure the above gives you no useful info. So if you want me to try something specific, let me know. On Apr 18, 2:23 pm, burevestnikov <[EMAIL PROTECTED]> wrote: > Just confirming that I am also seeing this. > > On Apr 18, 9:42 am, Beginner <[EMAIL PROTECTED]> wrote: > > > I'm seeing the same problem. The Windows message is: > > > "adb.exe has stopped working > > > A problem caused the program to stop working correctly. > > Windows will close the program and notify you if a solution is > > available" > > > There is no "Details" button or anything of the sort. Only a "Close > > Program" button. > > > Eclipse has the following message in the Console: > > > [2008-04-18 04:41:28 - adb] This application has requested the Runtime > > to terminate it in an unusual way. > > [2008-04-18 04:41:28 - adb] Please contact the application's support > > team for more information. > > [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing > > connection was forcibly closed by the remote host > > > Any ideas what could be causing this? > > > On Mar 30, 12:28 pm, Digit <[EMAIL PROTECTED]> wrote:> but there must be a > > button like "Details..." that should give you more > > > information about the crash. if you could paste this information here, > > > that > > > would be useful to understand what's happening... > > > > On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > wrote: > > > > > The error message is that Emulator has stopped working. > > > > > nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Has anybody been able to blur an image?
Anybody? On 13 abr, 12:03, qvark <[EMAIL PROTECTED]> wrote: > Hello all, I have tobluran image and I have implemented my ownblur > algorithm (gaussian), but it is too slow (I guess it is due to the > emulator and the interpreted nature of the Dalvik VM). > > I have found the class android.graphics.BlurMaskFilter but I haven't > been able to apply it successfully to an image (Bitmap). > > If I try something like: > > Paint blurPaint = new Paint(); > blurPaint.setFilterBitmap(true); > blurPaint.setMaskFilter(new BlurMaskFilter(radius, > BlurMaskFilter.Blur.NORMAL)); > > Bitmap blurred = Bitmap.createBitmap(800, 600, > Bitmap.Config.RGB_565); > Canvas c = new Canvas(blurred); > c.drawBitmap(originalBitmap, 0, 0, blurPaint); > > nothing happens (well, the borders of the image appear with shade, > with seems normal, according to "Note: if the paint contains a > maskfilter that generates a mask which extends beyond the bitmap's > original width/height (e.g. BlurMaskFilter), then the bitmap will be > drawn as if it were in a Shader with CLAMP mode. " > > But the image is not blurred!! > > I have tried a different approach passing the image to grey scale, the > grey to the alpha channel (because there is only a extractAlpha() > method that takes a Paint) and then: > > Bitmap blurredBitmap = bm.extractAlpha(blurPaint, new int[] {0, 0}); > > But it makes the VM crash!! (seems like a bug inside the > extractAlpha() method, because extractAlpha() without params also > crash). It crashes when I use Bitmap.Config.ARGB_ or > Bitmap.Config.ARGB_, but not if I use Bitmap.Config.RGB_565, but > then obviously I lose the alpha information and the resulting bitmap > is all black. > > Could anybody please provide a working example of blurring an image? > > Thanks in advance, > > Jose Luis. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Visual language media control bar demo code?
Great! I did not recognize that tracker was the way to make feature requests! I am going there now. On Apr 17, 2:04 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Hi, > > That is a good suggestion, though the current SDK does not support voice > recording. You may want to log this as a feature request in the Android > Issue Tracker, you can find a link to it on the groups page. > > Thanks, > Megha > > On Wed, Apr 16, 2008 at 5:04 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > > > Impressed by the API Demo code and the good things it can do through > > UI standardization to make the android user experience positive, will > > the next release have a bit of voice recorder media control bar sample > > code? > > > Particularly start/stop record function on a minimal keypad. I'm > > looking for the UI to follow a original Macintosh path to goodness > > rather than an original PC path to disarray. Demo code on common > > functions will go a long way, specifically the voice record function. > > > Thanks.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Emulator crashing constantly on Windows Vista
I would try reinstalling the sdk and if needed the eclipse plugin. I have noticed issues with the emulator on both Windows and Linux. If you have a mac, the emulator is certainly the best on the mac. -Mike - Original Message - From: "Beginner" <[EMAIL PROTECTED]> To: "Android Developers" Sent: Friday, April 18, 2008 3:23:06 PM GMT -05:00 US/Canada Eastern Subject: [android-developers] Re: Emulator crashing constantly on Windows Vista I'm not sure if this is of any more help, but here we go [Trace from console] "failed to read packet from transport socket on fd 103 failed to read packet from transport socket on fd 108 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." The "failed to read packet" lines appear when I close the emulator [What I did] Here are the steps I took to get the problem... I'm not sure if they tell you anything or if they're useless. But I will include them just in case. - Delete old userdata img file - Run (not debug) emulator from eclipse - ./adb shell - cd data/misc/location - mkdir - exit - From eclipse File Explorer view - push properties file to - push kml file to - close emulator - start emulator again - run for 5 minutes (everything works fine) - close emulator - wait a few minutes - see error I hope this helps, but I'm sure the above gives you no useful info. So if you want me to try something specific, let me know. On Apr 18, 2:23 pm, burevestnikov <[EMAIL PROTECTED]> wrote: > Just confirming that I am also seeing this. > > On Apr 18, 9:42 am, Beginner <[EMAIL PROTECTED]> wrote: > > > I'm seeing the same problem. The Windows message is: > > > "adb.exe has stopped working > > > A problem caused the program to stop working correctly. > > Windows will close the program and notify you if a solution is > > available" > > > There is no "Details" button or anything of the sort. Only a "Close > > Program" button. > > > Eclipse has the following message in the Console: > > > [2008-04-18 04:41:28 - adb] This application has requested the Runtime > > to terminate it in an unusual way. > > [2008-04-18 04:41:28 - adb] Please contact the application's support > > team for more information. > > [2008-04-18 12:17:04 - DeviceMonitor] Adb connection Error:An existing > > connection was forcibly closed by the remote host > > > Any ideas what could be causing this? > > > On Mar 30, 12:28 pm, Digit <[EMAIL PROTECTED]> wrote:> but there must be a > > button like "Details..." that should give you more > > > information about the crash. if you could paste this information here, > > > that > > > would be useful to understand what's happening... > > > > On Sun, Mar 30, 2008 at 10:00 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > > wrote: > > > > > The error message is that Emulator has stopped working. > > > > > nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: set an OnClickListener for each button in a ListView's row
Hi, You cannot set the listeners for your ListView's items in the Activity's onCreate(), you should set the OnClickListeners inside the getView() method of your List's adapter. Thanks, Megha On Fri, Apr 18, 2008 at 8:13 AM, Pzikit Bloo <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I'm trying to create a ListView, with a TextView and two ImageButton > per row. The problem comes when I try to add an OnClickListener to > each button. I did in this way: > > -- row.xml -- > > > android:id="@+id/button1" >android:layout_width="35dip" >android:layout_height="35dip" >android:src="@android:drawable/arrow_down_panel_bezel" /> > > > > -- .java -- > ... > ImageButton ib1 = (ImageButton) this.findViewById(R.id.button1); > ib1.setOnClickListener(new View.OnClickListener() { >@Override >public void onClick(View arg0) { > >} > }); > > But I get a NullPointerException. > What's the right way to do that? > > Thanks, > Pzikit Bloo > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to create multiple tabhost by clicking a button
You can use the TabHost widget for this: http://code.google.com/android/reference/android/widget/TabHost.html Some sample code is provided in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/d680f9bf602c0d1b/ad622d3557aa Thanks, Megha On Fri, Apr 18, 2008 at 6:34 AM, Ashok <[EMAIL PROTECTED]> wrote: > > i'd like to creat multiple tabs by clicking a single button..is it > possbile to create..can anyone tell me how to do that.. > thanks.. > Ashok.. > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem of resume a SurfaceView
Hi, Could you post your code to help us debug this issue...did you check the ApiDemos > SurfaceView example? Thanks, Megha On Thu, Apr 17, 2008 at 6:03 PM, Macro <[EMAIL PROTECTED]> wrote: > > At the beginning, the SurfaceView can draw OpenGL scene correct. > But while I launch another Activity , after that close the new- > launched Activity and return to the original Activity. > Then the SurfaceView became empty and cann't draw anything. > That's why? > There are any action must be done in onResume() callback? > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem viewing mp4 on first start up
Hi, Are you using VideoView? Did you call VideoView.requestFocus() ? Did you check out the media sample code posted on the groups? Thanks, Megha On Fri, Apr 18, 2008 at 1:21 AM, Mi <[EMAIL PROTECTED]> wrote: > > Hi, > > I have implemented a video player but I have a problem. Playing 3pg > files works fine but when I us my player to play mp4 files the image > is ether all black or in strange colors the first time I start the > video. If a stop it and starts the same video again i t works fine. > Has some one a suggestion of what might be the problem? > > Tanks for helping. > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: questions of inserting image
Hi, I am not sure what network means here. Are you passing messages between two android devices, or an android device and your server? Thanks, Megha On Thu, Apr 17, 2008 at 10:58 AM, Pierre <[EMAIL PROTECTED]> wrote: > > I want to design an simple multimedia message interface for testing > the network. And now I have a question of how to insert image into the > message. Is there anyone who can tell me about 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Test Cases for Google Android phone???
Hello All I could find information about the test frame in the android SDK but couldn't find any TEST CASES.(test cases to validate API s as well as test cases to test the functionality of the mobile applications). who will be responsible for these test cases? will google provide all the test cases or the OEM has to develop the test cases by itself using the test frame work provided by google? Can some one help me clarify this point? Best Regards, Sudheer -- Two roads diverged in a yellow wood, And sorry I could not travel both…… ..and I-- I took the one less traveled by, And that has made all the difference. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---