tomgrill / gdx-twitter Goto Github PK
View Code? Open in Web Editor NEWlibGDX extension providing cross-platform support for Twitter API.
License: Apache License 2.0
libGDX extension providing cross-platform support for Twitter API.
License: Apache License 2.0
Hi,
my application crashes at launch and here are the 2 relevant lines in the logcat that point out the issue:
java.lang.RuntimeException: No libGDX environment.
at bvm.(TwitterSystem.java:1057)
It happens when proguard is enable.
Can you indicate me which proguard instructions I have to specify to make it work ?
If user click on login twitter button, app opens default android browser and ask to authorize twitter app.
But if user cancels action by pressing phone back button or by clicking cancel> back to application_name in browser, it goes back to android app with black screen.
I think it is de.tomgrill.gdxtwitter.android.AndroidTwitterAuthIntent. After pressig phone back button one more time, game shows.
AndroidTwitterAuthIntent got singleTask launch mode in manifest.
Source: http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=21368
Hi TomGrill,
first thank you for gdx-facebook and gdx-twitter I hope to be able to contribute to those extensions when I released my game that I want to port to Html5. For now I concentrate on Android.
So while trying to upload an image of 211 Kb from a directory on my website to twitter using these:
request = new TwitterRequest(TwitterRequestType.POST, "https://upload.twitter.com/1.1/media/upload.json");
request.put("media_data", encodedString);
I get an apiError(-1, "")
The issue is the same that the one you mentioned in:
http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=19753&p=82658&hilit=HttpResponse+1#p82658
After downloading your lib and add a setTimeOut(3000) to httpRequest in TwitterAPI.java everything works fine.
So can you add a constant in TwitterConfig to set a timeout value and use it in TwitterAPI to send the http request ?
It will also be good to signal that issue and this workaround.
Thanks for your work.
I encountered the same issue as decribed here:
http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=21268&p=88085&hilit=gdx+twitter#p88085
So I put a url in the application settings even though I have no use of it and sign in was then successful.
Hi,
can you upload in its repositories the 0.1.1 version of the lib ?
Thank you.
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.