[android-developers] Android security and file lock.

2013-02-28 Thread Numair Qadir
I want to create a application in android which can put a lock(password) on Home Screen, Application, Gallery and Files. For home screen, I can make a home screen widget that will launch on device boot. For Apps I can use following solution, Android Lock Apps

Re: [android-developers] Re: OnTouch events!!!!

2013-02-27 Thread Numair Qadir
the state. > > -blake > > > On Tuesday, February 26, 2013 11:44:39 PM UTC-8, Numair Qadir wrote: >> >> Greetings, >> >> Can nested onTouch method be implemented? I'm working on an app in which >> user is drawing some components onTouch. I want to restrict u

[android-developers] OnTouch events!!!!

2013-02-26 Thread Numair Qadir
Greetings, Can nested onTouch method be implemented? I'm working on an app in which user is drawing some components onTouch. I want to restrict user to draw a point, line and circle respectively. Is it possible that one event run only once and goto next event until and unless I restart the app.

Re: [android-developers] Re: Draw 2d circle ontouch android

2013-02-23 Thread Numair Qadir
our drawing view's onDraw > method a bit. It has to draw the bitmap "drawnCirclesBitmap" at the > position (0;0): > > protected void onDraw(Canvas canvas) { >> canvas.drawBitmap(drawnCirclesBitmap, 0, 0, null); >> canvas.drawCircle(downx, downy, rad

[android-developers] Draw 2d circle ontouch android

2013-02-22 Thread Numair Qadir
Hi! Greetings! I'm working in onTouch method to draw a circle, what i'm trying is to draw a circle when user draws on the screen, without using any fixed radius. Radius should calculate from the distance. I've tried but it is not drawing what i want. Here is my code @Override public boolean onT

[android-developers] Touch events not saving to arraylist

2013-02-20 Thread Numair Qadir
i'm trying to add the touch events X & Y axis to arraylist. But it shows me empty in logcat ("X:[] Y:[] ") where am i making mistake?? help me please!!! *@Override* * public boolean onTouch(View bg, MotionEvent event) {* * // TODO Auto-generated method stub* * dumpEvent(event);* * ArrayList xaxis

Re: [android-developers] Re: Android draw circle onTouch

2013-02-15 Thread Numair Qadir
og.d(TAG, "DRAG"); > break; > > > On Friday, February 15, 2013 7:25:26 AM UTC-6, Numair Qadir wrote: >> >> Greetings, >> I'm trying to draw a circle using onTouch event. What it should do is get >> the coordinates where screen is touched(ACTION_DOWN),

[android-developers] Android draw circle onTouch

2013-02-15 Thread Numair Qadir
Greetings, I'm trying to draw a circle using onTouch event. What it should do is get the coordinates where screen is touched(ACTION_DOWN), and where touch is lift up(ACTION_UP). For drawing circles we have canvas.drawCircle(x,y,radius,paint); . Now radius should be equal to the area where u

[android-developers] Android Load and Set image as background in app

