Tidak Bisa Download di Market

by erwin bong » Fri, 03 Dec 2010 11:49:23 GMT


Sponsored Links
 Dear All,

Kok saya tidak download Aplikasi di Market ya?

Mohon pencerahan nya..

Thanks..


Erwin

-- 
===============
"



Other Threads

1. Need Bluetooth UUID clarification

I am trying to connect to a Bluetooth headset, and it fails at the
time of connect with an error: "Service Discovery Failed". Following
is the code snippet.

BluetoothSocket btsock =
device.createRfcommSocketToServiceRecord(UUID.fromString("00000003-0000-1000-8000-00805F9B34FB"));
btsock.connect();

Obviously, the problem is with the UUID.

We've a J2ME implementation that can connect to the headset with UUID
as:
final UUID RFCOMM_UUID = new UUID(0x0003);

Same headset can be connected on Symbian implementation using:
KSerialPortUUID = 0x1101;

We do not have the folks who worked on both J2ME and Symbian.
What should be the UUID in Android? What would be the 128 bit UUID for
SerialPort service?

-- 

2. Updating the UI in response to a received broadcast.

I have an app with an activity and a service.  The service schedules a
function to run using timer.scheduleAtFixedRate. When the timer task
runs, I want to update some TextView objects in the Activity's UI, so
that the user knows that the service has run, and the last thing it
did.

So in the timer task I do:
                Intent intent = new
Intent("com.edgreenberg.TextMessageServer.UPDATE_SCREEN");
                SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd
HH:mm:ss");
                Date date = new Date();
                intent.putExtra("time", dateFormat.format(date));
                intent.putExtra("numberMsgs",numberMsgs);
                sendBroadcast(intent);

Then, in the activity, I created:

        private int numMsgs1;
        private String dateTime1;

        public class CustomBroadCast extends BroadcastReceiver {
                public CustomBroadCast(){
                }
            /**
             * @see
android.content.BroadcastReceiver#onReceive(Context,Intent)
             */
                        //public static final String TAG = "CustomBroadCast";

                        @Override
                        public void onReceive(Context context, Intent intent) {
        
if(intent.getAction().equals("com.edgreenberg.TextMessageServer.UPDATE_SCREEN"))
{
                                Log.i("INFORMATION","Broadcasting message");
                                dateTime1 = intent.getStringExtra("time");
                                numMsgs1 = intent.getIntExtra("numberMsgs", 0);
                                // gotta get this to the gui thread somehow.
                                handler.sendEmptyMessage(0);


                                }
            }

        }

Now, where it says "gotta get this to the gui thread somehow" is where
I previously did dateTime.setText(dateTime1), but according to what I
read, that shouldn't work. And it doesn't :)

So I sent the empty message using the handler, as shown below:

        private Handler handler = new Handler() {
                @Override
                public void handleMessage(Message msg) {
                        final TextView dateTime,numMsgs;
                        dateTime = (TextView) findViewById(R.id.datetime);
                        numMsgs = (TextView) findViewById(R.id.numMsgs);
                        dateTime.setText(dateTime1);
                        numMsgs.setText(numMsgs1);
        }

        };
 Now this, I expect to work. It doesn't. The screen stays mute.  In
fact, the de{*filter*} tells me that:
Thread [<3> main] (Suspended (exception Resources$NotFoundException))
        Resources.getText(int) line: 205
        TextView.setText(int) line: 2809
        TextMessageControlPanel$1.handleMessage(Message) line: 38
        TextMessageControlPanel$1(Handler).dispatchMessage(Message) line: 99
        Looper.loop() line: 123
        ActivityThread.main(String[]) line: 4203
        Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
        Method.invoke(Object, Object...) line: 521
        ZygoteInit$MethodAndArgsCaller.run() line: 791
        ZygoteInit.main(String[]) line: 549
        NativeStart.main(String[]) line: not available [native method]

It feels like something is out of scope, but I'm not java-literate
enough to tell what.

My handler,  CustomBroadCast class, onCreate, onStart are all at the
same level inside my main activity class (extends activity.)

Can somebody shed some light?

Thanks,
</edg>

-- 

3. multiple parameters with rawQuery in sqlite = BUG

4. HTML content on AppWidget

5. How to run a prefs activity from my widget !!

6. How to manage orientation dependent activities?

7. Supplying a different background drawable for a dialog?