How to get info from a website without it opening - java

I'm am decently new at programming and I was wondering how I would go about getting info from youtube in regards to my channel. I was wondering if it is possible to check if anyone commented on a video and how many subscriptions my page has within the application. Now, I have a general idea of how I would go about doing this but I was wondering if I could grab all of this info without youtube actually opening in my browser.
Thanks!
Edit- this is entirely for fun and to increase my programming skills with Java. I know youtube analytics would be a million times better for this, but bear with me here.

You have this website with tutorials and examples. https://developers.google.com/youtube/code_samples?hl=pt-PT" target_"blank"

You should learn YouTube analytics. YouTube Analytics lets you monitor the performance of your channel and videos with up-to-date metrics and reports. There's a ton of data available in different reports (e.g. Views, Traffic sources, Demographics). Here you can learn more: https://support.google.com/youtube/answer/1714323

Related

How to implement push notifications if a website doesn't natively support them?

There is a very simple website I would like to make an app for. Unfortunately it doesn't have any official API. However, it does have an option to export certain data in json. For instance, messages.
If I wanted to push new messages to a user, what would be best practice on android?
Do I just have to do a background refresh of the message page, using retrofit, every 5 minutes or so? Intuitively this seems like it would waste a lot of battery, but I can't think of a better way to implement such a feature.
Thanks in advance.
This is probably not the best answer, but have you tried the Firebase push notifications?
Give it a try, really good solution to implement push notifications up and downstream, to multiple devices or single device and supporting multiple protocols too, here you have some links:
https://firebase.google.com/docs/notifications/
https://firebase.google.com/docs/notifications/android/console-device
Send me PM if you need some help to start, but i think the documentation is really good on the website.

Java lan video chatting

I want to build a project of video chatting + messaging by java without internet connection through *lan*. But i can't get any idea about what to do and how to do? I am beginner in java GUI. So I want to know the topics that i have to learn and from where?
well, you will need to look up data streaming, showing video stream on panel and socket and protocol manipulation in the java docs and other online guides. those are the foundation you will need for the project. as for the GUI, it is not hard.. there are many tutorials out there.
if you face a problem we will help, but we will NOT do it for you... start something first.
examples:
GUI
Network basics
Video streaming
do your research... that is the way to learn
also, research steps of making (analyzing) a project

How to make H.264 file fast-forwardable in Android application?

I am an intern at company and my 'learning task' is to make Android application in Java, which takes H.264 format videos (at first they will be stored at SD card) and make like a very simple player, which would have the following features:
1.You can pause/play/fast-forward/fast-backward video
2.When you are at certain point of video and it is stopped, you can switch to the same time in a different video (same picture frame index i guess).
How could i do that? Is using Gstreamer a good way? I looked at the poor tutorial available on net and because of my lack of experience in video processing (I've never worked with video in Android applications) I have quite a hard time understanding what is pipelines, also the JNI and even setting up Gstreamer for Eclipse. Is there a better way of doing this? What should I get to know before starting to mess with this program?
Thanks, in advance!
All of your mentioned features are possible in Gstreamer, however, there is a learning curve.
To understand the GStreamer android tutorials, you must first go through the basic tutorials here: http://docs.gstreamer.com/display/GstSDK/Basic+tutorials
If you feel comfortable with the pipeline architecture, then go ahead and set up your android environment (which is no easy task by itself). Gstreamer is a very very powerful framework where you can do almost anything, if you're willing to make the effort to overcome the learning curve.
So i suggest to go ahead in gstreamer only if you have the time and patience, else go for a simpler solution. Unfortunately i'm not familiar with android, so i cannot suggest any. maybe a quick google search will help.

Android development pulling data from a website and formatting into an app

Hello I am new to android programming, I haven't started writing the code for my app idea yet but I am in planning and learning the Android OS. I was wondering if there is a way that I could pull data from a site such as a wiki from wikia.com and format it in an android app and how would I go about doing this?
I want to pull data such as the information under the different sections, for example take a band history such as The Beatles, I want to pull the History section, Discography, stuff like that and format it to look good in my app. Is there a way to do this? Thank you in advance.
You have a few options.
APIs
Scraping/reformatting the site
If a website has an API you can simply use that to query the website and get the data you need. If not you'll be forced to download the html and scrape out the relevant information.
Scraping is considered a legal gray and most websites don't appreciate it, especially if you plan on redistributing the content of the site.

RFID + Android --> where do I start?

I've heard that the Google Nexus S has RFID capabilities. I'd like to start learning about RFID and programmatically doing things. Where should I start? Good tutorials or code examples are what I'm after. (or hardware if it's not Android I suppose).
Doesn't have to be Android, could be python or java libraries as well. Preference for Android.
I see this as the future, and I want to get in on it :)
Buy a Nexus-S, buy some tags.
Then take a look at the code of the 'Tags' application that comes with android. Play with it, modify it. Write some tags with your own application.
Learn what Ndef is and how you craft your own messages/records. Learn how to use the transceive function to do direct communication to the tags. This will open up a world on it's own (aka you can write-protect tags that are not write protectable by Android itself etc).
All in all that can be done in two weeks. The Android NFC/RFID subsystem is easy to use. Most of the the hard stuff is hidden from you.
Afterwards write your own little application, show it to advertising agencies that do Android apps and get a high payed job. NFC experience is highly sought after at the moment.

Categories