[android-developers] Re: IWindowManager Not Available
Actually you can use some of them. Just add tools\lib\layoutlib.jar to the build path (Eclipse: right click the project, select Build Path/ Add Libraries. Click User Libraries, select Android libs, click Add JARs, browse to layoutlib.jar, click OK, Finish etc.) BR Lars Brange / User Library On Mar 19, 12:51 pm, AndRaj rajendran.b...@gmail.com wrote: Thanks for the reply... On Mar 19, 1:10 pm, Dianne Hackborn hack...@android.com wrote: Just because you can browse through the source and find something doesn't mean it is supported for application development. You can use the APIs in the SDK. Things that are not in the SDK were deliberately removed because they can change in arbitrary ways across versions of the platform. On Thu, Mar 19, 2009 at 12:25 AM, AndRaj rajendran.b...@gmail.com wrote: Really... Is it, as an application developer I can only use the ADK API's. But I can able to see the source of those API's, then I can use those classes in my applicaition right On Mar 19, 12:18 pm, Dianne Hackborn hack...@android.com wrote: No, you can't. It is internal implementation details of the platform. On Wed, Mar 18, 2009 at 11:59 PM, AndRaj rajendran.b...@gmail.com wrote: If I want to use those thing into my application. How can I use. Is there any way to do that. I want to create a object for the Iwindowmanager class. Ho can I do this... On Mar 19, 12:38 am, Dianne Hackborn hack...@android.com wrote: Those are not part of the SDK. On Wed, Mar 18, 2009 at 6:53 AM, Rajendrakumar C rajendran.b...@gmail.comwrote: Hi All, I downloaded the Android Source to my machine, I have seen the source code. In that I found Iwindowmanager, I activity manager and etc I managers... But when I try to use those things in my application. Those classes and even the packages also not avaiable. Can any one know how to import those classes into our applications. Best Regards, Rajendra -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.- 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: IWindowManager Not Available
Could you please explain why? On Mar 20, 6:13 pm, Dianne Hackborn hack...@android.com wrote: On Thu, Mar 19, 2009 at 7:29 AM, Lars lars.bra...@gmail.com wrote: Actually you can use some of them. Just add tools\lib\layoutlib.jar to the build path (Eclipse: right click the project, select Build Path/ Add Libraries. Click User Libraries, select Android libs, click Add JARs, browse to layoutlib.jar, click OK, Finish etc.) What the...!!! Do NOT do this. Just don't. At all. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Eclipse problems when adding layoutlib.jar to a project
Hello, I need to use the IWindowManager classes et al that resides in the layoutlib.jar file and have added it to my project in Eclipse (3.4.2) as an external Jar. After doing this, Eclipse utilizes 100% CPU (very slow, almost hung) and is unusable when Eclipse tries to build the project. Sometimes I get it to create the classes,dex file but most of the time I have to kill the IDE. Also, the dex-file is very large (around 4MB, when it gets created at all). If I remove layoutlib.jar the project builds normally. 1. How do I use the layoutlib.jar file in my project? 2. How do I prevent the classes.dex file to contain a copy of layoutlib.jar? I assume I don't need the jar file when running the program on the device, or? I use SDK 1.1_r1 Thanks in advance, Lars --~--~-~--~~~---~--~~ 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: Uninstall built-in app
The built-in applications are located in /system/app. Since /system is mounted read-only you cannot uninstall them unless you mount this file system read-write and even then I'm not sure if they can be uninstalled with adb uninstall... Also, I don't think you can change to read-write on a real device since you don't have root access. BR Lars Brange On Mar 5, 3:12 pm, shaddu shad...@gmail.com wrote: Hello Android, We are plannig to write a new music application from scratch. Also we want to uninstall the built-in music application to ensure only our application resides on the phone. adb ls /data/app command doesn't list built-in applications. So, I am unable to uninstall the built in music application without knowing its name. So, I am getting a feeling like built in applications uninstallation is handled in different way. Please provide the full command to uninstall built-in music application. Regards, Shaddu --~--~-~--~~~---~--~~ 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: Eclipse problems when adding layoutlib.jar to a project
I have found the solution myself. These jar files should be added as a User Library. Right click the project in Eclipse, select Build Path and then Add Library. Select User Library and add the jar file there. Lars Brange On Mar 5, 1:34 pm, Lars lars.bra...@gmail.com wrote: Hello, I need to use the IWindowManager classes et al that resides in thelayoutlib.jar file and have added it to my project in Eclipse (3.4.2) as an external Jar. After doing this, Eclipse utilizes 100% CPU (very slow, almost hung) and is unusable when Eclipse tries to build the project. Sometimes I get it to create the classes,dex file but most of the time I have to kill the IDE. Also, the dex-file is very large (around 4MB, when it gets created at all). If I removelayoutlib.jar the project builds normally. 1. How do I use thelayoutlib.jar file in my project? 2. How do I prevent the classes.dex file to contain a copy oflayoutlib.jar? I assume I don't need the jar file when running the program on the device, or? I use SDK 1.1_r1 Thanks in advance, Lars --~--~-~--~~~---~--~~ 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] OOM exception with custom imageadapter
Hi I have a gallery in wich I show a row of images, the images can both be from the Camera gallery or from the internet as a web url. My getView() method makes an exception when I put to many images from the gallery inside it. Should i down sample the images before attaching them to the view? and how is that done ? heres my getView method: public View getView(int position, View convertView, ViewGroup parent) { Controller co = Controller.GetInstance(); ImageView imageView = new ImageView(context); if(co.server.currRecord.image.get(position).containsKey(data)) { // we have a content URI and assign it to the gallery imageView.setImageURI((Uri)co.server.currRecord.image.get(position).get(data)); } else { //we have a web url and need our ImageOperation method to fetch and decode the drawable. imageView.setImageDrawable(FileConvert.ImageOperations(context, Controller.GetInstance().server.currRecord.image.get(position).get(url).toString())); } imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setLayoutParams(new Gallery.LayoutParams(150, 120)); imageView.setBackgroundResource(itemBackground); return imageView; } - Lars -- 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: OOM exception with custom imageadapter
Hi so i've been toying with this and can't seem to get the grip of it... My problem is that ConvertView always is null, and therefore a lot of imageoperations is being done everytime the gallery is scrolling or touched - ergo i get an OOM exception... My getView() is looking like this now, am I doing something wrong (obviously i must be...) public View getView(int position, View convertView, ViewGroup parent) { if(convertView == null) { Controller co = Controller.GetInstance(); ImageView imageView = new ImageView(context); if(co.server.currRecord.image.get(position).containsKey(data)) { // we have a content URI and need to get it converted into a down scaled BitmapDrawable String uri = co.server.currRecord.image.get(position).get(data).toString(); co.server.currRecord.image.get(position).put(BM, FileConvert.BitmapFromContenturi(uri)); imageView.setImageDrawable((BitmapDrawable)co.server.currRecord.image.get(position).get(BM)); } else { //we have a web url and need to get it converted into a down scaled BitmapDrawable String url = (String)co.server.currRecord.image.get(position).get(url); co.server.currRecord.image.get(position).put(BM, FileConvert.BitmapFromURL(url)); imageView.setImageDrawable((BitmapDrawable)co.server.currRecord.image.get(position).get(BM)); } imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setLayoutParams(new Gallery.LayoutParams(150, 120)); imageView.setBackgroundResource(itemBackground); return imageView; } else{ return convertView; } } - Lars On 26 Apr., 09:55, Romain Guy romain...@android.com wrote: Hi, As written, your getView() method *never* reuses the convertView parameter. This means you are creating new Views and new Bitmaps every time the method is called, which happen very often while scrolling/flinging a grid. You first need to start using the convertView when possible (if convertView != null, cast it to an ImageView and set your drawable on it.) Note that setting the scale type, layout params and background resource should be done only when convertView == null. This will save you a lot of time. Finally, you should create a cache for your bitmaps to avoid reloading them all the time. I encourage you to read the source code of the following application to see how to implement an efficient list of images:http://code.google.com/p/shelves/ Also refer to my Google I/O 2009 talk about UI optimization:http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFa... In this talk I describe how to implement getView() efficiently and talk about image caches briefly at the end. On Mon, Apr 26, 2010 at 12:50 AM,Larsaxberg.l...@gmail.com wrote: Hi I have a gallery in wich I show a row of images, the images can both be from the Camera gallery or from the internet as a web url. My getView() method makes an exception when I put to many images from the gallery inside it. Should i down sample the images before attaching them to the view? and how is that done ? heres my getView method: public View getView(int position, View convertView, ViewGroup parent) { Controller co = Controller.GetInstance(); ImageView imageView = new ImageView(context); if(co.server.currRecord.image.get(position).containsKey(data)) { // we have a content URI and assign it to the gallery imageView.setImageURI((Uri)co.server.currRecord.image.get(position).get(data)); } else { //we have a web url and need our ImageOperation method to fetch and decode the drawable. imageView.setImageDrawable(FileConvert.ImageOperations(context, Controller.GetInstance().server.currRecord.image.get(position).get(url).toString())); } imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setLayoutParams(new Gallery.LayoutParams(150, 120)); imageView.setBackgroundResource(itemBackground); return imageView; } -Lars -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android
[android-developers] ScrollView listview again again
Hi I'm new to Android development and having a hard time making the UI, so hopefully someone here can help me with a hint... What I need in my layout is this: RelativeLayout ImageView / TextView / ListView / TextView / ListView / Button / /RelativeLayout as you can see the layout will need scrolling, but adding a scrollview as a root to the RelativeLayout tag, didnt do anything... can anyone help me? - Lars -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Getting images from Intents to be showed correctly in imageview
Hi I'm developing an app, and I want the user to be able to get an image either from their gallery or to use the camera to get the image. The Intents are working fine, but im having trouble showing the pictures in my ImageView, if the image is comming from the Camera intent, the image is cropped and only shown a portion of it, when the image comes from the gallery intent the image is shown fine. Here's the XML layout for the ImageView: ImageView android:id=@+id/image android:layout_width=fill_parent android:layout_height=wrap_content android:maxWidth=250dip android:adjustViewBounds=true android:scaleType=fitCenter android:layout_margin=10dip / And the Java code handling the onActivityResult method from the Camera intent // Insert the picture into Mediastore, and get the content Uri Uri currImageURI = Uri.parse(MediaStore.Images.Media.insertImage(this.getContentResolver(), (Bitmap)data.getExtras().get(data), new Date().toString(), null)); //Set the ImageView to show the image imgView.setImageURI(currImageURI); Can anyone give me an idea of why this is happening? - Lars -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Getting images from Intents to be showed correctly in imageview
Hi Tried removing the maxWidth attribute, it didn't help at all... - Lars On 30 Mar., 20:31, sriharibabu ravi sriandr...@gmail.com wrote: i think this is not problem of camera or gallery pic. even in gallery if u choose pics of different sizes their sizes changes. android:maxWidth=250dip i think this might be prob. On Tue, Mar 30, 2010 at 11:56 PM, Lars axberg.l...@gmail.com wrote: Hi I'm developing an app, and I want the user to be able to get an image either from their gallery or to use the camera to get the image. The Intents are working fine, but im having trouble showing the pictures in my ImageView, if the image is comming from the Camera intent, the image is cropped and only shown a portion of it, when the image comes from the gallery intent the image is shown fine. Here's the XML layout for the ImageView: ImageView android:id=@+id/image android:layout_width=fill_parent android:layout_height=wrap_content android:maxWidth=250dip android:adjustViewBounds=true android:scaleType=fitCenter android:layout_margin=10dip / And the Java code handling the onActivityResult method from the Camera intent // Insert the picture into Mediastore, and get the content Uri Uri currImageURI = Uri.parse(MediaStore.Images.Media.insertImage(this.getContentResolver(), (Bitmap)data.getExtras().get(data), new Date().toString(), null)); //Set the ImageView to show the image imgView.setImageURI(currImageURI); Can anyone give me an idea of why this is happening? - Lars -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Is http://developer.android.com down...?
Not here On Thursday 14 April 2011 13:59:13 Jitesh dedhiya wrote: -- 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] bitmaps into listview with cursorloader
Could someone give me some advice on how i can load a bitmap from a data ase in a listview using a cursor loader. 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] AlertDialog
Hi, I have a problem with a alertDialog private AlertDialog nameDialog; nameDialog = new AlertDialog.Builder(this).create(); nameDialog.setTitle(R.string.errorName); nameDialog.setMessage(getString(R.string.errorNameText)); nameDialog.setIcon(R.drawable.ic_alert); nameDialog.setIconAttribute(R.a) nameDialog.setButton(OK, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub nameDialog.cancel(); } }); the theme of my app is the holo light with daractionbar and now when i open a alertdialog the icon used by default by the alertdialog is white with a white background. i tried to change that by using a custom icon. // nameDialog.setIcon(R.drawable.ic_alert); but this seems to be ignored. and i don't have any idea why.. With kind regards Lars PS: sorry for my terrible english. -- 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] Listview Selector
Hi i got a problem with a listview, how can i get to change the state when my listview item is selected (in the use of multipane view) i only need to change that state the other states like pressed and things i like to keep default 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] Android Transaction
I wonder what the correct way of handeling a fragment is. the fragment that i have, contain data from the web. each time i switch trough i fragment the fragment get removed so when i switch back the data needs to get downloaded again. how do i preserve the fragment? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] searchview icon
I am creating an android 4.0 application in this application i got tabs with listfragments for each fragment i need a searchview so i generate a new searchview with code in each fragments and that works but the icon is in the style of honeycomb and when i create searchview using xml (here i create for each searchview a new xml) it works but when i switch tabs the i get a nullpointer exception caused bij the onquerytext change. Any ideas how i can fix this? 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: SearchView Icon help!!
Op zondag 8 april 2012 13:18:15 UTC+2 schreef Lars het volgende: i am creating a android 4.03 application and i am making a searchview with this code @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { MenuItem item = menu.add(Search); item.setIcon(android.R.drawable.ic_menu_search); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); SearchView sv = new SearchView(getActivity()); sv.setOnQueryTextListener(this); item.setActionView(sv); } Op zondag 8 april 2012 13:18:15 UTC+2 schreef Lars het volgende: i am creating a android 4.03 application and i am making a searchview with this code @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { MenuItem item = menu.add(Search); item.setIcon(android.R.drawable.ic_menu_search); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); SearchView sv = new SearchView(getActivity()); sv.setOnQueryTextListener(this); item.setActionView(sv); } EDIT forgot to mention that what the problem is that the icon i get is in honeycomb style and not in ics style -- 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: Searchview in tabs
Any idea??!!! I really need help with it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Searchview problems
I have made a android 4.03 test project with tabs and listfragments, the listfragments contain a searchview there are a few problems with the searchview 1. the searchview still contains the searched data when you switch a tab 2. the listfragment is blank the first instance when the searchview is never searched on when you switch a tab. here is the source code of the project hope you guys can help me with this https://code.google.com/p/searchview-test/ the zipped projected can be found in the download section -- 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] searchview theming issue
When creating a searchview in an android 4.03 when using the theme holo light with darkactionbar The style of the drawables of the searchview Doesn't match. If have already reported it as a bug. http://code.google.com/p/android/issues/detail?id=29288 Is there a way to set the style of the searchview When using the holo light darkactionbar theme To the style when using the theme holo dark?? Which has the right drawables. -- 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] searchview theming issue
When creating a searchview in an android 4.03 when using the theme holo light with darkactionbar The style of the drawables of the searchview Doesn't match. If have already reported it as a bug. http://code.google.com/p/android/issues/detail?id=29288 Is there a way to set the style of the searchview When using the holo light darkactionbar theme To the style when using the theme holo dark?? Which has the right drawables. -- 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: searchview theming issue
Alright thanks i will try. where do i put it exactly? -- 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: searchview theming issue
i did sv.getContext().setTheme(android.R.style.Theme_Holo_Light); // sv is the searchview but now it also changes the theme of the other views is there a possibility to only change the searchview Op maandag 23 april 2012 01:21:16 UTC+2 schreef dnkoutso het volgende: When you instantiate the SearchView use getThemedContext() instead of getContext(). On Sunday, April 22, 2012 2:48:04 PM UTC-7, Lars wrote: When creating a searchview in an android 4.03 when using the theme holo light with darkactionbar The style of the drawables of the searchview Doesn't match. If have already reported it as a bug. http://code.google.com/p/android/issues/detail?id=29288 Is there a way to set the style of the searchview When using the holo light darkactionbar theme To the style when using the theme holo dark?? Which has the right drawables. -- 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] styling a searchview widget
Is it possible to create a style extending the holo.light.darkactionbar Theme for my searchview widget? because the style for that theme doesn't exist. -- 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] Help, eclipse does'nt show any errors, but app does'nt work on phone.
Hello I am new at this site and new at developing. The first activity in my application has 5 buttons, every one of them should(at som point when I get it done) lead to a web page using the webview wigdet. Eclipse does'nt show any errors or mistakes in the code ANYWHERE. BUT, when I try to run the app on my phone it only shows my background color and the applications name. This is what Eclipse shows (picture is taken with my phone) in main.xml https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg This is what my phone shows: as you can see theres something wrong. but what? please help me. Thanks, Lars. https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png -- 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] Help, eclipse does'nt show any errors, but app does'nt work on phone.
Okay, I will post the code when I get home. What do you need to see, Java or 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] Help, eclipse does'nt show any errors, but app does'nt work on phone.
Here's my activity.java: package lars.browser; import lars.browser.dagensbilde; import android.app.Activity; import android.os.Bundle; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; public class BrowserActivity extends Activity { /** Called when the activity is first created. */ public void onClick(View v) { if (v.getId() == R.id.dagens_button) { View dagens_button = findViewById(R.id.dagens_button); dagens_button.setOnClickListener((OnClickListener) this); Intent i = new Intent(this, dagensbilde.class); startActivity(i); And here's my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=fill_parent android:background=@color/background android:orientation=horizontal android:padding=30dip LinearLayout android:orientation=vertical android:layout_height=wrap_content android:layout_width=fill_parent android:layout_gravity=center TextView android:text=@string/main_title android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center android:layout_marginBottom=25dip android:textSize=24.5sp/ Button android:id=@+id/nyeste_button android:layout_width=265dp android:layout_height=wrap_content android:layout_gravity=center android:text=@string/nyeste_text android:textSize=20sp / Button android:id=@+id/dagens_button android:layout_width=265dp android:layout_height=wrap_content android:layout_gravity=center android:text=@string/dagens_text android:textSize=20sp / Button android:id=@+id/måneds_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/måneds_text android:layout_gravity=center android:textSize=20sp/ Button android:id=@+id/alltid_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/alltid_text android:layout_gravity=center android:textSize=20sp/ Button android:id=@+id/aboutdev_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/aboutdev_button android:layout_gravity=center android:textSize=20sp/ /LinearLayout /LinearLayout Please tell me if i need anything. Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl: Get Jetboy working first. http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/ It will teach you a lot and only take 1hour. On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson magouyaw...@gmail.comwrote: Without seeing your code there is no way of knowing... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote: Hello I am new at this site and new at developing. The first activity in my application has 5 buttons, every one of them should(at som point when I get it done) lead to a web page using the webview wigdet. Eclipse does'nt show any errors or mistakes in the code ANYWHERE. BUT, when I try to run the app on my phone it only shows my background color and the applications name. This is what Eclipse shows (picture is taken with my phone) in main.xml https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg This is what my phone shows: as you can see theres something wrong. but what? please help me. Thanks, Lars. https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png -- 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 -- 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] Help, eclipse does'nt show any errors, but app does'nt work on phone.
Thank you very much =). It worked=) But of some reason when i press the dagens_button on my phone it does'nt open the attached(dagensbilde.java) activity(which is a webview activity). Did i do something wrong in the code i already posted. Thank you in advance. Lars. Den onsdag den 13. juni 2012 20.45.49 UTC+2 skrev Chris Ruskai: If that's your entire Activity, I don't see an onCreate function or anything that calls setContentView to tell the app which xml file to use for the activity's layout. For example: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } On Wed, Jun 13, 2012 at 11:22 AM, Lars lars.breum...@gmail.com wrote: Here's my activity.java: package lars.browser; import lars.browser.dagensbilde; import android.app.Activity; import android.os.Bundle; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; public class BrowserActivity extends Activity { /** Called when the activity is first created. */ public void onClick(View v) { if (v.getId() == R.id.dagens_button) { View dagens_button = findViewById(R.id.dagens_button); dagens_button.setOnClickListener((OnClickListener) this); Intent i = new Intent(this, dagensbilde.class); startActivity(i); And here's my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=fill_parent android:background=@color/background android:orientation=horizontal android:padding=30dip LinearLayout android:orientation=vertical android:layout_height=wrap_content android:layout_width=fill_parent android:layout_gravity=center TextView android:text=@string/main_title android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center android:layout_marginBottom=25dip android:textSize=24.5sp/ Button android:id=@+id/nyeste_button android:layout_width=265dp android:layout_height=wrap_content android:layout_gravity=center android:text=@string/nyeste_text android:textSize=20sp / Button android:id=@+id/dagens_button android:layout_width=265dp android:layout_height=wrap_content android:layout_gravity=center android:text=@string/dagens_text android:textSize=20sp / Button android:id=@+id/måneds_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/måneds_text android:layout_gravity=center android:textSize=20sp/ Button android:id=@+id/alltid_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/alltid_text android:layout_gravity=center android:textSize=20sp/ Button android:id=@+id/aboutdev_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/aboutdev_button android:layout_gravity=center android:textSize=20sp/ /LinearLayout /LinearLayout Please tell me if i need anything. Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl: Get Jetboy working first. http://www.udemy.com/write-**and-publish-an-app-for-your-** android-smartphone/http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/ It will teach you a lot and only take 1hour. On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson magouyaw...@gmail.comwrote: Without seeing your code there is no way of knowing... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote: Hello I am new at this site and new at developing. The first activity in my application has 5 buttons, every one of them should(at som point when I get it done) lead to a web page using the webview wigdet. Eclipse does'nt show any errors or mistakes in the code ANYWHERE. BUT, when I try to run the app on my phone it only shows my background color and the applications name. This is what Eclipse shows (picture is taken with my phone) in main.xml https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg This is what my phone shows: as you can see theres something wrong. but what? please help me. Thanks, Lars. https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png -- 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 android-developers
Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.
It seems i implemented the OnClickListener correctly, my phone makes a sound when i click the button, but does'nt open the next activity. My code is below, but i don't know what the error means. btw i bought a book a couple a months ago; Hello android, third edition. It got me started but it seems to be no good at debugging. Especially becuase i wrote exactly what it told me(with the exeptions of the buttons names etc.). Thank you very much :) public class BrowserActivity extends Activity { protected void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); final Button dagens_button = (Button) findViewById(R.id.dagens_button); dagens_button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { switch (v.getId()){ case R.id.dagens_button: Intent i = new Intent(this, dagensbilde.class); *there is an error here: The constructor Intent(new View.OnClickListener(){}, Classdagensbilde) is undefined startActivity(i); break; } // Perform action on click } }); }{; }} Den onsdag den 13. juni 2012 20.45.49 UTC+2 skrev Chris Ruskai: If that's your entire Activity, I don't see an onCreate function or anything that calls setContentView to tell the app which xml file to use for the activity's layout. For example: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } On Wed, Jun 13, 2012 at 11:22 AM, Lars lars.breum...@gmail.com wrote: Here's my activity.java: package lars.browser; import lars.browser.dagensbilde; import android.app.Activity; import android.os.Bundle; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; public class BrowserActivity extends Activity { /** Called when the activity is first created. */ public void onClick(View v) { if (v.getId() == R.id.dagens_button) { View dagens_button = findViewById(R.id.dagens_button); dagens_button.setOnClickListener((OnClickListener) this); Intent i = new Intent(this, dagensbilde.class); startActivity(i); And here's my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=fill_parent android:background=@color/background android:orientation=horizontal android:padding=30dip LinearLayout android:orientation=vertical android:layout_height=wrap_content android:layout_width=fill_parent android:layout_gravity=center TextView android:text=@string/main_title android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center android:layout_marginBottom=25dip android:textSize=24.5sp/ Button android:id=@+id/nyeste_button android:layout_width=265dp android:layout_height=wrap_content android:layout_gravity=center android:text=@string/nyeste_text android:textSize=20sp / Button android:id=@+id/dagens_button android:layout_width=265dp android:layout_height=wrap_content android:layout_gravity=center android:text=@string/dagens_text android:textSize=20sp / Button android:id=@+id/måneds_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/måneds_text android:layout_gravity=center android:textSize=20sp/ Button android:id=@+id/alltid_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/alltid_text android:layout_gravity=center android:textSize=20sp/ Button android:id=@+id/aboutdev_button android:layout_width=265dp android:layout_height=wrap_content android:text=@string/aboutdev_button android:layout_gravity=center android:textSize=20sp/ /LinearLayout /LinearLayout Please tell me if i need anything. Den onsdag den 13. juni 2012 01.52.28 UTC+2 skrev cellurl: Get Jetboy working first. http://www.udemy.com/write-**and-publish-an-app-for-your-** android-smartphone/http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/ It will teach you a lot and only take 1hour. On Tue, Jun 12, 2012 at 5:50 PM, Justin Anderson magouyaw...@gmail.comwrote: Without seeing your code there is no way of knowing... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Thu, Jun 7, 2012 at 1:21 PM, Lars lars.breum...@gmail.com wrote: Hello I am new at this site and new at developing. The first activity in my application has 5 buttons
Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.
I did as you wrote, and it seems to work. But, when I press the button, the app closes unexpectedly. I have declared the next activity in the android manifest. I can't show you the code till I get home. Thanks for the 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
Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.
I tried that. The logcat output shows me 14 red error lines. I don't understand very little of what it tell. Here is the errors: (do you need to see my androidManifest.xml?) 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main 06-15 19:21:53.139: E/AndroidRuntime(28730): android.content.ActivityNotFoundException: Unable to find explicit activity class {lars.browser/lars.browser.dagensbilde}; have you declared this activity in your AndroidManifest.xml? 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.startActivityForResult(Activity.java:3190) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.startActivity(Activity.java:3297) 06-15 19:21:53.139: E/AndroidRuntime(28730): at lars.browser.BrowserActivity$1.onClick(BrowserActivity.java:24) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View.performClick(View.java:3511) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View$PerformClick.run(View.java:14105) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.handleCallback(Handler.java:605) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.dispatchMessage(Handler.java:92) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Looper.loop(Looper.java:137) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.ActivityThread.main(ActivityThread.java:4575) 06-15 19:21:53.139: E/AndroidRuntime(28730): at java.lang.reflect.Method.invokeNative(Native Method) 06-15 19:21:53.139: E/AndroidRuntime(28730): at java.lang.reflect.Method.invoke(Method.java:511) 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556) 06-15 19:21:53.139: E/AndroidRuntime(28730): at dalvik.system.NativeStart.main(Native Method) Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare: When the app closes unexpectedly the best thing to do to figure out the cause of the problem is to look at the logcat output... It will usually tell you the file and the line where the crash happened, along with what the problem is (e.g. NullPointerException, etc...) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jun 15, 2012 at 7:33 AM, Lars lars.breum...@gmail.com wrote: I did as you wrote, and it seems to work. But, when I press the button, the app closes unexpectedly. I have declared the next activity in the android manifest. I can't show you the code till I get home. Thanks for the 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 -- 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] Help, eclipse does'nt show any errors, but app does'nt work on phone.
Were you able to see that from the error log? I can't find any errors, when i look in my book it seems i wrote the same(with the modifications of the names). But i am probably not writing the same =) Here's my entire androidManifest.xml: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=lars.browser android:versionCode=1 android:versionName=1.0 xmlns:tools=http://schemas.android.com/tools; tools:ignore=HardcodedDebugMode uses-sdk android:minSdkVersion=8 / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:debuggable=true activity android:name=.BrowserActivity android:label=@string/app_name activity android:name=.dagensbilde android:label=@string/dagens_label android:launchMode=standard /activity intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Den fredag den 15. juni 2012 19.35.11 UTC+2 skrev Raghav Sood: You haven't declared one of your Activities in your manifest, or it has been declared incorrectly. So yeah, we would need to see your manifest. On Fri, Jun 15, 2012 at 10:58 PM, Lars lars.breum...@gmail.com wrote: I tried that. The logcat output shows me 14 red error lines. I don't understand very little of what it tell. Here is the errors: (do you need to see my androidManifest.xml?) 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main 06-15 19:21:53.139: E/AndroidRuntime(28730): android.content.ActivityNotFoundException: Unable to find explicit activity class {lars.browser/lars.browser.dagensbilde}; have you declared this activity in your AndroidManifest.xml? 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.startActivityForResult(Activity.java:3190) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.startActivity(Activity.java:3297) 06-15 19:21:53.139: E/AndroidRuntime(28730): at lars.browser.BrowserActivity$1.onClick(BrowserActivity.java:24) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View.performClick(View.java:3511) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View$PerformClick.run(View.java:14105) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.handleCallback(Handler.java:605) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.dispatchMessage(Handler.java:92) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Looper.loop(Looper.java:137) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.ActivityThread.main(ActivityThread.java:4575) 06-15 19:21:53.139: E/AndroidRuntime(28730): at java.lang.reflect.Method.invokeNative(Native Method) 06-15 19:21:53.139: E/AndroidRuntime(28730): at java.lang.reflect.Method.invoke(Method.java:511) 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556) 06-15 19:21:53.139: E/AndroidRuntime(28730): at dalvik.system.NativeStart.main(Native Method) Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare: When the app closes unexpectedly the best thing to do to figure out the cause of the problem is to look at the logcat output... It will usually tell you the file and the line where the crash happened, along with what the problem is (e.g. NullPointerException, etc...) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Fri, Jun 15, 2012 at 7:33 AM, Lars lars.breum...@gmail.com wrote: I did as you wrote, and it seems to work. But, when I press the button, the app closes unexpectedly. I have declared the next activity in the android manifest. I can't show you the code till I get home. Thanks for the 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp
Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.
I worked what you wrote :). But when I enter the webpage it tells me to enable javascript and cookies. I have enabled javascript but I am not sure i enabled cookies right(but sometimes it opens anyway?). plus i can't zoom and scroll within the application, even though i implemented it. Heres the code: public class dagensbilde extends Activity { WebView webView1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dagensbilde); CookieSyncManager.getInstance().startSync(); webView1 = (WebView) findViewById(R.id.webView1); webView1.setWebViewClient(new ourViewClient()); try{ webView1.loadUrl(http://www.artige.no/dagens/0;); }catch (Exception e){ e.printStackTrace(); webView1.getSettings().setJavaScriptEnabled(true); webView1.getSettings().setBuiltInZoomControls(true); webView1.getSettings().setLoadWithOverviewMode(true); webView1.getSettings().setUseWideViewPort(true); webView1.getSettings().setLoadsImagesAutomatically(true); webView1.getScrollX(); webView1.getSettings().setSupportZoom(true); webView1.getSettings().getBuiltInZoomControls(); Den fredag den 15. juni 2012 20.55.41 UTC+2 skrev Raghav Sood: You've put an activity tag inside another activity tag. You aren't supposed to do that. Try using: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=lars.browser android:versionCode=1 android:versionName=1.0 xmlns:tools= http://schemas.android.com/tools; tools:ignore=HardcodedDebugMode uses-sdk android:minSdkVersion=8 / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:debuggable=true activity android:name=.BrowserActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.dagensbilde android:label=@string/dagens_label android:launchMode=standard /activity /application /manifest On Sat, Jun 16, 2012 at 12:12 AM, Lars lars.breum...@gmail.com wrote: Were you able to see that from the error log? I can't find any errors, when i look in my book it seems i wrote the same(with the modifications of the names). But i am probably not writing the same =) Here's my entire androidManifest.xml: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=lars.browser android:versionCode=1 android:versionName=1.0 xmlns:tools= http://schemas.android.com/tools; tools:ignore=HardcodedDebugMode uses-sdk android:minSdkVersion=8 / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:debuggable=true activity android:name=.BrowserActivity android:label=@string/app_name activity android:name=.dagensbilde android:label=@string/dagens_label android:launchMode=standard /activity intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Den fredag den 15. juni 2012 19.35.11 UTC+2 skrev Raghav Sood: You haven't declared one of your Activities in your manifest, or it has been declared incorrectly. So yeah, we would need to see your manifest. On Fri, Jun 15, 2012 at 10:58 PM, Lars lars.breum...@gmail.com wrote: I tried that. The logcat output shows me 14 red error lines. I don't understand very little of what it tell. Here is the errors: (do you need to see my androidManifest.xml?) 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main 06-15 19:21:53.139: E/AndroidRuntime(28730): android.content.**ActivityNotFoundException: Unable to find explicit activity class {lars.browser/lars.browser.**dagensbilde}; have you declared this activity in your AndroidManifest.xml? 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.**checkStartActivityResult(** Instrumentation.java:1508) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.**execStartActivity(** Instrumentation.java:1384) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.** startActivityForResult(**Activity.java:3190) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.** startActivity(Activity.java:**3297) 06-15 19:21:53.139: E/AndroidRuntime(28730): at lars.browser.BrowserActivity$**1.onClick(BrowserActivity.**java:24) 06
Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.
It worked what you wrote :). But when I enter the webpage it tells me to enable javascript and cookies. I have enabled javascript but I am not sure i enabled cookies right(but sometimes it opens anyway?). plus i can't zoom and scroll horizontal within the application, even though i implemented it. Heres the code: public class dagensbilde extends Activity { WebView webView1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dagensbilde); CookieSyncManager.getInstance().startSync(); webView1 = (WebView) findViewById(R.id.webView1); webView1.setWebViewClient(new ourViewClient()); try{ webView1.loadUrl(http://www.artige.no/dagens/0;); }catch (Exception e){ e.printStackTrace(); webView1.getSettings().setJavaScriptEnabled(true); webView1.getSettings().setBuiltInZoomControls(true); webView1.getSettings().setLoadWithOverviewMode(true); webView1.getSettings().setUseWideViewPort(true); webView1.getSettings().setLoadsImagesAutomatically(true); webView1.getScrollX(); webView1.getSettings().setSupportZoom(true); webView1.getSettings().getBuiltInZoomControls() Den fredag den 15. juni 2012 20.55.41 UTC+2 skrev Raghav Sood: You've put an activity tag inside another activity tag. You aren't supposed to do that. Try using: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=lars.browser android:versionCode=1 android:versionName=1.0 xmlns:tools= http://schemas.android.com/tools; tools:ignore=HardcodedDebugMode uses-sdk android:minSdkVersion=8 / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:debuggable=true activity android:name=.BrowserActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.dagensbilde android:label=@string/dagens_label android:launchMode=standard /activity /application /manifest On Sat, Jun 16, 2012 at 12:12 AM, Lars lars.breum...@gmail.com wrote: Were you able to see that from the error log? I can't find any errors, when i look in my book it seems i wrote the same(with the modifications of the names). But i am probably not writing the same =) Here's my entire androidManifest.xml: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=lars.browser android:versionCode=1 android:versionName=1.0 xmlns:tools= http://schemas.android.com/tools; tools:ignore=HardcodedDebugMode uses-sdk android:minSdkVersion=8 / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:debuggable=true activity android:name=.BrowserActivity android:label=@string/app_name activity android:name=.dagensbilde android:label=@string/dagens_label android:launchMode=standard /activity intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Den fredag den 15. juni 2012 19.35.11 UTC+2 skrev Raghav Sood: You haven't declared one of your Activities in your manifest, or it has been declared incorrectly. So yeah, we would need to see your manifest. On Fri, Jun 15, 2012 at 10:58 PM, Lars lars.breum...@gmail.com wrote: I tried that. The logcat output shows me 14 red error lines. I don't understand very little of what it tell. Here is the errors: (do you need to see my androidManifest.xml?) 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main 06-15 19:21:53.139: E/AndroidRuntime(28730): android.content.**ActivityNotFoundException: Unable to find explicit activity class {lars.browser/lars.browser.**dagensbilde}; have you declared this activity in your AndroidManifest.xml? 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.**checkStartActivityResult(** Instrumentation.java:1508) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Instrumentation.**execStartActivity(** Instrumentation.java:1384) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.** startActivityForResult(**Activity.java:3190) 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.** startActivity(Activity.java:**3297) 06-15 19:21:53.139: E/AndroidRuntime(28730): at lars.browser.BrowserActivity$**1.onClick(BrowserActivity
[android-developers] Re: Help, eclipse does'nt show any errors, but app does'nt work on phone.
Hello out there. In my application I have 5 buttons, but i can only make 1 one of them work(well i've only tried with 2 buttons =)) Eclipse doesn't show any errors, but nothing happens when i press the nyeste_button. final Button dagens_button = (Button) findViewById(R.id.dagens_button); dagens_button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { switch (v.getId()){ case R.id.dagens_button: Intent i = new Intent(BrowserActivity.this, dagensbilde.class);; startActivity(i); switch (v.getId()){ case R.id.nyeste_button: Intent i1 = new Intent(BrowserActivity.this, nyestebilde.class);; startActivity(i1); break; } // Perform action on click } {; }{; }};;;{;;;};});}} Den torsdag den 7. juni 2012 21.21.26 UTC+2 skrev Lars: Hello I am new at this site and new at developing. The first activity in my application has 5 buttons, every one of them should(at som point when I get it done) lead to a web page using the webview wigdet. Eclipse does'nt show any errors or mistakes in the code ANYWHERE. BUT, when I try to run the app on my phone it only shows my background color and the applications name. This is what Eclipse shows (picture is taken with my phone) in main.xml https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg This is what my phone shows: as you can see theres something wrong. but what? please help me. Thanks, Lars. https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png -- 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: Help, eclipse does'nt show any errors, but app does'nt work on phone.
I would love it if you told me all the errors I made it would really help me =). But do you mean like this: final Button dagens_button = (Button) findViewById(R.id.dagens_button); dagens_button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { switch (v.getId()){ case R.id.dagens_button: *final Button nyeste_button = (Button) findViewById(R.id.nyeste_button);* Intent i = new Intent(BrowserActivity.this, dagensbilde.class);; startActivity(i); switch (v.getId()){ case R.id.nyeste_button: Intent i1 = new Intent(BrowserActivity.this, nyestebilde.class);; startActivity(i1); break; } // Perform action on click } {; }{; }};;;{;;;};});}} Den onsdag den 20. juni 2012 18.53.51 UTC+2 skrev MagouyaWare: And also, your use of switch statements is seriously flawed... But that has nothing to do with the actual problem you are having. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 10:52 AM, Justin Anderson magouyaw...@gmail.comwrote: That is because your click listener ONLY exists for the dagens_button... You are using an anonymous class on dagens_button. Thus, that is the only view that will ever get the onClick event and you can take the case statement out. Do the same thing for nyeste_button and it will work... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 10:35 AM, Lars lars.breum...@gmail.com wrote: Hello out there. In my application I have 5 buttons, but i can only make 1 one of them work(well i've only tried with 2 buttons =)) Eclipse doesn't show any errors, but nothing happens when i press the nyeste_button. final Button dagens_button = (Button) findViewById(R.id.dagens_button); dagens_button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { switch (v.getId()){ case R.id.dagens_button: Intent i = new Intent(BrowserActivity.this, dagensbilde.class);; startActivity(i); switch (v.getId()){ case R.id.nyeste_button: Intent i1 = new Intent(BrowserActivity.this, nyestebilde.class);; startActivity(i1); break; } // Perform action on click } {; }{; }};;;{;;;};});}} Den torsdag den 7. juni 2012 21.21.26 UTC+2 skrev Lars: Hello I am new at this site and new at developing. The first activity in my application has 5 buttons, every one of them should(at som point when I get it done) lead to a web page using the webview wigdet. Eclipse does'nt show any errors or mistakes in the code ANYWHERE. BUT, when I try to run the app on my phone it only shows my background color and the applications name. This is what Eclipse shows (picture is taken with my phone) in main.xml https://lh6.googleusercontent.com/-Eh4Mstm6RTI/T9D-o7D2CsI/Edo/mNDvt-qH0k8/s1600/IMG_20120607_211404.jpg This is what my phone shows: as you can see theres something wrong. but what? please help me. Thanks, Lars. https://lh6.googleusercontent.com/-hF-KuNJLMk8/T9D9_s8LeXI/EdY/_iry-jMFNv4/s1600/Screenshot_2012-06-07-19-05-04.png -- 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
Re: [android-developers] Re: Help, eclipse does'nt show any errors, but app does'nt work on phone.
Eclipse (of some reason) tells me to type them, or i will get errors. I'm very new at making apps(+ I do this in my free time I'am fifteen years old). All do is: I read in my book trying to type in eclipse, and then i try to get help from here. Den onsdag den 20. juni 2012 20.24.13 UTC+2 skrev MagouyaWare: I would love it if you told me all the errors I made it would really help me =). But do you mean like this: final Button dagens_button = (Button) findViewById(R.id.dagens_button); dagens_button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { switch (v.getId()){ case R.id.dagens_button: *final Button nyeste_button = (Button) findViewById(R.id.nyeste_button);* Intent i = new Intent(BrowserActivity.this, dagensbilde.class);; startActivity(i); switch (v.getId()){ case R.id.nyeste_button: Intent i1 = new Intent(BrowserActivity.this, nyestebilde.class);; startActivity(i1); break; } // Perform action on click } {; }{; }};;;{;;;};});}} I don't do this very often... but WTF?? - What in the world are all the braces and semi-colons for? - Why are you nesting switch statements? - Why do you even have a switch statement if there is only one case? - You are still not setting a click listener on nyeste_buttton... - Even if you did, you wouldn't be setting it until AFTER you clicked on dagens_button... - Need I go on? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 12:16 PM, Lars lars.breum...@gmail.com wrote: I would love it if you told me all the errors I made it would really help me =). But do you mean like this: final Button dagens_button = (Button) findViewById(R.id.dagens_button); dagens_button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { switch (v.getId()){ case R.id.dagens_button: *final Button nyeste_button = (Button) findViewById(R.id.nyeste_button);* Intent i = new Intent(BrowserActivity.this, dagensbilde.class);; startActivity(i); switch (v.getId()){ case R.id.nyeste_button: Intent i1 = new Intent(BrowserActivity.this, nyestebilde.class);; startActivity(i1); break; } // Perform action on click } {; }{; }};;;{;;;};});}} -- 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: Help, eclipse does'nt show any errors, but app does'nt work on phone.
Thank you I really appreciate you post=) I just misunderstood the point of this forum. You know any beginner forums?(english or danish). Den onsdag den 20. juni 2012 21.08.36 UTC+2 skrev Nobu Games: Hey Lars, good to see that you want to learn programming at your young age and picked Android for doing your first few steps. It's a great choice for that, in my opinion. But you need to understand that this forum is not meant to answer beginner questions. We actually assume that you already know programming and especially Java by your heart. And all your questions here clearly show that you still have quite some way to go. You should try and find a beginners level Java forum where people are glad to help you out with your questions. But anyway, keep up your spirit. I think playing around with existing code samples is the way to go. On Wednesday, June 20, 2012 1:53:26 PM UTC-5, Lars wrote: Eclipse (of some reason) tells me to type them, or i will get errors. I'm very new at making apps(+ I do this in my free time I'am fifteen years old). All do is: I read in my book trying to type in eclipse, and then i try to get help from 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
Re: [android-developers] Re: Help, eclipse does'nt show any errors, but app does'nt work on phone.
That's okay dude:-) -- 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: Help, eclipse does'nt show any errors, but app does'nt work on phone.
I have a book it is called: hello, android. By Ed Burnette. Its okay:-) -- 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: Help, eclipse does'nt show any errors, but app does'nt work on phone.
I know:-) I have learned something, the time i have been trying to learn 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] Viewpager and fragments
Hi, I want to have an ongoing viewpager (something like the calendar app) where i can show the days of the year each fragment represents one day. i like to fill that fragment with data from the web but i don't want it too load it again and again each time i add a fragment to the viewpager, so i have a asynctask in my main activity which collects all the data. my question is how can i make an ongoing viewpager and how can i when the data is loaded in the asynctask put the data in the fragments and fill the listviews? 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] LoaderManager OnLoadFinished();
Right now I am experiencing weird behavior from the loadermanager in my app. I got 3 sherlocklistfragments in my app under tabs. when i start up the app it works great the loadermanager does exactly what it should do but when i change the orientation of my app the loadermanager's onloadfinished gets called immediately. Even the oncreateoptionsmenu isn't called before. In an other fragment I experience that the onloadfinished gets called before the background loading is done, when i change the orientation. I call the loadermanager on the last line of my onActivityCreated: getLoaderManager().initLoader(0, null, this).forceload(); Hope somebody can 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 --- 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. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Locationmanager is running after removed listner
Hi I have a service with a location manger and a lister that stores location in the DB. When the client runs stopService the service will remove the listener but for some reason i still get 5 -10 locations update to my listener why do i get this. public void onDestroy() { Log.w(GpsRecService , Shutdown service); m_locationMgr.removeUpdates(listener); } 10-16 16:42:38.043: WARN/GpsRecService(7407): Shutdown service -- here the listner is removed 10-16 16:42:38.073: INFO/LocationUpdater(7407): add location Location [mProvider=gps,mTime=1255704141000,mLatitude=57.72109508514404,mLongitude=12.01827585697174,mHasAltitude=true,mAltitude=117.0,mHasSpeed=true,mSpeed=0.0,mHasBearing=true,mBearing=0.0,mHasAccuracy=true,mAccuracy=24.0,mExtras=Bundle [mParcelledData.dataSize=52]] 10-16 16:42:38.090: new location found store to DB 10-16 16:42:39.833: INFO/LocationUpdater(7407): add location Location [mProvider=gps,mTime=1255704142000,mLatitude=57.72109508514404,mLongitude=12.01827585697174,mHasAltitude=true,mAltitude=117.0,mHasSpeed=true,mSpeed=0.0,mHasBearing=true,mBearing=0.0,mHasAccuracy=true,mAccuracy=24.0,mExtras=Bundle [mParcelledData.dataSize=52]] 10-16 16:42:39.990: new location found store to DB --~--~-~--~~~---~--~~ 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] Create Connection failed msg like the browser app
Hi How do i create a message box that says Connection failed this application requires network access to work and in the message box you click Settings or canceled. The same message box you get when you try to use the browser with no Internet connection. I have looked in the Browser code but could not figure out how the make a button that take you to the phone setting window. --~--~-~--~~~---~--~~ 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] DTMF uplink (in phone calls)
Hi, I am looking for an answer if it is possible to send(uplink) DTMF tones from a 3rd party app. to a ongoing phone call. Public API, Internal API? I have not found any direct information about this in the net. All hints are welcome. Cheers, lasse -- 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: EditText and auto-complete/correct
Actually I had the same problem and found the real solution. autoText is a deprecated feature. However looking more closely on the textAutoComplete function I found that it states that the application will provide the correction list itself. In stead, just use the textAutoCorrect in android:inputType without the textAutoComplete and it will work. Did for me, at least! so in the initial example of this thread you would use: EditText android:id=@+id/alarmMemo android:layout_width=fill_parent android:layout_height=match_parent android:imeOptions=actionNone android:inputType=text|textAutoCorrect|textShortMessage android:maxLength=150/EditText I found the solution courtesy of a quick peek at the WordPress for Android app's resource files! The answer is to remove the android:inputType attribute and substitute it with android:autoText=true. Simple yet effective! -- 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] 3G data is paused when phone goes to idle/sleep
Hi, In my application I would like to send/receive data even when the phone goes to idle/sleep. For Wifi connections, I use WifiManager.WifiLock to make sure that the connection stays alive even when device goes to sleep. But I have not found anything similar for 3G data connections. The current behaviour is that my application pauses the network communication when using 3G and device goes to sleep. How can I make sure that the 3G connection stay alive? Best regards, lasse -- 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] Is it possible to make a custom mapbackground for google maps, with the use of the old map?
Hi I'm currently working on a class that's suppose to retrieve data from Google Maps, blur it and posterize it, for a simplified view of the terrain. But, I'm stuck at getting the bitmap data from google maps. I've tried getDrawingCache();, but its not really a good solution. I'm looking for a method to retrieve a bitmap of the surrounding 10km2, so can anyone tell me if it's possible? -- 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] Using DISTCC to compile Native Libraries?
Hi, Have anyone tried (or even better succeed ), with distributed compiling of Android native libraries? Reading up on DISTCC I think this might be possible. However, since I currently have a limited knowledge of setting up crosscompiling env. , it would be good to know if someone have looked into this before? Cheers, Lars -- 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] SearchView Icon help!!
i am creating a android 4.03 application and i am making a searchview with this code @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { MenuItem item = menu.add(Search); item.setIcon(android.R.drawable.ic_menu_search); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); SearchView sv = new SearchView(getActivity()); sv.setOnQueryTextListener(this); item.setActionView(sv); } -- 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] SearchView icon help!!
i am creating an android 4.03 application, in my application i am using a searchView with this code @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { MenuItem item = menu.add(Search); item.setIcon(android.R.drawable.ic_menu_search); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); SearchView sv = new SearchView(getActivity()); sv.setOnQueryTextListener(this); item.setActionView(sv); } it works perfectly but the icons of my searchview look old and not like the new style https://lh4.googleusercontent.com/-t2-aqMI1yDs/T4F00WO5HeI/AD0/mhT5QPfTk2A/s1600/Knipsel.PNG i want the icons to look like the style of the left menu item how can i accomplish that?? thanks Lars -- 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] Searchview in tabs
-09 10:48:51.072: E/AndroidRuntime(933): at android.os.Looper.loop(Looper.java:137) 04-09 10:48:51.072: E/AndroidRuntime(933): at android.app.ActivityThread.main(ActivityThread.java:4424) 04-09 10:48:51.072: E/AndroidRuntime(933): at java.lang.reflect.Method.invokeNative(Native Method) 04-09 10:48:51.072: E/AndroidRuntime(933): at java.lang.reflect.Method.invoke(Method.java:511) 04-09 10:48:51.072: E/AndroidRuntime(933): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 04-09 10:48:51.072: E/AndroidRuntime(933): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 04-09 10:48:51.072: E/AndroidRuntime(933): at dalvik.system.NativeStart.main(Native Method) and when i leave the try catch it takes the searched text from the 1 fragment to the other. but it need to be removed. this is the menu items xml ?xml version=1.0 encoding=utf-8? menu xmlns:android=http://schemas.android.com/apk/res/android; item android:id=@+id/menu_search_docent android:title=@string/Search android:icon=@drawable/ic_menu_search android:showAsAction=ifRoom android:actionViewClass=android.widget.SearchView / item android:id=@+id/menu_refresh_docent android:icon=@drawable/ic_refresh_hd android:title=@string/Refresh android:showAsAction=ifRoom|withText / /menu also i use for each tab its own xml because i thought maybe that would help. Thanks Lars. -- 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] Google Play Games - Content Rating
Hello, I would like to integrate Google Play Games in my app. Do I have to answer the questions about "sharing data with other users" and "sharing personal data" (I do not know if these are the right expressions, I have the german site) with "Yes" if I intgrate Google Play Games? Regards, Lars -- 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/48a8e83f-e248-4982-a560-ae983fa9e0d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Google Play Games - Content Rating
I meant the questions in the "Content Rating". Am Freitag, 5. Februar 2016 10:24:27 UTC+1 schrieb Lars Fessen: > > Hello, > I would like to integrate Google Play Games in my app. Do I have to answer > the questions about "sharing data with other users" and "sharing personal > data" (I do not know if these are the right expressions, I have the german > site) with "Yes" if I intgrate Google Play Games? > > Regards, > Lars > -- 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/a9c7fbea-90a2-447f-87ff-56d9a796ffd8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Latest Android N OTA brigged my Nexus 6P
I got the OTA update for the Android N Preview. And after installing it, my device is in a endless loop of booting, crashing, booting etc. I am not able to access the devices via USB cable and ADB. Also getting into the bootloader and trying to make a factory reset is not working. What can I do to get my device back to work??? -- 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/b2e6406c-5141-4c26-bbca-cb16a9aa066c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Latest Android N OTA brigged my Nexus 6P
There is no way of doing a factory reset. When selecting this option in the bootloader nothing happens. The device just restarts and is again inside the boot loop. -- 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/8b945596-e99f-4b6e-9944-2b97aadb4cee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: 6P stuck after updating
I have the same issue and until now I haven't found a solution yet :( I already tried to ask several Android Developer "accounts" but until now I haven't heard anything from Google :( My 600€ phone is dead! Thanks Google Am Mittwoch, 18. Mai 2016 23:25:14 UTC+2 schrieb Sebastien Debaenst: > > Hi, > > So I tried instelling the new android n preview on my 6p to test it out. > But the 6p now is stuck at the screen where I need to enter my pin to > unlock it. I tried rebooting and even a hard reset (power down and volume > down...) but that all didn't work. Anyone who has a solution? > -- 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/9e737262-6b9d-4e4c-ad17-dfb5442c9dc4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: 6P stuck after updating
Hi, I found a solution. You need to turn on the device by holding down the power button and the volume down button. In the bootloader menu press the volume down key to select "recovery mode". Press the power button to select. The device will reboot and you will see a little android with a red exklamation mark. Now hold down the power button and press the volume up key once. Than release the power button. In the new menu, press the volume down key to select the "factory reset" option. Press power button to select. Wait a few seconds and when you are back inside the menu just press the power button to reboot now. Your device should now boot and you need to set it up completely but at least you are able to use it again. Hope this works for you. Cheers Lars Am Mittwoch, 18. Mai 2016 23:25:14 UTC+2 schrieb Sebastien Debaenst: > > Hi, > > So I tried instelling the new android n preview on my 6p to test it out. > But the 6p now is stuck at the screen where I need to enter my pin to > unlock it. I tried rebooting and even a hard reset (power down and volume > down...) but that all didn't work. Anyone who has a solution? > -- 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/eb1b6f8b-bcc8-4a2e-9213-2d21d2faca2f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Update/alter Android Preferences dynamicaly
Hi, I have tried to find a way to update the Android Preferences dynamically. Under the /res/xml directory I have placed a XML file with CheckBoxPreference elements. During application usage some of the preferences CheckBoxPreference elements may vary in numbers. Sometimes there may be 10 items and at other times there may be 35. I have tried to place the XML file in the /assets diectory (where read and write is possible) and then tried to replace the R.xml.XMLFileName in the addPreferenceFromResource(R.xml.XMLFileName) with the Assets file - but that won't work. Is it in anyway possible to write to, during runtime programmatically, the XML files placed in the /res directory - and if - how do we do that? Is it possible - programmatically - to create and delete the entries in the preferences - thereby omitting the XML file? Any help is appreciated. Thanks, Lars -- 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] Dynamically update preferences
Hi, we have an XML file placed in the res/xml folder containing our preferences. Is it possible at runtime to add new items to the preferences. Example: The user starts the app and the preferences consists of: America - New York - Los Angeles - Chicago Where all the cities are CheckBoxPreferences. Then the user performs some actions in the application and this triggers that two new cities are added to the preferences: America - New York - Los Angeles - Chicago - Seatlle - Washington We have tried to place the XML file with the preferences in the assets directory, but from there we can't get the preferences into Android Preferences (like we do when the file is placed in the res/xml directory). Anyone that know if it possible at all and how to do it? thanks, Lars -- 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] Dynamically add items to preferences
Hi, we have an XML file placed in the res/xml folder containing our preferences. Is it possible at runtime to add new items to the preferences. Example: The user starts the app and the preferences consists of: America - New York - Los Angeles - Chicago Where all the cities are CheckBoxPreferences. Then the user performs some actions in the application and this triggers that two new cities are added to the preferences: America - New York - Los Angeles - Chicago - Seatlle - Washington Anyone that know if it possible at all and how to do it? thanks, Lars -- 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] Location distanceBetween()
Hi, we try to make use of Location distanceBetween() with local lat/lon and remote users lat/lon in order to get bearing. The method always return a negative value for instace -109. Anyone that knows how to make use of this? How do we translate it for instance to 0-360 degrees. We want to show the direction in degrees from on location to another. thanks, Lars -- 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] NFC - missing method getParcelableExtra( ... )
Hi, I have used the following code which is published on various sites: PendingIntent intent = PendingIntent.getActivity(this.getApplicationContext(), 0,new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),0); NfcAdapter.getDefaultAdapter(this).enableForegroundDispatch(this,intent, null, null); Tag tag = (Tag) intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); Here is the error message: The method getParcelableExtra(String) is undefined for the type PendingIntent Anyone that knows why I can't call getParcelable() as shown above? Thanks, Lars -- 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