When i include or drag and drop) Floating Button in the frame ..Frame itself getting disappered and showing "Compilation error " in the issue panel. Please reply
Hey Andreas, here is how to do it: - Declare a String variable and set it's value to any youtube video id like this: String video_id = "vWq0FLMj0_I"; You can find the youtube video id from the video URL which is located after this (?v=), for example the video URL for this tutorial is (ruclips.net/video/vWq0FLMj0_I/видео.html) and the video id is (vWq0FLMj0_I) - Call setOnClickListener for the floating action button - Inside the onClick method you place the following code: Intent mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + video_id)); Using this intent will allow you to open the video with the youtube app instantly without seeing the chooser dialog box asking you whether you want to open the video through browser or youtube app (Make sure RUclips app is installed) - If you prefer to see the intent chooser dialog and be able to choose the app that you want to open the video, then you can use the following code: Intent mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("www.youtube.com/watch?v=" + video_id)); and don't forget to call startActivity(mIntent); I hope that helps :)
Inside the button onClick method you add the following code: Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse("www.us.com")); startActivity(i);
Once you downloaded the image from google site it will be in a zip folder which you will need to unzip it, then you locate your project inside your computer and open the folder -> Open app folder -> Open src folder -> Open main folder -> Open res folder -> then past those files (drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi) that you found in the downloaded zip.
awesomely explained.. thanks!
Nice tutorial.
nice Video
Thanks for watching :)
When i include or drag and drop) Floating Button in the frame ..Frame itself getting disappered and showing "Compilation error " in the issue panel.
Please reply
Thank You Sir.
You're welcome 😀
Nice video, thanks a lot!
Hey can you make a tutorial how I can get to RUclips with this butten an get the link from an selectet viedeo in ah text fiel. Thx.
Hey Andreas, here is how to do it:
- Declare a String variable and set it's value to any youtube video id like this:
String video_id = "vWq0FLMj0_I";
You can find the youtube video id from the video URL which is located after this (?v=), for example the video URL for this tutorial is (ruclips.net/video/vWq0FLMj0_I/видео.html) and the video id is (vWq0FLMj0_I)
- Call setOnClickListener for the floating action button
- Inside the onClick method you place the following code:
Intent mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + video_id));
Using this intent will allow you to open the video with the youtube app instantly without seeing the chooser dialog box asking you whether you want to open the video through browser or youtube app (Make sure RUclips app is installed)
- If you prefer to see the intent chooser dialog and be able to choose the app that you want to open the video, then you can use the following code:
Intent mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("www.youtube.com/watch?v=" + video_id));
and don't forget to call startActivity(mIntent);
I hope that helps :)
Coding Demos Yes you help me very much thank you for your fast support.😉
And how can I get the link from an choosen video in an fext field?
I'm sorry i don't know how to do that
Coding Demos Ok but no problem
thanks alot bro!!
floating button make in new version android studio please
Can you make ah video how I can make a RUclips mp3 and mp4 concerter with an Butten and a Spinner!
Thanks for the suggestion, i'll add it to the list :D
Okey thx
how can i add link to the floating action button
Hi, by link you mean you want to open another page once the button is clicked?
yes and thanks for the replay
like //www.US.com
Inside the button onClick method you add the following code:
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("www.us.com"));
startActivity(i);
how to add image to drawable..?
Once you downloaded the image from google site it will be in a zip folder which you will need to unzip it, then you locate your project inside your computer and open the folder -> Open app folder -> Open src folder -> Open main folder -> Open res folder -> then past those files (drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi) that you found in the downloaded zip.