[android-developers] RE : Looking for C2C Requirements for my consultants
*Hi,* *Hope you doing great,* *My name is Sameer from Econtenti and **I have a number of candidates on below skills and we are looking for Corp to Corp Requirements.* *please share me if you have any Corp to Corp Requirements* *Note: The best way to reach me is through Email* *Here you go * *SR. JAVA DEVELOPER* *SR. UI DEVELOPER* *SR. SALESFOREC DEVELOPER * *SR. SALESFORCE ADMIN* *SR. NETWORK ENGINEER* *SR. DATA ANALYST* *Thanks & Regards,* *Sameer* *Phone: 732-258-0369* *Email: sameer.recruiter...@gmail.com <sameer.recruiter...@gmail.com>* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9dfa4654-84ee-4f44-8c76-5cff49a81114%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Backfill:JR .NET Developer with SSIS,SSRS EXP|Las Vegas NV|$35/hr on c2c
Hi, I have attached my resume for your review. Thanks Sameer Shetty On Thursday, February 23, 2017 at 10:56:29 AM UTC-5, Neha K wrote: > > *Hello,* > > *GREETINGS !!* > > *This is Neha from Apetan consulting,* > > *Please find the below job description and send me your update resume > matching to it along with Contact details, Current location, Visa and > Availability ASAP.* > > > > *POSITION: JR .NET Developer with SSIS,SSRS EXP* > > * INTERVIEW: Phone than Skype Interview* > > *LOCATION: Las Vegas NV* > > *DURATION:6 MONTHS+* > > *START :ASAP* > > > > > > *Job Overview:* > > *One candidate has interview today Client has 3 position Two references* > > *He must be USC, GC or OPT-EAD.* > > *Need for a back fill* > > *Job in in Las Vegas NV* > > > > *I really do not have a “Job Description” but this is what I have.* > > Must have: good communication skills, able to adjust quickly to scope > changes, can work independently with minimum supervision but balance with > team oriented brainstorming and testing > > C#, ASP.Net experience > > They are web driven, building web tools, ties in with active directory > > Working with dashboards, email notifications > > Will be working with a MASSIVE database > > Would like someone who is comfortable working with the customers to > extract data (communication skills) > > Nice to have: SSRS, OpenGate, Meditech experience > > > > > > *Thanks & Regards* > > > > > > > > *Neha Kumari |* *Technical Recruiter* | *Apetan Consulting LLC* > > Tel:201-620-9700* 106 | Fax: 201-526-6869 | > > *Mail *: 72 van reipen ave pmb#255, Jersey City, NJ 07306 | > > *Corp. Office:* 15 Union Avenue, office # 6, Rutherford, New Jersey > 07070 | > > > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/8b279b94-92eb-4f32-8d36-87b427576ebb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ShettySameer-BI.docx Description: MS-Word 2007 document
[android-developers] Animating concentric circle created in drawable xml
*Main Acitivity class:* public class MainActivity extends AppCompatActivity { ImageView img; //GradientDrawable shape; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); img=(ImageView) findViewById(R.id.callingAnim); } public void onStart(){ Animation myFadeInAnimation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.animation); Animation myFadeOutAnimation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.animation1); int value = 0; for (int i=0;i<10;i++){ if (value == 0){ img.startAnimation(myFadeInAnimation); value = 1; } else if (value == 1){ img.startAnimation(myFadeOutAnimation); value = 0; } } super.onStart(); } } res/drawable/concentric.xml http://schemas.android.com/apk/res/android;> FadeIn animation(res/anim/animation.xml) http://schemas.android.com/apk/res/android;> Fade Out animation(animation1.xml) http://schemas.android.com/apk/res/android;> This fade in and fade out complete drawable where else i want each circle to fade in then fade out all continously in a loop to infinite. Please help! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/d5ea84a3-3622-4f0f-b453-41c3dc55529d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Api Calling problem
Find below detail for API : *URL :* http://192.168.0.19/monika/slim_prj/public/code *Request Parameter *(in POST) - mac_address - key *Response* (in JSON) - { "status": 1, "message": "qYNoQBImXRhOMety" } my code goes here--> package com.medmainfomatix.myapplication1; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ProgressBar; import android.widget.TextView; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; public class MainActivity extends AppCompatActivity { EditText emailText; EditText emailText1; TextView responseView; ProgressBar progressBar; static final String API_URL = "http://192.168.0.19/monika/slim_prj/public/code/;; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); responseView = (TextView) findViewById(R.id.responseView); emailText = (EditText) findViewById(R.id.emailText); emailText1= (EditText) findViewById(R.id.emailText1); progressBar = (ProgressBar) findViewById(R.id.progressBar); Button queryButton = (Button) findViewById(R.id.queryButton); queryButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { new RetrieveFeedTask().execute(); } }); } class RetrieveFeedTask extends AsyncTask{ private Exception exception; String mac_address = emailText.getText().toString(); String key= emailText1.getText().toString(); protected void onPreExecute() { progressBar.setVisibility(View.VISIBLE); responseView.setText(""); } protected String doInBackground(Void... urls) { // Do some validation here try { URL url = new URL(API_URL + "mac_address=" + mac_address + "Key=" + key); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); StringBuilder stringBuilder = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) { stringBuilder.append(line).append("\n"); } bufferedReader.close(); return stringBuilder.toString(); } finally{ urlConnection.disconnect(); } } catch(Exception e) { Log.e("ERROR", e.getMessage(), e); return null; } } protected void onPostExecute(String response) { if(response == null) { response = "THERE WAS AN ERROR"; } progressBar.setVisibility(View.GONE); Log.i("INFO", response); responseView.setText(response); // TODO: check this.exception // TODO: do something with the feed // try { // JSONObject object = (JSONObject) new JSONTokener(response).nextValue(); // String requestID = object.getString("requestId"); // int likelihood = object.getInt("likelihood"); // JSONArray photos = object.getJSONArray("photos"); // . // . // . // . // } catch (JSONException e) { // e.printStackTrace(); // } } } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/90c19ce6-4349-4ac8-908e-7ee72878e668%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Embedded Engineer – Vehicle Services- Peachtree city, GA
Hi, Please let me know if you have any one available for the following opening. Embedded Engineer – Vehicle Services Location: Peachtree city, GA Duration: 6 + months Rate: $45/hr Position Summary: Experience with Embedded /C++ Familiar with CAN communication Experience using CANAlyzer Experience in writing CAPL scripts Experience using ATI Vision/ ETAS INCA tools Familiar with automotive technology preferably hybrid cars Experience using dSPACE HIL testing Experience in testing on vehicle/ Labcar Thanks and Regards Sameer Sinha Manager (Talent Acquisition) Contact Number: +1 347-809-6832 Skype: sam18jan |E-mail: h...@smdconsultants.com Website: www.smdconsultants.com *[image: cid:image001.jpg@01D1EFDA.EA57D9F0]* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/b106b60f-548c-46f5-b7ce-06cf841e232a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: How to detect if the PendingIntent already exists or not
Hi Sir I have implement the alarm manager in project. I have set the multiple alarm at same time. Suppose I have set the five alarms but 4 alarms has fired out of 5 or I have set 3 alarms but 2 alarms has fired. Can you give me some advice how to solve this problem? CODE: private void setAlarm(Calendar targetCal) { // *change Request code RQS_1 = (int) System.currentTimeMillis(); // Note Declare AlarmReciever in Manifest otherwise Alarm will not work // Intent intent = new Intent(getBaseContext(), AlarmReceiver.class); intent.putExtra("ID", String.valueOf(insert_id)); intent.putExtra("Time", mTime); PendingIntent pendingIntent = PendingIntent.getBroadcast(getBaseContext(), RQS_1, intent,0); AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); // use 24*3600*1000 for repeating after 24// alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,targetCal.getTimeInMillis(), 24 * 3600 * 1000, pendingIntent); //alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,targetCal.getTimeInMillis(), 24 * 3600 * 1000, pendingIntent); } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7dc26ba2-43ed-48de-b092-d4af992cd876%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Bluetooth Smart Ready - 4.0 BLE
Hi, Any news on native support for BLE / 4.0 / GATT / Bluetooth Smart Ready? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Failed to start the camera on HTC wildfire (Android 2.2.1)
I have developed the camera app to capture the image and it is working fine. Someimes when we perform multiple clicks(4-5 times) on cam icon to capture the image followed by home button, App unable to start the camera on device. Same issue is reflected in default camera app as well. https://lh6.googleusercontent.com/-9cR1VC3vkZI/UP6IpmQhdOI/ABY/K5hQJOpTPxA/s1600/scanfront.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] Input method is unable to get the action from Done button
Dear Sir, 1. I am trying to create an Input method, for which i am using softkeyboard example provided by the android sdk. 2. I install my application (apk file) on a samsung device (android 2.1 sdk). 3. In the device i activate my IME and open the MEMO application. I change the orientation to landscape mode and type some words and the Click on the Done button which is at the right of the text. 4. When Done button is clicked, i am not able to understand, as which function of the InputMethod Service is getting called. Can you please help me on this. 5. Can you please tell me where the Control flows when such editor based buttons are called. Thank you. regards, Sameer Kamble -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Andriod Trainer(10-15k per day)
We need an Android trainer; the compensation will be 10-15k per day for a span of 2weeks, (this training can be extended for 4 months). Please send your profile to sameer36...@gmail.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] Android mediaplayer shoutcast streaming
Anyone have a solution on streaming shoutcast broadcasts WITHOUT using the AOR SDK? Or is there anyother API out there that is FREE for use to play shoutcast or asf streams? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] emulator proxy not working
I have setup the proxy in the configuration but the settings kick in after I exit/close the emulator. not sure what is going on.. Sameer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mediaplayer online streaming formats
anyone?? On Sep 22, 11:19 am, Sameer sijaf...@gmail.com wrote: Hello, I am trying to create a small application for streaming radio broadcast that is in video/x-ms-asf format. the url has a .asx extension at the end. I have come to know that Android does not support this format currently, what other format for streaming broadcasts does it support so I can request that from the radio? Regards, Sameer Jaffer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mediaplayer online streaming formats
Hello, I am trying to create a small application for streaming radio broadcast that is in video/x-ms-asf format. the url has a .asx extension at the end. I have come to know that Android does not support this format currently, what other format for streaming broadcasts does it support so I can request that from the radio? Regards, Sameer Jaffer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 install the files in the file system on android phone (samsung galaxy 5)
Dear Sir, Thanks for your reply. 1) Does this means that if i create the folder raw inside res folder , put some files in it and in my program give the path to open and read a file as /data/data/mypackage/filename. Will it read the file from raw folder at run time on the device. 2) I mean to say that is the path /res/raw/ equivalent to /data/data/ mypackage/ folder. 3) I also intend to read/write and create some files at run time in my internal memory /data/data/mypackage/ folder. When i do these operation in my Emulators /data/data/mypackage/ folder, i don't face any problem i.e the original files are read and written as well as some new files are also created. But as you say i will add my files in /res/raw folder. But will i be able to write in the files present at raw folder 4) Will it be possible by adding files,subfolders in raw folder OR will it be possible by adding files , subfolders in the assets folder. will my problem solve by using assets folder. Please help me on this regards, Sameer Kamble On Sep 20, 8:07 pm, Bret Foreman bret.fore...@gmail.com wrote: You can store files in /res/raw. Just create the folder, import the files, and they'll get installed with your package. They will be read- only, though, so you'll need to move them at runtime if you plan to change them. I do this with certain geographical information for location based services and it works great. On Sep 20, 7:08 am, sameer kamble sameerbkam...@gmail.com wrote: Dear Sir, 1) I am using Eclipse IDE and Android SDK 2.1 for my application. My application reads some data files from the File System, so using DDMS i push all the files in /data/data/com.mypackage/ folder and run my application on emulator. I am able to see my desired output properly on the emulator. 2) Now i have Android device and i don't know how to push the files in the Internal memory of the phone. I have installed driver CD. But it only shows me the SD card directory. 3) Actually what i want is that the moment my application is installed and run it should read the data files from the file system. So there should be no added efforts to push the files in the file system. 4)Means can i pack my data files with my .apk file and when the apk is getting installed can the data files be placed directly in the internal memory(file system) i.e. /data/data/com.mypackage/ folder. Is this possible ?? if yes can you please tell me how to do it. 5) Can you please help me on this issue. regards, Sameer Kamble -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 install the files in the file system on android phone (samsung galaxy 5)
Dear Sir, 1) I am using Eclipse IDE and Android SDK 2.1 for my application. My application reads some data files from the File System, so using DDMS i push all the files in /data/data/com.mypackage/ folder and run my application on emulator. I am able to see my desired output properly on the emulator. 2) Now i have Android device and i don't know how to push the files in the Internal memory of the phone. I have installed driver CD. But it only shows me the SD card directory. 3) Actually what i want is that the moment my application is installed and run it should read the data files from the file system. So there should be no added efforts to push the files in the file system. 4)Means can i pack my data files with my .apk file and when the apk is getting installed can the data files be placed directly in the internal memory(file system) i.e. /data/data/com.mypackage/ folder. Is this possible ?? if yes can you please tell me how to do it. 5) Can you please help me on this issue. regards, Sameer Kamble -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Which device should i buy to test My Custom Input Method Application
Dear Sir, 1. I am in the process of creating an Input Method for Android devices. I using Eclipse(3.4) IDE and have Android (1.5 and 2.2) SDK. 2. Currently i am doing testing on the Emulator. But i wish to test it on actual Android device. 3. Can you please tell me which ideal device should i buy to test my application 4. Is there any lead device assigned by Android for a given SDK. 5. I intend to sign and publish my application so can you please tell me is there any Certification criteria which i have to follow Please help me on this issue. regards, Sameer Kamble -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SoftKeypad upon the Notification Bar
When we pull down the notification bar, we see the current notifications. We've taken it a step further and we're able to get audio, video and buttons in notification bar, when it is pulled down. Now my issue is, I need the soft keypad to come up when I click on the edit text field inside the notification bar. The qwerty keyboard simply doesn't show up. I tried forcing it to show itself using the following code inside the notification file. InputMethodManager inputMethodManager = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY); inside StatusBarService.java Anyone who could enlighten me on this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reg. accessing the external files
Consider this scenerio: The end user copies a bunch of text files onto his android every week. My application which has to do some analysis on this text files and show the results to the user. Can my application access files anywhere in the file system of android? If NO, what would be the location where the user is supposed to copy the files to or any alternate solution ? Because the user copies the files periodically on to Android. My application is supposed to do analysis and display the results. Please Help. I'm a newbie. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 411 length required for HttpPost in Calendar protocol
I'm trying to implement the create calendar protocol from Google Calendar. For that I'm supposed to do a HTTPPost to owncalendar url, with auth header and content-type given. After performing HttpPost, i get a response saying 411 length required.. But when I checked packets using wireshark, the content-length is added, I tried to add it manually, but it is not allowing me to do so and raises an exception saying content-length already added. So how do i go about it? check this code Code here-- String body=entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005' + xmlns:gCal='http://schemas.google.com/gCal/2005' + title type='text'+title+/title + summary type='text'+summary+/summary + gCal:timezone value='+timezone+'/gCal:timezone+ gCal:hidden value='+String.valueOf(hidden)+'/ gCal:hidden+ gCal:color value='+color+'/gCal:color+ gd:where rel='' label='' valueString='+location+'/ gd:where+ /entry; String url=http://www.google.com/calendar/feeds/default/ owncalendars/full; final HttpPost mPost=new HttpPost(url); mPost.addHeader(Content-type,application/atom+xml); mPost.addHeader(AUTH_HEADER_NAME,AUTH_HEADER_VALUE); // mPost.removeHeaders(Content-Length); // mPost.setHeader(Content-Length, String.valueOf(body.length())); Header[] mHeaders1=mPost.getAllHeaders(); for(int i=0;imHeaders1.length;i++) { System.out.println( Header as follow --+mHeaders1[i].getName()+ val=+mHeaders1[i].getValue()); } try { HttpEntity entity = new StringEntity(body); HttpClient mClient= new DefaultHttpClient(); HttpProtocolParams.setUseExpectContinue(mClient.getParams(), false); mPost.setEntity(entity); HttpResponse mResponse; mResponse= mClient.execute(mPost); System.out.println(THE SUCCESS CODE IS AS FOLLOWS+mResponse.getStatusLine().getStatusCode()+mResponse); THe rest follows -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 404 returned by Picasa Protocol
Hello Everyone, I've gotten through the ClientLogin procedure using service=lh2 for picasa and am getting an Auth Token, with which I'm doing the following HttpGet mGet=new HttpGet(http://picasaweb.google.com/data/feed/api/ all?q=puppymax-results=10); System.out.println( THE REQUEST URL FOR PICASA IS ==+picasa_url); mGet.addHeader(AUTH_HEADER_NAME, PICASA_AUTH_VALUE); // picasa auth value contains : Google Auth=blah blah mGet.addHeader(GDATA_VERSION_NAME, GDATA_VERSION_VALUE); //Gdata value is : 2 HttpResponse mResponse; mResponse=getResponesForHttpGet(mGet); // this method executes the the mGet as defaultHttpClient.execute(mGet) and returns response.. but I get a 404 Not Found error saying codedata/feed/api/all?q=puppymax- results=10/code Not found on this server. How to get through 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 To unsubscribe, reply using remove me as the subject.
[android-developers] Re: username and password for sample sync adapter
Thanks a lot megha.. this is a relief, I'd try this and get back -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: username and password for sample sync adapter
Okay, I tried the user1/test on emulator and it added account succesfully, and on the web side I added few handles and added few friends on the same handle, and tried syncing the same on emulator, and I am getting 500 internal server error, is there still something wrong? I added one more user on the server and authenticated same from emulator, it the accounts get added fine. As far as hosting the python files for personal contact server is concerned I'm afraid it might take time for me, as I'd have get approval from my manager. So I wished if I could see the working with the already existing db on server. Thanks again On Feb 19, 4:18 am, Megha mjo...@google.com wrote: Hi, I have uploaded the zipped source files for this sample at:http://code.google.com/p/apps-for-android/downloads/list Sorry about the server related python source files not being visible on developer.android.com. We will fix it soon. This sample source will be available with the next sdk package, we are working on making zipped samples downloadable from developer.android.com itself in future. Regardingpasswordissue, please use account user1/test on samplesyncadapter server. I would recommend that to add new accounts, download the server code, modify it as you want and host it on a separate app engine instance. If you look at dashboard.py and app.yaml in server code it should be pretty clear how to do this..giving a short overview below: 1) Add a new Sample SyncAdapter account @: http://yoursamplesyncadapter_server.appspot.com/add_user For example I have added user1: http://yoursamplesyncadapter_server.appspot.com/edit_user?user=1 2) Enterusername/password@ http://yoursamplesyncadapter_server.appspot.com/add_credentials Thepasswordfor user1 is test. 3) Modify the android code to use your server instance. Sorry for the confusion so far, please let me know if you have more questions. Thanks, Megha On Feb 18, 10:28 am, HCH hayeshau...@gmail.com wrote: Could someone on the android team please tell us what we should use for thepasswordwhen connecting to the SampleSyncAdapter server? On Feb 16, 4:19 pm, HCH hayeshau...@gmail.com wrote: as for 1) - The source tree is not available for download that I can tell. You have to cut and paste each individual file from the html and reconstruct the source tree locally. - The source to the server has a directory but is not actually there. - What to use as apasswordisn't clear and I can't find one (tried all values in the user account I created plus 'password', etc.). So even though there is now an example months after the OS shipped with this feature it isn't complete and was seemingly put up without much care. On Feb 16, 3:50 am, Sameer AM sam2...@gmail.com wrote: Hello, I just got thesamplesyncadaptercode running on the emulator, but how do I add account in it when it asks forusernameandpassword? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts Syncoptions in the Settings, am I missing anything? -- so for this I compiled this app in 2.1 and ran on 2.1 emulator 2) In 2.0 emulator when I launch Accounts option from Contact app, it crashes? I saw this a raised bug, is this solved? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] username and password for sample sync adapter
Hello, I just got the sample sync adapter code running on the emulator, but how do I add account in it when it asks for username and password? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts Sync options in the Settings, am I missing anything? -- so for this I compiled this app in 2.1 and ran on 2.1 emulator 2) In 2.0 emulator when I launch Accounts option from Contact app, it crashes? I saw this a raised bug, is this solved? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] username and password for sample sync adapter
Hello, I just got the sample sync adapter code running on the emulator, but how do I add account in it when it asks for username and password? And I have the following questions 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see the Accounts Sync options in the Settings, am I missing anything? -- so for this I compiled this app in 2.1 and ran on 2.1 emulator 2) In 2.0 emulator when I launch Accounts option from Contact app, it crashes? I saw this a raised bug, is this solved? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: username and password for sample sync adapter
Thanks a lot for quick reply.. I got clarification for 1, and 2, so I don't have a username with which I could login! Great documentation! and I saw that bug is fixed in 2.0.1, now here is one more question, when I try to add an account for corporate type, I get this message Unable to open connection. any fix for this? Thanks for the help in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Contacts App crashes when switching between Dialer to Call log
I've altered the contact app so that in Dialer the soft keypad always stays and it hides when other tab activity resumes, We've given different look for the contacts app, but when using the same, a crash occurs when we rapidly change from dialer to call log. And the App crashes without the standard crash dialog. I have copied the log and the error seems to be happening in a deeper section.. 01-01 06:25:37.401: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.464: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:37.472: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.081: DEBUG/(1350): The INPUT TYPE OF MDIGITS onPause 1 01-01 06:25:39.097: WARN/InputManagerService(1082): Ignoring hideInputMethod of token: null 01-01 06:25:39.222: DEBUG/dalvikvm(1404): GC freed 70 objects / 5424 bytes in 143ms 01-01 06:25:39.573: DEBUG/dalvikvm(1350): GC freed 41355 objects / 1657488 bytes in 214ms 01-01 06:25:39.589: DEBUG/(1350): The Saved Contact is checked here 01-01 06:25:39.589: INFO/dalvikvm(1350): Uncaught exception thrown by finalizer (will be discarded): 01-01 06:25:39.589: INFO/dalvikvm(1350): Ljava/lang/ IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@45c8b2b0 on calls that has not been deactivated or closed 01-01 06:25:39.589: INFO/dalvikvm(1350): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596) 01-01 06:25:39.589: INFO/dalvikvm(1350): at dalvik.system.NativeStart.run(Native Method) 01-01 06:25:39.620: WARN/IInputConnectionWrapper(1350): finishComposingText on inactive InputConnection 01-01 06:25:39.698: INFO/DEBUG(1008): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-01 06:25:39.698: INFO/DEBUG(1008): Build fingerprint: 'zoom/ldp1/ ldp1/ldp1:Donut/Donut/eng.vishal.20091203.130315:eng/test-keys' 01-01 06:25:39.698: INFO/DEBUG(1008): pid: 1350, tid: 1355 android.process.acore 01-01 06:25:39.698: INFO/DEBUG(1008): signal 11 (SIGSEGV), fault addr 0004 01-01 06:25:39.698: INFO/DEBUG(1008): r0 0004 r1 40023778 r2 0004 r3 ad32d629 01-01 06:25:39.698: INFO/DEBUG(1008): r4 r5 r6 ad34e495 r7 4203afb8 01-01 06:25:39.698: INFO/DEBUG(1008): r8 100ffd00 r9 4203afb0 10 4203afa0 fp 0001 01-01 06:25:39.698: INFO/DEBUG(1008): ip ad372c80 sp 100ffce8 lr ad32d633 pc afb04408 cpsr 0010 01-01 06:25:39.776: INFO/DEBUG(1008): #00 pc 4408 / system/lib/libcutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): #01 lr ad32d633 / system/lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): stack: 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffca8 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcac ad371820 /system/ lib/libandroid_runtime.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb0 45ba1410 /dev/ ashmem/mspace/dalvik-heap/2 (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb4 afd00949 /system/ lib/libstdc++.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcb8 0028c820 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcbc 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc0 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc4 43079f5c /data/ dalvik-cache/sys...@framework@framework@classes.dex 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcc8 0001 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffccc a9d222bf /system/ lib/libutils.so 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd0 a000 [heap] 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd4 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcd8 100ffd30 01-01 06:25:39.784: INFO/DEBUG(1008): 100ffcdc 000d 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce0 df002777 01-01 06:25:39.792: INFO/DEBUG(1008): 100ffce4 e3a070ad 01-01 06:25:39.800: INFO/DEBUG(1008): #00 100ffce8 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcec ad32d633 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf0 100ffd20 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf4 ad34e4a5 /system/ lib/libandroid_runtime.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcf8 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffcfc ad00e438 /system/ lib/libdvm.so 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd00 420f30b8 /dev/ ashmem/dalvik-LinearAlloc (deleted) 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd04 0010e8a0 [heap] 01-01 06:25:39.800: INFO/DEBUG(1008): 100ffd08 ad34e495 /system/ lib/libandroid_runtime.so 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd0c 40023778 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 01-01 06:25:39.808: INFO/DEBUG(1008): 100ffd10 1071 01-01 06:25:39.808:
[android-developers] Adding Resource in framework
Hi, i have requirement to implement button in lockscreen. So i have added new image here *frameworks\base\core\res\res \drawable.* And i have modified the Keyguard_screen_lock.xml. Here i have added the ImageButton view. And i have even modified the strings.xml to display different string. As in the following discussion it has told like this. *You must not add public resources because it would change the public API and thus make your Android phone/device potentially incompatible with other Android devicesYou must not add public resources because it would change the public API and thus make your Android phone/device potentially incompatible with other Android devices.* ** *Please find the previous discussion in the bellow link* ( http://groups.google.com/group/android-framework/browse_thread/thread... ) ** I am not clear about the public and private resource in framework. Please do let me know whatever i have done creates any problem. Please give me the link to know more about public resource and private resource. Please reply ASAP Thanks and Regards Mohammed Sameer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 pressed state of CheckBoxPreference
Hi i will summarize the problem, There is know problem in all the Android phones. Go to Bluetooth Settings-Turn ON bluetooth-Click on bluetooth discovery-Then timer will start in summary-Long press on Bluetooth device discovery- observe Bluetooth ON/OFF title start to toggle with Bluetooth Discovery toggle. I analyzed the issue. Blueooth ON/OFF is CheckBoxPreference. Bluetooth Discovery is also CheckBoxPreference which has dependency on Bluetooth ON/OFF. When we click on Bluetooth discovery then On thread will run at every second to update summary in Bluetooth Discovery preference. When we change the Bluetooth discovery to OFF then thread will be removed/ killed. When i press the Bluetooth discovery for long time when its already in ON State then still the thread will be updating the summary (remaining time from 120 to 00) till i press it. When i leave the Thread will stop. As it has dependency on Bluetooth ON/OFF, its making to the title invisible. But it should not happen. Solution: When i touch the Device Discovery i should kill the update summary thread then i guess, that problem will be solved. But in prefence i dont have any listener to know the pressed state. I hope somebody can give me solution. Regards Sameer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Listview focus out of order when click rapidly
i also found this problem. This issue happens 100% in the bellow scenario Settings-Bluetooth Discover ON/OFF- updates the timer - Log press on Bluetooth Discover ON/OFF at that even your update summary thread will be running so it created the problem on which it has dependency. Solution is when your Bluetooth Discover ON/OFF pressed, destroy the thread. But i dont know how to check pressed state of preference. If you have already found the solution please let me. Thank you Sameer On Sep 1, 5:31 pm, jerryfan2000 jerryfan1...@gmail.com wrote: Hi, I noticed that when item in in a list is clicked rapidly, there is chance that item in other row becomes dark. Especially when you click turn on/off bluetooth in system setting quickly. Has anyone noticed it and is there fix for this? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to get pressed state of preference
Hi i will summarize the problem, There is know problem in all the Android phones. Go to Bluetooth Settings-Turn ON bluetooth-Click on bluetooth discovery-Then timer will start in summary-Long press on Bluetooth device discovery- observe Bluetooth ON/OFF title start to toggle with Bluetooth Discovery toggle. I analyzed the issue. Blueooth ON/OFF is CheckBoxPreference. Bluetooth Discovery is also CheckBoxPreference which has dependency on Bluetooth ON/OFF. When we click on Bluetooth discovery then On thread will run at every second to update summary in Bluetooth Discovery preference. When we change the Bluetooth discovery to OFF then thread will be removed/ killed. When i press the Bluetooth discovery for long time when its already in ON State then still the thread will be updating the summary (remaining time from 120 to 00) till i press it. When i leave the Thread will stop. As it has dependency on Bluetooth ON/OFF, its making to the title invisible. But it should not happen. Solution: When i touch the Device Discovery i should kill the update summary thread then i guess, that problem will be solved. But in prefence i dont have any listener to know the pressed state. I hope somebody can give me solution. Regards Sameer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] We can't add the resources in framework???
Hi, i have requirement to implement button in lockscreen. So i have added new image here *frameworks\base\core\res\res\drawable.* And i have modified the Keyguard_screen_lock.xml. Here i have added the ImageButton view. And i have even modified the strings.xml to display different string. As in the following discussion it has told like this. *You must not add public resources because it would change the public API and thus make your Android phone/device potentially incompatible with other Android devicesYou must not add public resources because it would change the public API and thus make your Android phone/device potentially incompatible with other Android devices.* ** *Please find the previous discussion in the bellow link* ( http://groups.google.com/group/android-framework/browse_thread/thread/d2e6930e7c37e6fd ) ** I am not clear about the public and private resource in framework. Please do let me know whatever i have done creates any problem. Please give me the link to know more about public resource and private resource. Please reply ASAP Thanks and Regards Mohammed Sameer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: out of memory error getWallpaper
Hi Steve, PLease let me know how you fixed the belllow exeption run-time exception the next attempt to use recycled bitmap. I m also getting the same exeption trying to use a recycled bitmap android.graphics.bit...@43750030 Please reply back. Your reply will be highly appreciated. Thanks and regards Mohammed Sameer On Aug 18, 1:38 am, Flying Coder av8r.st...@gmail.com wrote: Hi Nivek, Unfortunately, doing recycle on the drawable returned by ContextWrapper.getWallpaper() results in a run-time exception the next time the app is launched: attempt touserecycledbitmap. Though curiously, if I launch the app again after receiving the exeption, it works fine. I.e., run time exception every other launch. At any rate, thanks for the pointer to Romain Guy's blog -- I wasn't aware of the onRetainNonConfigurationInstance method. Should be useful in some cases. Cheers, Steve On Aug 17, 10:53 am, Nivek kevin.gau...@gmail.com wrote: When you change the device orientation, you app is closed and then reopened. Android handles bitmaps a special way, you HAVE to explicitly recycle them as soon as you don't need them anymore... or they stay allocated in memory and NEVER get freed. I have started to code an app which uses a set of ImageViews. To avoid allocation errors on orientation changes, I had to override the onDestroy() method this way : /* * (non-Javadoc) * * @see android.app.Activity#onDestroy() */ @Override protected void onDestroy() { super.onDestroy(); if (isFinishing()) { for (ImageView view : mImgViews) { Drawable toRecycle = view.getDrawable (); if (toRecycle != null) { ((BitmapDrawable) toRecycle).getBitmap().recycle(); } } } } After this, If the orientation change time is too long, you have to store the data (bitmaps and whatever else you need) with onRetainNonConfigurationInstance() and get them back on reinit with getLastNonConfigurationInstance(). This has been explained by Romain Guy on his blog :http://www.curious-creature.org/2009/02/16/faster-screen-orientation-... On 17 août, 15:58, Flying Coder av8r.st...@gmail.com wrote: This has been driving me nuts and I'm hoping someone will be able to help me understand what is happening (or better yet, how to fix it! ;-). I set the background image in one of my apps to the system wallpaper image using the following code: Drawable wp = this.getWallpaper(); background = (ImageView) findViewById(R.id.background); background.setImageDrawable(wp); This seems to work fine, but periodically, I get the out of memory error shown below. Actually, on the emulator, all I have to do is repeatedly rotate the device and this error will consistently happen after 10-12 rotations. On the G1, opening and closing the keyboard doesn't seem to cause this, but I'll still get the failure every once in a while. Is getWallpaper() actually making a copy of the image (I would have thought I'd just get a refernece to the existingbitmap)? Do I need to do anything special to free the image? 08-17 08:32:37.943: ERROR/dalvikvm-heap(1597): 614400-byte external allocation too large for this process. 08-17 08:32:37.943: ERROR/(1597): VM won't let us allocate 614400 bytes 08-17 08:32:38.054: DEBUG/AndroidRuntime(1597): Shutting down VM 08-17 08:32:38.054: WARN/dalvikvm(1597): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 08-17 08:32:38.054: ERROR/AndroidRuntime(1597): Uncaught handler: thread main exiting due to uncaught exception 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): java.lang.OutOfMemoryError:bitmapsize exceeds VM budget 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.graphics.BitmapFactory.nativeDecodeFileDescriptor(Native Method) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.graphics.BitmapFactory.decodeFileDescriptor(BitmapFactory.java: 424) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.getCurrentWallpaperLocked (ApplicationContext.java:523) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.peekWallpaper(ApplicationContext.java: 515) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.getWallpaper(ApplicationContext.java: 504) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.content.ContextWrapper.getWallpaper(ContextWrapper.java:201) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at onCreate (MyApp.java:247) 08-17 08:32:38.313: ERROR
[android-developers] Re: out of memory error getWallpaper
Hi Nivek, Can you please tell me the solution for the problem attempt to use recycled bitmap Any solution please let me know. Your reply will be highly appreaciated Thanks and Regards Mohammed Sameer On Aug 17, 11:53 pm, Nivek kevin.gau...@gmail.com wrote: When you change the device orientation, you app is closed and then reopened. Android handles bitmaps a special way, you HAVE to explicitly recycle them as soon as you don't need them anymore... or they stay allocated in memory and NEVER get freed. I have started to code an app which uses a set of ImageViews. To avoid allocation errors on orientation changes, I had to override the onDestroy() method this way : /* * (non-Javadoc) * * @see android.app.Activity#onDestroy() */ @Override protected void onDestroy() { super.onDestroy(); if (isFinishing()) { for (ImageView view : mImgViews) { Drawable toRecycle = view.getDrawable (); if (toRecycle != null) { ((BitmapDrawable) toRecycle).getBitmap().recycle(); } } } } After this, If the orientation change time is too long, you have to store the data (bitmaps and whatever else you need) with onRetainNonConfigurationInstance() and get them back on reinit with getLastNonConfigurationInstance(). This has been explained by Romain Guy on his blog :http://www.curious-creature.org/2009/02/16/faster-screen-orientation-... On 17 août, 15:58, Flying Coder av8r.st...@gmail.com wrote: This has been driving me nuts and I'm hoping someone will be able to help me understand what is happening (or better yet, how to fix it! ;-). I set the background image in one of my apps to the system wallpaper image using the following code: Drawable wp = this.getWallpaper(); background = (ImageView) findViewById(R.id.background); background.setImageDrawable(wp); This seems to work fine, but periodically, I get the out of memory error shown below. Actually, on the emulator, all I have to do is repeatedly rotate the device and this error will consistently happen after 10-12 rotations. On the G1, opening and closing the keyboard doesn't seem to cause this, but I'll still get the failure every once in a while. Is getWallpaper() actually making a copy of the image (I would have thought I'd just get a refernece to the existingbitmap)? Do I need to do anything special to free the image? 08-17 08:32:37.943: ERROR/dalvikvm-heap(1597): 614400-byte external allocation too large for this process. 08-17 08:32:37.943: ERROR/(1597): VM won't let us allocate 614400 bytes 08-17 08:32:38.054: DEBUG/AndroidRuntime(1597): Shutting down VM 08-17 08:32:38.054: WARN/dalvikvm(1597): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 08-17 08:32:38.054: ERROR/AndroidRuntime(1597): Uncaught handler: thread main exiting due to uncaught exception 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): java.lang.OutOfMemoryError:bitmapsize exceeds VM budget 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.graphics.BitmapFactory.nativeDecodeFileDescriptor(Native Method) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.graphics.BitmapFactory.decodeFileDescriptor(BitmapFactory.java: 424) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.getCurrentWallpaperLocked (ApplicationContext.java:523) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.peekWallpaper(ApplicationContext.java: 515) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.getWallpaper(ApplicationContext.java: 504) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.content.ContextWrapper.getWallpaper(ContextWrapper.java:201) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at onCreate (MyApp.java:247) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2231) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.os.Handler.dispatchMessage(Handler.java:99) 08-17 08:32:38.313: ERROR/AndroidRuntime
[android-developers] Re: out of memory error getWallpaper
/DumpStateReceiver(1059): Added state dump to 1 crashes 03-26 05:02:22.819: DEBUG/PowerManagerService(1059): inVSleepStatefalse Please revert as early as possible. Your fast response will be highly appreciated. Thanks and regards Mohammed Sameer On Aug 18, 1:38 am, Flying Coder av8r.st...@gmail.com wrote: Hi Nivek, Unfortunately, doing recycle on the drawable returned by ContextWrapper.getWallpaper() results in a run-time exception the next time the app is launched: attempt touserecycledbitmap. Though curiously, if I launch the app again after receiving the exeption, it works fine. I.e., run time exception every other launch. At any rate, thanks for the pointer to Romain Guy's blog -- I wasn't aware of the onRetainNonConfigurationInstance method. Should be useful in some cases. Cheers, Steve On Aug 17, 10:53 am, Nivek kevin.gau...@gmail.com wrote: When you change the device orientation, you app is closed and then reopened. Android handles bitmaps a special way, you HAVE to explicitly recycle them as soon as you don't need them anymore... or they stay allocated in memory and NEVER get freed. I have started to code an app which uses a set of ImageViews. To avoid allocation errors on orientation changes, I had to override the onDestroy() method this way : /* * (non-Javadoc) * * @see android.app.Activity#onDestroy() */ @Override protected void onDestroy() { super.onDestroy(); if (isFinishing()) { for (ImageView view : mImgViews) { Drawable toRecycle = view.getDrawable (); if (toRecycle != null) { ((BitmapDrawable) toRecycle).getBitmap().recycle(); } } } } After this, If the orientation change time is too long, you have to store the data (bitmaps and whatever else you need) with onRetainNonConfigurationInstance() and get them back on reinit with getLastNonConfigurationInstance(). This has been explained by Romain Guy on his blog :http://www.curious-creature.org/2009/02/16/faster-screen-orientation-... On 17 août, 15:58, Flying Coder av8r.st...@gmail.com wrote: This has been driving me nuts and I'm hoping someone will be able to help me understand what is happening (or better yet, how to fix it! ;-). I set the background image in one of my apps to the system wallpaper image using the following code: Drawable wp = this.getWallpaper(); background = (ImageView) findViewById(R.id.background); background.setImageDrawable(wp); This seems to work fine, but periodically, I get the out of memory error shown below. Actually, on the emulator, all I have to do is repeatedly rotate the device and this error will consistently happen after 10-12 rotations. On the G1, opening and closing the keyboard doesn't seem to cause this, but I'll still get the failure every once in a while. Is getWallpaper() actually making a copy of the image (I would have thought I'd just get a refernece to the existingbitmap)? Do I need to do anything special to free the image? 08-17 08:32:37.943: ERROR/dalvikvm-heap(1597): 614400-byte external allocation too large for this process. 08-17 08:32:37.943: ERROR/(1597): VM won't let us allocate 614400 bytes 08-17 08:32:38.054: DEBUG/AndroidRuntime(1597): Shutting down VM 08-17 08:32:38.054: WARN/dalvikvm(1597): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 08-17 08:32:38.054: ERROR/AndroidRuntime(1597): Uncaught handler: thread main exiting due to uncaught exception 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): java.lang.OutOfMemoryError:bitmapsize exceeds VM budget 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.graphics.BitmapFactory.nativeDecodeFileDescriptor(Native Method) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.graphics.BitmapFactory.decodeFileDescriptor(BitmapFactory.java: 424) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.getCurrentWallpaperLocked (ApplicationContext.java:523) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.peekWallpaper(ApplicationContext.java: 515) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.app.ApplicationContext.getWallpaper(ApplicationContext.java: 504) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at android.content.ContextWrapper.getWallpaper(ContextWrapper.java:201) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597): at onCreate (MyApp.java:247) 08-17 08:32:38.313: ERROR/AndroidRuntime(1597
[android-developers] RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.bit...@43895170
/DumpStateReceiver(1059): Added state dump to 1 crashes 03-26 05:02:22.819: DEBUG/PowerManagerService(1059): inVSleepStatefalse Please revert as early as possible. Your fast response will be highly appreciated. I m beginner in Android please reply in detail and code changes to be made. Thanks and regards Mohammed Sameer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SQlite DB
Hi All, I have been working on one application where it has to access the number of missed calls. i am facing the problem that the before the database of missed call get updated, the DB getting accessed so getting the old value. I am setting one Listener that will be called when the call ends, and i am reading the DB but still the DB has not yet upadated. Some times the DB is getting updated before i read the value but sometime not. Please post solution. Is there anything like i can wait till the DB update. Or just the delay kind of thing, i can give before reading the DB. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Regarding tab Indicator
Hi, I want to change the tab indicator which is a label on the top after a request is sent. Is it possible to change it on runtime? Thanks, Sameer Joshi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding tab widget in Android
Hi All, I am a newbie on Android and developing an application where I need to show the close (x) symbol near the tab title to close the tab. Also I need a smaller size tab next to it showing Add(+) symbol to add more tabs. Is it possible to add this icons on the tab widget? If yes, what additional changes are to be done? This is very much similar to IE and Firefox browsers. I also want to have tab widget under a selected tab, that is nothing but a tab widget embedded inside a tab selected. Please let me know if its possible in Android. If I have maximum 3 tabs accomodated in the screen, can I provide an arrow which will move me to the next 3 tabs available. Please help me out with your ideas and expertise. Thanks, Sameer Joshi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android on Motorola A810...
Hello ALL, Can Android be ported on Motorola A810? Has anyone done this? A little I have come to know that Android was ported on Motorola Ming A1200, the predecessor of Motorola A810. Regards, - sam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---