[android-developers] adding a image just below the progressbar
How can i create a custom view where i can add a imageview just below the progress percentage in the progress bar. That is I need an image just below say 70% or 80% based on where the progress bar is? -- You received this message because you are subscribed to the Google 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] Landscape Portrait and more... advanced question
Hi everyone, I am making an app in which i have to to draw circle with the help of finger(on touch listener) in android , can anyone help me Thanks and Regard sadhana -- You received this message because you are subscribed to the Google 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]
Hi all, After starting a activity,i want to do some task in background.After finishing the task,i want to call another activity.How to do this? Thanks, vijay.k -- You received this message because you are subscribed to the Google 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]
Read about Asynctask... it hads methods called as doInBackground() and onPostExecute() preexecute() publishprogress() do smething in background in da method doInBackground() and from onPosExecute() throw and intent and start activity On Thu, Jun 14, 2012 at 11:56 AM, Vijay Krishnan vijay.vijay...@gmail.comwrote: Hi all, After starting a activity,i want to do some task in background.After finishing the task,i want to call another activity.How to do this? Thanks, vijay.k -- You received this message because you are subscribed to the Google 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 -- live and let LIVE!!! -- You received this message because you are subscribed to the Google 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] Landscape Portrait and more... advanced question
public class Home extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MySurface(this)); } } heres da code fr MySurFace public class MySurface extends ImageView { float x, y; Path path = new Path(); public MySurface(Context context) { super(context); this.setLayoutParams( new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); this.setOnTouchListener( new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { x = event.getX(); y = event.getY(); invalidate(); return false; } }); } @Override public boolean onTouchEvent(MotionEvent event) { x = event.getX(); y = event.getY(); invalidate(); return super.onTouchEvent(event); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); Paint paint = new Paint(); paint.setColor(Color.RED); //canvas.drawLine(x, y, x+20, y+20, paint); path.moveTo(x, y); //path.lineTo(x, y); canvas.drawPath(path, paint); } } just edit some methods fr drawing... check out canvas methods for drwaing stuff.. all da best On Thu, Jun 14, 2012 at 11:51 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: Hi everyone, I am making an app in which i have to to draw circle with the help of finger(on touch listener) in android , can anyone help me Thanks and Regard sadhana -- You received this message because you are subscribed to the Google 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 -- live and let LIVE!!! -- You received this message because you are subscribed to the Google 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] Landscape Portrait and more... advanced question
to draw the circle on touch with the finger use this code this is with the gesture listener public class GesturesActivity extends Activity implements OnGesturePerformedListener { private GestureLibrary mLibrary; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mLibrary = GestureLibraries.fromRawResource(this, R.raw.spells); if (!mLibrary.load()) { finish(); } GestureOverlayView gestures = (GestureOverlayView) findViewById(R.id.gestures); gestures.addOnGesturePerformedListener(this); } public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { ArrayListPrediction predictions = mLibrary.recognize(gesture); // We want at least one prediction if (predictions.size() 0) { Prediction prediction = predictions.get(0); // We want at least some confidence in the result if (prediction.score 1.0) { // Show the spell Toast.makeText(this, prediction.name, Toast.LENGTH_SHORT).show(); } } } } On Thu, Jun 14, 2012 at 12:12 PM, Amey Bapat amey.n.ba...@gmail.com wrote: public class Home extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MySurface(this)); } } heres da code fr MySurFace public class MySurface extends ImageView { float x, y; Path path = new Path(); public MySurface(Context context) { super(context); this.setLayoutParams( new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); this.setOnTouchListener( new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { x = event.getX(); y = event.getY(); invalidate(); return false; } }); } @Override public boolean onTouchEvent(MotionEvent event) { x = event.getX(); y = event.getY(); invalidate(); return super.onTouchEvent(event); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); Paint paint = new Paint(); paint.setColor(Color.RED); //canvas.drawLine(x, y, x+20, y+20, paint); path.moveTo(x, y); //path.lineTo(x, y); canvas.drawPath(path, paint); } } just edit some methods fr drawing... check out canvas methods for drwaing stuff.. all da best On Thu, Jun 14, 2012 at 11:51 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: Hi everyone, I am making an app in which i have to to draw circle with the help of finger(on touch listener) in android , can anyone help me Thanks and Regard sadhana -- You received this message because you are subscribed to the Google 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 -- live and let LIVE!!! -- You received this message because you are subscribed to the Google 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 -- Thanks Regards K. Ajay Kumar 9700188853 -- You received this message because you are subscribed to the Google 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]
below asynctask is one way, the other way use a doinbackground with thread make wait for 2seconds in the thread after completion of your task make intent startactivity(intent). On Thu, Jun 14, 2012 at 12:11 PM, Amey Bapat amey.n.ba...@gmail.com wrote: Read about Asynctask... it hads methods called as doInBackground() and onPostExecute() preexecute() publishprogress() do smething in background in da method doInBackground() and from onPosExecute() throw and intent and start activity On Thu, Jun 14, 2012 at 11:56 AM, Vijay Krishnan vijay.vijay...@gmail.com wrote: Hi all, After starting a activity,i want to do some task in background.After finishing the task,i want to call another activity.How to do this? Thanks, vijay.k -- You received this message because you are subscribed to the Google 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 -- live and let LIVE!!! -- You received this message because you are subscribed to the Google 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 -- Thanks Regards K. Ajay Kumar 9700188853 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager
Someone please? On Sunday, June 3, 2012 10:50:33 AM UTC+3, Alexandros wrote: Hello everyone, Some time ago, I updated my application to use the support v4 library in order to use the ViewPager control. The initial version of the application used the FragmentPagerAdapter, however, because the application has a lot of pages it seemed wise to use the FragmentStatePagerAdapter, since I was getting OutOfMemory reports. But now, I am getting reports of another error. The error is: java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager. I did some searching on the Internet, but nothing solid came up. The problem seems to be happening when the activity is trying to pause and the onSaveInstanceState method is called. After I did some investigation on the support v4 library my self, I noticed that this exception is thrown in the FragmentManager.putFragment() when the member of the fragment mIndex is less than 0, but I cannot figure out when mIndex becomes less than 0 and why this is not handled correctly. *I would like to point out that I do not have an MOR (method of reproduction) for this error.* Here is the call stack: java.lang.RuntimeException: Unable to pause activity my activity with the ViewPager java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3438) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3395) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3378) at android.app.ActivityThread.access$2700(ActivityThread.java:129) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2124) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:143) at android.app.ActivityThread.main(ActivityThread.java:4717) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: Fragment MyFragment is not currently in the FragmentManager at android.support.v4.app.FragmentManagerImpl.putFragment(FragmentManager.java:516) at android.support.v4.app.FragmentStatePagerAdapter.saveState(FragmentStatePagerAdapter.java:185) at android.support.v4.view.ViewPager.onSaveInstanceState(ViewPager.java:881) at android.view.View.dispatchSaveInstanceState(View.java:6098) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:1323) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:1327) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:1327) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:1327) at android.view.View.saveHierarchyState(View.java:6081) at com.android.internal.policy.impl.PhoneWindow.saveHierarchyState(PhoneWindow.java:1573) at android.app.Activity.onSaveInstanceState(Activity.java:1094) at android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:480) at my activity with the ViewPager.onSaveInstanceState(ContentActivity.java:288) at android.app.Activity.performSaveInstanceState(Activity.java:1044) at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1180) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3420) Thanks in advanced. -- You received this message because you are subscribed to the Google 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] Landscape Portrait and more... advanced question
just go through this link might be it helpful for you!1 http://code.google.com/p/krvarma-android-samples/source/browse/#svn%2Ftrunk%2Fmultitouchsample -- You received this message because you are subscribed to the Google 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] Home, Menu, Back, Wallpaper, Play in different languages
My wallpaper contains instructions (in the app, web and Play) which look something like: 'To install the Wallpaper, from the home screen press Menu then Wallpaper then Live Wallpaper then ...' The problem is that in different languages these reserved words like home screen, Menu, Wallpaper and Live Wallpaper are going to need to be particular words in the translation, or else the translation will make as much sense as: To install the wall covering, from the apartment check press Food list then wall covering then Clearly for the instructions to make sense the correct reserved word in that language must be used. Does anybody know the official terms or where to find them in different languages for: Home screen, Home button, Menu button, Back button, Play (market), Wallpaper, Live Wallpaper, Settings, Application, and any other words that are effectively standardised in different languages for Android. Seems like it should be published somewhere by Google but couldn't find it. Peter Webb -- You received this message because you are subscribed to the Google 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] email attachment
this is the code sending e-mail with attachment import java.io.File; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class sendemail extends Activity { Button send; EditText address, subject, emailtext; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main11); send = (Button) findViewById(R.id.emailsendbutton); address = (EditText) findViewById(R.id.emailaddress); subject = (EditText) findViewById(R.id.emailsubject); emailtext = (EditText) findViewById(R.id.emailtext); final TextView tv = (TextView)findViewById(R.id.fileContent); send.setOnClickListener(new OnClickListener() { // TextView tv = (TextView)findViewById(R.id.fileContent); public void onClick(View v) { // TODO Auto-generated method stub if(!address.getText().toString().trim().equalsIgnoreCase()){ //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); File dir = Environment.getExternalStorageDirectory(); File file = new File(dir,download/phonedata.txt); if (file.exists()) try { Log.i(getClass().getSimpleName(), send task - start); final Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); emailIntent.setType(plain/text); //emailIntent.setType(application/octet-stream); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { address.getText().toString() }); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject.getText()); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// + file)); Toast.makeText(sendemail.this, File successfully attached in your Mail!!!, Toast.LENGTH_LONG).show(); tv.setText(File Successfully attached in your mail!!!); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailtext.getText()); sendemail.this.startActivity(Intent .createChooser(emailIntent, Send mail...)); } catch (Throwable t) { Toast.makeText(sendemail.this, Request failed: + t.toString(), Toast.LENGTH_LONG).show(); } else { tv.setText(Sorry file doesn't exist!!!); Toast.makeText(sendemail.this, File not found in sd-cardPlease upload it from Server!!!, Toast.LENGTH_LONG).show(); //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); } } else { Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show();} } }); } } -- You received this message because you are subscribed to the Google 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] debugging on Kindle Fire, sdcard access
Hi, Can anyone help how to debug application in Kindle device using eclipse , after connecting Kindle device to the Windows PC its not showing in devices list. To resolve this i have tried the following steps : 1. Open the C:\Users\your-login\.android\adb_usb.ini file for editing 2. Add 0x1949 3. Add 0x0006 4. Save the file after that restarted my PC also not only adb. But the problem is same unable to debug.Can anyone please help me on this On Fri, Dec 23, 2011 at 12:11 AM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Dec 22, 2011 at 1:32 PM, alexb alexboot...@gmail.com wrote: Has anyone tried this? Here is the problem: once you connect Kindle Fire to PC via USB, you can access sdcard from PC only. As this is the way to debug on Kindle, my app has no read/write access in this mode thus effectively disabling debugging. Without USB it seems working fine. My several requests to their tech support were not answered in a meaningful way. Step #1: Plug in your Kindle Fire to USB Step #2: Unmount the drive from your PC Step #3: Click the Disconnect button on the Kindle Fire screen Step #4: Start developing IOW, it is no different than any other Android device, except that it throws you into USB sharing mode immediately rather than on demand. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 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 -- You received this message because you are subscribed to the Google 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] Java 1.7
Didn't the lawsuit go well for Google? As far as I know, the judgment was that language syntax and api cannot be patented. Of course, implementing the new library would be quite some effort. But supporting the new java syntax should not be such an effort. As far as I know, on bytecode level only invokedynamic was added and that code is not used by the java compiler (only by dynamic languages like jruby). So, a quick way to enable the new syntax features seems to be to 1) remove the errors warnings 2) add an error/warning if invokeDynamic is used Alternatively, it might be possible to add an additional build step (or eclipse builder) to just patch the version number of the class files to pretend they are java 1.6 class files. Am Mittwoch, 13. Juni 2012 16:36:03 UTC+2 schrieb Daniel Drozdzewski: It probably won't be supported soon for multitude of reasons. Simply set compiler compliance to 1.6 in Eclipse and live without funky Java 7 features. I know, it is not, what you asked for, but features of Java 7 are a bit more than the nice way of representing numerals. Have a look here: http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html ... that's quite a lot to port to Dalvik (even when only looking at HotSpot and language changes). Bear in mind that many new things in Java7 are possible specifically because the platforms that Java7 addresses have different (much more relaxed) constraints compared even to 4 core 1GB RAM mobile device. For example InvokeDynamic allows JVM to run trully dynamic languages, which are high productivity and all that, but cost in terms of processing and memory. Technicalities aside, remember that Google and Oracle only finished one big lawsuit. I don't think big G would like to have another one on their hands just yet. Daniel On 13 June 2012 15:06, bob b...@coolfone.comze.com wrote: I'm trying to use this notation in my code: int x = 5_000_000; So, I need Java 1.7. However, I get this error: [2012-06-13 09:01:43 - wall] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools Fix Project Properties. Any thoughts on this? Will 1.7 probably be supported soon? -- You received this message because you are subscribed to the Google 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 -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google 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] email attachment
thanks ashish, but i need something else, file in /data/data/mypackage/files/ to be sent as an attachment, it is mode_world_readable, but not attaching to the email ! On Thursday, June 14, 2012 2:36:14 PM UTC+5:30, asheesh arya wrote: this is the code sending e-mail with attachment import java.io.File; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class sendemail extends Activity { Button send; EditText address, subject, emailtext; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main11); send = (Button) findViewById(R.id.emailsendbutton); address = (EditText) findViewById(R.id.emailaddress); subject = (EditText) findViewById(R.id.emailsubject); emailtext = (EditText) findViewById(R.id.emailtext); final TextView tv = (TextView)findViewById(R.id.fileContent); send.setOnClickListener(new OnClickListener() { // TextView tv = (TextView)findViewById(R.id.fileContent); public void onClick(View v) { // TODO Auto-generated method stub if(!address.getText().toString().trim().equalsIgnoreCase()){ //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); File dir = Environment.getExternalStorageDirectory(); File file = new File(dir,download/phonedata.txt); if (file.exists()) try { Log.i(getClass().getSimpleName(), send task - start); final Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); emailIntent.setType(plain/text); //emailIntent.setType(application/octet-stream); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { address.getText().toString() }); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject.getText()); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// + file)); Toast.makeText(sendemail.this, File successfully attached in your Mail!!!, Toast.LENGTH_LONG).show(); tv.setText(File Successfully attached in your mail!!!); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, emailtext.getText()); sendemail.this.startActivity(Intent .createChooser(emailIntent, Send mail...)); } catch (Throwable t) { Toast.makeText(sendemail.this, Request failed: + t.toString(), Toast.LENGTH_LONG).show(); } else { tv.setText(Sorry file doesn't exist!!!); Toast.makeText(sendemail.this, File not found in sd-cardPlease upload it from Server!!!, Toast.LENGTH_LONG).show(); //Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show(); } } else { Toast.makeText(getApplicationContext(), Please enter an email address.., Toast.LENGTH_LONG).show();} } }); } } -- You received this message because you are subscribed to the Google 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: Concept: build sophisticated Android apps in minutes, using building blocks
Seens to be a very good idea, let we have a try on this framework for testing for better feedback. Em segunda-feira, 11 de junho de 2012 13h32min10s UTC-3, Linton Ye escreveu: Hi, please see below a prototype I've been working on lately. And let know if this looks like something useful? http://www.jimulabs.com/?utm_source=Android%2Bgroup%2Butm_medium=forum%2Butm_campaign=jimu Thanks, Linton -- You received this message because you are subscribed to the Google 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] Landscape/Portrait and more... an advanced question
By doing this, Activity will not destroy and recreate it. On Wed, Jun 13, 2012 at 2:48 PM, Mark Cz ome...@gmail.com wrote: Hi all, I am writing an SDK that shows a EULA dialog in portrait mode upon starting the user application. My EULA is an activity with the following manifest activity android:name=.EulaActivity android:screenOrientation=**portrait android:theme=*@android:style/Theme.Translucent* android:configChanges=**keyboard|keyboardHidden|**orientation / Suppose that the top activity is in landscape mode, and wants to display my EULA activity. My EULA is indeed in portrait mode, but it changes the mode of the activity below (restarting it, or calling onConfigurationChange, depends on the manifest). On the other hand if my EULA doesn't have *Translucent *style, everything is OK. Is it possible to show a *Translucent * activity is in portrait while the activity below is in landscape ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help, eclipse does'nt show any errors, but app does'nt work on phone.
Explain more about your problem On Wed, Jun 13, 2012 at 1:12 PM, Lars lars.breum...@gmail.com wrote: Okay, I will post the code when I get home. What do you need to see, Java or xml? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google 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 do I save a complete webpage displayed in Android's WebView?
I am developing an Android application in which I have a WebView. I want to save the entire webpage loaded in this webview (Html + all resources + images + icons etc) into a folder and zip it and upload it to a server. If you use WebView's saveWebArchivehttp://developer.android.com/reference/android/webkit/WebView.html#saveWebArchive%28java.lang.String%29, then it is saved in archive format. How do I get the Html and images back from this archive? Is there any documentation for the format of this archive? If I use addJavaScriptInterface to get the html as described herehttp://lexandera.com/2009/01/extracting-html-from-a-webview/, I still have to copy the images and other resources from the webview cache dir (/data/data/your app package/cache/webviewCache/). However I did not find webview cache dir (/data/data/your app package/cache/webviewCache/) in Icecream Sandwich. Is there a way to save the entire webpage displayed in webview along with resources in Android? Can somebody please help. I have to ship this feature ASAP. 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 properly implement dismissing HTML5 video from WebView
Hi, Brian and Mariusz I have the same problem: I have a WebView embedded in my app. The video plays find inline, but when I click fullscreen, it crashes the app. By reading all the posts, I still do not understand how you guys fix the problem. :( ds On Tuesday, May 22, 2012 4:59:04 PM UTC-4, Brian wrote: I am having the following problem. The following problems only apply on Ice Cream Sandwich (probably also happen on honeycomb) but do not happen on gingerbread or froyo. If i implement onShowCustomView() method of a WebChromeClient to show fullscreen video for an embedded video in a WebView. I don't know how to override the back button properly to dismiss the video. If i dont override the back button, then presses the back button closes the whole activity. If i listen for the back button events, on the focused child of the custom view, than I can dismiss the video but, I have no way of detecting if the MediaController is showing, in which case I would prefer not to dismiss the video. -- You received this message because you are subscribed to the Google 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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
On Jun 5, 3:11 pm, Kevin Moroder kevin.vl...@gmail.com wrote: Hi everyone, I would like to know the unlock code for unlocking the bootloader on the Sony Xperia U Thanks El jueves, 14 de abril de 2011 09:11:13 UTC+2, Carl escribió: Hi, It is now possible to unlock the boot loader for certain series of Sony Ericsson 2011 Android™ Gingerbread phones. Go tohttp://unlockbootloader.sonyericsson.comto get instructions and a key to unlock the boot loader. Please note that you may void the warranty of your phone if you unlock the boot loader. See your phone’s warranty statement for details. More information is available on the unlock boot loader web site. For any questions, Sony Ericsson will monitor this thread on Google groups. However, we cannot guarantee an answer for every question asked in this forum. Please remember that you are unlocking the boot loader at your own risk. Br, Carl Johansson Sony Ericsson Developer World hi i check this code *#*#7379423#*#* bootloader unlock allowed:no what should i do?? no way to unlock ??? please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
hi i check this code *#*#7379423#*#* bootloader unlock allowed:no what should i do?? no way to unlock ??? please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] possible binder driver memory leak
Hi, I got a dump from kmemleak as below. Can someone advice how to investigate where the possible leakage is? I believe it is not a leakage of binder driver itself, but don't have any idea where to look into. Thanks. root@android:/ # cat /d/kmemleak unreferenced object 0xd7887980 (size 64): comm Binder Thread #, pid 239, jiffies 4294940178 (age 5561.882s) hex dump (first 32 bytes): d5 05 00 00 84 79 88 d7 84 79 88 d7 01 00 00 00 .y...y.. 00 00 00 00 00 00 00 00 00 b2 88 d7 00 b4 88 d7 backtrace: [c00e58f8] create_object+0xf4/0x1e8 [c00e15e8] kmem_cache_alloc+0x13c/0x14c [c02619ac] binder_transaction+0x300/0xe10 [c0262b14] binder_thread_write+0x658/0xc7c [c0263ee4] binder_ioctl+0x1e0/0x598 [c00f6c88] vfs_ioctl+0x24/0x40 [c00f7844] do_vfs_ioctl+0x1a4/0x1b4 [c00f7888] sys_ioctl+0x34/0x54 [c0048740] ret_fast_syscall+0x0/0x3c [] 0x unreferenced object 0xcfd7d100 (size 64): comm Binder Thread #, pid 514, jiffies 4294944066 (age 5531.539s) hex dump (first 32 bytes): 7f 0f 00 00 04 d1 d7 cf 04 d1 d7 cf 01 00 00 00 00 00 00 00 00 00 00 00 00 64 dd d7 00 66 dd d7 .d...f.. backtrace: [c00e58f8] create_object+0xf4/0x1e8 [c00e15e8] kmem_cache_alloc+0x13c/0x14c [c02619ac] binder_transaction+0x300/0xe10 [c0262b14] binder_thread_write+0x658/0xc7c [c0263ee4] binder_ioctl+0x1e0/0x598 [c00f6c88] vfs_ioctl+0x24/0x40 [c00f7844] do_vfs_ioctl+0x1a4/0x1b4 [c00f7888] sys_ioctl+0x34/0x54 [c0048740] ret_fast_syscall+0x0/0x3c [] 0x -- You received this message because you are subscribed to the Google 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]
Check this link http://www.vogella.com/articles/AndroidPerformance/article.html#asynctask -- You received this message because you are subscribed to the Google 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] Receive speaker / mute state after it was changed.
Hi I'm having problem finding a way of how to check whether the audio has changed to speaker or is it muted. I'm writing an audio player and I need to detect the change of the speaker / mute state. I was looking for some intent action but without any luck. Could you tell me how to detect when speaker / mute state are changed ? -- You received this message because you are subscribed to the Google 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] Update Canvas
Hi all, I want to draw canvas in view. I want to update my canvas regularly, but i dont want to delete the old one. I used invalidate(), it called onDraw() method and creating new canvas. Any idea about update canvas kumar -- You received this message because you are subscribed to the Google 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] Implementing TwoLineListItem
Hi all, Does anyone have any sample code of how to implement a TwoLineListItem. So far I have been able to create a custom LinearLayout with two TextViews and have gotten this working but I believe I should be using a TwoLineListItem to acheive this. My issue is that I can't seem to implement the TwoLineListItem. In my main layout I add a ListView and then I also create another layout xml file named list_item that contains a linearlayout with a twolinelistitem. In my java class I add items to a list of a HashMapString, String. I create a SimpleAdapter as follows: SimpleAdapter myAdapter = SimpleAdapter(this, list, R.layout.list_item_new, new String[] { line1, line2 }, new int[] { R.id.text1, R.id.text2 }); Then: myAdapter.notifyDataSetChanged(); setListAdapter(myAdapter); I would of thought that this would populate my list but no. Can anyone help me with this? Thanks, Bernie. -- You received this message because you are subscribed to the Google 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] Unable to chmod on Android ICS 4.0.4 by adb shell command.
Currently, I can not chmod on ISC 4.0.4 by adb shell command Error message Unable to chmod /sdcard/app-native: Operation not permitted So that I can run native application on. Can anyone help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Question: Is it possible to get the RAW camera data?
Hi Appaholic, Did you make any progress with getting the RAW version of photos from Android cameras? I know there was a lot of talk about megapixels, but isn't a more pertinent reason to use RAW format is for the greater dynamic range? JPGs, as we all know are only 8-bit, whereas DSLRs tend to be like 12- or 14-bit. One can assume that mobile phone cameras are more than 8-bit, and thus useful data is thrown away during the conversion to JPG. Also, correcting white balance properly can only be done from the RAW. Not sure about this, but the DNG format actually stores the raw image in TIFF format. So maybe using a 16-bit TIFF wouldn't be a bad thing? You're on the right track - if cameras in phones and tablets were able to use the raw image for postprocessing, it would open up a whole new genre of photography. Good luck On Sunday, September 4, 2011 4:47:42 PM UTC+1, Appaholics wrote: Hi, I have been going through Google searches and the Android docs but I am still not clear on this. I would like to know if it is possible to get the raw image data from the camera using the Android SDK. Some of the examples I looked through said that it was possible but the image returned was always a jpg or png. So can I get the raw image from the camera? Thanks -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using searchview in ActionBar can't save state between rotation because onCreateOptionsMenu called twice
Has anyone seen this behavior in ICS? What's happening is if a fragment is participating in the options menu for an activity both the activity's and fragments onCreateOptionsMenu is being called twice when the phone is rotated but only once when the activity is initially started. (See my linked stackoverflow.com question below for complete code and output) The bigger problem is that if a fragment adds a SearchView to the options menu, the SearchView can't remember it's state when the phone is rotated. It's no longer has any text in the textview after the rotation. If the activity uses a searchview, the state is saved correctly when rotated. I've seen this on the emulator running ICS 4.0 (API 14) and 4.0.3 (API 15) and also Verizon Galaxy Nexus running 4.0.4 build IMM76K. I can't figure out what's causing the onCreateOptionsMenu to be called twice. It doesn't make sense that this would be the normal way to create the options menu when rotating the phone. Maybe I'm doing something wrong to cause this? or I need to handle the onCreateOptionsMenu differently when the phone state is changed. Here's my question on stack overflow. This is complete with example code and log output of what I'm seeing. http://stackoverflow.com/questions/11003941/android-oncreateoptionsmenu-called-twice-when-restoring-state#comment14380762_11003941 Thanks ahead of time 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-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] SurfaceView array
Is it possible to create an array of surfaceViews in a FrameLayout and render them according to their Z order? -- You received this message because you are subscribed to the Google 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: Live Streaming to Android 2.1
Hi Deepak, Did you get any success using Red5 and RTMP for android. Please share knowledge for streaming using RTMP and Red5 on android or any library which can be used to stream auido/video data. Thanks, Deepchand singh On Tuesday, August 2, 2011 3:14:34 PM UTC+5:30, deepak wrote: I am creating an application which does live streaming to android devices using red5. I came to know that flash is supported only from 2.2 onwards.I need to stream it to 2.1 also. So anyone knows how i can do live streaming to devices having android 2.1 ? This is really important for me. Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to stream video
Hi Indicator, Is there any library can be used for streaming in android ver 2.2. Please share knowledge for streaming using RTMP and Red5 on android. Thanks, Deepchand singh On Sunday, October 3, 2010 3:02:24 PM UTC+5:30, Indicator Veritatis wrote: Unfortunately, the Quicktime tutorial link on that thread is no longer a live link. Nor does the obvious search at the Apple site turn one up. On Oct 2, 12:07 am, Doug beafd...@gmail.com wrote: http://groups.google.com/group/android-developers/browse_thread/threa... -- You received this message because you are subscribed to the Google 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] App not working on phone
Guys I made an application , the app is working correctly on my emulator all the xml files have been to screen size 3.7 inch.Now when I tried running the app on an actual device, with smaller screen size, the full layout was not getting displayed,Can anyone tell me as how can I make my app run on devices with varying screen sizes? -- You received this message because you are subscribed to the Google 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] Issue in setting bgcolor for gridview items in android
This may be simple but i couldn't find solution for this. The problem is setting the background color for gridview items inside the onitemlongclicklistener method. I have two linear layouts, one contains the textview and gridview and another contains some buttons(I set this layout like the menubar on top of the screen). I hide the second one from the screen using setVisibility(View.GONE) and when ever I do itemlongclick on the gridview item the second one will appear using setVisibility(View.VISIBLE) at the same time I want to change the bgcolor of the clicked/selected item. Everything is working fine but whenever the second layout is visible and also whenever scrolling the gridview, the clicked/selected bgcolor is disappear. I tried so many ways but I couldn't solve this problem. Please have look on my coding and tell me what I did wrong. gv.setOnItemLongClickListener(new OnItemLongClickListener() { public boolean onItemLongClick(AdapterView? parent, View strings, int position, long id) { final Option o = dir.get(position); //gv.performItemClick(gv, position,gv.getItemIdAtPosition(position)); /* if(pos!=-1) { gv.getChildAt(pos).setBackgroundColor(0x); }*/ strings.setSelected(true); // TextView tx=(TextView)strings.findViewById(R.id.grid_item_label); // tx.findViewById(id).setBackgroundColor(0xffff); /*if(!o.getData().equalsIgnoreCase(o)){ //gv.getChildAt(position).setSelected(true); fill(new File(new File(o.getPath()).getParent()),position); }*/ /*try { gv.getSelectedView().setBackgroundColor(0xffcc); } catch(Exception e){ Toast.makeText(FffsdActivity.this, ok \n+e,Toast.LENGTH_SHORT).show(); }*/ /*for(int i=0;inofifo;i++) { try{ if(gv.getChildAt(i).isSelected()) { gv.getChildAt(i).setBackgroundColor(0xffbb); // Toast.makeText(FffsdActivity.this, yes ok \n+i,Toast.LENGTH_SHORT).show(); } else{ gv.getChildAt(i).setBackgroundColor(0x); //Toast.makeText(FffsdActivity.this, no ok \n+i,Toast.LENGTH_SHORT).show(); } } catch(Exception e) { Toast.makeText(FffsdActivity.this, i wanna e :+e +\n+i,Toast.LENGTH_SHORT).show(); } try{ gv.getChildAt(i).setSelected(false); //Toast.makeText(FffsdActivity.this, gv ok \n+i,Toast.LENGTH_SHORT).show(); }catch(Exception e){ Toast.makeText(FffsdActivity.this, i wanna setselected e :+e+\n+i,Toast.LENGTH_SHORT).show(); } }*/ // Toast.makeText(FffsdActivity.this, i wanna c :+gv.getChildAt(position).isSelected(),Toast.LENGTH_LONG).show(); // gv.getSelectedView().setBackgroundColor(0xffcc); pos=position; if(o.getData().equalsIgnoreCase(parent directory)) { fill(new File(o.getPath()),-1); } else if(o.getData().equalsIgnoreCase(folder)) { llfftools.setVisibility(View.VISIBLE); TranslateAnimation slide = new TranslateAnimation(0, 0,-llfftools.getHeight(),0 ); slide.setDuration(100); slide.setFillAfter(true); llfftools.startAnimation(slide); //fill(new File(new File(o.getPath()).getParent())); onFolderClick(o); // gv.getChildAt(position).setBackgroundColor(0xffaa); } and my baseadapter is : public class ImageAdapter extends BaseAdapter { private Context context; private final ListOption mobileValues; public ImageAdapter(Context context,ListOption fofivalues) { this.context = context; this.mobileValues = fofivalues; } public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View gridView; //if (convertView == null) { gridView = new View(context); // get layout from mobile.xml gridView = inflater.inflate(R.layout.mobile, null); /*} else { gridView = (View) convertView; }*/ // set value into textview TextView textView = (TextView) gridView.findViewById(R.id.grid_item_label); //to set the max no.of chararcters in textview String iname=(mobileValues.get(position).getName().length()10)? mobileValues.get(position).getName().substring(0,
Re: [android-developers] mapviewError
This is the map key problem . Please create Google map key stone for u r debugging mode . On Wednesday, June 13, 2012, deepak mamdapure developer.it.a...@gmail.com wrote: plz Suggest me any one i wrote all code for mapview but it does not appeair on emulator it shows only blocks on emulator my code is below pls check is there any correction plz tell me .there is no any error in this code plz suggest me. thank you public class mapDemo extends MapActivity { MyLocationOverlay mlo; MapController mpc; MapView mv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mv=(MapView)findViewById(R.id.mapview); final LocationManager lm=(LocationManager)getSystemService(Context.LOCATION_SERVICE); final LocationListener ll=new MyLocationListener(); mpc=mv.getController(); mpc.setZoom(18); mlo=new MyLocationOverlay(this,mv); mv.getOverlays().add(mlo); mv.postInvalidate(); final Location location=lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); updateWithNewLocation(location); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,ll); mlo.enableMyLocation(); } private void updateWithNewLocation(Location location) { // TODO Auto-generated method stub if (location !=null) { final double lat=location.getLatitude(); final double lng=location.getLongitude(); final GeoPoint mylcation=new GeoPoint((int)(lat*100),(int) (lng*100)); mv.getController().animateTo(mylcation); mv.getController().setCenter(mylcation); } } public class MyLocationListener implements LocationListener{ public void onLocationChanged(final Location location) { // TODO Auto-generated method stub updateWithNewLocation(location); } public void onProviderDisabled(final String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),Gps Disabled,Toast.LENGTH_LONG).show(); } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),Gps enabled,Toast.LENGTH_LONG).show(); } public void onStatusChanged(final String provider,final int status,final Bundle extras) { // TODO Auto-generated method stub } } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } This is my main.xml ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=0n-H5VH- CoBfLf6SnbeZ6uSICn5gF9rA_5eyXrw / LinearLayout android:id=@+id/zlayout android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentBottom=true android:layout_centerHorizontal=true /LinearLayout /RelativeLayout This is my manifest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.ashwath.mapDemo android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.INTERNET/uses- permission application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps/ activity android:name=.mapDemo android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest -- You received this message because you are subscribed to the Google 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
[android-developers] Re: ADT 17 build changes have broken IvyDE
Hi, I think I'm experiencing the same issue, although I can't confirm it worked with previous ADT versions, since I'm starting a brand new project (and hadn't used Ivy before). Has anyone found a solution yet? -- You received this message because you are subscribed to the Google 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 use onFocusChangeListner in the DatePicker
I am using a simple DatePicker and I set focuse change listner for DatePicker, but after I leave the DatePicker nothing happens. I read in somewhere that Because the DatePicker itself does not get focus, its children do. Someone can send an example of How I can do that? My code: DatePicker VdpDate = (DatePicker) findViewById(R.id.dpDate); VdpDate.setOnFocusChangeListener(new View.OnFocusChangeListener() { public void onFocusChange(View v, boolean hasFocus) { } }); -- You received this message because you are subscribed to the Google 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] mapviewError
On Wed, Jun 13, 2012 at 4:57 PM, deepak mamdapure developer.it.a...@gmail.com wrote: plz Suggest me any one i wrote all code for mapview but it does not appeair on emulator it shows only blocks on emulator my code is below pls check is there any correction plz tell me .there is no any error in this code plz suggest me. thank you You have to change the map API key mentioned in your map xml file for example. android:apiKey=0BxIjFo7iivRde9YV-YALz4NWoC5-IgZiUqyg7w / this is the key of my system. this key is unique so You have to Genarate map api for your system and paste it into android:mapapikey in xml file Refer this sites: http://androidcodeplus.blogspot.in/search/label/MAP%20integration http://mfarhan133.wordpress.com/2010/10/01/generate-google-maps-api-key-for-android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Landscape Portrait and more... advanced question
Use this import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class Draw extends Activity { DrawView drawView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set full screen view getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); drawView = new DrawView(this); setContentView(drawView); drawView.requestFocus(); } } package guru.com.aaa; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; public class DrawView extends View implements OnTouchListener { private static final String TAG = DrawView; ListPoint points = new ArrayListPoint(); Paint paint = new Paint(); public DrawView(Context context) { super(context); setFocusable(true); setFocusableInTouchMode(true); this.setOnTouchListener(this); paint.setColor(Color.WHITE); paint.setAntiAlias(true); } @Override public void onDraw(Canvas canvas) { for (Point point : points) { canvas.drawCircle(point.x, point.y, 25, paint); // Log.d(TAG, Painting: +point); } } public boolean onTouch(View view, MotionEvent event) { // if(event.getAction() != MotionEvent.ACTION_DOWN) // return super.onTouchEvent(event); Point point = new Point(); point.x = event.getX(); point.y = event.getY(); points.add(point); invalidate(); Log.d(TAG, point: + point); return true; } } class Point { float x, y; @Override public String toString() { return x + , + y; } } On Thu, Jun 14, 2012 at 12:27 PM, ajaykumar kanchak ajaykumar.kanc...@gmail.com wrote: to draw the circle on touch with the finger use this code this is with the gesture listener public class GesturesActivity extends Activity implements OnGesturePerformedListener { private GestureLibrary mLibrary; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mLibrary = GestureLibraries.fromRawResource(this, R.raw.spells); if (!mLibrary.load()) { finish(); } GestureOverlayView gestures = (GestureOverlayView) findViewById(R.id.gestures); gestures.addOnGesturePerformedListener(this); } public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { ArrayListPrediction predictions = mLibrary.recognize(gesture); // We want at least one prediction if (predictions.size() 0) { Prediction prediction = predictions.get(0); // We want at least some confidence in the result if (prediction.score 1.0) { // Show the spell Toast.makeText(this, prediction.name, Toast.LENGTH_SHORT).show(); } } } } On Thu, Jun 14, 2012 at 12:12 PM, Amey Bapat amey.n.ba...@gmail.comwrote: public class Home extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MySurface(this)); } } heres da code fr MySurFace public class MySurface extends ImageView { float x, y; Path path = new Path(); public MySurface(Context context) { super(context); this.setLayoutParams( new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); this.setOnTouchListener( new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { x = event.getX(); y = event.getY(); invalidate(); return false; } }); } @Override public boolean onTouchEvent(MotionEvent event) { x = event.getX(); y = event.getY(); invalidate(); return super.onTouchEvent(event); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); Paint paint = new Paint(); paint.setColor(Color.RED); //canvas.drawLine(x, y, x+20, y+20, paint); path.moveTo(x, y); //path.lineTo(x, y); canvas.drawPath(path, paint); } } just edit some methods fr drawing... check out canvas methods for drwaing stuff.. all da best On Thu, Jun 14, 2012 at 11:51 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: Hi everyone, I am making an app in which i have to to draw circle with the help of finger(on touch listener) in android , can
Re: [android-developers]
Refer this link i think that its useful for you http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html -- You received this message because you are subscribed to the Google 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] Play Store hijacking focus after in-app purchase dialog
Can someone answer the below question? I have been testing this app, and when the app is launched, and the BUY button is pressed for an in-app purchase, It launches google play as a separate process. While testing a similar app COMIXOLOGY when making an in-app purchase, it *does not*launch google play as a process. In comixology it just shows the google play purchase page and goes away / returns to the app once you make the purchase. On Wednesday, June 13, 2012 10:30:31 AM UTC-4, kadmos wrote: Can some one at least verify for me that Google Play being launched as a separate process is NOT the correct behavior of an in-app billing activity? -- You received this message because you are subscribed to the Google 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 GingerBread_2_3_4 OS customization
Hello I'm developing ANDROID embedded device based on android gingerbread. Main task of this device is get data from USB and compare the data with already stored data in device and grant permission to the user for proceed further with the device (Ie, authentication purpose). I want to in-build my app with OS like android in-build app (Ex: Gtalk , YouTube, media player) and also i want to delete some unused app by this device (Ex: camera,sound recorder etc..). I need to write driver for USB because it's vendor specific. Mainly i need help about how to customize the OS, which IDE is better to do this. I need some document to develop the ANDROID PLATFORM DEVELOPMENT. Anyone can help me, i hope I'll get positive reply. it's my first post in this group. thanks in Advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] prevent your app from showing in defautl app selection
My app plots locations on a google map. When user selects the location a popup comes up to get directions to the place. Selecting directions opens google navigation and gps is selected to give directions from where they are. However, if user is using another app and it wants to grab the gps, a selection box comes up with google navigation and my app. How do I prevent my app from coming up as a selection? Similar to having multiple browsers and when clicking on a URL, a list of the browsers come up to choose. So if you select select a URL from say another application like facebook, you get a list of browsers for the url. My app is in the list to be chosen also. How do I remove an app from that list? -- You received this message because you are subscribed to the Google 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] Not able to acces native apps.
Hi, I am new to mobile application. I successfully installed android emulator (2.2) and facebook.apk file. However, while logging to the application, error occurring as Login Failed. An error occurred during sign in .Please try again later I am able to browse internet through emulator, but not able to access the application. Kindly let me know are there any changes I need to do in emulator. . -- You received this message because you are subscribed to the Google 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] understanding unique visitors on mobiles
hi, I have a problem understanding the unique visitors number of my mobile application. (i know what those two kpi's are about but i just don't get it for the mobile apps) On my webpage i have a difference from visitors to unique visitors arround 10% which makes totally sense to me. However on the mobile versions I have on the mobile versions something about 75% to be more exact: On the android: visitors: 18k; unique visitors: 2,5k. iPhone: visitors: 9k; unique visitors: 2,7k I guess thats because ppl just are idle and don't close the app. But is there also this 30mins delay? Or is this somehow treated differently? Isn't than the visitors count the more precise one to describe how users are using my apps? Thanks for explaining that. Best Patrick -- You received this message because you are subscribed to the Google 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] Emulate long pression of keys
Hello! I was wondering if it is possible to emulate the long pression of a device button via the Instrumentation during the execution of an Android Junit test (i.e. long pressing HOME to open the Recent Tasks or long pressing VOL DOWN in eBook readers to go down a page) I tried to play with the source code of sendKeyDownUpSync() from android.app.Instrumentation, writing my own version to add a pause between the down event and the up event and/or a FLAG_LONG_PRESS to the up KeyEvent, to no avail. Thanks in advance DeK -- You received this message because you are subscribed to the Google 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: how to connect ms sql server management studio in android code
You have to user web service for this. On Wed, Jun 13, 2012 at 5:34 PM, lbendlin l...@bendlin.us wrote: This request makes no sense. SQL Server Management Studio is just that, a management suite. You probably meant that you need to connect to a SQL Server database. On Wednesday, June 13, 2012 1:12:07 AM UTC-4, yogeshkumar tiwari wrote: Hi freinds, i am developing an android apps in that i have to save my data in to the microsoft sql server management studio and retrieve the data from the same so please any one have any idea of how to save data on the microsoft sql server managment studio and retrieve the data from same.If any one have code or refrence please share with me freinds. -- With Regards: Yogesh Tiwari (Android Developer) -- You received this message because you are subscribed to the Google 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] Add contact to a group contacts
Hi Everybody. I need to insert a contact in a contact group. I use the content provider contactsContract of android. The group is added, but the contact is not added in this group. Can you help me? Here is my code. Thanks ops = new ArrayListContentProviderOperation(); ops.add(ContentProviderOperation .newInsert(ContactsContract.RawContacts.CONTENT_URI) .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, accountType) .withValue(ContactsContract.RawContacts.ACCOUNT_NAME, accountName) .build()); ContentResolver resolver = getContentResolver(); ops.add(ContentProviderOperation .newAssertQuery(ContactsContract.Groups.CONTENT_URI) .withSelection(ContactsContract.Groups.TITLE + =?, new String[]{grupo}) .withExpectedCount(0) .build() ); ops.add(ContentProviderOperation .newInsert(ContactsContract.Groups.CONTENT_URI) .withValue(ContactsContract.Groups.TITLE, grupo) .withValue(ContactsContract.Groups.GROUP_VISIBLE, true) .withValue(ContactsContract.Groups.ACCOUNT_NAME, accountName) .withValue(ContactsContract.Groups.ACCOUNT_TYPE, accountType) .build()); try { resolver.applyBatch(ContactsContract.AUTHORITY, ops); } catch (RemoteException ex){ Log.e(AbstractEditActivity.class.getName(), ex.getMessage(), ex); } catch (OperationApplicationException ex) { Log.w(AbstractEditActivity.class.getName(), ex.getMessage()); } ops.clear(); ops = new ArrayListContentProviderOperation(); ops.add(ContentProviderOperation .newAssertQuery(ContactsContract.Groups.CONTENT_URI) .withValue(ContactsContract.CommonDataKinds.GroupMembership.GROUP_ROW_ID, 0) .withSelection(ContactsContract.Groups.TITLE + =?, new String[]{grupo}) .withExpectedCount(1) .build()); ops.add(ContentProviderOperation .newInsert(ContactsContract.Data.CONTENT_URI) .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0) .withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) .withValue(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, nome) .build()); ops.add(ContentProviderOperation .newInsert(ContactsContract.Data.CONTENT_URI) .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0) .withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE) .withValue(Data.MIMETYPE, ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE) .withValue(ContactsContract.CommonDataKinds.Email.DATA, mail) .build()); ops.add(ContentProviderOperation .newInsert(ContactsContract.Data.CONTENT_URI) .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0) .withValue(ContactsContract.CommonDataKinds.GroupMembership.GROUP_ROW_ID, 0) .withValue(ContactsContract.CommonDataKinds.GroupMembership.MIMETYPE, ContactsContract.CommonDataKinds.GroupMembership.CONTENT_ITEM_TYPE) .build()); try{ resolver.applyBatch(ContactsContract.AUTHORITY, ops); }catch(Exception e){ e.printStackTrace(); } -- You received this message because you are subscribed to the Google 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] mapviewError
Hello deepak, Use this command-: keytool -list -v -keystore C:\Documents and Settings\User\.android\debug.keystore -storepass android -keypass android If you r using window os. This will return MD5 code MD5: 19:13:5F:EB:B4:44:84:B3:7C:C9:64:66:25:A2:12:53 like this Put it into line that i have given already. On Thu, Jun 14, 2012 at 10:22 AM, asheesh arya asheesharya...@gmail.comwrote: just checked out your map apki key !! try to generate new map api key!!! -- You received this message because you are subscribed to the Google 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: Unable to browse /sdcard, permissions d---------
Hi increase sd card size , it works for me On Monday, March 1, 2010 4:35:10 AM UTC+8, Dan S wrote: Hi - on both the emulator and my actual phone (tattoo) I seem unable to browse the SD card - when I run ddms and use the File Explorer, I can browse /data or /system fine, but /sdcard refuses to open, and its permissions appear to be d- (which of course might be the problem). Similarly when I use ddms's Put file on device it fails: 29:43 E/ddms: transfer error: Permission denied Failed to push about.html on SH9CELG00306: Permission denied The above is for my actual phone but I get a similar error on the emulator (which does have an /sdcard). If this is a faq then I apologise - it seems quite basic but I've been searching and not found an explanation/solution. Grateful for any suggestions. Best Dan -- You received this message because you are subscribed to the Google 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] mapviewError
Hello deepak please generate ypur own android:apiKey=0n-H5VH- CoBfLf6SnbeZ6uSICn5gF9rA_5eyXrw. follow this link-: https://developers.google.com/android/maps-api-signup besk of luck On Wed, Jun 13, 2012 at 4:59 PM, deepak mamdapure developer.it.a...@gmail.com wrote: plz Suggest me any one i wrote all code for mapview but it does not appeair on emulator it shows only blocks on emulator my code is below pls check is there any correction plz tell me .there is no any error in this code plz suggest me. thank you public class mapDemo extends MapActivity { MyLocationOverlay mlo; MapController mpc; MapView mv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mv=(MapView)findViewById(R.id.mapview); final LocationManager lm=(LocationManager)getSystemService(Context.LOCATION_SERVICE); final LocationListener ll=new MyLocationListener(); mpc=mv.getController(); mpc.setZoom(18); mlo=new MyLocationOverlay(this,mv); mv.getOverlays().add(mlo); mv.postInvalidate(); final Location location=lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); updateWithNewLocation(location); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,ll); mlo.enableMyLocation(); } private void updateWithNewLocation(Location location) { // TODO Auto-generated method stub if (location !=null) { final double lat=location.getLatitude(); final double lng=location.getLongitude(); final GeoPoint mylcation=new GeoPoint((int)(lat*100),(int) (lng*100)); mv.getController().animateTo(mylcation); mv.getController().setCenter(mylcation); } } public class MyLocationListener implements LocationListener{ public void onLocationChanged(final Location location) { // TODO Auto-generated method stub updateWithNewLocation(location); } public void onProviderDisabled(final String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),Gps Disabled,Toast.LENGTH_LONG).show(); } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(),Gps enabled,Toast.LENGTH_LONG).show(); } public void onStatusChanged(final String provider,final int status,final Bundle extras) { // TODO Auto-generated method stub } } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } This is my main.xml ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=0n-H5VH- CoBfLf6SnbeZ6uSICn5gF9rA_5eyXrw / LinearLayout android:id=@+id/zlayout android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentBottom=true android:layout_centerHorizontal=true /LinearLayout /RelativeLayout This is my manifest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.ashwath.mapDemo android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.INTERNET/uses- permission application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps/ activity android:name=.mapDemo android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest -- You received this message because you are subscribed to the Google 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
Re: [android-developers] App Security
Ya i can but loge process. On Wed, Jun 13, 2012 at 5:42 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Jun 13, 2012 at 8:04 AM, sujit dubey sujit...@gmail.com wrote: Is there a way to prevent reverse engineering on .apk file generated for app? Not really. Obfuscation with ProGuard helps a little. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google 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] Show all feeds from Facebook in application
How can i create an android application which show all the feeds from my facebook account in dynamic list view ,i already completed the Facebook SDK reference part? -- You received this message because you are subscribed to the Google 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]
Hi all, I am using tesseract-3.00 for my android OCR application.But the accuracy of the text is 90%.I have tried using tesseract-3.01 and i was unable to compile the source.Is any one used tesseract-3.00 .Give ur suggestion. Thanks, vijay.k -- You received this message because you are subscribed to the Google 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 setLooping audio gap bug
I'm looking for a work around as well, were you able to find anything? Google is taking their sweet time to work on this it seems. Almost 1 year and nothing. On Wednesday, December 21, 2011 9:45:55 PM UTC-5, csyperski wrote: I am having many users report that the there are gaps in the MediaPlayer's setLooping function where the loop isn't seamless. There is an example and details to the issues here: http://code.google.com/p/android/issues/detail?id=18756 Does anyone know of a work around that doesn't require writing code to decode OGG Vorbis into a PCM stream? 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] startActivityforResult does not return any result on Samsung Galaxy
The following Code works for HTC but not on Samsung Galaxy: final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getTempFile(this)) ); startActivityForResult(intent, TAKE_PHOTO_CODE); private File getTempFile(Context context){ File path = new File( Environment.getExternalStorageDirectory(), context.getPackageName() ); if(!path.exists()){ path.mkdir(); } return new File(path, image.tmp); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { switch(requestCode){ case TAKE_PHOTO_CODE: final File file = getTempFile(this); captureBmp = Media.getBitmap(getContentResolver(), Uri.fromFile(file) ); int width = captureBmp.getWidth(); int height = captureBmp.getHeight(); int newWidth = width - ((width*40)/100); int newHeight = height - ((height*40)/100); float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; Matrix matrix = new Matrix(); matrix.postScale(scaleWidth, scaleHeight); resizedBitmap = Bitmap.createBitmap(captureBmp, 0, 0, width, height, matrix, true); bmd = new BitmapDrawable(resizedBitmap); ImageView iv = (ImageView) findViewById (R.id.iv_foto_beleg); iv.setImageDrawable(bmd); SharedPreferences sharedPreferences = getPreferences(MODE_PRIVA long id = sharedPreferences.getLong(id, 0); break; } } After press saving the camera activity does not turn back to the activity, which launched the it. The picture is not on sdcard. Is there anybody can help? Thanks in advance. Greetings -- You received this message because you are subscribed to the Google 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] having problem updating listview.
i want to update my listview with the help of dialog box in which i'm having single choice list so if i click on an item of dialog box it should update the list according to the query written on item click of that choice... -- You received this message because you are subscribed to the Google 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] Handling JSON(Google/Finance) with escape character within Android.
I am having a problem with data that is a JSON file. I am using the following link, from google. http://www.google.com/finance/company_news?q=AAPLoutput=json; My problem occurs when i want to parse the data and putting it on screen. The data is not being decoded properly from some reason. The raw data(to my understanding its ASCII characters which may make up HTML entities): 1.) one which must have set many of the company\x26#39;s board on the edge of their 2.) Making Less Money From Next \x3cb\x3e...\x3c/b\x3e When i bring in the data i do the following: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); is = httpEntity.getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader( is, iso-8859-1), 8); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line + n); } is.close(); json = sb.toString(); The Output i receive, using org.json to extract the data from the json file, is the following(notice the lack of backslash): 1.)one which must have set many of the companyx26#39;s board on the edge of their 2.)Making Less Money From Next x3cbx3e...x3c/bx3e my current method for handling the first problem by this: JSONRowData.setJTitle((Html.fromHtml((article.getString(TAG_TITLE).replaceAll(x26, .toString()); the second one escapes me though(no pun intended) I understand the reason that this doesn't work is being the backlash is used for escape characters. In order for this to work, the backslash needs to be escaped which would allow . Ive tried many different methods of reading the data in but ive had no luck. Is there a way i can import the data to handle this problem without using regular expressions? -- You received this message because you are subscribed to the Google 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] build non-stub version of android.jar
The android.jar found in android-sdk is simply a stub. All methods will throw a runtime exception stub! Do anyone know how to get a non-stub version of android.jar? Or how to build one from the android source code (not android OS source code, I mean Android library code)? Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why can't I build VUE (a java based tool)
Error log: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513) at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) Caused by: Buildfile: C:\Java\eclipse\build.xml does not exist at org.eclipse.ant.internal.core.ant.InternalAntRunner.parseBuildFile(InternalAntRunner.java:337) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:636) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537) ... 19 more Root exception: Buildfile: C:\Java\eclipse\build.xml does not exist at org.eclipse.ant.internal.core.ant.InternalAntRunner.parseBuildFile(InternalAntRunner.java:337) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:636) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513) at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can't find eclipse-android run configuration file
Hi all, I have source repository that I used with my old workstation. Today, I have loaded the source onto a new workstation and Eclipse won't run my projects. Error java.lang.IllegalArgumentException: Path for project must have only one segment. 1. On the old workstation, under Run, there are 4x distinct projects. These projects were created using Eclipse. 2. On the new workstation, under Run, there is one new configuration project. The source code for the 4x projects was imported, but not the Eclipse Run Configuration. *Problem:* Google shows me that Eclipse Configuration File (*.launch) is missing, and a Help - Eclipse Platform web page. http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_run_com.htm *Confusion:* My projects are Android applications. When I select *Run Run* (*Step #2 in the page linked above*), the expected configuration dialog does not popup. Eclipse instead launches the Android plugin with no opportunity to progress to Step #3 (*in the page linked above*). *Question:* How do I export the .launch configuration so that it can be shared with the new workstation via the source repository? 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: Proguard and library projects.
I've tested this and currently you do not need to enable proguard for the Android Library project. In fact, I think the proguard files and the project.properties files for the library project are unused. What matters is the files in your Application Project. Whatever conditions you set in those files will be applied to your referenced Project Libraries as well. Keep in mind that with the new SDK Tools change the way the Proguard config files are used. They split it into two files and also changed the names. There is one file called proguard-android.txt in the SDK\tools\proguarddirectory and one called proguard-project.txt in your project directory. Which files get used is determined in your Application projects project.properties file. There is a line you need to uncomment to enable Proguard (it is off by default): proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt As you can see by default it will combine the flags and settings in those two files to create your proguard configuration. This only applies to new projects created with the newer SDK/ADT tools. On Wednesday, May 2, 2012 12:58:29 PM UTC-7, MB wrote: Hi, I've an application_project that depends on a library_project. Do we need to enable proguard for the library_project as well? I noticed the following: All entries in library_project/bin/proguard/mapping.txt are also present in application_project/bin/proguard/mapping.txt. Does this mean there is no need to run proguard on libary projects? Enabling it on the application project is equivalent to enabling it on application project as well as library projects. Thanks, --MB. -- You received this message because you are subscribed to the Google 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 enable Bluetooth programmatically
Hi everyone, I want open bluetooth from my application but i didn't open. Can you show how to work 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]
Rahul, I had done these things.Problem is that i couldn't view that image. Thanks, vijay.k On Wed, Jun 13, 2012 at 7:22 PM, Rahul Radhakrishnanunnithan K rahu...@whiteovaltechnologies.com wrote: Refer this link i think that its useful for you http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html -- You received this message because you are subscribed to the Google 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] Add contact to a group contacts
just go through this link might you got some idea!! http://www.pocketmagic.net/?p=1844 -- You received this message because you are subscribed to the Google 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] adb shell command from java code
Hi, Can i execute adb command 'netcfg' from java code. And my phone is not rooted.? Thanks Sud -- You received this message because you are subscribed to the Google 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] Activity has leaked window - no solution at stack
All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my Activity. *Here is the code - * public class MobSmartPhonehas extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty(splashscreen, R.drawable.splash); // Display // splash // screen // for // android this.setIntegerProperty(loadUrlTimeoutValue, 1000); super.loadUrl(file:///android_asset/www/index.html, 1000);// 1000 is // the time // for // splash // screen // display } // fix for 3897 @Override public void onDestroy() { super.onDestroy(); } } * here is error i'm getting - * 06-14 15:09:18.154: D/dalvikvm(497): GC_FOR_MALLOC freed 652 objects / 84512 bytes in 121ms 06-14 15:09:18.404: I/Database(497): sqlite returned: error code = 14, msg = cannot open file at source line 25467 06-14 15:09:18.724: I/System.out(497): onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html 06-14 15:09:23.914: D/dalvikvm(497): GC_FOR_MALLOC freed 1828 objects / 313472 bytes in 101ms 06-14 15:09:25.083: E/WindowManager(497): Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): android.view.WindowLeaked: Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): at android.view.ViewRoot.init(ViewRoot.java:247) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-14 15:09:25.083: E/WindowManager(497): at android.view.Window$LocalWindowManager.addView(Window.java:424) 06-14 15:09:25.083: E/WindowManager(497): at android.app.Dialog.show(Dialog.java:241) 06-14 15:09:25.083: E/WindowManager(497): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 06-14 15:09:25.083: E/WindowManager(497): at com.phonegap.DroidGap$6.run(DroidGap.java:1483) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.handleCallback(Handler.java:587) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.dispatchMessage(Handler.java:92) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Looper.loop(Looper.java:123) 06-14 15:09:25.083: E/WindowManager(497): at android.app.ActivityThread.main(ActivityThread.java:4627) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invokeNative(Native Method) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invoke(Method.java:521) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 06-14 15:09:25.083: E/WindowManager(497): at dalvik.system.NativeStart.main(Native Method) Help me out. how to fixed it, I gone through few link over stack overflow but not able to find the solution. -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google 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] Play Store hijacking focus after in-app purchase dialog
Google Play will always be launched as a separate *process*, as Mark already pointed out above. It may or may not be on the requesting app's activity stack, depending on the Android version (1.6 or above - although I suspect one would have to search high and low for a 1.6 device at this time). Here is a logcat snippet from my own app's purchase process: 06-14 14:13:19.401 I/WifiControlActivity( 4977): Entering onStop 06-14 14:13:20.854 I/ActivityManager( 192): START {act=android.intent.action.VIEW cmp=com.android.vending/com.google.android.finsky.activities.IabActivity (has extras)} from pid -1 06-14 14:13:21.354 I/ActivityManager( 192): Displayed com.android.vending/com.google.android.finsky.activities.IabActivity: +453ms 06-14 14:13:21.581 I/ActivityManager( 192): Start proc com.google.android.gsf.login for service com.google.android.gsf.login/com.google.android.gsf.loginservice.GoogleLoginService: pid=5023 uid=10010 gids={3003, 1015, 1007, 2001, 3006} 06-14 14:13:22.729 W/Finsky ( 4305): [1] CarrierParamsAction.run: Saving carrier billing params failed. 06-14 14:13:26.776 E/Finsky ( 4305): [1] CheckoutPurchase.setError: type=IAB_PERMISSION_ERROR, code=12, message=null My app's pid is 4977, and Market's pid is 4305. This page has a boilerplate snippet to launch Market's purchase screen: http://developer.android.com/guide/market/billing/billing_integrate.html#billing-service Search for Using the pending intent, it's at the very end of the section. There is a short note after the code snippet that's also worth checking out: Important: You must launch the pending intent from an activity context and not an application context. Also, you cannot use the singleTop launch mode to launch the pending intent. If you do either of these, the Android system will not attach the pending intent to your application process. Instead, it will bring Google Play to the foreground, disrupting your application. -- K 2012/6/14 Floyd precep...@gmail.com Can someone answer the below question? I have been testing this app, and when the app is launched, and the BUY button is pressed for an in-app purchase, It launches google play as a separate process. While testing a similar app COMIXOLOGY when making an in-app purchase, it *does not*launch google play as a process. In comixology it just shows the google play purchase page and goes away / returns to the app once you make the purchase. On Wednesday, June 13, 2012 10:30:31 AM UTC-4, kadmos wrote: Can some one at least verify for me that Google Play being launched as a separate process is NOT the correct behavior of an in-app billing activity? -- You received this message because you are subscribed to the Google 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] Get details of contact in single query
Hi all I am trying to get contact information from the contact database using ContentResolver with these field want to get name, number, FORMATTED_ADDRESS, PHOTO details for a contact in one single query. So basically I need to make 3 queries per contact to obtain these details. What I want to know is that, is there a simpler and more efficient way to achieve what this. but using the below code i am getting exception. java.lang.IllegalArgumentException: Invalid column data1 Can any body help me for finding the solution for the same. Uri uri= ContactsContract.Contacts.CONTENT_URI; String[] projection= new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.StructuredPostal.FORMATTED_ADDRESS, ContactsContract.CommonDataKinds.Photo.PHOTO}; String selection = ContactsContract.Contacts.HAS_PHONE_NUMBER + = '1'; String[] selectionArgs = null; String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + COLLATE LOCALIZED ASC; Cursor contacts = getContentResolver().query(uri, projection, selection, selectionArgs, sortOrder); -- You received this message because you are subscribed to the Google 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] build non-stub version of android.jar
On Thu, Jun 14, 2012 at 2:48 AM, Andrew yepang...@gmail.com wrote: The android.jar found in android-sdk is simply a stub. All methods will throw a runtime exception stub! Do anyone know how to get a non-stub version of android.jar? Or how to build one from the android source code (not android OS source code, I mean Android library code)? This list is for developing applications using the Android SDK. You can learn more about the Android source code at http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training... At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Java 1.7
Further discussion on how to modify Dalvik to support Java 7 belongs someplace else, as it is off-topic for this list. If you are planning on contributing to this work, try the android-contrib Google Group. If not, try the android-discuss Google Group. On Thu, Jun 14, 2012 at 5:27 AM, al achim.leub...@googlemail.com wrote: Didn't the lawsuit go well for Google? As far as I know, the judgment was that language syntax and api cannot be patented. Of course, implementing the new library would be quite some effort. But supporting the new java syntax should not be such an effort. As far as I know, on bytecode level only invokedynamic was added and that code is not used by the java compiler (only by dynamic languages like jruby). So, a quick way to enable the new syntax features seems to be to 1) remove the errors warnings 2) add an error/warning if invokeDynamic is used Alternatively, it might be possible to add an additional build step (or eclipse builder) to just patch the version number of the class files to pretend they are java 1.6 class files. Am Mittwoch, 13. Juni 2012 16:36:03 UTC+2 schrieb Daniel Drozdzewski: It probably won't be supported soon for multitude of reasons. Simply set compiler compliance to 1.6 in Eclipse and live without funky Java 7 features. I know, it is not, what you asked for, but features of Java 7 are a bit more than the nice way of representing numerals. Have a look here: http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html ... that's quite a lot to port to Dalvik (even when only looking at HotSpot and language changes). Bear in mind that many new things in Java7 are possible specifically because the platforms that Java7 addresses have different (much more relaxed) constraints compared even to 4 core 1GB RAM mobile device. For example InvokeDynamic allows JVM to run trully dynamic languages, which are high productivity and all that, but cost in terms of processing and memory. Technicalities aside, remember that Google and Oracle only finished one big lawsuit. I don't think big G would like to have another one on their hands just yet. Daniel On 13 June 2012 15:06, bob b...@coolfone.comze.com wrote: I'm trying to use this notation in my code: int x = 5_000_000; So, I need Java 1.7. However, I get this error: [2012-06-13 09:01:43 - wall] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools Fix Project Properties. Any thoughts on this? Will 1.7 probably be supported soon? -- You received this message because you are subscribed to the Google 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 -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google 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 Android Training... At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] IndexOutofBoundsException thrown from getViewAt() in RemoteViewFactory
I am attempting to create a widget for android 4.0 phone. But the widget might crash after user clicks the clear data button in application's setting view. I looked into logcat, it saysIndexOutofBoundsException in getViewat() method. This is super weird in my eyes, since I put log in both getCount() and getViewat() methods. Firstly, getCount() methods return 1, but the consequence getViewat() is still trying to get view at position 1 and 2. Is there anyone see this problem before? any thoughts would be appreciated, thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity has leaked window - no solution at stack
Someone somewhere somehow (some code inside PhoneGap, by the looks of it) created an AlertDialog and didn't destroy it when the activity got destroyed. -- K 2012/6/14 Rocky rkjhaw1...@gmail.com All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my Activity. *Here is the code - * public class MobSmartPhonehas extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty(splashscreen, R.drawable.splash); // Display // splash // screen // for // android this.setIntegerProperty(loadUrlTimeoutValue, 1000); super.loadUrl(file:///android_asset/www/index.html, 1000);// 1000 is // the time // for // splash // screen // display } // fix for 3897 @Override public void onDestroy() { super.onDestroy(); } } * here is error i'm getting - * 06-14 15:09:18.154: D/dalvikvm(497): GC_FOR_MALLOC freed 652 objects / 84512 bytes in 121ms 06-14 15:09:18.404: I/Database(497): sqlite returned: error code = 14, msg = cannot open file at source line 25467 06-14 15:09:18.724: I/System.out(497): onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html 06-14 15:09:23.914: D/dalvikvm(497): GC_FOR_MALLOC freed 1828 objects / 313472 bytes in 101ms 06-14 15:09:25.083: E/WindowManager(497): Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): android.view.WindowLeaked: Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): at android.view.ViewRoot.init(ViewRoot.java:247) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-14 15:09:25.083: E/WindowManager(497): at android.view.Window$LocalWindowManager.addView(Window.java:424) 06-14 15:09:25.083: E/WindowManager(497): at android.app.Dialog.show(Dialog.java:241) 06-14 15:09:25.083: E/WindowManager(497): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 06-14 15:09:25.083: E/WindowManager(497): at com.phonegap.DroidGap$6.run(DroidGap.java:1483) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.handleCallback(Handler.java:587) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.dispatchMessage(Handler.java:92) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Looper.loop(Looper.java:123) 06-14 15:09:25.083: E/WindowManager(497): at android.app.ActivityThread.main(ActivityThread.java:4627) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invokeNative(Native Method) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invoke(Method.java:521) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 06-14 15:09:25.083: E/WindowManager(497): at dalvik.system.NativeStart.main(Native Method) Help me out. how to fixed it, I gone through few link over stack overflow but not able to find the solution. -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google 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
Re: [android-developers] IndexOutofBoundsException thrown from getViewAt() in RemoteViewFactory
On Jun 14, 2012, at 1:37 PM, Ethan Gao wrote: Firstly, getCount() methods return 1, but the consequence getViewat() is still trying to get view at position 1 and 2. If getCount() returns 1, you shouldn't ask for getViewAt(index) where index = 1. It's your responsibility to make sure you do not exceed getCount() limits (at least usually). -- H -- You received this message because you are subscribed to the Google 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] Activity has leaked window - no solution at stack
Hi Kostya, thanks for info, But I'm not creating any kind of AlertDialog, same code is working on different machine. On Thu, Jun 14, 2012 at 4:08 PM, Kostya Vasilyev kmans...@gmail.com wrote: Someone somewhere somehow (some code inside PhoneGap, by the looks of it) created an AlertDialog and didn't destroy it when the activity got destroyed. -- K 2012/6/14 Rocky rkjhaw1...@gmail.com All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my Activity. *Here is the code - * public class MobSmartPhonehas extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty(splashscreen, R.drawable.splash); // Display // splash // screen // for // android this.setIntegerProperty(loadUrlTimeoutValue, 1000); super.loadUrl(file:///android_asset/www/index.html, 1000);// 1000 is // the time // for // splash // screen // display } // fix for 3897 @Override public void onDestroy() { super.onDestroy(); } } * here is error i'm getting - * 06-14 15:09:18.154: D/dalvikvm(497): GC_FOR_MALLOC freed 652 objects / 84512 bytes in 121ms 06-14 15:09:18.404: I/Database(497): sqlite returned: error code = 14, msg = cannot open file at source line 25467 06-14 15:09:18.724: I/System.out(497): onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html 06-14 15:09:23.914: D/dalvikvm(497): GC_FOR_MALLOC freed 1828 objects / 313472 bytes in 101ms 06-14 15:09:25.083: E/WindowManager(497): Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): android.view.WindowLeaked: Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): at android.view.ViewRoot.init(ViewRoot.java:247) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-14 15:09:25.083: E/WindowManager(497): at android.view.Window$LocalWindowManager.addView(Window.java:424) 06-14 15:09:25.083: E/WindowManager(497): at android.app.Dialog.show(Dialog.java:241) 06-14 15:09:25.083: E/WindowManager(497): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 06-14 15:09:25.083: E/WindowManager(497): at com.phonegap.DroidGap$6.run(DroidGap.java:1483) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.handleCallback(Handler.java:587) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.dispatchMessage(Handler.java:92) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Looper.loop(Looper.java:123) 06-14 15:09:25.083: E/WindowManager(497): at android.app.ActivityThread.main(ActivityThread.java:4627) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invokeNative(Native Method) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invoke(Method.java:521) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 06-14 15:09:25.083: E/WindowManager(497): at dalvik.system.NativeStart.main(Native Method) Help me out. how to fixed it, I gone through few link over stack overflow but not able to find the solution. -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google 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
[android-developers] android build from command line
hi all, after struggling to install adt in eclipse and spending considerable time, i am trying to create a project from command line and build it. i could create a project but while building ant debug get following error BUILD FAILED D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :598: The following error occurred while executing this line: D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :627: null returned: 2 -- You received this message because you are subscribed to the Google 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] Activity has leaked window - no solution at stack
Yes, the code that calls Android SDK dialog method appears to be inside PhoneGap (DroidGap?) 06-14 15:09:25.083: E/WindowManager(497): at android.app.Dialog.show(Dialog.java:241) 06-14 15:09:25.083: E/WindowManager(497): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 06-14 15:09:25.083: E/WindowManager(497): at com.phonegap.DroidGap$6.run(DroidGap.java:1483) What kind of dialog this is and why it gets created in the first place -- I don't have the foggiest idea :) -- K 2012/6/14 Rocky rkjhaw1...@gmail.com Hi Kostya, thanks for info, But I'm not creating any kind of AlertDialog, same code is working on different machine. On Thu, Jun 14, 2012 at 4:08 PM, Kostya Vasilyev kmans...@gmail.comwrote: Someone somewhere somehow (some code inside PhoneGap, by the looks of it) created an AlertDialog and didn't destroy it when the activity got destroyed. -- K 2012/6/14 Rocky rkjhaw1...@gmail.com All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my Activity. *Here is the code - * public class MobSmartPhonehas extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty(splashscreen, R.drawable.splash); // Display // splash // screen // for // android this.setIntegerProperty(loadUrlTimeoutValue, 1000); super.loadUrl(file:///android_asset/www/index.html, 1000);// 1000 is // the time // for // splash // screen // display } // fix for 3897 @Override public void onDestroy() { super.onDestroy(); } } * here is error i'm getting - * 06-14 15:09:18.154: D/dalvikvm(497): GC_FOR_MALLOC freed 652 objects / 84512 bytes in 121ms 06-14 15:09:18.404: I/Database(497): sqlite returned: error code = 14, msg = cannot open file at source line 25467 06-14 15:09:18.724: I/System.out(497): onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html 06-14 15:09:23.914: D/dalvikvm(497): GC_FOR_MALLOC freed 1828 objects / 313472 bytes in 101ms 06-14 15:09:25.083: E/WindowManager(497): Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): android.view.WindowLeaked: Activity com.kt.reality.MobSmartPhonehas leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44fa8d38 that was originally added here 06-14 15:09:25.083: E/WindowManager(497): at android.view.ViewRoot.init(ViewRoot.java:247) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 06-14 15:09:25.083: E/WindowManager(497): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 06-14 15:09:25.083: E/WindowManager(497): at android.view.Window$LocalWindowManager.addView(Window.java:424) 06-14 15:09:25.083: E/WindowManager(497): at android.app.Dialog.show(Dialog.java:241) 06-14 15:09:25.083: E/WindowManager(497): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 06-14 15:09:25.083: E/WindowManager(497): at com.phonegap.DroidGap$6.run(DroidGap.java:1483) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.handleCallback(Handler.java:587) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Handler.dispatchMessage(Handler.java:92) 06-14 15:09:25.083: E/WindowManager(497): at android.os.Looper.loop(Looper.java:123) 06-14 15:09:25.083: E/WindowManager(497): at android.app.ActivityThread.main(ActivityThread.java:4627) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invokeNative(Native Method) 06-14 15:09:25.083: E/WindowManager(497): at java.lang.reflect.Method.invoke(Method.java:521) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 06-14 15:09:25.083: E/WindowManager(497): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 06-14 15:09:25.083: E/WindowManager(497): at dalvik.system.NativeStart.main(Native Method) Help me out. how to fixed it, I gone through few link over stack overflow but not able to find the solution. -- Thanks Regards Rakesh Kumar Jha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
Re: [android-developers] Handling JSON(Google/Finance) with escape character within Android.
Those \x*** look like Unicode characters to me. For example, 0x3cb is the lowercase u with those dot things above: http://www.fileformat.info/info/unicode/char/3cb/index.htm I'm not familiar with JSON character encoding rules, but here is a couple of ideas: 1) Decode the \x** characters yourself before handing the string to the JSON parser 2) Try setting Accept-Charset: utf-8 on your HTTP request, hopefully the server will notice and not use the \x** sequences at all. Adjust the InputStreamReader to match. Oh, and what is the meaning of using BufferedReader with an 8-character buffer? -- K 2012/6/14 wdziemia wdzie...@gmail.com I am having a problem with data that is a JSON file. I am using the following link, from google. http://www.google.com/finance/company_news?q=AAPLoutput=json; My problem occurs when i want to parse the data and putting it on screen. The data is not being decoded properly from some reason. The raw data(to my understanding its ASCII characters which may make up HTML entities): 1.) one which must have set many of the company\x26#39;s board on the edge of their 2.) Making Less Money From Next \x3cb\x3e...\x3c/b\x3e When i bring in the data i do the following: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); is = httpEntity.getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader( is, iso-8859-1), 8); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line + n); } is.close(); json = sb.toString(); The Output i receive, using org.json to extract the data from the json file, is the following(notice the lack of backslash): 1.)one which must have set many of the companyx26#39;s board on the edge of their 2.)Making Less Money From Next x3cbx3e...x3c/bx3e my current method for handling the first problem by this: JSONRowData.setJTitle((Html.fromHtml((article.getString(TAG_TITLE).replaceAll(x26, .toString()); the second one escapes me though(no pun intended) I understand the reason that this doesn't work is being the backlash is used for escape characters. In order for this to work, the backslash needs to be escaped which would allow . Ive tried many different methods of reading the data in but ive had no luck. Is there a way i can import the data to handle this problem without using regular expressions? -- You received this message because you are subscribed to the Google 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: Play Store hijacking focus after in-app purchase dialog
When you get this behavior to occur, try taking snapshots of the activity stack via adb shell dumpsys activity Do this at each step of the in-app purchase flow for your app to see what exactly is and is not a part of your apps history stack. You may have mis-configured activity and task launching which is causing this problem. On Tuesday, June 12, 2012 10:36:30 AM UTC-4, kadmos wrote: Anyone know what could be done about this? Basically if the Play Store app is still running in the background - which is going to be the case for most users once they first download and install the app - after interaction with any in-app purchase-related dialog box the Play Store is brought back into focus and users must make there way back to the app to complete tasks. how can this be prevented? submitted a bug report here: http://code.google.com/p/android/issues/detail?id=32878 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] Exception
Hello, I found these three structures in the taintrdoid source code and I want to know : - what is the role of each structure and how to handle exeption in android? - Where can I find the stored exceptions associated to a given methode? - Where the declared_exceptions associated to a methode are stored? - And where the catches are stored ? For example in the getCaughtExceptionType it has 2 for loop (what is the role of each loop)? *typedef struct DexTry* { u4 startAddr; /* start address, in 16-bit code units */ u2 insnCount; /* instruction count, in 16-bit code units */ u2 handlerOff; /* offset in encoded handler data to handlers */ } DexTry; *typedef struct DexCatchHandler* { u4 typeIdx;/* type index of the caught exception type */ u4 address;/* handler address */ } DexCatchHandler; *typedef struct DexCatchIterator* { const u1* pEncodedData; bool catchesAll; u4 countRemaining; DexCatchHandler handler; } DexCatchIterator; /* * For the move-exception instruction at insnIdx, which must be at an * exception handler address, determine the first common superclass of * all exceptions that can land here. (For javac output, we're probably * looking at multiple spans of bytecode covered by one try that lands * at an exception-specific catch, but in general the handler could be * shared for multiple exceptions.) * * Returns NULL if no matching exception handler can be found, or if the * exception is not a subclass of Throwable. */ *static ClassObject* getCaughtExceptionType*(const Method* meth, int insnIdx, VerifyError* pFailure) { VerifyError localFailure; const DexCode* pCode; DexFile* pDexFile; ClassObject* commonSuper = NULL; bool foundPossibleHandler = false; u4 handlersSize; u4 offset; u4 i; pDexFile = meth-clazz-pDvmDex- pDexFile; pCode = dvmGetMethodCode(meth); if (pCode-triesSize != 0) { handlersSize = dexGetHandlersSize(pCode); offset = dexGetFirstHandlerOffset(pCode); } else { handlersSize = 0; offset = 0; } * for (i = 0; i handlersSize; i++) { *DexCatchIterator iterator; dexCatchIteratorInit(iterator, pCode, offset);//Initialize a DexCatchIterator to a particular handler offset * for (;;) {* const DexCatchHandler* handler = dexCatchIteratorNext(iterator);/* Get the next item from a DexCatchIterator. Returns NULL if at end. */ if (handler == NULL) { break; } if (handler-address == (u4) insnIdx) { ClassObject* clazz; foundPossibleHandler = true; if (handler-typeIdx == kDexNoIndex) clazz = gDvm.classJavaLangThrowable; else clazz = dvmOptResolveClass(meth-clazz, handler-typeIdx, localFailure); if (clazz == NULL) { LOG_VFY(VFY: unable to resolve exception class %u (%s)\n, handler-typeIdx, dexStringByTypeIdx(pDexFile, handler-typeIdx)); /* TODO: do we want to keep going? If we don't fail * this we run the risk of having a non-Throwable * introduced at runtime. However, that won't pass * an instanceof test, so is essentially harmless. */ } else { if (commonSuper == NULL) commonSuper = clazz; else commonSuper = findCommonSuperclass(clazz, commonSuper);//Find the first common superclass of the two classes } } } offset = dexCatchIteratorGetEndOffset(iterator, pCode);/* Get the handler offset just past the end of the one just iterated over. * This ends the iteration if it wasn't already. */ } if (commonSuper == NULL) { /* no catch blocks, or no catches with classes we can find */ LOG_VFY_METH(meth, VFY: unable to find exception handler at addr 0x%x\n, insnIdx); *pFailure = VERIFY_ERROR_GENERIC; } else { // TODO: verify the class is an instance of Throwable? } return commonSuper; } thank you -- You received this message because you are subscribed to the Google 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] Exception
This has nothing to do with this list, which is for developing applications using the Android SDK. For questions regarding TaintDroid, please contact the TaintDroid authors. For questions regarding custom firmware development, please visit http://source.android.com. On Thu, Jun 14, 2012 at 7:54 AM, marie marmoh...@gmail.com wrote: Hello, I found these three structures in the taintrdoid source code and I want to know : - what is the role of each structure and how to handle exeption in android? - Where can I find the stored exceptions associated to a given methode? - Where the declared_exceptions associated to a methode are stored? - And where the catches are stored ? For example in the getCaughtExceptionType it has 2 for loop (what is the role of each loop)? *typedef struct DexTry* { u4 startAddr; /* start address, in 16-bit code units */ u2 insnCount; /* instruction count, in 16-bit code units */ u2 handlerOff; /* offset in encoded handler data to handlers */ } DexTry; *typedef struct DexCatchHandler* { u4 typeIdx;/* type index of the caught exception type */ u4 address;/* handler address */ } DexCatchHandler; *typedef struct DexCatchIterator* { const u1* pEncodedData; bool catchesAll; u4 countRemaining; DexCatchHandler handler; } DexCatchIterator; /* * For the move-exception instruction at insnIdx, which must be at an * exception handler address, determine the first common superclass of * all exceptions that can land here. (For javac output, we're probably * looking at multiple spans of bytecode covered by one try that lands * at an exception-specific catch, but in general the handler could be * shared for multiple exceptions.) * * Returns NULL if no matching exception handler can be found, or if the * exception is not a subclass of Throwable. */ *static ClassObject* getCaughtExceptionType*(const Method* meth, int insnIdx, VerifyError* pFailure) { VerifyError localFailure; const DexCode* pCode; DexFile* pDexFile; ClassObject* commonSuper = NULL; bool foundPossibleHandler = false; u4 handlersSize; u4 offset; u4 i; pDexFile = meth-clazz-pDvmDex- pDexFile; pCode = dvmGetMethodCode(meth); if (pCode-triesSize != 0) { handlersSize = dexGetHandlersSize(pCode); offset = dexGetFirstHandlerOffset(**pCode); } else { handlersSize = 0; offset = 0; } * for (i = 0; i handlersSize; i++) { *DexCatchIterator iterator; dexCatchIteratorInit(**iterator, pCode, offset);//Initialize a DexCatchIterator to a particular handler offset * for (;;) {* const DexCatchHandler* handler = dexCatchIteratorNext(**iterator);/* Get the next item from a DexCatchIterator. Returns NULL if at end. */ if (handler == NULL) { break; } if (handler-address == (u4) insnIdx) { ClassObject* clazz; foundPossibleHandler = true; if (handler-typeIdx == kDexNoIndex) clazz = gDvm.classJavaLangThrowable; else clazz = dvmOptResolveClass(meth-**clazz, handler-typeIdx, ** localFailure); if (clazz == NULL) { LOG_VFY(VFY: unable to resolve exception class %u (%s)\n, handler-typeIdx, dexStringByTypeIdx(pDexFile, handler-typeIdx)); /* TODO: do we want to keep going? If we don't fail * this we run the risk of having a non-Throwable * introduced at runtime. However, that won't pass * an instanceof test, so is essentially harmless. */ } else { if (commonSuper == NULL) commonSuper = clazz; else commonSuper = findCommonSuperclass(clazz, commonSuper);//Find the first common superclass of the two classes } } } offset = dexCatchIteratorGetEndOffset(**iterator, pCode);/* Get the handler offset just past the end of the one just iterated over. * This ends the iteration if it wasn't already. */ } if (commonSuper == NULL) { /* no catch blocks, or no catches with classes we can find */ LOG_VFY_METH(meth, VFY: unable to find exception handler at addr 0x%x\n, insnIdx); *pFailure = VERIFY_ERROR_GENERIC; } else { // TODO: verify the class is an instance of Throwable? } return commonSuper; } thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
[android-developers] Re: startActivityforResult does not return any result on Samsung Galaxy
I had some problems with Samsung also, and it is due to getExternalStorageDirectory() . I cant find the link now but I read that Samsung threats the external storage differently so you have to hack your code or create your specific path. This code gives you the right path: try { path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getCanonicalPath(); } catch (IOException e) { path=/sdcard/DCIM/; e.printStackTrace(); } if(android.os.Build.DEVICE.contains(Samsung) || android.os.Build.MANUFACTURER.contains(Samsung)){ path = _path + /external_sd/; } On Tuesday, June 12, 2012 5:16:03 PM UTC+2, Tanja Zimmermann wrote: The following Code works for HTC but not on Samsung Galaxy: final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(getTempFile(this)) ); startActivityForResult(intent, TAKE_PHOTO_CODE); private File getTempFile(Context context){ File path = new File( Environment.getExternalStorageDirectory(), context.getPackageName() ); if(!path.exists()){ path.mkdir(); } return new File(path, image.tmp); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { switch(requestCode){ case TAKE_PHOTO_CODE: final File file = getTempFile(this); captureBmp = Media.getBitmap(getContentResolver(), Uri.fromFile(file) ); int width = captureBmp.getWidth(); int height = captureBmp.getHeight(); int newWidth = width - ((width*40)/100); int newHeight = height - ((height*40)/100); float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; Matrix matrix = new Matrix(); matrix.postScale(scaleWidth, scaleHeight); resizedBitmap = Bitmap.createBitmap(captureBmp, 0, 0, width, height, matrix, true); bmd = new BitmapDrawable(resizedBitmap); ImageView iv = (ImageView) findViewById (R.id.iv_foto_beleg); iv.setImageDrawable(bmd); SharedPreferences sharedPreferences = getPreferences(MODE_PRIVA long id = sharedPreferences.getLong(id, 0); break; } } After press saving the camera activity does not turn back to the activity, which launched the it. The picture is not on sdcard. Is there anybody can help? Thanks in advance. Greetings -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android build from command line
i could dig further and see this error ERROR: Unknown option '--generate-dependencies' why would this come ? On Jun 14, 4:11 pm, Jags jag...@gmail.com wrote: hi all, after struggling to install adt in eclipse and spending considerable time, i am trying to create a project from command line and build it. i could create a project but while building ant debug get following error BUILD FAILED D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :598: The following error occurred while executing this line: D:\personal\Android\android-sdk_r18-windows\android-sdk-windows\tools\ant\build.xml :627: null returned: 2 -- You received this message because you are subscribed to the Google 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: AppWidget disappears after updating app and moving code into a library
I hope that I'm wrong, but here's my understanding... Let's say my 2 app manifests contain something like this: application package=my.package/ activity name=.MyActivity/ application package=my.packagepro/ activity name=.MyActivity/ Rather than maintaining 2 copies of MyActivity, I move them into a library: application package=my.package.core/ activity name=.MyActivity/ Now the references in my apps need to be updated: application package=my.package/ activity name=my.package.core.MyActivity/ application package=my.packagepro/ activity name=my.package.core.MyActivity/ Here's where the problem started. Any existing appwidgets on the homescreen would disappear. Then I found this: http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html So, I've reverted my manifest's back to a local package reference: application package=my.package/ activity name=.MyActivity/ application package=my.packagepro/ activity name=.MyActivity/ ...however, that class isn't in my.package or my.packagepro, it's in the library, my.package.core, so my understanding is that I needed a local version of the class. Am I wrong? Can I leave the activity name as .MyActivity and it will reference my.package.core.MyActivity? I though that when the name begins with a ., then the application package is used. Thank you! Bryan -- You received this message because you are subscribed to the Google 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: AppWidget disappears after updating app and moving code into a library
On Thu, Jun 14, 2012 at 8:25 AM, Bryan piusve...@gmail.com wrote: Let's say my 2 app manifests contain something like this: application package=my.package/ activity name=.MyActivity/ application package=my.packagepro/ activity name=.MyActivity/ There is no package attribute on application. I presume you mean the package attribute on the root manifest element. Here's where the problem started. Any existing appwidgets on the homescreen would disappear. Your app widgets will not be affected by any activity elements. They definitely will be affected by your receiver elements for your AppWidgetProviders. If the user has an app widget installed for a my.package.AppWidget, and you refactor things such that there is no my.package.AppWidget, the user will have problems. I wouldn't expect the app widget to turn invisible -- I would have guessed a problem loading widget placeholder instead -- but perhaps my guess is wrong. Bear in mind, though, that through the magic of inheritance, you can have my.package.AppWidget be a simple subclass of my.package.core.AppWidget, so you can have the business logic in your library project without breaking your original public API. Can I leave the activity name as .MyActivity and it will reference my.package.core.MyActivity? No. I though that when the name begins with a ., then the application package is used. Correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training... At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers]
Hi all, I am unable to compile the tesseract-3.01 for my ocr application.If anybody having knowledge in this,share it. Thanks, vijay.k -- You received this message because you are subscribed to the Google 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: AppWidget disappears after updating app and moving code into a library
Mark, Thanks for the clarifications and sorry for my rough example, I should have used a receiver in my example. It seems like I'm on the right track then, by extended my core classes in local classes to preserve the receiver names in the manifest. Thanks again! Bryan -- You received this message because you are subscribed to the Google 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: AppWidget disappears after updating app and moving code into a library
On Thu, Jun 14, 2012 at 8:48 AM, Bryan piusve...@gmail.com wrote: It seems like I'm on the right track then, by extended my core classes in local classes to preserve the receiver names in the manifest. Yes. Basically, the class name is part of the public API of an app widget, and you cannot change the public API of pretty much anything without running into issues. It'd be nice if there were a way for app widgets to be identified by a custom action string in an intent-filter, so refactoring could be easier and less risky, but that's not an available option AFAIK. -- 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 3.7 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] IndexOutofBoundsException thrown from getViewAt() in RemoteViewFactory
I didn't ask for getViewAt(index=1), this method is called by android framework(I think it's called by RemoteViewsAdater). I can not figure out the reason RemoteViewsAdatper is calling getViewAt(index=1) after it called getCount() which returns 1. I suspect that this is an android bug, since I didn't do anything wrong according the docs. On Thursday, June 14, 2012 6:57:17 PM UTC+8, Harri Smått wrote: On Jun 14, 2012, at 1:37 PM, Ethan Gao wrote: Firstly, getCount() methods return 1, but the consequence getViewat() is still trying to get view at position 1 and 2. If getCount() returns 1, you shouldn't ask for getViewAt(index) where index = 1. It's your responsibility to make sure you do not exceed getCount() limits (at least usually). -- H -- You received this message because you are subscribed to the Google 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] App not working on phone
Use dps for sizes or weights, use the different folders at your disposal. Read through: http://developer.android.com/guide/practices/screens_support.html On Wed, Jun 13, 2012 at 8:52 PM, Shekhar codeandroi...@gmail.com wrote: Guys I made an application , the app is working correctly on my emulator all the xml files have been to screen size 3.7 inch.Now when I tried running the app on an actual device, with smaller screen size, the full layout was not getting displayed,Can anyone tell me as how can I make my app run on devices with varying screen sizes? -- You received this message because you are subscribed to the Google 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] Show all feeds from Facebook in application
Check out facebook's example or try use www.google.com On Thu, Jun 14, 2012 at 11:01 AM, Rahul Radhakrishnanunnithan K rahu...@whiteovaltechnologies.com wrote: How can i create an android application which show all the feeds from my facebook account in dynamic list view ,i already completed the Facebook SDK reference part? -- You received this message because you are subscribed to the Google 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] SeekBars in ListView with crosslink/interlock
I have a Problem with my customized ListView. Most of my Listviews recommend a seekbar, so I created a custom layout with one and create a arrayadapter that matches to it. If I undestood right, every row in the ListView is an own View. So far everything work fine. \o/ New recommendations let me interlock the SeekBar against each other. For example 3 Seekbars: min=0 max=99 -30-- 40--- --70- If you pull the mid bar down till a level of 30 nothing happens casue the upper is lower than the mid. O.o* Now the upper have to scroll similar as the mid one. Same for the lower to the mid an inverter for upper to mid and mid to lower for increasing values. So here my question... -.- How am I able to get actual values of SeekBars in other rows and of cause how to change the values... I thing if I´m able to do one the other is just peanuts. U NO SEE CODE? SO DAMN - REPLY! - I´ll try to post some. -- You received this message because you are subscribed to the Google 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] Recover Certificate from APK
Thanks Mark. You have always helped me out, now and in the past! I know that the encryption is irreversible, wanted to know if there is a workaround for upgrading! Could someone convey this to Google, that, loosing a keystore is possible, highly STUPID, but possible. They should have a fall back plan! To upgrade the application, with another keystore or some other secure procedure. Just a thought! I am left at the mercy of my downloaders, to shift to the new application, as I need to put my upgraded application as a new application. Regards, Saurav Mukherjee. On Wed, Jun 13, 2012 at 10:33 PM, Raghav Sood raghavs...@gmail.com wrote: Digital signatures are based upon public-key cryptography. You cannot recover a private key given a public key -- that's the whole point of public-key crypto. Such algorithms are based on one-way functions: things that are easy to do but hard to reverse. This is enough. I know what public key encryption is and how it works, I just didn't know that it was used in this case. This clarifies my question. Thanks -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google 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] Show all feeds from Facebook in application
Hi Rahul, Sounds like you want the whole application. What is your question? Is it how to use ListView? Or is it how to use the Facebook Android SDK? Could you be more specific? Regards, Saurav Mukherjee. On Thu, Jun 14, 2012 at 7:27 PM, David Olsson zooklu...@gmail.com wrote: Check out facebook's example or try use www.google.com On Thu, Jun 14, 2012 at 11:01 AM, Rahul Radhakrishnanunnithan K rahu...@whiteovaltechnologies.com wrote: How can i create an android application which show all the feeds from my facebook account in dynamic list view ,i already completed the Facebook SDK reference part? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App not working on phone
Hi Shekhar, The above link should get you started! My suggestion is, not to use absolute values, place your components based on calculations. Extract the window height and breadth, and place all your components. Regards, Saurav Mukherjee. On Thu, Jun 14, 2012 at 6:44 PM, David Olsson zooklu...@gmail.com wrote: Use dps for sizes or weights, use the different folders at your disposal. Read through: http://developer.android.com/guide/practices/screens_support.html On Wed, Jun 13, 2012 at 8:52 PM, Shekhar codeandroi...@gmail.com wrote: Guys I made an application , the app is working correctly on my emulator all the xml files have been to screen size 3.7 inch.Now when I tried running the app on an actual device, with smaller screen size, the full layout was not getting displayed,Can anyone tell me as how can I make my app run on devices with varying screen sizes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] SeekBars in ListView with crosslink/interlock
The values of your Seekbars need to be stored in your adapter... You can then query the adapter for the information you need. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jun 14, 2012 at 8:11 AM, superpsycho s.thues...@gmx.de wrote: I have a Problem with my customized ListView. Most of my Listviews recommend a seekbar, so I created a custom layout with one and create a arrayadapter that matches to it. If I undestood right, every row in the ListView is an own View. So far everything work fine. \o/ New recommendations let me interlock the SeekBar against each other. For example 3 Seekbars: min=0 max=99 -30-- 40--- --70- If you pull the mid bar down till a level of 30 nothing happens casue the upper is lower than the mid. O.o* Now the upper have to scroll similar as the mid one. Same for the lower to the mid an inverter for upper to mid and mid to lower for increasing values. So here my question... -.- How am I able to get actual values of SeekBars in other rows and of cause how to change the values... I thing if I´m able to do one the other is just peanuts. U NO SEE CODE? SO DAMN - REPLY! - I´ll try to post some. -- You received this message because you are subscribed to the Google 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] Recover Certificate from APK
On Thu, Jun 14, 2012 at 10:35 AM, Saurav to.saurav.mukher...@gmail.com wrote: Thanks Mark. You have always helped me out, now and in the past! I know that the encryption is irreversible, wanted to know if there is a workaround for upgrading! Could someone convey this to Google, that, loosing a keystore is possible, highly STUPID, but possible. They should have a fall back plan! To upgrade the application, with another keystore or some other secure procedure. Just a thought! I am left at the mercy of my downloaders, to shift to the new application, as I need to put my upgraded application as a new application. I think they will point to the highly stupid case.. What are you hoping for? Some sort of way you can log into your account, and tell the store manually? kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] pushing new APKs
Let's say you want to create a set of Android kiosks, and you want to update them from a central location. The kiosks will allow people to press buttons and watch movies and maybe go to web sites. Any idea how to best make this updatable from a central place? Any way to push new APKs to these devices and auto-run them? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] pushing new APKs
Hi bob, Even i was looking for same thing and i found like for updation of app we can use c2dm concept of google or any third party clouding concepts like ultraairpush,mqtt and all according to your requirement. Yogi.. On Thu, Jun 14, 2012 at 8:40 PM, bob b...@coolfone.comze.com wrote: Let's say you want to create a set of Android kiosks, and you want to update them from a central location. The kiosks will allow people to press buttons and watch movies and maybe go to web sites. Any idea how to best make this updatable from a central place? Any way to push new APKs to these devices and auto-run them? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google 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 Freelancing
Hi All, I have got 2+ years of experience on Android development and am looking for freelancing stuff,so if any one need any task can give so that can do it as required or suggest me for some places for freelancing projects but not of freelancer as cant win bids over their. Thanks Br, Yogi -- You received this message because you are subscribed to the Google 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