Thank you it great, but is it possible to make the app log in by the mac?So you want to use whatever is typed in the username field for both the username and password?
It is possible... You need to edit the activitly_login.xml to hide the password field ... I tried just using android:visibility="gone" but it didn't work for me
Try changing the password section to this (basically just shrinks everything down so it can't be seen if it doesn't hide - it worked for me)
PHP:<FrameLayout android:id="@id/layout_password_holder" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"> <EditText android:visibility="gone" android:textColor="@color/cardview_dark_background" android:id="@id/ed_password" android:background="@drawable/xciptv_ed" android:paddingLeft="0.1dip" android:nextFocusLeft="@id/btn_login" android:nextFocusRight="@id/btn_login" android:nextFocusDown="@id/btn_login" android:layout_width="fill_parent" android:layout_height="0.1dip" android:hint="@string/xc_password" android:ems="10" android:password="true" android:inputType="textNoSuggestions|textPassword" android:nextFocusForward="@id/btn_login" /> <ImageView android:visibility="gone" android:id="@id/imageView20" android:background="@drawable/password_icon" android:focusable="false" android:layout_width="0.1dip" android:layout_height="0.1dip" android:layout_marginLeft="0.1dip" android:layout_marginTop="0.1dip" /> </FrameLayout>
Then you need to edit the LoginActivity.smali file and edit the following:
No quote