[android-developers] someone please help me with these issues.

2010-05-11 Thread aishwarya shukla
1. I am using a Broadcast Receiver which acquires a static WakeLock,
then immediately starts an activity which starts a media player
instance inside its onCreate, at the last line of OnCreate i have
released the static wakelock which i had acquired in the
BroadCastReceiver. Everything seems to work fine, except for the fact
that the screen does wakeup but is locked and has to be manually
unlocked before the user can see my activity, though the media player
starts playing normally before itself. I have set
lockStatic=mgr.newWakeLock(PowerManager.FULL_WAKE_LOCK|
PowerManager.ACQUIRE_CAUSES_WAKEUP, LOCK_NAME_STATIC);
still the screen has to be manually unlocked before the user can see
the activity.
Any workaround?

2. I have used an EditText inside a tablelayout, tablerow and have set
the android:height and width to wrap_content, but still when i type on
the softkeypad it exceeds the bounds of the EditText Box and overflows
the screen too. have tried various properties on the EditText but none
of them seems to work.

3. I have an Activity a ListView Activity which populates the List
from a db. When the user clicks on an item in a list, i take him to a
new Activity from where he can also delete the item he selected. The
problem is that the Parent Activity's ListView is not refreshed and
continues showing redundant content, when i have finished the child
activity. I have tried making the cursor as static and calling
cursor.requery() from my child activity before i finish it, but it
doesnt seem to fix the issue.

4. I have used an Activity say activityA which sets up alarm using
AlarmManager.set to a Receiver say RecA.  If i want to cancel this
alarm later from an Activity say ActivityB how do i do so?

Somone please respond to the above issues soon. I have been trying a
few workaounds since past few days, but am not able to fix these
issues.

Thanks in advance. :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] someone please help me with these issues.

2010-05-11 Thread Satya Komatineni
Aishwarya,
You may want to break up the issues individually and post them.

Optionally, you may also want to post sample code for each issue on
some blog and put a pointer to it for someone to take a look at the
code quickly.



On Tue, May 11, 2010 at 5:43 AM, aishwarya shukla
aishwaryashukl...@gmail.com wrote:
 1. I am using a Broadcast Receiver which acquires a static WakeLock,
 then immediately starts an activity which starts a media player
 instance inside its onCreate, at the last line of OnCreate i have
 released the static wakelock which i had acquired in the
 BroadCastReceiver. Everything seems to work fine, except for the fact
 that the screen does wakeup but is locked and has to be manually
 unlocked before the user can see my activity, though the media player
 starts playing normally before itself. I have set
 lockStatic=mgr.newWakeLock(PowerManager.FULL_WAKE_LOCK|
 PowerManager.ACQUIRE_CAUSES_WAKEUP, LOCK_NAME_STATIC);
 still the screen has to be manually unlocked before the user can see
 the activity.
 Any workaround?

 2. I have used an EditText inside a tablelayout, tablerow and have set
 the android:height and width to wrap_content, but still when i type on
 the softkeypad it exceeds the bounds of the EditText Box and overflows
 the screen too. have tried various properties on the EditText but none
 of them seems to work.

 3. I have an Activity a ListView Activity which populates the List
 from a db. When the user clicks on an item in a list, i take him to a
 new Activity from where he can also delete the item he selected. The
 problem is that the Parent Activity's ListView is not refreshed and
 continues showing redundant content, when i have finished the child
 activity. I have tried making the cursor as static and calling
 cursor.requery() from my child activity before i finish it, but it
 doesnt seem to fix the issue.

 4. I have used an Activity say activityA which sets up alarm using
 AlarmManager.set to a Receiver say RecA.  If i want to cancel this
 alarm later from an Activity say ActivityB how do i do so?

 Somone please respond to the above issues soon. I have been trying a
 few workaounds since past few days, but am not able to fix these
 issues.

 Thanks in advance. :)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en