[android-developers] Application uploading problem.
Dear Friends, *There is big problem with my application uploading when i going to upload my new android application to play. suddenly this message to prompt to me. The icon for your application is not valid. Please use a 48*48 PNG I can't believe this because of every icon automatically generated from eclipse ide when i selected an image. i never manually created any kind of icon files. so please give me a help to upload my application.* *in IDE* https://lh6.googleusercontent.com/-VX3wEoi74K0/UMWWqvVSAgI/Deg/rf4P3jAs6L4/s1600/workplace.PNG *Google Play* https://lh3.googleusercontent.com/-9aFttLwVtZE/UMWW4EWFO_I/Deo/a3lPTBcRsdU/s1600/googlePlay.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
[android-developers] Re: Application uploading problem.
and... have you checked the icon? :) On Monday, December 10, 2012 3:02:30 AM UTC-5, askl wrote: Dear Friends, *There is big problem with my application uploading when i going to upload my new android application to play. suddenly this message to prompt to me. The icon for your application is not valid. Please use a 48*48 PNG I can't believe this because of every icon automatically generated from eclipse ide when i selected an image. i never manually created any kind of icon files. so please give me a help to upload my application.* *in IDE* https://lh6.googleusercontent.com/-VX3wEoi74K0/UMWWqvVSAgI/Deg/rf4P3jAs6L4/s1600/workplace.PNG *Google Play* https://lh3.googleusercontent.com/-9aFttLwVtZE/UMWW4EWFO_I/Deo/a3lPTBcRsdU/s1600/googlePlay.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
[android-developers] Read file convert bytes
Hello.I have a simple file.txt with only data the 1 but when put if(value==1) no work why? File sdcard = Environment.getExternalStorageDirectory(); //Get the text file File file = new File(sdcard,LEDstate.txt); byte[] byteArray = new byte[(int) file.length()]; try { new FileInputStream(file).read(byteArray); } catch (Exception e) { e.printStackTrace(); } String value = new String(byteArray); if(value==1){ //Find the view by its id TextView tv = (TextView)findViewById(R.id.txt); //Set the text tv.setText(value); //} -- 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: Application uploading problem.
every icon format is PNG. * . Thank you, With Best regards, Sun Certified, * *Amal Shiwantha Ranasinghe.* * * *Google + https://plus.google.com/117853962252903474075/about | Linkedinhttp://lk.linkedin.com/in/amalshiwantha | Ceylon Calendar - 2012 http://youtu.be/ggBxYcoEiz8 | Maphttp://maps.google.com/maps?q=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lankahl=enll=7.540955,80.628995spn=0.006116,0.009645sll=7.873054,80.771797sspn=6.254445,9.876709oq=amal+shhq=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lankat=mz=17iwloc=A * ** On 10 December 2012 13:58, Piren gpi...@gmail.com wrote: and... have you checked the icon? :) On Monday, December 10, 2012 3:02:30 AM UTC-5, askl wrote: Dear Friends, *There is big problem with my application uploading when i going to upload my new android application to play. suddenly this message to prompt to me. The icon for your application is not valid. Please use a 48*48 PNG I can't believe this because of every icon automatically generated from eclipse ide when i selected an image. i never manually created any kind of icon files. so please give me a help to upload my application.* *in IDE* https://lh6.googleusercontent.com/-VX3wEoi74K0/UMWWqvVSAgI/Deg/rf4P3jAs6L4/s1600/workplace.PNG *Google Play* https://lh3.googleusercontent.com/-9aFttLwVtZE/UMWW4EWFO_I/Deo/a3lPTBcRsdU/s1600/googlePlay.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
[android-developers] Re: Read file convert bytes
because you used == ... this isnt C#... in Java that will not return true. please look up some info on string comparison and the definition of == vs equals() On Monday, December 10, 2012 3:38:05 AM UTC-5, Antonis Kanaris wrote: Hello.I have a simple file.txt with only data the 1 but when put if(value==1) no work why? File sdcard = Environment.getExternalStorageDirectory(); //Get the text file File file = new File(sdcard,LEDstate.txt); byte[] byteArray = new byte[(int) file.length()]; try { new FileInputStream(file).read(byteArray); } catch (Exception e) { e.printStackTrace(); } String value = new String(byteArray); if(value==1){ //Find the view by its id TextView tv = (TextView)findViewById(R.id.txt); //Set the text tv.setText(value); //} -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Java knowledge
L-O-L ... On Sunday, December 9, 2012 4:08:09 PM UTC-5, Lew wrote: Lew wrote: Check out the Java tutorials. The initial ones won't take you long to work through and it will give you a flavor of how hopeless you are. I don't know if this was a Freudian slip, but I totally did not mean to write that. I can only guess there was a copy-paste action I didn't notice at post time. I did not mean to say that you are hopeless, really I didn't. I apologize that I didn't catch that before clicking Post. What I *did* mean to say was that it would give you a flavor of how much there is to know and where you might stand in terms of core Java knowledge. Again, I apologize that I wrote a snarky remark instead of what I intended. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to save AsyncTask class object in onSaveInstanceState().
Hello, is this possible to save AsyncTask class object on rotation and reuse it again.. public class MyTask extends AsyncTaskVoid, Void, Integer { } any good solution. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to save AsyncTask class object in onSaveInstanceState().
On Monday, December 10, 2012 3:05:53 PM UTC+5:30, monty wrote: Hello, is this possible to save AsyncTask class object on rotation and reuse it again.. public class MyTask extends AsyncTaskVoid, Void, Integer { } I am using 4.03 version. any good solution. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] NullPointerException in SharedPreferences Android
As a solution for your problem you can pass application context for the activity that will instantiate your class session as a constroctor argument, and then you can affect the context of your class to the context passed -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to save AsyncTask class object in onSaveInstanceState()
Hello is this possible to save AsyncTask class object on rotation and reuse it again. public class MyTask extends AsyncTaskVoid, Void, Integer { } i am using 4.03 version any good solution. 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: Required: Sr. NET Developer at Santa Clara, CA
Hm nah, he didn't state anything about the salary. Kirk is way too overpowered and therefore too expensive I guess. Am Montag, 10. Dezember 2012 06:56:33 UTC+1 schrieb Fred Grott: Hmm, maybe we should just start suggesting fictional characters to see how many get the joke? I say we start with suggesting James Tiberous Kirk for the Sr .NEt role On Thursday, December 6, 2012 9:56:09 AM UTC-6, Munawar Ali wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on mu...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC mu...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Required: Sr. NET Developer at Santa Clara, CA
Hm nah, he didn't state anything about the salary. Kirk is way too overpowered and therefore too expensive I guess. Edit: Chris Pine could do though. Am Montag, 10. Dezember 2012 06:56:33 UTC+1 schrieb Fred Grott: Hmm, maybe we should just start suggesting fictional characters to see how many get the joke? I say we start with suggesting James Tiberous Kirk for the Sr .NEt role On Thursday, December 6, 2012 9:56:09 AM UTC-6, Munawar Ali wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on mu...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC mu...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Required: Sr. NET Developer at Santa Clara, CA
personally i wouldn't hire a guy that would probably write his code with one word in each row... kinda hard to follow read this in his voice: int x = 5 ; On Monday, December 10, 2012 12:56:33 AM UTC-5, Fred Grott wrote: Hmm, maybe we should just start suggesting fictional characters to see how many get the joke? I say we start with suggesting James Tiberous Kirk for the Sr .NEt role On Thursday, December 6, 2012 9:56:09 AM UTC-6, Munawar Ali wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on mu...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC mu...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to dispaly XML format to normal UI in Run Time
I got XML format from server into One String.How to that XML String convert into Normal UI url--- url returns xml format https://lh3.googleusercontent.com/-AVHbb5p2cBY/UMW47K6NnrI/APw/k3HvZBjF9q8/s1600/Capture.JPG -- 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]android bluetooth multi-connect one after another
i have posted this because its not working like that. On Mon, Dec 10, 2012 at 12:47 PM, gjs garyjamessi...@gmail.com wrote: Hi, Then concentrate on getting 1 or 2 devices working with - mChatService.connect(device); Regards On Sunday, December 9, 2012 1:19:08 AM UTC+11, akash roy wrote: please have a look on it..thankyou. On Sat, Dec 8, 2012 at 9:26 AM, akash roy akashr...@gmail.com wrote: ** here i am trying to connect multiple devices one after another at one go. now if it connects to a device it will send the message else it will try to connect the next paired device. here the main problem is that its not connecting any device rather getting skipped one after other , before they get connected to each other. --**--** - for( BluetoothDevice device : PairedDevice) { mChatService.connect(device); try { SendMessage(message); //message is a string object } catch(Exception e) { e.printStackTrace(); } } --**--**-- -- *AKASH ROY* *3RD YEAR * *COMPUTER SCIENCE AND ENGG.* *N.I.T. DURGAPUR* * * -- 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 -- *AKASH ROY* *3RD YEAR * *COMPUTER SCIENCE AND ENGG.* *N.I.T. DURGAPUR* * * -- 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] BadTokenException in ExtractEditText
Hello All, I am getting badTokenException in extractedittext. i am developing a Keyboard and i have Override *onCreateExtractTextView*() and supplied my layout to it and view is getting displayed well. when user types some text and *taps *on any text then i am getting *BADTOKENEXCEPTION*. how can i give token to this view. is this is a framework issue since i am getting EXCEPTION(*CRASH*) every time in 4.2.1 but keyboard getting closed in 4.0.4 in backed i am getting same exception. Please check the issue. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to dispaly XML format to normal UI in Run Time
Fetch using asynctask, Parse the XML and assign to ui elements -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to dispaly XML format to normal UI in Run Time
how to parse xml On Mon, Dec 10, 2012 at 6:15 PM, androidmediadeveloper kamathaj...@gmail.com wrote: Fetch using asynctask, Parse the XML and assign to ui elements -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get Video width and height..?
Hi, I am playing a video from Gallery, how can i find the width and the height of that video which is playing...?? Can anybody is having any idea regarding 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
Re: [android-developers] How to dispaly XML format to normal UI in Run Time
laxman k wrote: how to parse xml http://developer.android.com/training/basics/network-ops/xml.html pskink -- 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] edit text begin scroll after second line
i have a EditText in a relativelayout i want the edit text to begin scroll after writing the second line but its not work with me any help with that this is my code xml RelativeLayout android:layout_width=match_parent android:layout_height=match_parent android:background=@drawable/lback EditText android:id=@+id/editText1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentLeft=true android:layout_alignParentTop=true android:layout_toLeftOf=@+id/button1 android:maxLines=2 android:scrollHorizontally=true android:ems=10 requestFocus / /EditText Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentTop=true android:text=Button / /RelativeLayout -- 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: Proximity Alerts Not Working on API Level 17 (Google APIs or otherwise)
Bump for Monday... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get Video width and height..?
Maybe use this function in android.media.MediaPlayer? public int getVideoHeight () Added in API level 1 Returns the height of the video. Returns the height of the video, or 0 if there is no video, no display surface was set, or the height has not been determined yet. The OnVideoSizeChangedListener can be registered via setOnVideoSizeChangedListener(OnVideoSizeChangedListener) to provide a notification when the height is available. On Monday, December 10, 2012 7:00:19 AM UTC-6, abhay_401 wrote: Hi, I am playing a video from Gallery, how can i find the width and the height of that video which is playing...?? Can anybody is having any idea regarding 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
Re: [android-developers] How to dispaly XML format to normal UI in Run Time
This was the most direct request for help I've seen to date. Jacky Alcine http:// blog.jalcine.me Sent from my Nexus 7 On Dec 10, 2012 8:17 AM, skink psk...@gmail.com wrote: laxman k wrote: how to parse xml http://developer.android.com/training/basics/network-ops/xml.html pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't Slide to Unlock Emulators on MacBook Pro
Hi Nathan Maybe you have enabled the Use Host GPU option in the emulator settings. I had the same issue on my MacBook Pro so I disabled this option and the emulator worked as expected. cheers joe Am Dienstag, 4. Dezember 2012 19:39:43 UTC+1 schrieb Nathan: OK, I'm probably doing something wrong with my setup on a MacBook Pro. I can create emulators okay. I can run them. The fun stops there. I cannot drag to unlock. Therefore, I can't really debug or run anything. I believe I have done this before when docked, when I had the USB mouse. Unfortunately, I am away from home, and this is not working with the trackpad. I've tried different finger combinations and gone into System preferences. I am VERY frustrated. Anybody know what I am doing wrong? Nathan -- 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: Required: Sr. NET Developer at Santa Clara, CA
Please do not suggest Mr. Kirk as he is currently my pilot, and good pilots are hard to find. On Sunday, December 9, 2012 11:56:33 PM UTC-6, Fred Grott wrote: Hmm, maybe we should just start suggesting fictional characters to see how many get the joke? I say we start with suggesting James Tiberous Kirk for the Sr .NEt role On Thursday, December 6, 2012 9:56:09 AM UTC-6, Munawar Ali wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on mu...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC mu...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Issues with get large image form url
Hi,everyone. if i want to get a large image (eg.a image which size is 2M or larger.)from url, i use the folllowing code ,and get the exception .Out of Memory. Any good idea? Thank you. private Bitmap getBitmapFromUrl(String url) { Bitmap bitmap = null; try { URL imagePath = new URL(url); HttpURLConnection conn = (HttpURLConnection)imagePath.openConnection(); conn.setConnectTimeout(CONNECT_TIMEOUT); conn.setReadTimeout(READ_TIMEOUT); conn.connect(); InputStream is = (InputStream) conn.getContent(); if (is != null) { // bitmap = getBitmapFromInputStream(is, width, height); bitmap = BitmapFactory.decodeStream((InputStream) conn.getContent()); } } catch(Exception e) { e.printStackTrace(); } return bitmap; } public static Bitmap getBitmapFromInputStream(InputStream is, int width, int height){ Bitmap bitmap = null; if (null != is ) { BufferedInputStream bis = new BufferedInputStream(is); BitmapFactory.Options opts = null; if (width 0 height 0) { opts = new BitmapFactory.Options(); opts.inJustDecodeBounds = true; BitmapFactory.decodeStream(is, null, opts); // 计算图片缩放比例 final int minSideLength = Math.min(width, height); opts.inSampleSize = BitmapUtils.computeSampleSize(opts.outWidth, opts.outHeight, minSideLength, width * height); opts.inJustDecodeBounds = false; opts.inInputShareable = true; opts.inPurgeable = true; } try { bitmap = BitmapFactory.decodeStream(bis, null, opts); } catch (OutOfMemoryError e) { e.printStackTrace(); } } return bitmap; } -- 杨辉 Impossible is nothing! HDExplorer APK (A Nice File Manager,Simplicity but not simple.) Google Market: https://market.android.com/details?id=com.hd.explorer Google Code: http://code.google.com/p/hdexplorer/ -- 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: Application uploading problem.
On Mon, Dec 10, 2012 at 2:39 AM, AMAL SHIWANTHA amal...@gmail.com wrote: every icon format is PNG. And they measure ... what ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Application uploading problem.
pixels! On Monday, December 10, 2012 10:58:52 AM UTC-5, TreKing wrote: On Mon, Dec 10, 2012 at 2:39 AM, AMAL SHIWANTHA ama...@gmail.comjavascript: wrote: every icon format is PNG. And they measure ... what ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Issues with get large image form url
RTFT http://developer.android.com/training/displaying-bitmaps/load-bitmap.html On Monday, December 10, 2012 10:42:37 AM UTC-5, snowdream wrote: Hi,everyone. if i want to get a large image (eg.a image which size is 2M or larger.)from url, i use the folllowing code ,and get the exception .Out of Memory. Any good idea? Thank you. private Bitmap getBitmapFromUrl(String url) { Bitmap bitmap = null; try { URL imagePath = new URL(url); HttpURLConnection conn = (HttpURLConnection)imagePath.openConnection(); conn.setConnectTimeout(CONNECT_TIMEOUT); conn.setReadTimeout(READ_TIMEOUT); conn.connect(); InputStream is = (InputStream) conn.getContent(); if (is != null) { // bitmap = getBitmapFromInputStream(is, width, height); bitmap = BitmapFactory.decodeStream((InputStream) conn.getContent()); } } catch(Exception e) { e.printStackTrace(); } return bitmap; } public static Bitmap getBitmapFromInputStream(InputStream is, int width, int height){ Bitmap bitmap = null; if (null != is ) { BufferedInputStream bis = new BufferedInputStream(is); BitmapFactory.Options opts = null; if (width 0 height 0) { opts = new BitmapFactory.Options(); opts.inJustDecodeBounds = true; BitmapFactory.decodeStream(is, null, opts); // 计算图片缩放比例 final int minSideLength = Math.min(width, height); opts.inSampleSize = BitmapUtils.computeSampleSize(opts.outWidth, opts.outHeight, minSideLength, width * height); opts.inJustDecodeBounds = false; opts.inInputShareable = true; opts.inPurgeable = true; } try { bitmap = BitmapFactory.decodeStream(bis, null, opts); } catch (OutOfMemoryError e) { e.printStackTrace(); } } return bitmap; } -- 杨辉 Impossible is nothing! HDExplorer APK (A Nice File Manager,Simplicity but not simple.) Google Market: https://market.android.com/details?id=com.hd.explorer Google Code: http://code.google.com/p/hdexplorer/ -- 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] Issues with get large image form url
You should first of all download that image and store it in a file instead of directly decoding a 2MB stream (which depending of the compression degree will of course explode to a much larger size in memory). From that file you can load a smaller version of that image which fits into the view that is going to display the bitmap. That's the clean way to avoid your out of memory problems. By the way, what you're trying to do in your second method called getBitmapFromInputStream most likely cannot work. You are trying to read from the same stream twice, first of all for determining the bitmap size, the second time for decoding the actual bitmap. In between these two read accesses the stream should be reset to its beginning. However, this is not guaranteed to work. Some stream implementations are one way only. Once it is read there is no way back. On Monday, December 10, 2012 9:42:37 AM UTC-6, snowdream wrote: Hi,everyone. if i want to get a large image (eg.a image which size is 2M or larger.)from url, i use the folllowing code ,and get the exception .Out of Memory. Any good idea? Thank you. private Bitmap getBitmapFromUrl(String url) { Bitmap bitmap = null; try { URL imagePath = new URL(url); HttpURLConnection conn = (HttpURLConnection)imagePath.openConnection(); conn.setConnectTimeout(CONNECT_TIMEOUT); conn.setReadTimeout(READ_TIMEOUT); conn.connect(); InputStream is = (InputStream) conn.getContent(); if (is != null) { // bitmap = getBitmapFromInputStream(is, width, height); bitmap = BitmapFactory.decodeStream((InputStream) conn.getContent()); } } catch(Exception e) { e.printStackTrace(); } return bitmap; } public static Bitmap getBitmapFromInputStream(InputStream is, int width, int height){ Bitmap bitmap = null; if (null != is ) { BufferedInputStream bis = new BufferedInputStream(is); BitmapFactory.Options opts = null; if (width 0 height 0) { opts = new BitmapFactory.Options(); opts.inJustDecodeBounds = true; BitmapFactory.decodeStream(is, null, opts); // 计算图片缩放比例 final int minSideLength = Math.min(width, height); opts.inSampleSize = BitmapUtils.computeSampleSize(opts.outWidth, opts.outHeight, minSideLength, width * height); opts.inJustDecodeBounds = false; opts.inInputShareable = true; opts.inPurgeable = true; } try { bitmap = BitmapFactory.decodeStream(bis, null, opts); } catch (OutOfMemoryError e) { e.printStackTrace(); } } return bitmap; } -- 杨辉 Impossible is nothing! HDExplorer APK (A Nice File Manager,Simplicity but not simple.) Google Market: https://market.android.com/details?id=com.hd.explorer Google Code: http://code.google.com/p/hdexplorer/ -- 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: edit text begin scroll after second line
if scrollHorizontally is true, why should it scroll vertically? On Monday, December 10, 2012 8:28:13 AM UTC-5, Live Happy wrote: i have a EditText in a relativelayout i want the edit text to begin scroll after writing the second line but its not work with me any help with that this is my code xml RelativeLayout android:layout_width=match_parent android:layout_height=match_parent android:background=@drawable/lback EditText android:id=@+id/editText1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentLeft=true android:layout_alignParentTop=true android:layout_toLeftOf=@+id/button1 android:maxLines=2 android:scrollHorizontally=true android:ems=10 requestFocus / /EditText Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:layout_alignParentTop=true android:text=Button / /RelativeLayout -- 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: Application uploading problem.
:-D On Monday, December 10, 2012 10:04:23 AM UTC-6, Piren wrote: pixels! On Monday, December 10, 2012 10:58:52 AM UTC-5, TreKing wrote: On Mon, Dec 10, 2012 at 2:39 AM, AMAL SHIWANTHA ama...@gmail.com wrote: every icon format is PNG. And they measure ... what ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How is everyone configuring their JUnit tests?
Curious how everyone is configuring their JUnit tests. Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran into problems running the tests) so is everyone just creating a separate test project outside of their application? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
I believe that is The Android Way - you have your application in one project and your tests in another. Larry On Mon, Dec 10, 2012 at 9:14 AM, darrinps darri...@gmail.com wrote: Curious how everyone is configuring their JUnit tests. Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran into problems running the tests) so is everyone just creating a separate test project outside of their application? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The new KeyChain API
fba chsoftworks at gmail.com writes: once I go back and try to read out the certificate data with KeyChain.getCertificateChain() I get the exception java.lang.IllegalStateException: uid 10040 doesn't have permission to access the requested alias. Has anybody made something like this work? Take a look at my reply to a similar question at http://stackoverflow.com/questions/12122160/android-security-keychainexception- java-lang-illegalstateexception-uid/13804815#13804815 --Vlad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
On Mon, Dec 10, 2012 at 11:14 AM, darrinps darri...@gmail.com wrote: Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran into problems running the tests) so is everyone just creating a separate test project outside of their application? I create a tests/ project within my main project, such as: https://github.com/commonsguy/cwac-prefs https://github.com/commonsguy/cw-omnibus/tree/master/Testing/JUnit -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
Thanks. I was beating my head against the wall trying to do it the other way after reading the recommendation here: http://developer.android.com/tools/testing/testing_android.html Much easier to just keep them apart. On Monday, December 10, 2012 10:24:42 AM UTC-6, Larry Meadors wrote: I believe that is The Android Way - you have your application in one project and your tests in another. Larry On Mon, Dec 10, 2012 at 9:14 AM, darrinps darr...@gmail.com javascript: wrote: Curious how everyone is configuring their JUnit tests. Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran into problems running the tests) so is everyone just creating a separate test project outside of their application? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] breakpoint in Google's code
I have the Android source installed, and I want to put a breakpoint in the initParameters method of LomoishFilter. Anyone know how to do 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
Re: [android-developers] Re: Application uploading problem.
No way?! I measure all my images in elephants!! ;-) (Sorry, couldn't resist) -- Michael Banzon http://michaelbanzon.com/ On Dec 10, 2012 5:05 PM, Piren gpi...@gmail.com wrote: pixels! On Monday, December 10, 2012 10:58:52 AM UTC-5, TreKing wrote: On Mon, Dec 10, 2012 at 2:39 AM, AMAL SHIWANTHA ama...@gmail.com wrote: every icon format is PNG. And they measure ... what ... ? --**--** --**--- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
Are you using Eclipse Indigo? I tried doing that and the thing griped that it could find the test runner and no matter what I did it just wasn't happy. What I did was: 1) Create a project (an old one I want to add JUnit tests to actually) 2) Create a test project based on that 3) Created a sub directory inside of the main project called tests at the same level as the src, res, etc. directories. 4) Moved the files inside of the test project to that sub directory under the main project. 5) Right clicked on the test directory and selected Run which brought up a dialog to add the run type. 6) Selected Android JUnit tests 7) Saw an empty runnable drop down with no way to select anything. 8) Scoured the Internet for a fix 9) Tried to implement the suggestions (which didn't even seem to fit the situation but tried anyway) 10) Banged head against wall On Monday, December 10, 2012 10:32:24 AM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 11:14 AM, darrinps darr...@gmail.comjavascript: wrote: Using Eclipse Indigo, there doesn't seem to any way to store the tests inside of the application itself (I even tried to do it manually then ran into problems running the tests) so is everyone just creating a separate test project outside of their application? I create a tests/ project within my main project, such as: https://github.com/commonsguy/cwac-prefs https://github.com/commonsguy/cw-omnibus/tree/master/Testing/JUnit -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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: Application uploading problem.
thanks for the all comments. finally i found the solution. i've used \n for app name. it's wrong. looks like that *project name \n 2013* * * *can't use. it's should be* * * *project name 2013* * * * * *thanks for all feedback. * *thank you again* * * * . Thank you, With Best regards, Sun Certified, * *Amal Shiwantha Ranasinghe.* * * *Google + https://plus.google.com/117853962252903474075/about | Linkedinhttp://lk.linkedin.com/in/amalshiwantha | Ceylon Calendar - 2012 http://youtu.be/ggBxYcoEiz8 | Maphttp://maps.google.com/maps?q=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lankahl=enll=7.540955,80.628995spn=0.006116,0.009645sll=7.873054,80.771797sspn=6.254445,9.876709oq=amal+shhq=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lankat=mz=17iwloc=A * ** On 10 December 2012 23:19, Michael Banzon mich...@banzon.dk wrote: No way?! I measure all my images in elephants!! ;-) (Sorry, couldn't resist) -- Michael Banzon http://michaelbanzon.com/ On Dec 10, 2012 5:05 PM, Piren gpi...@gmail.com wrote: pixels! On Monday, December 10, 2012 10:58:52 AM UTC-5, TreKing wrote: On Mon, Dec 10, 2012 at 2:39 AM, AMAL SHIWANTHA ama...@gmail.comwrote: every icon format is PNG. And they measure ... what ... ? --**--** --**--- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get Video width and height..?
Hi bob, thanks for the reply I tried to record a video whose resolution is set to 320*240 from settings, after that i played the video and tried to retrieve the height and width as u said, is giving height as 240 and width as 320. suppose if i record a video whose resolution is 320*240 means can we say the width and height of my video is 320 and 240... why i am asking like this means i have recorded a hd video(1280*720) when playing in Landscape is playing properly but when i try to play the same video in portrait mode the video is getting cut... just i want to know the video width and height at that time. On Monday, December 10, 2012 8:31:17 PM UTC+5:30, bob wrote: Maybe use this function in android.media.MediaPlayer? public int getVideoHeight () Added in API level 1 Returns the height of the video. Returns the height of the video, or 0 if there is no video, no display surface was set, or the height has not been determined yet. The OnVideoSizeChangedListener can be registered via setOnVideoSizeChangedListener(OnVideoSizeChangedListener) to provide a notification when the height is available. On Monday, December 10, 2012 7:00:19 AM UTC-6, abhay_401 wrote: Hi, I am playing a video from Gallery, how can i find the width and the height of that video which is playing...?? Can anybody is having any idea regarding 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
Re: [android-developers] How is everyone configuring their JUnit tests?
On Mon, Dec 10, 2012 at 1:39 PM, darrinps darri...@gmail.com wrote: Are you using Eclipse Indigo? Yes. I tried doing that and the thing griped that it could find the test runner and no matter what I did it just wasn't happy. What I did was: 1) Create a project (an old one I want to add JUnit tests to actually) 2) Create a test project based on that 3) Created a sub directory inside of the main project called tests at the same level as the src, res, etc. directories. 4) Moved the files inside of the test project to that sub directory under the main project. 5) Right clicked on the test directory and selected Run which brought up a dialog to add the run type. 6) Selected Android JUnit tests 7) Saw an empty runnable drop down with no way to select anything. 8) Scoured the Internet for a fix 9) Tried to implement the suggestions (which didn't even seem to fit the situation but tried anyway) 10) Banged head against wall AFAIK, all I did was: 1) Create a project 2) Create a test project based on that directly into tests/ of the project from 1) You are also welcome to examine the projects I linked to in order to see how they are set up. Eclipse project files should be in each repo. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: working WebView example?
lol well, i did figure it out four years ago On Mon, Dec 10, 2012 at 10:15 AM, Roney Kakkanatt itechn...@gmail.comwrote: To learn how to make a simple WebView Application http:/ www.androidituts.blogspot.com/2012/12/android-tutorial-sample-webview.html For more tutorials Visit:www.androidituts.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Application uploading problem.
On Mon, Dec 10, 2012 at 12:40 PM, AMAL SHIWANTHA amal...@gmail.com wrote: thanks for the all comments. finally i found the solution. i've used \n for app name. it's wrong. looks like that *project name \n 2013* * * *can't use. it's should be* * * *project name 2013* Well it's a good thing the developer console gave you a great, obvious, crystal-clear message to point you to the exact problem. Such a great tool. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
Thanks Mark. I downloaded the Prefs project and imported it. I then selected the tests directory and right clicked and selected Run as. It gave me one option, Run configuration. I clicked on that and got a dialog that had Create, manage, and run configurations. Under Android JUnit Test it has Prefs selected. On the right it has that same empty drop down though by the words Instrumentation runner:. That's what needs to be filled out to run the tests (trust me...it will choke otherwise...I've tried like a dozen times or so in different ways). So, just how are you running your JUnit tests? Do you not select the tests directory and right click? There must be another step you did to specify the instrumentation runner...that's the key but it cannot be selected as the list is empty. Note that if I right click the project itself and select Run as Android JUnit test it attempts to run by gripes that it cannot find the Prefs.apk (which for a JUnit test I'm not sure why it is searching for anyway) On Monday, December 10, 2012 12:50:16 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 1:39 PM, darrinps darr...@gmail.com javascript: wrote: Are you using Eclipse Indigo? Yes. I tried doing that and the thing griped that it could find the test runner and no matter what I did it just wasn't happy. What I did was: 1) Create a project (an old one I want to add JUnit tests to actually) 2) Create a test project based on that 3) Created a sub directory inside of the main project called tests at the same level as the src, res, etc. directories. 4) Moved the files inside of the test project to that sub directory under the main project. 5) Right clicked on the test directory and selected Run which brought up a dialog to add the run type. 6) Selected Android JUnit tests 7) Saw an empty runnable drop down with no way to select anything. 8) Scoured the Internet for a fix 9) Tried to implement the suggestions (which didn't even seem to fit the situation but tried anyway) 10) Banged head against wall AFAIK, all I did was: 1) Create a project 2) Create a test project based on that directly into tests/ of the project from 1) You are also welcome to examine the projects I linked to in order to see how they are set up. Eclipse project files should be in each repo. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
On Mon, Dec 10, 2012 at 2:45 PM, darrinps darri...@gmail.com wrote: So, just how are you running your JUnit tests? Select the test project and press the Run button in the toolbar. The first time I ran the tests/ project ac, it asked me for the project type, and I chose Android JUnit test. Results show up in the JUnit view. Done. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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: Required: Sr. Java Developer at Boston, MA
Hi Definitely within a day or two i will provide you a guy with 8+ years of experience in java. If it is ok with you for about 3 years of experience java expertise guy than i am able to fulfill your project requirements. Thanks And Regards Pinkesh Gupta On Thu, Dec 6, 2012 at 11:56 AM, Asheesh Arya asheesharya...@gmail.comwrote: You won't compel us -- 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] How is everyone configuring their JUnit tests?
There must be something that doesn't get saved correctly or something in git with the zip. When I tried doing what you said (select tests, hit Run on toolbar, then select Run) I get this: [2012-12-10 14:15:28 - Prefs] Android Launch! [2012-12-10 14:15:28 - Prefs] adb is running normally. [2012-12-10 14:15:28 - Prefs] Could not find Prefs.apk! I then tried to delete the Android JUnit configuration for Prefs thinking that would get me back to ground zero like when you specified the project type the first time you ran it. Doing that only caused this error though: An internal error occurred during: Launching New_configuration. Path for project must have only one segment. I have the very latest of everything installed as of Friday so maybe they introduced a bug into Eclipse with the new changes. That's all I can think of at the moment as I have tried everything I can find to get this to work. On Monday, December 10, 2012 2:00:53 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 2:45 PM, darrinps darr...@gmail.com javascript: wrote: So, just how are you running your JUnit tests? Select the test project and press the Run button in the toolbar. The first time I ran the tests/ project ac, it asked me for the project type, and I chose Android JUnit test. Results show up in the JUnit view. Done. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
No clue, sorry. On Mon, Dec 10, 2012 at 3:21 PM, darrinps darri...@gmail.com wrote: There must be something that doesn't get saved correctly or something in git with the zip. When I tried doing what you said (select tests, hit Run on toolbar, then select Run) I get this: [2012-12-10 14:15:28 - Prefs] Android Launch! [2012-12-10 14:15:28 - Prefs] adb is running normally. [2012-12-10 14:15:28 - Prefs] Could not find Prefs.apk! I then tried to delete the Android JUnit configuration for Prefs thinking that would get me back to ground zero like when you specified the project type the first time you ran it. Doing that only caused this error though: An internal error occurred during: Launching New_configuration. Path for project must have only one segment. I have the very latest of everything installed as of Friday so maybe they introduced a bug into Eclipse with the new changes. That's all I can think of at the moment as I have tried everything I can find to get this to work. On Monday, December 10, 2012 2:00:53 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 2:45 PM, darrinps darr...@gmail.com wrote: So, just how are you running your JUnit tests? Select the test project and press the Run button in the toolbar. The first time I ran the tests/ project ac, it asked me for the project type, and I chose Android JUnit test. Results show up in the JUnit view. Done. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
OK, I ran into something like this before getting things from Git and I remembered... For some reason, sometimes they seem to get their Is Library boolean set. So I selected the Prefs project, then hit the Project button on the tool bar, then went into Preferences, then unchecked the Is Library on the bottom right. Once I did that, I was able to ATTEMPT to run the tests at least but got the following error: Prefs does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml Looking at your manifest though I could not see this to be true about the manifest file: instrumentation android:name=android.test.InstrumentationTestRunner android:targetPackage=com.commonsware.cwac.prefs.test/ So, it is still the InstrumenttationTestRunner that is the problem, and it is still empty. Is yours filled out? However that gets set is the key to the issue I think. On Monday, December 10, 2012 2:21:38 PM UTC-6, darrinps wrote: There must be something that doesn't get saved correctly or something in git with the zip. When I tried doing what you said (select tests, hit Run on toolbar, then select Run) I get this: [2012-12-10 14:15:28 - Prefs] Android Launch! [2012-12-10 14:15:28 - Prefs] adb is running normally. [2012-12-10 14:15:28 - Prefs] Could not find Prefs.apk! I then tried to delete the Android JUnit configuration for Prefs thinking that would get me back to ground zero like when you specified the project type the first time you ran it. Doing that only caused this error though: An internal error occurred during: Launching New_configuration. Path for project must have only one segment. I have the very latest of everything installed as of Friday so maybe they introduced a bug into Eclipse with the new changes. That's all I can think of at the moment as I have tried everything I can find to get this to work. On Monday, December 10, 2012 2:00:53 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 2:45 PM, darrinps darr...@gmail.com wrote: So, just how are you running your JUnit tests? Select the test project and press the Run button in the toolbar. The first time I ran the tests/ project ac, it asked me for the project type, and I chose Android JUnit test. Results show up in the JUnit view. Done. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: missing stuff
I was only able to get around this by reinstalling the Android SDK and pointing Eclipse to the new dir. On Monday, November 26, 2012 5:10:57 PM UTC-6, bob wrote: I'm trying to update my Android SDK. Anyone know why it is complaining about missing stuff here? https://lh5.googleusercontent.com/-N1XO7X5gebY/ULP26nnHvDI/AEs/UYclbz0Feyw/s1600/Screen+Shot+2012-11-26+at+5.07.36+PM.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] How is everyone configuring their JUnit tests?
On Mon, Dec 10, 2012 at 3:44 PM, darrinps darri...@gmail.com wrote: For some reason, sometimes they seem to get their Is Library boolean set. So I selected the Prefs project, then hit the Project button on the tool bar, then went into Preferences, then unchecked the Is Library on the bottom right. Except that Prefs is a library project. tests/ inside of Prefs uses that library. Once I did that, I was able to ATTEMPT to run the tests at least but got the following error: Prefs does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml Because Prefs is not a test project. Looking at your manifest though I could not see this to be true about the manifest file: instrumentation android:name=android.test.InstrumentationTestRunner android:targetPackage=com.commonsware.cwac.prefs.test/ That is not in the Prefs project. That is in the tests/ sub-project. Is yours filled out? In Run Configurations, the tests/ sub-project is set to have android.test.InstrumentationTestRunner as its Instrumentation runner. At this juncture, you might consider switching gears and experimenting with: https://github.com/commonsguy/cw-omnibus/tree/master/Testing/JUnit and its tests/ subdirectory. The problem with the other examples that I cite is that they are testing Android library projects, which is eminently possible but not what you're seeking (AFAIK) and is perhaps leading you down the wrong path. The sample listed above is a regular Android project with a tests/ sub-project. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
On Monday, December 10, 2012 8:35:28 AM UTC-8, darrinps wrote: Thanks. I was beating my head against the wall trying to do it the other way after reading the recommendation here: http://developer.android.com/tools/testing/testing_android.html Much easier to just keep them apart. I don't understand. That is the very page that tells you to keep them apart. A test project is a directory or Eclipse project in which you create the source code, manifest file, and other files for a test package. Which is the way you call the other way? Your message is lost in the antecedents. If you were following the instructions on the page you cite, you'd be creating a separate test project for each app project. Larry Meadors wrote: I believe that is The Android Way - you have your application in one project and your tests in another. As explained on the cited page. -- Lew -- 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] Tomcat creating new HTTP jsessionid for each page on Android browser for Android versions 3.x and lower after switching from HTTPS to HTTP
Platform: Windows 2008 R2 Web Servers: IIS 7.5, Tomcat 5.5 I have a JSP website which uses login-form authentication, via a custom servlet. Below is the order of how login proceeds: Login (SSL) - Auth (SSL) - Intermediary Page 1 (SSL) - Intermediary Page 2 (non-SSL) - Intermediary Page 3 (non-SSL) - Homepage (non-SSL). Now, this process works just fine in all major desktop browsers, iOS, and Android 4.x. However, **I am experiencing problems with Android 3.x and lower. When I switch over from HTTPS to HTTP, Tomcat creates a new HTTP jsessionid for each page.** Why is this a problem? Because the HTTP session variables are lost when simply navigating to another HTTP page. It seems that swtiching from HTTPS to HTTP causes Tomcat to keep creating a new HTTP session for these older versions of Android. I tried passing jsessionid in the url from Intermediary Page 2 to Intermediary Page 3, which works as long as I do it for every single page the user accesses thereafter and that's simply not going to cut it, since there are many, many, many JSP pages this website manages. In other words, I have to pass the jsession via URL to the Homepage, in order to maintain the HTTP session. I don't know what to do, honestly. I don't understand why Tomcat is creating new HTTP sessions and thus losing any and all session variables which were set previously in HTTP space. Let me clarify that I'm not talking about maintaining sessions from HTTPS to HTTP. The problem here is AFTER the user is redirected to HTTP space, where Tomcat creates new sessions for each and every page accessed in HTTP space, instead of maintaining the one HTTP session. Does anyone have any solutions, as to why Android 3.x and lower are affected and how to resolve it? Has anyone ever had this problem with the older Android versions? Thank you. **UPDATE** I have confirmed that the request Header, Connection:keep-alive, does NOT appear for Android 3.x and lower. This may be the reason why Tomcat is destroying and creating a new JSESSIONID. But the problem is IIS 7.5 has connection:keep-alive enabled, although I think that's specifically for the response Header. And, besides, Connection:keep-alive appears for all the other platforms and browsers that work. So, for whatever reason, Android 3.x and lower doesn't support Connection:keep-alive or there's an issue with how IIS 7.5 and Tomcat 5.5. I'm just not sure. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
Thanks. I'll try that. FWIW, you SHOULD be able to simply direct Eclipse to set up the test in the same directory as the project and I think at one time this was possible, but that's not the case (any more) it seems. On Monday, December 10, 2012 3:04:30 PM UTC-6, Lew wrote: On Monday, December 10, 2012 8:35:28 AM UTC-8, darrinps wrote: Thanks. I was beating my head against the wall trying to do it the other way after reading the recommendation here: http://developer.android.com/tools/testing/testing_android.html Much easier to just keep them apart. I don't understand. That is the very page that tells you to keep them apart. A test project is a directory or Eclipse project in which you create the source code, manifest file, and other files for a test package. Which is the way you call the other way? Your message is lost in the antecedents. If you were following the instructions on the page you cite, you'd be creating a separate test project for each app project. Larry Meadors wrote: I believe that is The Android Way - you have your application in one project and your tests in another. As explained on the cited page. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
If you look at the link I provided, it specifies otherwise: You can create a test project anywhere in your file system, but *the best approach is to add the test project so that its root directory tests/ is at the same level as the src/ directory of the main application's projec*t. This helps you find the tests associated with an application. For example, if your application project's root directory is MyProject, then you should use the following directory structure: MyProject/ AndroidManifest.xml res/ ... (resources for main application) src/ ... (source code for main application) ... tests/ AndroidManifest.xml res/ ... (resources for tests) src/ ... (source code for tests) That is why I went down this path. Looks like some (most maybe) do it the easy/separate way but some (Mark) have gotten it to work the suggested way. On Monday, December 10, 2012 3:04:30 PM UTC-6, Lew wrote: On Monday, December 10, 2012 8:35:28 AM UTC-8, darrinps wrote: Thanks. I was beating my head against the wall trying to do it the other way after reading the recommendation here: http://developer.android.com/tools/testing/testing_android.html Much easier to just keep them apart. I don't understand. That is the very page that tells you to keep them apart. A test project is a directory or Eclipse project in which you create the source code, manifest file, and other files for a test package. Which is the way you call the other way? Your message is lost in the antecedents. If you were following the instructions on the page you cite, you'd be creating a separate test project for each app project. Larry Meadors wrote: I believe that is The Android Way - you have your application in one project and your tests in another. As explained on the cited page. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
On Mon, Dec 10, 2012 at 4:18 PM, darrinps darri...@gmail.com wrote: FWIW, you SHOULD be able to simply direct Eclipse to set up the test in the same directory as the project and I think at one time this was possible, but that's not the case (any more) it seems. It's possible something changed with R21 -- I haven't set up a test sub-project since the upgrade. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
Yes, I am thinking that's the issue. Just did everything needed to get your other project set up (downloaded Action Bar Sherlock, created the library, etc.) only to see this when I tried to run it: JUnitDemo does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml Same thing. THANKS for trying though! On Monday, December 10, 2012 3:22:42 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 10, 2012 at 4:18 PM, darrinps darr...@gmail.com javascript: wrote: FWIW, you SHOULD be able to simply direct Eclipse to set up the test in the same directory as the project and I think at one time this was possible, but that's not the case (any more) it seems. It's possible something changed with R21 -- I haven't set up a test sub-project since the upgrade. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
darrinps wrote: If you look at the link I provided, it specifies otherwise: You can create a test project anywhere in your file system, but *the best approach is to add the test project so that its root directory tests/is at the same level as the src/ directory of the main application's projec*t. This helps you find the tests associated with an application. For example, if your application project's root directory is MyProject, then you should use the following directory structure: That is not otherwise. This page and the example you quote show one way to organize two projects. It says plain as day create a test project right in the part you quote. Apparently you skipped that step before. It's still set up as a separate project. Read that page. MyProject/ AndroidManifest.xml res/ ... (resources for main application) src/ ... (source code for main application) ... tests/ AndroidManifest.xml Notice the presence of its own manifest. res/ ... (resources for tests) src/ ... (source code for tests) That is why I went down this path. Looks like some (most maybe) do it the easy/separate way but some (Mark) have gotten it to work the suggested way. You misread the instructions. They clearly tell you to set up a separate test project. From that page: You should always use Android tools to create a test project. Did you do that? The Android SDK contains tools for Eclipse with ADT and for the command line that create and update test projects for you. The tools create the directories you use for source code and resources and the manifest file for the test package. The command-line tools also create the Ant build files you need. Q.E.D. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
On Mon, Dec 10, 2012 at 4:56 PM, darrinps darri...@gmail.com wrote: Yes, I am thinking that's the issue. Just did everything needed to get your other project set up (downloaded Action Bar Sherlock, created the library, etc.) only to see this when I tried to run it: JUnitDemo does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml Same thing. JUnitDemo is the application. The tests/ sub-project is the test suite. You need to have both in your Eclipse workspace (import the main project, then import the tests/ sub-project). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] cleaner shaders
I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader ought to be stored as assets for readability. Right now they are like this: private final String mVertexShader = uniform mat4 uMVPMatrix;\n + attribute vec4 aPosition;\n + attribute vec2 aTextureCoord;\n + varying vec2 vTextureCoord;\n + void main() {\n + gl_Position = uMVPMatrix * aPosition;\n + vTextureCoord = aTextureCoord;\n + }\n; private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + gl_FragColor = texture2D(sTexture, vTextureCoord);\n + }\n; On iOS, they are stored in .vsh and .fsh files. I think we should do something like that. What do you guys think? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How is everyone configuring their JUnit tests?
Mark Murphy (a Commons Guy) wrote: darrinps wrote: Yes, I am thinking that's the issue. Just did everything needed to get your other project set up (downloaded Action Bar Sherlock, created the library, etc.) only to see this when I tried to run it: JUnitDemo does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml Same thing. JUnitDemo is the application. The tests/ sub-project is the test suite. You need to have both in your Eclipse workspace (import the main project, then import the tests/ sub-project). Once again, darrinps, you have to realize that the app project and the test project *are two separate projects*. Failure to realize this has been the keystone to your confusion both for creation of the test project and its execution. It's a *separate* project from the application. Please read through the documentation thoroughly. I promise it's in there. Pay special attention to the command-line android commands for test projects. http://developer.android.com/tools/testing/testing_otheride.html#CreateTestProjectCommand You've gotten the same message multiple times from multiple people in this thread. Your very first answer was from Larry Meadors, who wrote: I believe that is The Android Way - you have your application in one project and your tests in another. Mark Murphy: I create a tests/ project within my main project, Mark again: Because Prefs is not a test project. ... That is not in the Prefs project. That is in the tests/ sub-project. ... a regular Android project with a tests/ sub-project. Me: If you were following the instructions on the page you cite, you'd be creating a separate test project for each app project. Me again: This page and the example you quote show one way to organize two projects. Mark again: JUnitDemo is the application. The tests/ sub-project is the test suite. You need to have both in your Eclipse workspace (import the main project, then import the tests/ sub-project). Really, this is on the web site, in the very pages you've been citing among others. Now is the time to stop asking for more advice and follow the advice you've already received. -- Lew -- 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] New In-app billing (v3)
Hello everyone! Today, the Developers blog announced a new version of the in-app billing system : http://android-developers.blogspot.ca/2012/12/in-app-billing-version-3.html Just wanted to discuss about it. How is it compared to implementing in-app billing with v2? I did try the v2, and it was really non-intuitive and a really bad experience overall. I'm eager to try this new version. Tutorial is here : http://developer.android.com/training/in-app-billing/index.html Mathieu B. -- 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] New In-app billing (v3)
On Tue, Dec 11, 2012 at 9:56 AM, MathieuB blanc...@gmail.com wrote: Hello everyone! Today, the Developers blog announced a new version of the in-app billing system : http://android-developers.blogspot.ca/2012/12/in-app-billing-version-3.html Just wanted to discuss about it. How is it compared to implementing in-app billing with v2? I did try the v2, and it was really non-intuitive and a really bad experience overall. It may well be, but it (mostly) works. Considering the experience with the initial API, I'd wait a while before jumping ship to see how an where it breaks. If you are integrating in a new app, it's probably better to use the v3 from the start though. I'm eager to try this new version. Go ahead :) And report your experiences 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] New In-app billing (v3)
On Tue, Dec 11, 2012 at 10:16 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 11, 2012 at 9:56 AM, MathieuB blanc...@gmail.com wrote: Hello everyone! Today, the Developers blog announced a new version of the in-app billing system : http://android-developers.blogspot.ca/2012/12/in-app-billing-version-3.html Just wanted to discuss about it. How is it compared to implementing in-app billing with v2? I did try the v2, and it was really non-intuitive and a really bad experience overall. It may well be, but it (mostly) works. Considering the experience with the initial API, I'd wait a while before jumping ship to see how an where it breaks. The funny thing is that say: 'More robust architecture resulting in *fewer* lost transactions' -- 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] New In-app billing (v3)
On Tue, Dec 11, 2012 at 11:00 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 11, 2012 at 10:16 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 11, 2012 at 9:56 AM, MathieuB blanc...@gmail.com wrote: Hello everyone! Today, the Developers blog announced a new version of the in-app billing system : http://android-developers.blogspot.ca/2012/12/in-app-billing-version-3.html Just wanted to discuss about it. How is it compared to implementing in-app billing with v2? I did try the v2, and it was really non-intuitive and a really bad experience overall. It may well be, but it (mostly) works. Considering the experience with the initial API, I'd wait a while before jumping ship to see how an where it breaks. The funny thing is that say: 'More robust architecture resulting in *fewer* lost transactions' And instead of doing another AIDL+Helper class, this should have really been integrated into Google Play Services. What's the point of calling it 'Google Play Services' if you can't use it to interact with the actual Play Store? -- 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] AbstractThreadedSyncAdapter and Google Drive API
I'm very confused with this. I'm trying to sync some files and folders in google drive with Android. I came across a Google IO presentation but there was no code attached to it. Using parts of it and what I can google around (there is lots of confusing thoughts about AbstractThreadedSyncAdapter on the net). i.e needs content provider for it to work others say it doesn't etc. I have implemented it by piecing all the information I have worked out. My application makes use of Google play services to call GoogleAuthUtil.getToken() which displays an activity the first time asking the user to confirm permissions to the application. I have a dummy content provider with no functions implemented. However my application does not appear in the Accounts Sync android settings and the onPerformSync() is not called. Can anyone point me to a working example of hopefully using Google drive to sync OR an example of AbstractThreadedSyncAdapter with a custom provider where the sync is working correctly? -- 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: AbstractThreadedSyncAdapter and Google Drive API
Here is my code: DriveSyncAdapter.java: public class DriveSyncAdapter extends AbstractThreadedSyncAdapter { public DriveSyncAdapter(Context context, boolean autoInitialize) { super(context, autoInitialize); } @Override public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) { } } DriveSyncService.java public class DriveSyncService extends Service { private static final Object sSyncAdapterLock = new Object(); private static DriveSyncAdapter sSyncAdapter = null; @Override public void onCreate() { synchronized (sSyncAdapterLock) { if (sSyncAdapter == null) { sSyncAdapter = new DriveSyncAdapter(getApplicationContext(), true); } } } @Override public IBinder onBind(Intent intent) { return sSyncAdapter.getSyncAdapterBinder(); } } DummyContentProvider.java public class DummyContentProvider extends ContentProvider { @Override public int delete(Uri uri, String selection, String[] selectionArgs) { return 0; } @Override public String getType(Uri uri) { return null; } @Override public Uri insert(Uri uri, ContentValues values) { return null; } @Override public boolean onCreate() { return false; } @Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { return null; } @Override public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { return 0; } } AuthenticatorAsyncTask.java (this task is execute from my main Activity) public class AuthenticatorAsyncTask extends AsyncTaskVoid, Void, Boolean { private final Context context; private final String accountname; private Account account; private static final String AUTHORITY = com.test.testapp; private static long FOUR_HOURS = 4 * 60 * 60; protected AuthenticatorAsyncTask(Context context, String accountname) { this.context = context; this.accountname = accountname; AccountManager mgr = AccountManager.get(context); Account accounts[] = mgr.getAccounts(); for(int i=0; iaccounts.length; i++) { if(accounts[i].name.equals(accountname)) { account = accounts[i]; } } } @Override protected Boolean doInBackground(Void... params) { if(getAccessToken(context, accountname) == null) { return false; } return true; } @Override protected void onPostExecute(Boolean result) { ContentResolver.setSyncAutomatically(account, AUTHORITY, true); ContentResolver.addPeriodicSync(account, AUTHORITY, new Bundle(), FOUR_HOURS); ContentResolver.requestSync(account, AUTHORITY, new Bundle()); } private String getAccessToken(Context context, String accountname) { try { return GoogleAuthUtil.getToken(context, accountname, oauth2: + DriveScopes.DRIVE_READONLY); } catch(UserRecoverableAuthException e) { context.startActivity(e.getIntent()); } catch (IOException e) { e.printStackTrace(); } catch (GoogleAuthException e) { e.printStackTrace(); } return null; } public static void authenticate(Context context, String accountname) { AuthenticatorAsyncTask task = new AuthenticatorAsyncTask(context, accountname); task.execute(); } } AndroidManifest.xml manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.test.testapp android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=8 android:targetSdkVersion=17 / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.GET_ACCOUNTS / uses-permission android:name=android.permission.READ_SYNC_STATS / uses-permission android:name=android.permission.READ_SYNC_SETTINGS / uses-permission android:name=android.permission.WRITE_SYNC_SETTINGS / application android:allowBackup=false android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:taskAffinity= android:name=.MainActivity android:label=@string/title_activity_main intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity service android:name=.DriveSyncService android:exported=true android:label=@string/app_name intent-filter action
Re: [android-developers] AbstractThreadedSyncAdapter and Google Drive API
On Tue, Dec 11, 2012 at 11:58 AM, rukiman ruksh...@optushome.com.au wrote: Can anyone point me to a working example of hopefully using Google drive to sync OR an example of AbstractThreadedSyncAdapter with a custom provider where the sync is working correctly? This doesn't have the SyncAdapter part but has explanations and full source code You should use getTokenWithNotification() for background tasks. -- 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: BadTokenException in ExtractEditText
Did it said something like token null is not for an application? On Monday, December 10, 2012 6:15:52 AM UTC-5, santhu wrote: Hello All, I am getting badTokenException in extractedittext. i am developing a Keyboard and i have Override *onCreateExtractTextView*() and supplied my layout to it and view is getting displayed well. when user types some text and *taps *on any text then i am getting *BADTOKENEXCEPTION*. how can i give token to this view. is this is a framework issue since i am getting EXCEPTION(*CRASH*) every time in 4.2.1 but keyboard getting closed in 4.0.4 in backed i am getting same exception. Please check the issue. -- 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] Issues with get large image form url
*Thank you,*Nobu. Your Advice is helpful for me. 2012/12/11 Nobu Games dev.nobu.ga...@gmail.com You should first of all download that image and store it in a file instead of directly decoding a 2MB stream (which depending of the compression degree will of course explode to a much larger size in memory). From that file you can load a smaller version of that image which fits into the view that is going to display the bitmap. That's the clean way to avoid your out of memory problems. By the way, what you're trying to do in your second method called getBitmapFromInputStream most likely cannot work. You are trying to read from the same stream twice, first of all for determining the bitmap size, the second time for decoding the actual bitmap. In between these two read accesses the stream should be reset to its beginning. However, this is not guaranteed to work. Some stream implementations are one way only. Once it is read there is no way back. On Monday, December 10, 2012 9:42:37 AM UTC-6, snowdream wrote: Hi,everyone. if i want to get a large image (eg.a image which size is 2M or larger.)from url, i use the folllowing code ,and get the exception .Out of Memory. Any good idea? Thank you. private Bitmap getBitmapFromUrl(String url) { Bitmap bitmap = null; try { URL imagePath = new URL(url); HttpURLConnection conn = (HttpURLConnection)imagePath.** openConnection(); conn.setConnectTimeout(**CONNECT_TIMEOUT); conn.setReadTimeout(READ_**TIMEOUT); conn.connect(); InputStream is = (InputStream) conn.getContent(); if (is != null) { // bitmap = getBitmapFromInputStream(is, width, height); bitmap = BitmapFactory.decodeStream((**InputStream) conn.getContent()); } } catch(Exception e) { e.printStackTrace(); } return bitmap; } public static Bitmap getBitmapFromInputStream(**InputStream is, int width, int height){ Bitmap bitmap = null; if (null != is ) { BufferedInputStream bis = new BufferedInputStream(is); BitmapFactory.Options opts = null; if (width 0 height 0) { opts = new BitmapFactory.Options(); opts.inJustDecodeBounds = true; BitmapFactory.decodeStream(is, null, opts); // 计算图片缩放比例 final int minSideLength = Math.min(width, height); opts.inSampleSize = BitmapUtils.computeSampleSize(**opts.outWidth, opts.outHeight, minSideLength, width * height); opts.inJustDecodeBounds = false; opts.inInputShareable = true; opts.inPurgeable = true; } try { bitmap = BitmapFactory.decodeStream(**bis, null, opts); } catch (OutOfMemoryError e) { e.printStackTrace(); } } return bitmap; } -- 杨辉 Impossible is nothing! --**--** HDExplorer APK (A Nice File Manager,Simplicity but not simple.) Google Market: https://market.android.com/**details?id=com.hd.explorerhttps://market.android.com/details?id=com.hd.explorer Google Code: http://code.google.com/p/**hdexplorer/http://code.google.com/p/hdexplorer/ -- 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 -- 杨辉 Impossible is nothing! HDExplorer APK (A Nice File Manager,Simplicity but not simple.) Google Market: https://market.android.com/details?id=com.hd.explorer Google Code: http://code.google.com/p/hdexplorer/ -- 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: [ICS] Did Canvas / drawBitmap change in ICS ?
The Bitmap was created in the Java layer: https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/1684ac485c934813f97653d798f16f4c967f4247/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L258 Then, I pass it over to JNI to do some math and pixels manipulation: https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/jni/distort_bmp.c#L245 On Sunday, December 9, 2012 11:28:46 PM UTC-8, Romain Guy (Google) wrote: How do you allocate the bitmap exactly? On Dec 9, 2012 7:38 PM, GJTorikian gjtor...@gmail.com javascript: wrote: Sure, but why do I need to do this in the first place? In native JNI code I am modifying each pixel directly. Pre-ICS I did not need to blank out the bitmap. On Sunday, December 9, 2012 3:15:05 PM UTC-8, Romain Guy (Google) wrote: Instead of writing a loop like this you can just call Bitmap.eraseColor(). It's much more efficient. On Sun, Dec 9, 2012 at 11:55 AM, GJTorikian gjtor...@gmail.com wrote: All right, so after days I finally figured it out. After creating my bitmap, I need to set every pixel in Java: for (int x = 0; x 254; x++) { for (int y =0; y 254; y++) { bmp.setPixel(x, y, Color.argb(255, 0, 0, 0)); } } The question is: WHY only for ICS? On Wednesday, December 5, 2012 4:07:38 PM UTC-8, GJTorikian wrote: Hi there— I'm making updates to a live wallpaper I've developed. The wallpaper is currently running correctly on a 2.2 device, but NOT on my 4.2 device. On the ICS device, it seems that only the last column is being correctly drawn. For example, in a coordinate system, if my phone is 420 x 720 (not sure of the exact dimensions), then only pixels (420, 0) through (420, 720) are being drawn. The rest is black / transparent. Here's the code I'm using: https://github.com/**gjto** rikian/Earthbound-Battle-**Backg**rounds/blob/master/src/**com/** miadzin/livewallpaper/**earthbou**nd/**EarthboundLiveWallpaper.**java# **L243https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L243 First, I draw a 256 x 256 bitmap. Then, I use a matrix to scale it. Again, this works fine on a non-ICS device. Another tricky aspect is that I'm using the JNI to do some of the bitmap math, but I still think the problem is in this canvas code somewhere. Thanks for any 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-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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: Application uploading problem.
I suggest to InkScape http://inkscape.org/ On Tue, Dec 11, 2012 at 5:09 AM, TreKing treking...@gmail.com wrote: On Mon, Dec 10, 2012 at 12:40 PM, AMAL SHIWANTHA amal...@gmail.comwrote: thanks for the all comments. finally i found the solution. i've used \n for app name. it's wrong. looks like that *project name \n 2013* * * *can't use. it's should be* * * *project name 2013* Well it's a good thing the developer console gave you a great, obvious, crystal-clear message to point you to the exact problem. Such a great tool. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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]
Hello , This is my new e-mail id. -- Abhijeet Singh Tomar Place: Indore -- 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] cleaner shaders
I've been putting shader code into assets or raw resources for a long while. Writing your shaders as strings is a pain. -- H On Dec 11, 2012 12:29 AM, bob b...@coolfone.comze.com wrote: I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader ought to be stored as assets for readability. Right now they are like this: private final String mVertexShader = uniform mat4 uMVPMatrix;\n + attribute vec4 aPosition;\n + attribute vec2 aTextureCoord;\n + varying vec2 vTextureCoord;\n + void main() {\n + gl_Position = uMVPMatrix * aPosition;\n + vTextureCoord = aTextureCoord;\n + }\n; private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + gl_FragColor = texture2D(sTexture, vTextureCoord);\n + }\n; On iOS, they are stored in .vsh and .fsh files. I think we should do something like that. What do you guys think? -- 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] cleaner shaders
For sample code putting the shaders in strings makes it easier to see everything needed to understand the app. In practice if your shaders are static you should indeed put them in your resources directory instead. On Mon, Dec 10, 2012 at 10:38 PM, Harri Smått har...@gmail.com wrote: I've been putting shader code into assets or raw resources for a long while. Writing your shaders as strings is a pain. -- H On Dec 11, 2012 12:29 AM, bob b...@coolfone.comze.com wrote: I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader ought to be stored as assets for readability. Right now they are like this: private final String mVertexShader = uniform mat4 uMVPMatrix;\n + attribute vec4 aPosition;\n + attribute vec2 aTextureCoord;\n + varying vec2 vTextureCoord;\n + void main() {\n + gl_Position = uMVPMatrix * aPosition;\n + vTextureCoord = aTextureCoord;\n + }\n; private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + gl_FragColor = texture2D(sTexture, vTextureCoord);\n + }\n; On iOS, they are stored in .vsh and .fsh files. I think we should do something like that. What do you guys think? -- 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en