v0.9 beta - SystemClock.setCurrentTimeMillis() failed

by samlu » Fri, 22 Aug 2008 21:07:19 GMT


Sponsored Links
 I am using v0.9 beta SDK, got the following warning when I call
SystemClock.setCurrentTimeMillis()

WARN/SystemClock(516): Unable to open alarm driver: Permission denied

Does anyone know which permission should be specified?
--~--~---------~--~----~------------~-------~--~----~



v0.9 beta - SystemClock.setCurrentTimeMillis() failed

by Megha Joshi » Tue, 26 Aug 2008 01:39:44 GMT


 User apps cannot set the time. Only the system processes can. This is for
security, but also because it won't have much effect--the time is reset from
the radio via network time.

2008/8/22 samlu <[EMAIL PROTECTED]>


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


Sponsored Links


Other Threads

1. Imageview and ArrayAdapter

Hello,

I'm having the following problem.
I'm trying to populate a ListView with the following:
                twText = (ListView) findViewById(R.id.list_items);
                ArrayAdapter<String> twText_list = new
ArrayAdapter<String>(this, R.layout.list_item, R.id.row_text2,
tw_text);
                twText.setAdapter(twText_list);

and the list_item.xml is this one:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <TextView android:id="@+id/row_text2"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        />
</LinearLayout>


That works perfectly, but once I add an ImageView it crashes:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <imageView android:id="@+id/profile_image_url"
        android:maxWidth="50px"
        android:maxHeight="20px"
         />
    <TextView android:id="@+id/row_text2"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        />
</LinearLayout>


What I don't understand is that if I replace the ImageView with just another
TextView it works.

Any ideas? With an example preferably.. I'm really new on this.
Thanks in advance

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

2. Lock phone to control access

Hi all,

I need to develop an application that allows parents to do following
in android phone

1. Allows parents to  "lock down" mobile phones
2. Enabling and disabling mobile internet access
3. Restricting calls to certain phone numbers
4. Banning calls to premium rate numbers

So my question here is,  Are above features possible to build in
android application?

Any reply is appreciated.

Thanks

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

3. Dev Phone: Copying restricted files form device to PC

4. my rotated bitmaps "unrotate" immediately after invoking setCenter() method

5. what is the meaning of 'cross compiling'

6. Will the G1 version of android ever see any more updates from Google?

7. Code generator for SQLite interface?