I develop library to simplify integration with social networks ASNE. Just add dependency and you will integrate SDK. I don't need to understand "How it works?" for every social network, download SDK or use some libraries for OAuth and make http calls by yourself. ASNE should makes your life easier. But now I need help from Android developers community, maybe some improvements or at least tests?
GitHub repo - http://github.com/gorbin/ASNE
or you can try demo from Google Play, search ASNE
Short description:
If you want to integrate your application with multiple social networks just choose ASNE modules and add them to your project. You just need to: add module, build SocialNetworkManager and configure your AndroidManiferst. ASNE contains common interface for most popular social networks, but you can easily make module for another.
ASNE contains modules for social networks:
Twitter
LinkedIn
Facebook
Google Plus
Vkontakte
Odnoklassniki
ASNE got almost all necessary requests to social networks
Login
Configure necessary permissions
Get Access Token
Get current person social profile
Get social profile of user by id
Get social profile for array of users
Get detailed user profile
Share message
Share photo
Share link
Request Share dialog with message/photo/link
Check is user(by id) is friend of current
Get list of Friends
Adding friends by id
Remove friend from friend list
Any request to chosen social network - you got SDK
I hope it would be useful. At least I use it in 2 commercial project - all works fine!
Tnx for your reply...
Sounds good, trying
---------- Post added at 05:36 AM ---------- Previous post was at 05:27 AM ----------
Don't know why, but your app is showing 0 friends. Am I missing something?
login was successful, retrieving profile was successful but why 0 friends everywhere?
And when logging in second time some hash key error was toasted.
login was successful, retrieving profile was successful but why 0 friends everywhere?
Click to expand...
Click to collapse
I think is normal. When you log in to an app, you can see only friends who use that app. This happend from 30 april
Sorry for a late reply was away. But now ready for questions
By the way while I was away I add Instagram support - now you can easily add asne-instagram from maven central and use in application
More of it wrote simple tutorial article about how to integrate social networks via asne on codeproject and github sample
and of course resolve some bugs in google play app
feel free to ask about anything or write me via email - [email protected]
DaGr81 said:
login was successful, retrieving profile was successful but why 0 friends everywhere?
Click to expand...
Click to collapse
Facebook got this limitations - me/freinds send back only friends in app
but in other networks should show all your friends - if not can you write some more information
Abhishek verma said:
And when logging in second time some hash key error was toasted.
Click to expand...
Click to collapse
I resolve it last updates can you check project in github - I don't get toasts anymore
Add javadoc for ASNE: http://gorbin.github.io/ASNE/
now it is easy to use ASNE: https://github.com/gorbin/ASNE
Related
Hey guys
I'm an entrepreneur from Brisbane, Australia. I'm looking into introducing a new product and am wondering if you guys would be able to help me clarify a few questions. I have to add I have no idea what so ever about programming languages or whats possible or not. I just going to post my vision of the application I will need and hope some of you guys can tell me what of that will be possible, what not and how much effort / money it would take to realise.
Firstly of all and most importantly I need the the Phone application to work with several other systems which would be at the moment : - Iphone, Windows Mobile, Blackberry Android, a Website interface, Windows Vista / 7 and Mac OS. I need this to work in two ways. One for the user to sync their data on different apps and secondly for the admin to receive and send data from the main system (that would be working on Windows or Mac)
On first interface the user would have to log in with a username and password, high security would be welcome, after the log in the general interface should be offering the user a booking request form with the ability to use a saved lists of items which have been previously use / prepared but also a interface for add one or editing
It also should offer a open bookings lists and the ability to edit this lists. This should also be able to be synced to the other systems. A third interface showing a history and updates should be also available.
If possible it should offer different accounts and groups where admins can edit the bookings of other users. If this is possible it also should offer a control for the admins which shows bookings and history of other group users.
I would like this obviously to be a professional looking app which offers a good service and is secure and bug free. If anyone has an idea if this is realisable or what parts of it would be difficult or have to be changed please do me the favour and comment.
Thank you for your help in advance.
JPM
Hello,
If you're looking for developers for your project, please contact [email protected]
Example of similar (ok, a bit different but technical approach is the same) web app and mobile clients for several smartphone platforms is in my signature.
Hey folks, I'm new to Android development and the last piece of real code I touched was over 10 years ago.
I went thru the google documentation on the settings content provider, but it seems only some of the settings are exposed. I'm struggling to find a way to get access to the Call Settings, in particular I want to get the list of SIP accounts from Settings/Call Settings/Internet Call Settings/Accounts.
I'm hoping to monitor the registration status of these accounts from my app.
Any help would be appreciated.
If its not in the documentation then it would probably have to be accessed through a content Uri. The exact path for that Uri, however, is not known to me.
Actually a uri might just be able to link straight to that page in the settings. Im not sure if it could manage the accounts directly. Might want to see if there is a database associated with them
From something awesome
Dude, all content providers are accessible by URI. And if you don't have any solid information to contribute, why post at all?
stangri said:
Dude, all content providers are accessible by URI. And if you don't have any solid information to contribute, why post at all?
Click to expand...
Click to collapse
alright, durr.
i did look through settings.db and other account and call databases and found one reference to sip. it was in settings.db and it was sip_call_options of which the value was SIP_ASK_ME_EACH_TIME
also in looking at the SIP docs and the SipManager and SipProfile classes they look to be made for creating sip apps that do not use anything from the Internet call Settings. There is also a good SIP demo app here http://developer.android.com/resources/samples/SipDemo/index.html but again it is a stand alone sip client that gathers the sip account info at runtime.
i dont have the answer you are looking for, just trying to help. i still think the most likely spot to gather this info will be from a database somewhere on the phone. just like how there is no api for accessing gmail but it can be reached by querying the local gmail database directly.
Hi,
I'm going to write a system for processing taxi orders. It consits of client application, driver application and restfull web service. For now I have only a few POST resources in my server that consumes JSON file and produces plain text. I'm wondering how to resolve the situation when the client need confirmation about the order he made or when the new order is made and has to be delivered to taxi driver app. I am a beginner android developer and I do not know which tools should I consider to achieve it. Is it good idea to use a service that checks let say every 30sec for new order/confirmation or shuld I use another solution for example let REST to connect directly to the particular android device?
Thank you in andvance for your response.
You can use push notifications by using Google Cloud Messaging.
EmptinessFiller said:
You can use push notifications by using Google Cloud Messaging.
Click to expand...
Click to collapse
Thanks for the idea. I didn't know about it before. I have just one question - since I use RESTful service the easiest way to implement GCM is to choose http protocol (single POST request) but there is no upstream feature in it. Is it good approach to use GCM in "server -> android" connection and regular POST request (that I used till now) vice versa?
Hi,
I am wondering what possible ways would be for loading a simple website into my app. My first thought is using a WebView, but I would like a dynamic app, while webview takes some time when loading between pages and links.
Is a common solution to load the html resources locally, from let say the assets folder? Than I could use AsyncTask to keep the files up to date and whenever the app starts it would load and work much quickly.
Or should I use HTTP Requests and parse the external Html document?
What would be the most situable solution for this kind of app?
Thanks,
Ved
vedtam said:
Hi,
I am wondering what possible ways would be for loading a simple website into my app. My first thought is using a WebView, but I would like a dynamic app, while webview takes some time when loading between pages and links.
Is a common solution to load the html resources locally, from let say the assets folder? Than I could use AsyncTask to keep the files up to date and whenever the app starts it would load and work much quickly.
Or should I use HTTP Requests and parse the external Html document?
What would be the most situable solution for this kind of app?
Thanks,
Ved
Click to expand...
Click to collapse
I think it's probably a decision best made by yourself. You have not said what type of data ? Cause really you should be wanting the minimal amount required. My app uses lots of data from my server for things like themes, but these come direct from SQL Database
deanwray said:
I think it's probably a decision best made by yourself. You have not said what type of data ? Cause really you should be wanting the minimal amount required. My app uses lots of data from my server for things like themes, but these come direct from SQL Database
Click to expand...
Click to collapse
Hi deanwray,
Thanks for your reply. I made some more researching and I have realised that my best bet is SQL, as you said.
Do you request data in your app directly from the online mySql database generally? I have read about a technique on downloading the data from the online database and converting it to SQLite (which is the local database on android) inside the application. This would be really cool, would really boost performance.
ved.
vedtam said:
Hi deanwray,
Thanks for your reply. I made some more researching and I have realised that my best bet is SQL, as you said.
Do you request data in your app directly from the online mySql database generally? I have read about a technique on downloading the data from the online database and converting it to SQLite (which is the local database on android) inside the application. This would be really cool, would really boost performance.
ved.
Click to expand...
Click to collapse
well my app uses a hosted database for
Online Theme Data (thumbnails store in just web space)
Settings Overrides (settings that I may have to force on the app)
Announcements ( Messages that trigger dialogs, adverts, html boxes)
Purchase info
other stuff that I forget
Any database that I access online I cache data local in cache sqlite database
So lets say the most complex things is the purchase list... a rough flow is as follows :
Get idents from online purchasable list
get descriptions and titles from idents
store local database
Simultaneous query of google IAP data from play to get locale info and pricing (along with IAP ident)
Store that in same local db
Display to user at, initial data, updated data and price additions
The database online is accessed via php (not a fan of that but hey ho, not really a programmer so there ya go) and given to the app as encoded JSON
I'm currently considering an ORM system like greenDAO or something like that...but not looked too much into it currently.
The themes database is quite good as it hold descriptions of views, shading, dimensions etc, these too are never displayed to the user from the server, but are cached local, cause failure of internet and failure of sync should not prevent any vital parts of what appears to be an offline app from working (e.g. my Smart SMS app)
Hope that helps, I could pass you the php although tis quite simple, there are security issues to look out for though
deanwray said:
well my app uses a hosted database for
Online Theme Data (thumbnails store in just web space)
Settings Overrides (settings that I may have to force on the app)
Announcements ( Messages that trigger dialogs, adverts, html boxes)
Purchase info
other stuff that I forget
Any database that I access online I cache data local in cache sqlite database
So lets say the most complex things is the purchase list... a rough flow is as follows :
Get idents from online purchasable list
get descriptions and titles from idents
store local database
Simultaneous query of google IAP data from play to get locale info and pricing (along with IAP ident)
Store that in same local db
Display to user at, initial data, updated data and price additions
The database online is accessed via php (not a fan of that but hey ho, not really a programmer so there ya go) and given to the app as encoded JSON
I'm currently considering an ORM system like greenDAO or something like that...but not looked too much into it currently.
The themes database is quite good as it hold descriptions of views, shading, dimensions etc, these too are never displayed to the user from the server, but are cached local, cause failure of internet and failure of sync should not prevent any vital parts of what appears to be an offline app from working (e.g. my Smart SMS app)
Hope that helps, I could pass you the php although tis quite simple, there are security issues to look out for though
Click to expand...
Click to collapse
Thanks for the details! It was really useful to see your workflow, I was not sure about the direction I should choose for my app development, but now is much clearer.
Thanks!
ved
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
vedtam said:
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
Click to expand...
Click to collapse
If you want do operate online database server then generally php is used.there is a tutorial on androidhive check it . you will get the answer
Sent from my GT-S5570 using XDA Premium 4 mobile app
vedtam said:
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
Click to expand...
Click to collapse
if you need a real time chat hit me up on hangouts https://plus.google.com/+DeanWray/
I want to write a Email to APP developers to introduce my product, how could I get lot of Email address of developers especially Android developers?
I have tried to get some Email address from Googleplay but it is not as useful as I thought.
A friend tell me that ,"You can get a help from linked in. Try to find out profiles of Android app developers in linked in. Also you can use Facebook, twitter and Google+. More on, you can find professional profiles on job finding websites like monster, indeed etc."
Thanks for his suggestion but what I really want to get is a lot of Email addresses at once rather than I search their information in social network one by one.
Is there some tools or products can help me?
Use this forum?
Sent from my Z10 using Tapatalk
Yes, Social Media is the powerful tool to get the contacts and linkedin is the best and professional. Join in Android groups and become the member and get in touch with other members to promote your app.
You can get developers email just grab it directly from GooglePlay with simple parser
Adxmi said:
I want to write a Email to APP developers to introduce my product, how could I get lot of Email address of developers especially Android developers?
I have tried to get some Email address from Googleplay but it is not as useful as I thought.
Click to expand...
Click to collapse
There is a chrome extension for that. I don't know the name
Parsing a list of email address isn't a good idea. When was the last time you received a spam message you liked?
I agree with @Whatinside. Any spam email that hits my inbox are immediately reported as such and deleted.
I think creating a "webbinar" or a landing page, where you make something special, and simply ask for their email.
Social Media is the best way to connect people. LinkedIn is the one of the best social media platform. You can join the groups of relevant field and from their you can get their email-ids. Similarly you can get email-ids from facebook, twitter, google+.