Custom HomeScreen - Please help

by rams » Thu, 22 Jul 2010 12:05:59 GMT


Sponsored Links
 Hello All,

I am developing a Custom HomeScreen
as in the image attached:

It has 3 screens. Screen 1 and Screen 2
has an overlap. Screen 2 and Screen 3 has
an overlap widget.

I created a horizontal scrollview with
3 linearlayouts (vertical) of size 320x480dip
and put 1 button on each layout.

<HorizontalScrollView>
 <LinearLayout>
 </LinearLayout>
 <LinearLayout>
 </LinearLayout>
 <LinearLayout>
 </LinearLayout>
</HorizontalScrollView>

On click of the button, I try to scroll the screen but
scroll is not working. I used the following code:

scrollview.setSmoothScrollingEnabled(true);
scrollview.scrollTo(320, scrollview.getTop());


Could anyone please help me in fixing this?

Thanks,
Ram

--



Other Threads

1. about the mms sending

Hi ,I used pppd_gprs to start the pppd for GPRS ,and the board can
access  Internet through ppp0.
but it can not send a mms.

the logcat :
D/ConnectivityService( 121): startUsingNetworkFeature for net 0:
enableMMS
D/ConnectivityService( 121): special network already active
E/SendTransaction( 261): java.lang.NullPointerException
E/SendTransaction( 261): at
com.google.android.mms.pdu.EncodedStringValue.<ini
t>(EncodedStringValue.java:76)
E/SendTransaction( 261): at
com.android.mms.transaction.SendTransaction.run(Se ndTransaction.java:
111)
E/SendTransaction( 261): at java.lang.Thread.run(Thread.java:1096)
E/SendTransaction( 261): Delivery failed.

I followed the codes by Eclipse, and found that the lineNumber in
packages/apps/Mms/src/com/android/mms/transaction/SendTransaction.java
is null ,so I gave it a value(my phone number ,I don't whether it was
correct  ) for test. but another problem come up :
 801 D/MobileDataStateTracker(  722): Requested host route to ac00000a
for mms(null)
802 E/SendTransaction(  912): java.io.IOException: Cannot establish
route to proxy -1409286134
803 E/SendTransaction(  912):   at
com.android.mms.transaction.Transaction.ensureRouteToHost(Transaction.java:
213)
804 E/SendTransaction(  912):   at
com.android.mms.transaction.Transaction.sendPdu(Transaction.java:164)
805 E/SendTransaction(  912):   at
com.android.mms.transaction.Transaction.sendPdu(Transaction.java:149)
806 E/SendTransaction(  912):   at
com.android.mms.transaction.SendTransaction.run(SendTransaction.java:
121)
807 E/SendTransaction(  912):   at java.lang.Thread.run(Thread.java:
1096)

 And I found that this is because : mInterfaceName in frameworks/base/
core/java/android/net/MobileDataStateTracker.java is null(should be
ppp0),I modified it manully for test ,but ,it still cannot send mms:

[CODE]772 D/ConnectivityService(  745): ConnectivityService
FeatureUser expire(0, enableMMS, android.os.binderpr...@43d2bba0),
crea    ted 60003 mSec ago
773 D/ConnectivityService(  745): stopUsingNetworkFeature for net 0:
enableMMS
774 D/ConnectivityService(  745): ignoring stopUsingNetworkFeature as
dup is found
[/CODE]

so could you tell me how to solve this problem?

Thanks
_weber

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Does your android phone support j2me?

Hi All,
          I can test a J2ME application on HTC Hero device but I can't do
this on Sony Xperia phone.
          Can we list here android phones on which we can run J2ME app?

Warm Regards,
Sudeep

-- 

3. Overlay images onto Camera preview SurfaceView

4. Copy protected apps

5. Error when make Android Froyo Source code

6. Porting an existing Linux device driver to the Android platform

7. Best way to scale for different screen resolutions/dimensions?