MakinGIANTS
The findings and tips records of an Android-iOS-TheWholeShabang group
Get a public timeline from a user in twitter
You need to make a connection to the URL <pre style="background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;">https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=google&count=3"</pre>Example: <pre style="background: none repeat scroll 0% 0%...
How to call a webservice using ksoap
<ul><li>Include Ksoap for android in the project or Download here</li></ul><ul><li>Code to call the webservice:</li></ul><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><div class="p3"> </div><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed...
Create ListPreference programmatically/dynamically
NOTE: when you set the default value you must set a CharSequence object, not a String, I don’t know why but when you use String, even with the same object, it dosen’t work.Note to create a category and a listpreferencesThe class must extend PreferenceActivity and onCreate:<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border:...
Show keyboard on textview on requestfocus xml
If you want to request focus and show keyboard when a view is loaded you should do: Into the EditText XML add <requestFocus/> tag: <EditText> ... <requestFocus /> </EditText> In the Application Manifest add the property "windowSoftInputMode": <activity ... android:windowSoftInputMode="stateAlwaysVisible"/> Source
Like Sharekit replacement in android (share on facebook, twitter, mail, message, etc)
The user need to install the facebook app, the twitter app, and all the applications that support ACTION_SEND (default android intent to send a share).Then:<pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width:...