Get started Start by creating your first app. Go deeper with our training courses or explore app development on your own.

Is there any way in which I can pass/get an object of android context in my ndk appliation. I want to use SharedPreferences in my ndk application via jni interface. To get an instance of SharedPreferences object, I need to call getSharedPreferences() on Context object. But I do not have access to the context object. OR How can I read and write an xml file from NDK ? Any pointers will be appreciate
Visual Studio Users Community Japan #1 ã§çºè¡¨ããè³æã«ãªãã¾ãã https://vsuc.connpass.com/event/143114/
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? Android ãã¬ã¼ã ã¯ã¼ã¯ã¯ããã¾ãå¼·åã¨ã¯ãããªããã®ã®ãããç¨åº¦ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ãå å ãã¦ãã¾ãã ãã¼ã¹ã JUnit3 ãªã®ã§ãè¨æ³ãå¤ãã£ãããããã¨ãããã¾ãããã¨ãããã JUnit3 ã®ä½æ³ã身ã«ä»ããã°ããç¨åº¦ã®ãã¹ãã¯æ¸ããã¨ãåºæ¥ã¾ãã Android ã®ãã¹ãã±ã¼ã¹ãã¬ã¼ã ã¯ã¼ã¯ Android ããã¤å種ã®ã³ã³ãã¼ãã³ãããã¹ãããããã®ãã¬ã¼ã ã¯ã¼ã¯ãæãã¾ãã ãããããªç¨®é¡ãããã¾ãããããããæãé »ç¹ã«ä½¿ãã®ã¯AndroidTestCaseã§ãããã AndroidTestCase Andro
æéã§ããã¢ãã¤ã«ç«¯æ«ã®ã¡ã¢ãªãç¡é§ã«æ¶è²»ããã¢ããªã¯æªã ããããªã¢ããªã®ã½ã¼ã¹ã³ã¼ãã¬ãã¥ã¼æ å½è ã®ç®ã¯ç¯ç©´ã ã ã¨è¨ãããªããããå¦ãã¯ç¥ããªããã©ãAndroid Developers - Avoiding Memory Leaksã§ã¯ãAndroidã¢ããªã使ããä¸ã§ãã¡ã¢ãªãªã¼ã¯ãçºçãããã¿ã¼ã³ã¨ãã®å¯¾å¦æ³ãè²ã ã¨ç´¹ä»ãã¦ããã(è±èª) è¦ç¹ã®ã¿ãèªåãè¦ç´ãæãããã«ã¾ã¨ãã¤ã¤ã説æã®è¶³ãã¦ãªããéstaticãªå é¨ã¯ã©ã¹ãé§ç®ãªä»¶ãã«ã¤ãã¦æ¸ãã¦ã¿ãã ããããã¡ã¢ãªãªã¼ã¯ãããï¼Javaå®è¡ç°å¢ä¸ã§ã¯ãã¬ãã¼ã¸ã³ã¬ã¯ã¿ã«ããã¡ã¢ãªç®¡çãè¡ããã¦ãããã大æµã®å ´åã¯æèããã¨ãã¡ã¢ãªãããæãã«ååãã¦ããããã ããã¬ãã¼ã¸ã³ã¬ã¯ã¿ã®åä½ã妨ãããããªã³ã¼ããæ¸ãã¦ãã¾ãã¨ããã¤ã¾ã§çµã£ã¦ãè§£æ¾ãããã¹ãã¡ã¢ãªãè§£æ¾ãããªããªãããããä»åã®ãé¡ã§ããJavaã«ãããã¡ã¢
åºç¤ç¥è Androidã¢ããªã±ã¼ã·ã§ã³ã§åãè¾¼ã¿ãã©ã¦ã¶ã®ãããªãã®ãå®ç¾ããããã®Viewã³ã³ãã¼ãã³ãã§ããandroid.webkit.WebViewã«ã¯æ¬¡ã®ãããªã·ã°ããã£ã§addJavascriptIntefaceã¨ããã¡ã½ãããçãã¦ãã¾ãã http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object,%20java.lang.String) ããã¯ãç°¡åã«è¨ãã¨Javaã®ãªãã¸ã§ã¯ããWebViewå ã§ãã¼ããããJavaScriptããå©ããããã«ãªããã¨ãããã®ã§ããä¾ãã° class JSInterface { private Context context; public JSInterface(Context c
Android applications are, at least on the T-Mobile G1, limited to 16 MB of heap. It's both a lot of memory for a phone and yet very little for what some developers want to achieve. Even if you do not plan on using all of this memory, you should use as little as possible to let other applications run without getting them killed. The more applications Android can keep in memory, the faster it will b
Javaãªã®ã§ãã¡ã¢ãªãªã¼ã¯ã¯èµ·ãããªãã¨æã£ã¦ãã®ã§ãããã¡ã¢ãªã¼ãªã¼ã¯ã«ç¸å½ãããããå®è£ ã¯ããå¾ã¾ãã ç»åãã¡ã¢ãªãã£ãã·ã¥ã«å ¥ãããã¨ãã¦ãããã®ã§ããããã®éã«ããã£ã¦ã¯ãããªããå®è£ ããã£ã¦ã¾ããã OutOfMemoryErrorããç»åã®èªã¿è¾¼ã¿æã«åºãããã«ãªã£ãã®ã§ããã ä¾ãã°ãDrawableã¯ãã¼ãæéãããã®ã§ã¢ããªã±ã¼ã·ã§ã³ã§ãã£ãã·ã¥ãã¦ãããããªããã¨ããããDrawableã¯onCallbackã®ããã«Viewãåç §ãã¦ããããã®Viewã¯Contextã¨ãã¦Activityãåç §ãã¦ããããããã£ã¦ãDrawableãçãã¦ããããã ã¯Activityãè§£æ¾ãããªããªãã ã¾ãã«ãã®äºä¾ã©ããã®ãã¨ã§ãã ãããªãã¨ã«ãªããªãããã«ã¯ãContextããã®ã¹ã³ã¼ãå¤ã§åç §ããªãããã«ãããã¾ããã¢ããªã±ã¼ã·ã§ã³ã§å ±éã«å©ç¨ãããªãã¸ã§ã¯ãã«ã¯Cont
Here is the code I use to draw: - (void) drawSomething { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(context, 1, 0, 0, 1); CGContextSetLineWidth(context, 6.0); CGContextMoveToPoint(context, 100.0f, 100.0f); CGContextAddLineToPoint(context, 200.0f, 200.0f); CGContextStrokePath(context); NSLog(@"draw"); } But I got the error like this: [Session started at 2010-04
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}