while switching between android phone modes the video runs from the beginning
In my application while playing a video if i change the phone's mode the video does not continue to play but it starts from the beg开发者_C百科inning. all i understand is the activity is recreated when the mode is changed,how do i fix this i have no idea please someone help me fix this. thanks in advance
Follow these links:
http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html
http://davidwparker.com/2011/08/30/android-how-to-float-a-row-above-keyboard/
Add the following thing in EditText and remove android:windowSoftInputMode="stateHidden|adjustResize" from manifest file
<EditText android:id="@+id/edtInput"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
android:maxLines="4"
android:maxLength="2000"/>
for more detail follow this link
http://developer.android.com/resources/articles/on-screen-inputs.html
精彩评论