サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
災害への備え
davanum.wordpress.com
Found this very useful when i was trying out the JNI under android (Short Story – Could not get it to work!). Step #1: Start with a simple java class package org.apache; public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } Compile the java class C:\android\CmdLine>javac -d . -g Helloworld.java Step #2: Package the generated classes into a tempo
Android – Video/Music player sample (from local disk as well as remote URL’s) Dec-04-2009 : This post is outdated. Please look here for updated code Here is a screen shot. Notes You can specify a directory path or a remote URL in the edit box You can specify just an mp3 file to play music only Choose any 3gp file from http://daily3gp.com/ to view videos The 4 buttons are for play, pause, reset and
Very cool. Built on OS X after tweaking the ant script. I tested it in the emulator against an OpenFire server. Next I’ll try it on my G1. Thanks for this. Comment by Mark Griffin — December 29, 2008 @ 9:47 pm Since other people successfully built and ran this project, I am starting to think it is my setting. I kept seeing this error generated from Packet Reader in the log file: java.security.KeyS
Here is a screen shot. The main activity is pretty simple package org.apache.android.mail; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; public class SendMail extends Activity { /** * Called with the activity is first created. */ @Override public void onCreate(Bundle icicle) {
Many many thanks to fern on #ubiquity. With this version, you can view all the URL’s as you type them and view the preview at the same time as well. Basically fern’s code generates a list of URL’s which are available as nouns to Ubiquity and Ubiquity displays them as suggestions. Take a Look how simple the command itself is now as compared to the previous version/ Here’s the screenshot: Here’s the
OUTDATED SAMPLE – Updated code is here: https://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/ Using Smack XMPP API from Android Once you get tired of the limitations of android’s built-in IMProvider and the corresponding API – IXmppSession and IXmppService, try the sample below. Inside the source/binary zip (bottom of this article) you will find a smack.jar that works with andr
Check if the “phone” service is up and running C:\android\DialPhone>adb shell # service check phone service check phone Service phone: found Dial a specific contact in the contact list # service call phone 1 s16 "davanum" service call phone 1 s16 "davanum" Result: Parcel(NULL) Dial a specific phone # # service call phone 2 s16 "+15084157509" service call phone 2 s16 "+15084157509" Result: Parcel(N
Here’s a screen shot Step By Step Instructions below: Step #1: Compile the project using ant. Some snippets are shown below. NativeAdd.java class (with Native method) package org.apache; import android.util.Log; public class NativeAdd { static { try { Log.i("JNI", "Trying to load libNativeAdd.so"); System.loadLibrary("NativeAdd"); } catch (UnsatisfiedLinkError ule) { Log.e("JNI", "WARNING: Could n
Since pictures say a thousand words! – Here are the screen shots Functionality Code for posting a new tweet package org.apache.twitter; import android.app.Activity; import android.content.Intent; import android.net.http.RequestQueue; import android.os.Bundle; import android.util.Log; import android.view.View; import android.webkit.WebView; import android.widget.Button; import android.widget.EditTe
このページを最初にブックマークしてみませんか?
『Show me the code! - By Davanum Srinivas | OpenStack, Kubernetes, Huawei etc.』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く