android
Streaming Webcam in android using yawcam
i had creating an android apps. using yawcam that installed on my pc as server to browse webcam feed in my android apps. but, what i got is, video in actually like in browser, got more white unuse space this is my code: public class ViewVideo extends Activity{ #SuppressLint("NewApi") #Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //String ipAddress = getIntent().getStringExtra("ipAddress"); // String portNumber= getIntent().getStringExtra("portNumber"); SharedPreferences app_preferences1 = PreferenceManager.getDefaultSharedPreferences(this); String ip = app_preferences1.getString("ip", "null"); SharedPreferences app_preferences2 = PreferenceManager.getDefaultSharedPreferences(this); String port = app_preferences2.getString("port", "null"); WebView engine = (WebView) findViewById(R.id.web_engine); engine.setInitialScale(1); engine.getSettings().setLoadWithOverviewMode(true); engine.getSettings().setUseWideViewPort(true); engine.getSettings().setJavaScriptEnabled(true); engine.loadUrl("http://"+ip+":"+port); Button btnBack = (Button) findViewById(R.id.btnBack); //Listening to button event btnBack.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { Intent myIntent = new Intent(ViewVideo.this,CameraActivity.class); startActivity(myIntent); } }); what i want to do, is want to view the webcam stream in fullscreen mode without got white space, i know it is because i am using webview() method. is there any possible way to view yawcam feed without use webview? i am so sorry if got any weakness in my question. thanks in advance
Related Links
Mopub SDK : fetch creative name and details
Nothing happens when calling Google Endpoint from Android App with credential
ios/android camera capture then send image to dynamically changing webpage
Android Gradle app:connectedCheck runs tests from dependencies
Looks like no data entering rows
How to share assets/resources/images between android projects
Android avoid creating new objects
Could not find any version that matches org.robolectric:robolectric:2.3.+
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class fragment [duplicate]
How to transform these shapes from xml to java code?
Android Proguard errors on compile
TextView and Button in ListView - OnClick works, OnItemClick does not work
Finishing activity as soon as back button is pressed
PagerAdapter notifyDataSetChanged() not updating fragment
Deep-linking intent does not work
My Android Studio is can not normal edit and no hint when i write code [closed]