Android developer Challenge 2

by april » Fri, 24 Oct 2008 00:09:06 GMT


Sponsored Links
 When the ADC 2 will be launched? does anyone have any idea? I can buy
a phone, but I really don't want to sign contract with TMobile? will
Google give any promotion for ADC2 developer?

Thanks!

April
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Increasing the memory heap to more than 16 Mb

Hello All,

Why is the reason for limiting the memory heap to 16 MB. Is it possible to
change the limitation of memory heap of application from 16M to 32 M. What
would be the repercussion of increasing the Heap size. The requirement here
is decoding of high resolution images which fails because of shortage of
memory . How can this be done .

-- 
with regards vishal

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

2. Android 1.5 - crash during drawing of multiline TextView

I have a problem with Android 1.5 (problem that didn't appear in 1.1
and earlier):

This TextView is in RelativeLayout:
<TextView android:id="@+id/list_item_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Some Text"
                android:textColor="@color/black"
                android:layout_toRightOf="@id/list_item_marker"
                android:layout_marginLeft="8dip"
                android:layout_marginTop="5dip"
                android:textSize="@dimen/ts_item_top"
                android:paddingRight="70dip"
        />

Layout is filled and used inside ListView programmatically.

Whenever I have text that should be wrapped to multiple lines, this
exception raises:
05-06 14:44:19.465: ERROR/ActivityThread(1009): Failed to find
provider info for com.google.settings
05-06 14:44:22.330: ERROR/AndroidRuntime(1009): Uncaught handler:
thread main exiting due to uncaught exception
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):
java.lang.StackOverflowError
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.TextView.onDraw(TextView.java:3921)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5838)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.ListView.dispatchDraw(ListView.java:2820)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5944)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.AbsListView.draw(AbsListView.java:2121)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5944)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5841)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5841)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5841)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.View.draw(View.java:5841)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.widget.FrameLayout.draw(FrameLayout.java:352)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1847)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewRoot.draw(ViewRoot.java:1217)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.os.Handler.dispatchMessage(Handler.java:99)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.os.Looper.loop(Looper.java:123)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
java.lang.reflect.Method.invoke(Method.java:521)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
05-06 14:44:22.360: ERROR/AndroidRuntime(1009):     at
dalvik.system.NativeStart.main(Native Method)

Interesting is, that if I use same kind of list items within dialog,
it doesn't crash and wraps longer text to multiple lines without
problems.

Displaying same list in landscape mode is OK as well => problem is
really in wrapping.

Has anyone solved/found similar problem?

Thanks for any advice!
--~--~---------~--~----~------------~-------~--~----~

3. RIL implementation

4. App-independent Storage of Shared Resources/Media

5. ListAdapter issue related to ListView selection

6. Starting the Porting of Android to ARM 7 processor

7. Anyone else suffered cupcake touch failure.