I want to make an photo gallery app, so I want something like I upload pics to a webpage and it automatically gets displayed in that app.
I don't want to edit the coding for every single image and yess I don't want "WebView" all I want is a pure native android app, that gets data (images/audios/videos) from a webpage and display it in my native android app activity.
What you need to use is a grid view, you pass an array with the links to download the image and place them in each row.
Here is an [example] (http://www.tutorialspoint.com/android/android_grid_view.htm) of how to use it.
Hope it helps
Related
I am creating a browser app for android and I want know is there any code that helps to enable adding bookmarks in android webview.
This is something you will have to add yourself, a WebView literally just displays html content. It doesn't come with all features like for example Chrome.
To add/save bookmarks you would need to implement a UI for showing the bookmarking button, for entering the URL, for showing a list of previously bookmarked pages etc. Once you have all that you can then get the WebViews current URL by:
webView.getUrl();
and save that to your database.
Then you have the work of displaying a list of saved bookmarks and allowing the users to click them and have the WebView navigate to them.
Here is an example I found (by a simple Google) to help you get started which shows adding a simple bookmarking feature on an WebView: https://www.journaldev.com/15729/android-webview-bookmarks
I'll create a YouTube channel and planning to do an app for my channel. The thing is on my mind, when I upload a new video, I'll put the new video's link in a text on my server, then the app will read the new video is uploaded and fetch link (when the app launched) and will add new videoview to top of old ones.
Like official YouTube app. You know, when a new video uploaded, it comes out automatically.
Thanks for your future helps.
I would start with a custom RecyclerView and follow this guide on how to embed YouTube videos in an android app. If you plan on caching the old YouTube URLs you can ping the database every time they open the app and grab all the new URLs that have been added to your database since the latest cached URL.
How are you going to get the text from server?Are you using POST method or JSON?
In any case once you get the link it's easy.You just have to implement a custom ListView.
Here is link to a article that I found that shows how to do it.
https://medium.com/#v.danylo/implementing-video-playback-in-a-scrolled-list-listview-recyclerview-d04bc2148429#.grvqarw83
Here is another article which shows how to integrate youtube with your app.
https://androidtutorialmagic.wordpress.com/my-mini-project/multiple-youtube-video-in-recyclerviewlistview-in-android/
Also another question like the one you asked.
I want to display multiple video in listview using video but not able to do this
Okay so I searched a lot but couldn't find any solution for my problem.
I am trying to develop an android application which will have some background running service. Suppose I opened Gallery and I am seeing some photo and I want my service to store that image's Uri. The problem is how to get image Uri which is being displayed on the screen. Also I want to extend it to Gallery Grid View where I can select multiple photos and ask my service to store their Uris.
I tried using reflection to get object of ViewImage.java class and invoke getCurrentUri() method. But I am getting ClassNotFoundException.
I am looking for a solution even if it requires my app to be system app, rooted device or using reflection to access android gallery code.
I want to get the Uris for Currently played videos or currently selected videos and music files along with documents like pdf, word.
The problem is how to get image Uri which is being displayed on the screen.
Fortunately, this is not possible, for blindingly obvious privacy and security reasons. The interaction between the image-viewing app and the user is between the app and the user; others cannot spy on that information, barring security flaws in the app.
I want to get the Uris for Currently played videos or currently selected videos and music files along with documents like pdf, word.
Fortunately, that too is not possible, barring security flaws.
I tried using reflection to get object of ViewImage.java class and invoke getCurrentUri() method. But I am getting ClassNotFoundException.
Other apps are running in other processes; you cannot use reflection to access them.
I am looking for a solution even if it requires my app to be system app, rooted device or using reflection to access android gallery code.
A custom ROM could probably spy on the communications enough to achieve your ends.
I'm using SwiperefreshLayout to refresh the data in my app. And to loadmore the data I have used this library, but this library uses ProgressBar to show the process of loading data which I don't want. How to display the proccess loading the data such as SwiperefreshLayout, but is from the bottom up when I pull from the bottom up? I think can use animation to make loading button. I tried Google but could not found a way to be able to do like SwiperefreshLayout. Is there any suggestion for me? Thanks for help.
I have found a lot of examples like this:
how to Capture screen in android and covert it to image
I need to capture an screenshot of screen activity, but I'm developing an external library, so I can't get current activity of the application to get the View and then flush the bitmap into canvas. Is there another way to capture a screenshot?
If you are trying to save the image from Snapchat, you need to save the Bitmap in another way.
With a rooted phone you can access the apps storage and copy the image while the app shows it.
That way the app wont notice you took a "Screenshot" :)