How to retrieve Wikipedia content into Android App? - android

i want to make an android application, which gets latest updates from wikipedia website and displays it on android home screen using home widget. You can assume it something like weather widget. But, i am unfortunately unable to get updates from wikipedia. I just saw your thread regarding wikipedia, but I am still stuck in my problem.
Can you please send me any sample code, in which something is being brought from wikipedia into my android application. I would be very grateful to you. Please help me, i really need it....
Thanks
Regards,
Wajahat Karim
Android Developer,
Research Assistant (RA),
SMART Machines And Robotics Technology (SMART) Research Lab,
NUST School of Electrical Engineering & Computer Sciences (SEECS),
Islamabad Pakistan
Email: karim_nust#yahoo.com

You can use the API, which lists the most recentchanges on Wikipedia:
http://en.wikipedia.org/w/api.php?action=query&list=recentchanges
Look at the base url for the help page:
http://en.wikipedia.org/w/api.php

Related

How to do a Google Image Search in an android app

I'm developing an Android app that will do a Google Image Search and return the images to the user in a list. I've looked around on StackOverflow and have run into some problems. First off, I'm a total newbie programmer with only 4 months' worth of programming experience, so I appreciate you guys being patient with me.
I looked through Google Image Search API and I know it's being depreciated and will get shut down someday. Because of this, I don't want to use it. After extensive research on the topic, I don't want to use Bing or another image search service, and I don't want to do a "reverse image search. I just want to use a simple image search via string. I've used this app (https://github.com/tonytamsf/Android-Image-Search) to look at the code, but in all honesty, it's just not helping and it's confusing me more on how to exactly search for an image on Google. Plus, the app won't compile in Eclipse :(
I've also looked around at Google Developer APIs, and I'm not sure if I need to turn on an API key for myself? Still, a bit confused about that. I thought I needed to do a custom search engine, but just by looking at that, I don't think it's exactly what I'm looking for.
Can anyone point me to some resources for this? I would really appreciate it. Thank you!
Just a heads up, but what you're asking is pretty challenging and it sounds like you're just getting started. Here's what I can suggest though:
To get that demo code working in eclipse, I had to right-click the project, click properties, click Android, then check the box for the version of android installed. (I had android 19 installed, and the code was expecting 16, so it was giving up. Tell it to use what you have, which probably is 19). This worked for me after using the git plugin in eclipse to import the project. If you are importing a different way, you may have different issues. * Using git and importing the project is a good skill to have, so if that's unfamiliar territory, take the time to look at that.
Ok, that's the end of what I am sure of. The rest is an educated guess, but I'm sure others can correct me.
Next, if tinkering with that project isn't enough, getting real google image search working will take several skills, especially since the old API is gone. In total you'll need to know:
Java
Android programming
google cloud services
google custom search API
REST
some other libraries to glue the custom search to your app
It's a big chunk there. Currently, it seems the only way to use google's image search is to run a google app engine (you basically set up an online account for google to run a server for you. It does computation and sends messages back and forth for you. You only get a little bit for free each day and then if you want more you have to pay. This is one-way Google earns money. It's not something they let you run on your own computer anymore.). Then you make your android app talk to that server using your new login ID, and the server will take the search term and send back the answers to your android app.
You can get the app engine running and use it in chrome without dealing with android to save yourself time, then add the android part later in the future. Good luck!

How to get Yandex Traffic Feed on Android Application

I am very new with Android and i'm trying to get traffic feed from yandex's map service. All i need is getting live feed for Istanbul's general traffic situation as it shown it the map "İstanbul Trafik Durumu 3. derece 12.27 Yer yer yoğun, akıcı trafik".
I don't need to display map or something else. I read the documentation but didn't found something clear for that. Can you give me some advice on it? Or can you recommend another service to accomplish this task?
Seems like i have to answer my own question :s :D
A friend of mine sent an e-mail to Yandex about this issue and reply was:
(Translated from Turkish to English)
Hi!
Thank you for your interest Yandex Map Kit APIs haven't brought to
Turkey (http://api.yandex.ru/mapkit/)
But you can check our GitHub profile for our softwares which may
assist you on iOS and Android development. (
https://github.com/yandexmobile/ )

Screen Locker app which changes the android firmware

I know that there are many screen locker applications that can replace the current android lock-screen. I want to develop my own screen locker application and I want to find out if there are any tutorials on how to write a software that changes the functionality of the android firmware such as the current lock-screen. I have searched through the internet but I haven't managed to find any good tutorials.
Thanks for your time. Any help is really appreciated.
I have found a lot of useful information into the presentation of marakana group. Here is a link to the lecture that consists of two parts. In these lectures basics around android platform development are explained.

Where to get detail description on understanding android

I found lots of books on android which give basic concept on android Example (calling Activity, Intent, service, broadcast receivers etc). But I want to know brief description on all these concept. in os level or in api level how does it work. Also how connection with wifi or 3g works in api level.
I want to know brief understanding on android. Can anyone suggest any tutorial or book to get detail understanding on android.
Thanks
Start with the Android Developer's Guide. http://developer.android.com/guide/index.html
I would recommend to buy a book. For me Professional Android 2 Application Development was really good. But probably now there is better (up to date) alternative.
Anyway I find reading books much easier starter than separate tutorials and articles.
If you want a really detailed view, just look at the source code.

Seek for help about Android Programming

I want to know how to control system resources and services like bluetooth, SMS, phone contacts etc.
Honestly, i want to know how or what to do to control sms usage based on user behavior, block incoming call or change it to auto vibrate mode without user noticed like that.
Actually, I want it for my assignment about context aware access control paper.
I choose Android for implementation but i am afraid i
couldn't submit my paper in time if i study android from the beginning and all by myself.
No offense but I want to avoid errors.
I feel my head becomes swollen whenever "force close error" show as I need it urgent.
As Willytete said developer site is the best one for you
There you can find
Application Fundamentals
Download the Android SDK and start programing
The first program tutorial where you can start Hello World
Notepad Tutorial where it give you a lot of ideas
List of Sample Apps, where there is a lot of codes
Getting the Samples, it explain how to use this.
You will get all the information from developer site that you needed, while move from beginner to an expert

Categories

Resources