Key capture background

by coder_sym » Fri, 20 May 2011 09:30:34 GMT


Sponsored Links
 Hi


I saw a post saying key capturing in the background is not possible ..
is this still the case? or was thre any recent changes to make this
happen ? I wonder why this capability is closed when there are lot of
genuine use cases. Is it possibel to do the same with some special
rights?.

-C

-- 



Re: Key capture background

by Mark Murphy » Fri, 20 May 2011 18:10:11 GMT


 


Yes.


No.


You are welcome to write your own mobile operating system that enables
spyware to monitor key presses from other applications.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books 

-- 


Sponsored Links


Other Threads

1. tanya: hp android buat ber gps ria

Para suhu sekalian mau tanya,

Hp droid value seperti samsung galaxy mini atau optimus me sudah cukup
mumpuni belum untuk keperluan ber gps ria ?? Prefer offline. Flash n kamera
bkn prioritas.

Atau Ada saran lain? Pengen-nya yg di range 1jt an..

Thx before,
Budi

-- 
"

2. Image gallery without memory error

I  made a image gallery but  getting a memory error when I slide
photos.
Then I added bitmapfactory but I can run the program because It shows
error in the bitmapdrawable.
can anybody tell me how to solve this problem.

ContentResolver cr=getContentResolver();
        Cursor c=cr.query(
            MediaStore.Images.Media.INTERNAL_CONTENT_URI,
            null,null,null,null);
        c.moveToFirst();
        for (int i=0;i<c.getCount();i++) {
            String path=c.getString(c.getColumnIndexOrThrow("_data"));
            photoList.add(file2bmp(path,480,480));
            for (String column:c.getColumnNames()) {//
                android.util.Log.e("",column+"="+
                    c.getString(c.getColumnIndexOrThrow(column)));
            }
            c.moveToNext();
        }


        Gallery gallery=new Gallery(this);
        gallery.setSpacing(2);
        gallery.setAdapter(new GalleryAdapter());
        gallery.setLayoutParams(new LinearLayout.LayoutParams(FP,FP));
        layout.addView(gallery);
    }


    private Bitmap file2bmp(String path,int maxW,int maxH) {
        BitmapFactory.Options options;
        InputStream in=null;
        try {

            options=new BitmapFactory.Options();
            options.inJustDecodeBounds=true;
            in=new FileInputStream(path);
            BitmapFactory.decodeStream(in,null,options);
            in.close();
            int scaleW=options.outWidth/maxW+1;
            int scaleH=options.outHeight/maxH+1;
            int scale =Math.max(scaleW,scaleH);


            options=new BitmapFactory.Options();
            options.inJustDecodeBounds=false;
            options.inSampleSize=scale;
            in=new FileInputStream(path);
            Bitmap bmp=BitmapFactory.decodeStream(in,null,options);
            in.close();
            return bmp;
        } catch (Exception e) {
            try {
                if (in!=null) in.close();
            } catch (Exception e2) {
            }
            return null;
        }
    }


    public class GalleryAdapter extends BaseAdapter {

        public int getCount() {
            return photoList.size();
        }


        public Object getItem(int position) {
            return position;
        }


        public long getItemId(int position) {
            return position;
        }


        public View getView(int position, View convertView, ViewGroup
parent) {
            ImageView imageView;
            if (convertView==null) {
                imageView=new ImageView(MainAct.this);
                imageView.setLayoutParams(new
Gallery.LayoutParams(240,240));
 
imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
                imageView.setBackgroundColor(Color.BLACK);

                BitmapDrawable bd=new
BitmapDrawable(photoList.get(position));   //getting error
                imageView.setImageDrawable(bd);
            } else {
                imageView=(ImageView)convertView;
            }
            return imageView;
        }
    }


Thank you

-- 

3. Problem to fix image view to layout

4. RIL understanding

5. OutOfMemoryError

6. Need help on ftyp's..

7. Have to clean build to get app to install on phone