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
Re: [android-developers] Hi
Hi, To learn android you need 1) Internet in your pc or laptop 2) download eclipse 3) download adt plugin for android and add plugin in eclipse 4) download android sdk and add its location in eclipse android plugin for the whole process just search in google and you android.com is the site where you will get all the things and also videos are available for each topic in google youtube. On Fri, Jan 27, 2012 at 12:11 AM, Daniel Drummond dmdrummo...@gmail.comwrote: Read everything at d.android.com, watch videos from Google IO, read some books, get on the android irc channel, read the Android blog. Above all code, try out different things, and enjoy it! On Jan 26, 2012 6:03 PM, siri siritullimi...@gmail.com wrote: Dear all i started to learn android plz guide 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Motion Sensor in Android
every thing will be supported there some api which u can use it in ur application and just the thing is u need to search it On Mon, Aug 1, 2011 at 6:57 AM, ndiiie 90 rnd...@gmail.com wrote: HI guys, this is a random question in my mind. Does Android support for motion sensor like Microsoft Kinect does? 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 -- 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] Need help diagnosing problem
here u need to handle resolution and also screen size make all child to be act with parent if not they will be closed any small configuration is not oaky then ur whole application is not support in device help the users and suggest them as per ur application settings while installation or u make it up with ur resolution take some text identify the device and set the screen resolution. On Sat, Jul 30, 2011 at 11:48 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: tried using ACRA? may help to catch the bug (as users are usually less than useful) On Jul 30, 2011 6:28 PM, bob b...@coolgroups.com wrote: My stuff is getting really low ratings partly because it doesn't work on certain phones. Can someone take a look at my app here and help me figure it out? https://market.android.com/details?id=com.coolfone.sonicboomfeature=search_result If you have an HTC Eris, this would be especially helpful. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- 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: Force close
hi saurab, first u need to check is there any value is going to be null when u r passing values handle the null values first and then enter it into database, if u r passing any value as null application will give force close most of the problem are for null values and handle them okay and also take the database parameters check either the pass holdings u r passing or correct or not(?,?) like this while inserting into database. On Jul 30, 7:35 pm, Mark Murphy mmur...@commonsware.com wrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your force close. On Sat, Jul 30, 2011 at 10:32 AM, saurabh kulkarni funwit.saur...@gmail.com wrote: My app gives me force close when I add one record to database and then returns to privious activity which shows me added record.So why force close? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] about google Api
Hi developers, If u r having net with you go to the android sdk and check the third party adons and then you will get list of google apis with version, select ur version and thenn select install. for map view com.google.android.maps.MapView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=Your Maps API Key key u have to generate the map key by using commands by using java key tool u will get application key and then post that key in google then u will get the map key that key u need to post in apikey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need help diagnosing problem
you need arrange the things like for example u may used only for drawable ldpi, only but having mdpi ldpi hdpi so u have check out the things may be it may work only landscape make it as potrait and take resolutions dynamically it may fix only for some screens. On Jul 30, 9:27 pm, bob b...@coolgroups.com wrote: My stuff is getting really low ratings partly because it doesn't work on certain phones. Can someone take a look at my app here and help me figure it out? https://market.android.com/details?id=com.coolfone.sonicboomfeature=... If you have an HTC Eris, this would be especially helpful. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiple Intents
u need differentiate them with messages and handle them and which u want onActivity apply it in a thread and use that thread in oncreate okay On Jul 30, 2:12 pm, perumal316 perumal...@gmail.com wrote: Hi All, If I got multiple intents, how do I use: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { . } I have multiple intents upon different button clicks in my application, and for one of the intent, I need to use onActivityResult. If I just place it at the bottom, it is not executing. How to differentiate between he different intents? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en