Bug in the browser apps

by Dilip.S » Thu, 22 Apr 2010 13:53:42 GMT


Sponsored Links
 Steps:

1.Access to Browser app then go to www.google.com

2.Click input field( click on the search text input feild ) then click
aA button inthe sft keyboard  to change it to AA button.

3.Input a character C and check the AA button.

Actual Result:

3.AA button  can not change to aA button automatically.

Expected Result:

3.AA button should change to aA button automatically.(in other
app(EX:Messaging) ,AA will change to aA automatically)

--



Other Threads

1. Socket in AsyncTask - application crashesso the UI won't be blocked

You can register a handler in your code and send message to update  your UI
component in Handler. I used this way to solve a similar problem like urs
before. For exapmpel

  if (socket.isConnected()) {
                                       OutputStreamOut = new
ObjectOutputStream(socket.
getOutputStream());
                                       InputStreamIn = new
ObjectInputStream(socket.getInputStream());
                       // everything worked fine until here
                         //instead of doing this, send msg to a customized
handler
                        //statusTxt.setText("App is now connected to:\n" +
IP + " : "
                        mHandler.sendEmptyMessage(UPDATE TEXT); //use
something like this
+ Port); // CRASHING !!!!
                               connectBt.setText("Disconnect");
                               connected = true;
                               continueBt.setVisibility(0);
                       } else {









> 

2. Delete Call Log entry Exception

hi guys,

i have a BroadCastReceiver which will listen to incoming calls. and
once the call is finish or users ignores the call i'm deleting the
number from the CallLog. i have tested this with HTC TATTOO and it
works fine there.

but when i tested this with Motorola MilesTone i'm getting a exception

this is the Exception

06-21 13:34:02.365: ERROR/DatabaseUtils(1337): Writing exception to
parcel
06-21 13:34:02.365: ERROR/DatabaseUtils(1337):
java.lang.UnsupportedOperationException: Cannot delete that URL:
content://call_log/calls/442
06-21 13:34:02.365: ERROR/DatabaseUtils(1337):     at
com.android.providers.contacts.CallLogProvider.delete(CallLogProvider.java:
197)
06-21 13:34:02.365: ERROR/DatabaseUtils(1337):     at
android.content.ContentProvider$Transport.delete(ContentProvider.java:
174)
06-21 13:34:02.365: ERROR/DatabaseUtils(1337):     at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
180)
06-21 13:34:02.365: ERROR/DatabaseUtils(1337):     at
android.os.Binder.execTransact(Binder.java:287)
06-21 13:34:02.365: ERROR/DatabaseUtils(1337):     at
dalvik.system.NativeStart.run(Native Method)



06-21 13:34:02.381: ERROR/AndroidRuntime(1593): Uncaught handler:
thread main exiting due to uncaught exception
06-21 13:34:02.459: ERROR/AndroidRuntime(1593):
java.lang.UnsupportedOperationException: Cannot delete that URL:
content://call_log/calls/442

this is my code

public class CallListener extends BroadcastReceiver {
        private Context context;
        String phonenbr;
        TelephonyManager telManager;
        Handler handler = new Handler();

        @Override
        public void onReceive(Context context, Intent intent) {
                // TODO Auto-generated method stub
                this.context = context;
                        telManager = (TelephonyManager) context
                                        
.getSystemService(Context.TELEPHONY_SERVICE);
                        telManager.listen(new StateListener(),
                                        PhoneStateListener.LISTEN_CALL_STATE);

        }

        class StateListener extends PhoneStateListener {
                @Override
                public void onCallStateChanged(int state, String 
incomingNumber) {
                        // TODO Auto-generated method stub
                        // super.onCallStateChanged(state, incomingNumber);
                        switch (state) {
                        case TelephonyManager.CALL_STATE_RINGING:
                                break;
                        case TelephonyManager.CALL_STATE_IDLE:

                                listeneNativeInbox();
                                break;
                        case TelephonyManager.CALL_STATE_OFFHOOK:

                                break;
                        }
                }
        }
protected void listeneNativeInbox() {

                context.getContentResolver().registerContentObserver(
                                CallLog.Calls.CONTENT_URI, true, new 
MyInboxListener(handler));

                // Uri Sms = Uri.parse("content://sms/inbox");
                /*
                 * Cursor c = context.getContentResolver().query(
                 * CallLog.Calls.CONTENT_URI, null, null, null, null);
                 */
        }

        class MyInboxListener extends ContentObserver {

                public MyInboxListener(Handler handler) {
                        super(handler);
                        // TODO Auto-generated constructor stub
                }

                @Override
                public boolean deliverSelfNotifications() {
                        // TODO Auto-generated method stub
                        return false;
                }

                @Override
                public void onChange(boolean selfChange) {
                        // TODO Auto-generated method stub
                        boolean b = false;
                        Uri books = 
Uri.parse("content://com.sabretch.colorEyeD/SABRE");
                        Log.d("Authority", books.getAuthority());
                        Cursor cursor = 
context.getContentResolver().query(books, null,
                                        "Mobile" + "='" + phonenbr + "'", null,
                                        "category " + "DESC");
                        if (cursor != null) {
                                if (cursor.moveToNext()) {
                                        b = true;
                                }
                        }
                        Message msg = new Message();
                        msg.obj = "xxxxxxxxxx";
                        handler.sendMessage(msg);
                        Cursor cur = context.getContentResolver().query(
                                        CallLog.Calls.CONTENT_URI, null, null, 
null,
                                        CallLog.Calls._ID + " DESC");
                        cur.moveToNext();
                        long threadIdIn = cur
                                        
.getLong(cur.getColumnIndex(CallLog.Calls._ID));
                        Uri uri = 
ContentUris.withAppendedId(CallLog.Calls.CONTENT_URI,
                                        threadIdIn);
                        if (b) {
                                int x = 
context.getContentResolver().delete(uri, null, null);
                                Log.d("FFFFFFFFFASSDSSDESD", 
Integer.toString(x));
                        }
                        System.exit(0);
                        // }
                }
        }
}

so do you have any idea about this??
NOTE:- works correctly in HTC tattoo but not in Motorola Milestone

regards,
Mike

-- 

3. Howto pass pointer to char parameter to kernel via copy_to_user()

4. HTC tattoo List separators and menu separator lines are not visible

5. HTC tattoo List separators and menu separator lines are not visible

6. Added Interface of is not resolving at runtime

7. URL links are not opened in HTML viewer