[android-developers] Sending data to android dev phone using 3G connection
I have a server application listening on port 5001 on an anroid dev phone. The client application running on my laptop tries to send data to the server application. The client can successfully connect and send data to the server machine when the phone has wifi enabled. The command to do this is - iperf -c But when I enable the 3G connection and try to send data then it fails. iperf -c I cannot even ping the . Is there any port blocking enforced in case of external 3G network connection. Can anyone please tell me how can I send data to the server application on 3G network. Is there any specific port on which the server application should be listening?? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Change Tab Background
Try, TabWidget tw = getTabWidget(); for (int i = 0; i < tw.getChildCount(); i++) { View v = tw.getChildAt(i); v.setBackgroundDrawable(getResources().getDrawable (R.drawable.tabindicator)); } On Jul 28, 10:01 am, Ludwig Heinz wrote: > Hi guys, > > a simple question: how to change the TabBackground in the different > states (not the icon!) ? > > my files: > > tabindicator.xml > > http://schemas.android.com/apk/res/android";> > android:state_selected="false" > android:state_pressed="false" > android:drawable="@drawable/tab_focus"/> > android:state_selected="true" > android:state_pressed="false" > android:drawable="@drawable/tab_focus"/> > android:state_selected="false" > android:state_pressed="false" > android:drawable="@drawable/tab_focus"/> > android:state_selected="true" > android:state_pressed="false" > android:drawable="@drawable/tab_focus"/> > android:drawable="@drawable/tab_press"/> > > > where should i call the xml file above??? > > i tried it in the TabWidget as src, but it doesn't work: > > http://schemas.android.com/apk/res/android"; > android:id="@android:id/tabhost" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > android:id="@android:id/tabs" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:src="@layout/tabindicator"> // look here > > android:id="@android:id/tabcontent" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > > > > > So i tried to use a own theme: > > > > >- @style/tabindicatorstyle > item> > > >
- @layout/tabindicator
> > > > but i don't know, which resource i should use instead of "???"... > > can anyone help me? > > many thanks in advancde! > > king regards! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Custom tabs issue
I could not find a straightforward way to do that, I use reflection APIs to get rid of it. TabWidget tw = getTabWidget(); Field mBottomLeftStrip; Field mBottomRightStrip; try { mBottomLeftStrip = tw.getClass().getDeclaredField ("mBottomLeftStrip"); mBottomRightStrip = tw.getClass().getDeclaredField ("mBottomRightStrip"); if(!mBottomLeftStrip.isAccessible()) { mBottomLeftStrip.setAccessible(true); } if(!mBottomRightStrip.isAccessible()){ mBottomRightStrip.setAccessible(true); } mBottomLeftStrip.set(tw, getResources().getDrawable (R.drawable.transparent_background)); mBottomRightStrip.set(tw, getResources().getDrawable (R.drawable.transparent_background)); } catch (Exception e) { e.printStackTrace(); } --Pushkar On Jul 28, 11:32 am, Dandroid wrote: > I've set the background image of my tabs using: > > tabs.getTabWidget().getChildAt(index).setBackgroundResource(resource) > > and then modified the dimensions of the tabs using: > > tabs.getTabWidget().getChildAt(index).getLayoutParams().height = > height; > tabs.getTabWidget().getChildAt(index).getLayoutParams().width = width; > > This worked out great, but there is a line (like a border) under (all) > thetabbuttons that I cannot make invisible. > Is there any theme that can be applied in order to make it go away? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---