gorbin / asnetutorial Goto Github PK
View Code? Open in Web Editor NEWSimple example project for https://github.com/gorbin/ASNE library
Simple example project for https://github.com/gorbin/ASNE library
I am using the ASNE library for my project, how can i use the library to consume facebook RestClient Api
I have a problem getting the SocialNetworkManager in android.app.Fragment in a application targeting API version >= 14.
This line specifically, when MainFragment.java
inherits the standard android fragment
getFragmentManager().beginTransaction().add(mSocialNetworkManager, MAinActivity.SOCIAL_NETWORK_TAG).commit();
It throws a compile time error:
cannot be cast to android.app.Fragment
Do you have an idea how to make this work, or alternative class that doesn't inherit from the android.support.v4.app.Fragment
so that can be used from the standard inbuilt fragments?
is there any method to get twitter access token
In below line at runtime app is going to crash ..... with NoClassDefFoundError
" FacebookSocialNetwork fbNetwork = new FacebookSocialNetwork(this, fbScope); "
E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.github.gorbin.asne.facebook.FacebookSocialNetwork$1
at com.github.gorbin.asne.facebook.FacebookSocialNetwork.(FacebookSocialNetwork.java:87)
at a2a.example.testapp.MainFragment.onCreateView(MainFragment.java:75)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1016)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1197)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1562)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:511)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1167)
at android.app.Activity.performStart(Activity.java:5192)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2279)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
at android.app.ActivityThread.access$600(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5299)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Facebook:
ERROR: net::ERR_NAME_NOT_RESOLVED
twitter:
ERROR: unable to resolve host 'api.twitter.com': No address associated with hostname
linkedin:
ERROR: incorrect uri returned: null
googleplus:
Can't establish a reliable connection to the client
While loading friends of Google plus, app crashes.
I try to add the library to my gradle file but it not compile. I add this that not appear in the documentation compile 'com.github.asne.library:asne:0.1.3'
But the problem seems to be that the social modules seek for version 0.2.1 and the version is not in maven yet.
This is the error
Error:A problem occurred configuring project ':aether'.
Failed to notify project evaluation listener.
Could not resolve all dependencies for configuration ':aether:_stagingCompile'.
> Could not find com.github.asne:ASNECore:0.2.1.
Required by:
rushmore-android:aether:unspecified > com.github.asne:asne-twitter:0.2.1
Cannot get property 'explodedDir' on null object
Thank you so much!
GraphUser returns only "name" and "id"
ASNETutorial\app\src\main\java\com\github\gorbin\asnetutorial\FriendsListAdapter.java
Error:(94, 35) error: cannot find symbol variable g_plus_user
ASNETutorial\app\src\main\java\com\github\gorbin\asnetutorial\ProfileFragment.java
Error:(188, 35) error: cannot find symbol variable g_plus_user
why not showing friend list... is there any permission required to open friends list.
There is something I don't get it in here. Why is it that everything for the lib is created from a fragment.
Does is mean that if my login UI was in an activity, I will have to create a fragment so that I can create an instance of *FacebookSocialNetwork * because it only receives a Fragment and a list of permissions required.
It seems the old version - which has a certain bug that was fixed with 0.3.3 - had this
FacebookSocialNetwork fbNetwork = new FacebookSocialNetwork(socialNetworkManager, activity, fbScope);
``` but now all this is not there as of version 0.3.3.
Does anyone know any implementation that does not have a UI inflated inside a fragment? i.e. in an Activity ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.