2012-11-05 Thread Numair Qadir
I was trying to load the image and set as background of the app. What i tried is { super.onActivityResult(requestCode, resultCode, data); if (resultCode == Activity.RESULT_OK && requestCode == 0) { Uri photo = data.getData(); ContentResolver resolver = getContentResolver();

[android-developers] Scaling 2d image in different axis

2012-08-27 Thread Numair Qadir
Hi, I'm working on a task , to scale the image, it works fine and scales the image in all direction, but i want it to scale in individual axis, here is my code, thanks for your response switch (event.getAction () & MotionEvent.ACTION_MASK) { MotionEvent.ACTION_DOWN case: savedMatrix.set (matrix

Re: [android-developers] Bitmap size exceeds

2012-08-15 Thread Numair Qadir
Oh man. Thanks alot. That is the wonderful book that teaches me alot regarding media stuff. The problem is solved :) On Wed, Aug 15, 2012 at 10:24 AM, Jim Graham wrote: > On Wed, Aug 15, 2012 at 06:35:43AM +0500, Numair Qadir wrote: > > > I like the solution you proposed for me, ca

Re: [android-developers] Re: Bitmap size exceeds

2012-08-15 Thread Numair Qadir
I set the minSDK to version 3.0, but it crash on the same line. On Wed, Aug 15, 2012 at 7:14 PM, bob wrote: > Did you set minSDK? Where does it crash? > > On Tuesday, August 14, 2012 8:27:12 PM UTC-5, Numair Qadir wrote: > >> Dear Bob, >> I tried my app in API 11 with l

Re: [android-developers] Bitmap size exceeds

2012-08-14 Thread Numair Qadir
Dear Jim, I like the solution you proposed for me, can you please explain me more how to load/scale it at the same time. Any help from code snippet/ example would be more appreciated. Thanks On Mon, Aug 13, 2012 at 5:02 AM, Jim Graham wrote: > On Sun, Aug 12, 2012 at 04:48:14PM -0700, Num

Re: [android-developers] Re: Bitmap size exceeds

2012-08-14 Thread Numair Qadir
Heap="true" which will allow the > application to use more heap if it is available." > > > On Sunday, August 12, 2012 6:48:14 PM UTC-5, Numair Qadir wrote: >> >> So, i was working on a project that loads an image from the gallery and >> set as background. It i

[android-developers] Bitmap size exceeds

2012-08-12 Thread Numair Qadir
So, i was working on a project that loads an image from the gallery and set as background. It is working perfectly fine but crashes when i try to load a large image, i.e. 5 MP (2592х1944), 8mpx (3264x2448), 12 MP, 4000x3000 , here is my code: @Override protected void onActivityResult(int reques

Re: [android-developers] Merge two bitmaps

2012-08-01 Thread Numair Qadir
#x27;t know which line of yours is 263. > > On Tuesday, July 31, 2012 5:52:27 PM UTC-5, Numair Qadir wrote: >> >> With the help of "pro Android.Media", i tried, but it gave me force close >> error, here is my code and logcat >> >> // Camera arg conve

Re: [android-developers] Merge two bitmaps

2012-07-31 Thread Numair Qadir
e(737): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-01 04:46:07.969: E/AndroidRuntime(737): at dalvik.system.NativeStart.main(Native Method) Can you please help me to figure out the issue? Thanks On Tue, Jul 31, 2012 at 8:44 PM, Jim Graham wrote: > On Tue, Jul 31, 2012 at 05:57:47AM

[android-developers] Merge two bitmaps

2012-07-31 Thread Numair Qadir
I want to merge two bitmaps, here is my code / / Camera arg conversion to Bitmap Bitmap cameraBitmap = BitmapFactory.decodeByteArray (arg0, 0, arg0.length); / / FrameLayout to Bitmap FrameLayout mainLayout = (FrameLayout) findViewById (R.id.frame); Foreground = Bitmap.

Re: [android-developers] Re: Byte [] image

2012-07-31 Thread Numair Qadir
Thank you sir, Got it! On Tue, Jul 31, 2012 at 7:03 AM, gjs wrote: > Hi, > > YUV conversion is only required for camera preview images not camera > photos. > > Regards > > On Jul 30, 12:59 pm, Jim Graham wrote: > > On Mon, Jul 30, 2012 at 07:12:52AM -0700,

Re: [android-developers] Byte [] image

2012-07-31 Thread Numair Qadir
Hi Graham, Thank you very much. It worked. :) On Mon, Jul 30, 2012 at 9:59 PM, Jim Graham wrote: > On Mon, Jul 30, 2012 at 07:12:52AM -0700, Numair Qadir wrote: > > I'm working on an app, in which i convert the byte[] image to bitmap, but > > it showed me some weird i

[android-developers] Android image rotation using matrix

2012-06-17 Thread Numair Qadir
I 've a code on which everything worked fine( scaling and moving). Now i want to add rotation too, i tried using matrix.postRotate(getDegreesFromRadians(angle), mid.x, mid.y); but didn't work for me. my code is: public boolean onTouch (View v, MotionEvent rawEvent) { WrapMotionEvent event = Wra