S10 Plus Updates
- Smartphones
- 2 Replies
Will the S10 plus get the following
1.live focus front facing night mode
2. Live focus on video
1.live focus front facing night mode
2. Live focus on video
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { //On creation of the activity this code runs
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main);
editText.isFocusable = false
editText.isFocusableInTouchMode = false
editText2.isFocusable = false
editText2.isFocusableInTouchMode = false
}
private var isTouch = false
@SuppressLint("SetTextI18n")
override fun onTouchEvent(event: MotionEvent): Boolean {
val X = event.x.toInt()
val Y = event.y.toInt()
val eventaction = event.action
editText.setText("X: $X")
editText2.setText("Y: $Y")
return true
}
fun button (view: View) {
Toast.makeText(this, "AutoClicked", Toast.LENGTH_SHORT).show()
}
fun auto (view: View) {
// Obtain MotionEvent object
val downTime = SystemClock.uptimeMillis()
val eventTime = SystemClock.uptimeMillis() + 100
val x = 300.0f
val y = 300.0f
// List of meta states found here: developer.android.com/reference/android/view/KeyEvent.html#getMetaState()
val metaState = 0
val motionEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, metaState)
val motionEvent2 = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, metaState)
// Dispatch touch event to view
view.dispatchTouchEvent(motionEvent)
view.dispatchTouchEvent(motionEvent2)
}
}