how can i launch a application or activity when call is incoming

by Matt Kanninen » Thu, 22 Apr 2010 01:49:41 GMT


Sponsored Links
 These sorts of questions probably belong in android beginners, or
android developers.



>



how can i launch a application or activity when call is incoming

by zhi cheng » Fri, 23 Apr 2010 08:02:04 GMT


 hello everybody.

i want to do something like what's writing in title but i don't know how can
i get it.
i'd google this thread but had not a right answer about it.
if you can teach me about it, i will appreciate you.

best regard!

--


Sponsored Links


Other Threads

1. graphically represent multiple list selections or dynamically change a list item view

Hello. I hope someone can help me here because I haven't found an
answer after extensive googling, forum posts and reading the relevant
parts of the API about 100 times.

I'm trying to create a multiple selection list where the selection is
represented graphically rather than with checkboxes. My list has
checkboxes, but I want them to serve a different purpose. I'm using a
cursor to hold my data and created a custom view binder for the
SimpleCursorAdapter. I did this for the checkboxes and general
flexibility.

So far I haven't even been able to show one line as being selected.
I've enabled multiple selection on the list and denied the children of
the list item focusability. I've tried manually changing background
color with the position fed in through the list item click listener.
But the wrong items get changed and they don't even change to the
right color. I've enabled touch focusability with no improvement
either.

Ideally, I'd like the trackball highlight focus bar to appear in
multiple places. But I don't think this is possible unless you use the
drawable directly. But I don't know  how to find or apply it. My next
idea was to have a slim view bar that changes color. But I had the
same problem with the wrong item being selected so I never finished
trying to guess the index position to see if this would work. My most
recent idea is to completely swap out the view for another one if it's
selected. But I have no idea how to do this either. I'm thinking of
using an array list to store the _id s of the items that need a
different view to get around the wierd selection problem. I'm also
thinking of passing in the ID field as my from and the selection view
as the to for my adapter. Then I'd intercept it with my binder and
change the view accordingly. But once again, I'm not sure how to do
this successfuly.

Any help would be appreciated.
Thank you.

-- 

2. Maintaining Original rowId

I am pulling a subset of information based on a date and time
combination and then selecting from this reduced set. The problem is -
in order to edit the one item I select I need the original rowId but I
get a new rowId based on the reduced set.

        Bundle extras = getIntent().getExtras();
        String create_date = extras.getString("KEY_DATE");
        String create_time = extras.getString("KEY_TIME");
        Cursor fc = null;
        ArrayList<String> results = new ArrayList<String>();
        fc = this.mDbHelper.fetchExisting(c_date,c_time);
        startManagingCursor(fc);
        //
        int i = 0;
                do {
                        i++;
                        String Name = fc.getString(3);
                        results.add(Name);
                } while (fc.moveToNext());
        listView = getListView();
        listView.setItemsCanFocus(false);
        listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
        ArrayAdapter<String> aa=new ArrayAdapter<String>
        (this,android.R.layout.simple_list_item_single_choice, results);
        setListAdapter(aa);

        @Override
        protected void onListItemClick(ListView l, View v, int position, long
id) {
        super.onListItemClick(l, v, position, id);

How do I maintain my original rowId after entering the onListItemClick
method?

-- 

3. Exchange the content of a Tab

4. View is not loading

5. Rotate screen: top activity recreated but not shown

6. Video Playback issue- Please help

7. how to list the "live" background service