Low battery level sound

by Jan Koprowski » Mon, 13 Apr 2009 12:13:43 GMT


Sponsored Links
 Hi !

  Is there any chance to set sound when battery charge level fall ?

Greetings from Poland
--
Jan Koprowski

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. scrollView in AlertDialog body not scrolling鈥

Hi All,

I am trying to have a ScrollView in the message part of the
AlertDialog. But, i am unable to get the desired result. Following is
the relevant piece of code. If you find something incorrect in the way
i am building the custom view, please let me know. TIA.

protected Dialog onCreateDialog(int id) {
    switch (id) {
    case DIALOG_SEARCH:
        dialogLayoutOuter = new ScrollView(this);
        LayoutParams scroll_lp = new
LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
        dialogLayoutOuter.setLayoutParams(scroll_lp);
        dialogLayoutOuter.setFillViewport(true);
        dialogLayoutOuter.setVerticalScrollBarEnabled(true);

        dialogLayout = new LinearLayout(this);
        LinearLayout.LayoutParams lp_lv = new
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
        dialogLayout.setLayoutParams(lp_lv);
        dialogLayout.setOrientation(LinearLayout.VERTICAL);

        int bgColor = 0xFF00FFFF;
        int bgColorBlack = 0xFF000000;
        LinearLayout.LayoutParams lp_divider = new
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,2);
        LinearLayout.LayoutParams lp_text = new
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT);
        LinearLayout.LayoutParams lp_lv1 = new
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
        ListIterator<ListView> itr = myListViewList.listIterator();
        while(itr.hasNext()) {
            ListView lv = itr.next();
            TextView myTextView = new TextView(this);
            myTextView.setText(lv.getTag().toString());
            myTextView.setBackgroundColor(bgColor);
            myTextView.setTextColor(bgColorBlack);
            myTextView.setGravity(Gravity.CENTER);
            dialogLayout.addView(myTextView, lp_text);
            LinearLayout llDivider = new LinearLayout(this);
            llDivider.setBackgroundColor(bgColorBlack);
            dialogLayout.addView(llDivider, lp_divider);
            dialogLayout.addView(lv, lp_lv1);
        }

        AlertDialog.Builder dialogBuilder = new
AlertDialog.Builder(this);

        dialogLayoutOuter.addView(dialogLayout);
        dialogBuilder.setView(dialogLayoutOuter);
        activityDialog = dialogBuilder.create();
        return activityDialog;
    }
    return null;
}

-- 

2. Can a live wallpaper detect the layout of shortcuts and widgets?

The subject says it all, is there a way for a live wall paper to
detect the layout or widgets or applications on the homescreen?

-- 

3. SwapBuffers Function

4. Multiple notification with a single icon

5. Hunting asesoris gadget di Ambasador

6. Correct way of using notifications to pass data to my application

7. Digest HttpS connection