Hey guys

I am creating a mobile application in which user will be shown the latest feeds from the website and their corresponding detail page via views api
and views datasource api. I have been able to create json response using data source module.

I am even able to parse the data but at this point i have zero level security and even anonymous users can view my json content by tracking the url.

I want to be able to loginto the website or may be maintain some sessionId and then allow the access to the views through my java code in android.

Is there a possibility to it??

Thanks in advance

Comments

rahulbile’s picture

My Blog on Drupal - Android application may help you
http://www.impossible.co.in/blog/admin/my-first-android-application-talk...

Cheers

robin1988’s picture

Thanks but i see you are using titanium.

I am not using Titanium i am doing core android development in java.

So if you could please just mention the links which i have to hit to get user registered first or may be for maintaining the session for security it would be
much helpfull.

thanks again

rahulbile’s picture

I think tutorials from http://mobile.tutsplus.com/ will help you.

Cheers

robin1988’s picture

Thanks for the link

I have basic knowledge of android and i am able to parse data from the views page which is giving data in json format.
I am calling a url in my java code to fetch data from drupal and i am successfull in that.

But this url can be viewed by any anonymous user also. So he might not tamper with security that is what i want.
Like may be maintaining a session or https or may be logging in the user and then giving that particular user access to view that page.

I am looking for a solutions something like this :-

1. I make the android user login in the background with the specific username and password so that user gets logged in.
and has the permission to view all the views. I guess this will require hitting system.module or may be login.module of which i am not aware

2. Once the user is logged in i can parse the json data. I have got this point working but not the previous one as i have given anonymous user
permission to view all the views

daniil_k’s picture

Hello,

I also develop a RESTful Web Service with drupal and consume it with android.

Now I have decided to implement login staff but I don't know how.
Did you solve your problem? If you did can you share it, please.

I found this link, for me it is a starting point
http://stackoverflow.com/questions/6166121/drupal-android-app-login-pers...

Regards

MAB-1’s picture

I wrote an article with detailed instructions, about how to integrate Drupal with Android.

Login process is described in details.

You can see it here:
Drupal with Android integration: make posts and upload photos.

Best regards.