[android-developers] re:Camera picture how to convert bitmap
Iam capturing image and saving to sd card,after capturing image app get crashes can any one guide me. public class ButtonClickHandler implements View.OnClickListener { public void onClick(View view) { Log.i(MakeMachine, ButtonClickHandler.onClick()); startCameraActivity(); } } protected void startCameraActivity() { Log.i(MakeMachine, startCameraActivity()); file = new File(_path); Uri outputFileUri = Uri.fromFile(file); Intent intent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); startActivityForResult(intent, 0); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.i(MakeMachine, resultCode: + resultCode); switch (resultCode) { case 0: Log.i(MakeMachine, User cancelled); break; case 1: onPhotoTaken(); break; } } protected void onPhotoTaken() { Log.i(MakeMachine, onPhotoTaken); _taken = true; BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 4; Bitmap bitmap = BitmapFactory.decodeFile(_path, options); _image.setImageBitmap(bitmap); _field.setVisibility(View.GONE); } @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { Log.i(MakeMachine, onRestoreInstanceState()); if (savedInstanceState.getBoolean(Demo_ad_sdkActivity.PHOTO_TAKEN)) { onPhotoTaken(); } } @Override protected void onSaveInstanceState(Bundle outState) { outState.putBoolean(Demo_ad_sdkActivity.PHOTO_TAKEN, _taken); } -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re:Android _Develop app for hardware
Hi All, which when from the Hyperterminal in Windows if data is dumped on to the usb connected to andriod phone it must receive the same and display. Is it possible to develop ,can I get some information above development for android. Regards Jagadeesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Edi text default should keyboard caps
Hi All, Iam working on application which should get default keyboard is caps any one have idea please help for this how to approach EditText android:id=@+id/et_reg_firstname android:layout_width=350dp android:layout_height=wrap_content android:layout_alignLeft=@+id/textView6 android:layout_below=@+id/textView6 android:layout_marginTop=10dp android:background=@drawable/editextxml android:imeOptions=actionNext android:paddingLeft=15dp android:singleLine=true / when pressed edit textbox button iam getting defaultly lowercase keyboard.But Irequired exactly uppercase keyboard when pressed. Please guide me in right direction -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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:Json ObectModel
Hi Iam working on cloud based app ,I have some doubts regardind Json obect model witout using intents and activities ,directly passing object from adapters to another adapters for list view elements . Public void Convertview(int position,Convertview view,parent arg3) { Message msg=new msg() Msg.arg1=postion() } How to use object model in android can any one help for right direction Thanks Jagadeesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Expandible list view search box implementation
In my expandible list view how add search box label can any one guide me. Regards Jagadeesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Calender view
Hi Iam able to show calendar view by week selection ,I cant able to add functionality based on selection on week wise Can you any tell me.i Done Googling I got ,but week selection I couldn't able to add week selection thing . http://w2davids.wordpress.com/android-simple-calendar/ I followed this but couldn't able to add from day to next week day selection able to do any one knows Please guide me. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 09, 2012 8:26 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Calender view What do you mean with how to get? Beginning with API level 11 you can use: http://developer.android.com/reference/android/widget/CalendarView.html For earlier versions: http://code.google.com/p/android-calendar-view/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Calender view
Thanks for that good solution. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Tuesday, July 10, 20hi12 12:26 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Calender view Ok, your question is hard to understand, but I assume you are the same guy who was asking several times all over the past week for how to create a calendar week selection view, so I think you want to have a widget that allows the user to pick a week of the year. The Java Calendar http://developer.android.com/reference/java/util/Calendar.html class should give you enough material for figuring out the steps necessary. Another question you may want to answer yourself is: how do you want to present your week of the year selection? You can get an idea for that by playing around with the Windows 7 date selection widget, which does a pretty good job. I would implement that as a separate view instead of trying to extend the existing calendar view of your choice with that function, because that may turn out to be too complicated. But the most elegant solution would be adapting that android calendar view source code for your needs. You could create a ListView or GridView and set a custom Adapter that lists the week of the year. When showing that view you need to set the current selection to the current week (or any pre-selected week). The current week can be retrieved with a Calendar object: Calendar cal = new GregorianCalendar(); int weekOfYear = cal.get(Calendar.WEEK_OF_YEAR); If you want to select the week of month instead then change WEEK_OF_YEAR to WEEK_OF_MONTH. In that case you need to have just 4 buttons anyway and don't need to bother with a ListView and an adapter. On Monday, July 9, 2012 1:13:10 PM UTC-5, jags wrote: Hi Iam able to show calendar view by week selection ,I cant able to add functionality based on selection on week wise Can you any tell me.i Done Googling I got ,but week selection I couldn't able to add week selection thing . http://w2davids.wordpress.com/android-simple-calendar/ I followed this but couldn't able to add from day to next week day selection able to do any one knows Please guide me. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Nobu Games Sent: Monday, July 09, 2012 8:26 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Calender view What do you mean with how to get? Beginning with API level 11 you can use: http://developer.android.com/reference/android/widget/CalendarView.html For earlier versions: http://code.google.com/p/android-calendar-view/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WEEK selection of day
Hi Iam doing n task week selection of the day ,how can be possible to do this,Any guide lines please In that calendar done, with previous month and next month done. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: device.png
[android-developers] Week of calender view
Hi All, I have made calendar view ,now I have to make with week selection view can any one help me for 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