Android :: How To Create A Simple NDK Program In Android NDK?
Jun 18, 2010
I am new to android Programming and NDK.Yet i am not clear with working in NDK.I just downloaded android ndk r4.If i want to develop appln using NDK,and i refereed http://marinara.com/forums/android/android_examples/49.HTML for reference,But still not clear how to create the header file and implementation,I did nt have any previous exp in c language.And they asked for run Java tool to create the JNI header file. I don't know how to use Java tool,but i found it in Java bin directory and i tried using cmd Java -jni com.sarmal.MyLib It shows as class file not found, when i list the folders and files,it is shown,this is the Image
View 2 Replies
Aug 21, 2010
I'm new to Android and Java programming and I've manage to create a simple paint program, but how do I add a zoom feature? Right now I'm just extending the View class and using the "on Draw()" method. Do I have to use a Drawable to be able to add zooming functionality? I'm not really understanding the differences between the two. If I am way off base then please point me to a good tutorial on paint/zooming.
View 1 Replies
View Related
Aug 30, 2010
I'm trying to create the simplest 2D drawing program possible to isolate what exactly I can't figure out about drawing. This program should literally just draw a 20x20 rectangle. Here's what I have: Code...
View 1 Replies
View Related
Oct 1, 2010
I have a simple activity program in android. Basically the class just extends Activity.
But when I start it I get a ClassCastException in the constructor of my class. I don't even have a constructor defined, so it must be in the constructor of the superclass which is Activity. Unfortunately the debugger doesn't give any detailed information on what class it is trying to cast. Here is the stacktrace:
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThread$PackageInfo.makeApplication(boolean, Instrumentation) line: 649
ActivityThread.handleBindApplication(ActivityThread$AppBindData) line: 4232
ActivityThread.access$3000(ActivityThread, ActivityThread$AppBindData) line: 125
ActivityThread$H.handleMessage(Message) line: 2071
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 4627
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 868
ZygoteInit.main(String[]) line: 626
NativeStart.main(String[]) line: not available [native method]
And when I look into this runtimeexception I get:
detailMessage "Unable to instantiate application com.test.MyApp: java.lang.ClassCastException: com.test.MyApp" (id=830067694464)
The only code is:
package com.test;
import android.app.Activity;
public class MyApp extends Activity {
}
View 3 Replies
View Related
Mar 20, 2010
Could someone please suggest me a good/efficient way to communicate with the server. I could think of two options 1) Use http post methods to send data to a php script at the server which would later call the google api's written in another java program (jar)or use php to use google api's (if its possible) to find nearby restaurants and send the list back to client. 2) Use simple java socket programming. The server has a jar file that supports multi threading and it does the job of finding restaurants and sending the list.
View 4 Replies
View Related
Oct 13, 2010
Basically im trying to create a simple gui or a layout for android, and I'm really new to Android developing. I already found a way to create a list of stuff using ListActivity, and using the command Code...
View 2 Replies
View Related
Aug 4, 2010
I am looking for a developer to create a simple app for me. Its an insurance calculator. Please PM me if you can help. Its just a money multiplyer equation.
View 3 Replies
View Related
Aug 17, 2010
I'm on my way with my first game, all design and that stuff are done, just coding left.I have successfully watched tutorials around the world wide web with information about Graphics and how to create a successfully thread-synchronization within it. Like now I have a SurfaceView-class and a Thread-class. The thread-class have this constructor to receive the Game Engine from my SurfaceView-class.
Simple code from Thread-class constructor: Code...
View 1 Replies
View Related
Dec 14, 2013
I have website which Responsive, I Only need mobile apps for my site,so user can download .apk and iphone app from store and browse through app,
I have tried AppsGeyser but problem is its showing powered by AppsGeyser and also 50% ads commission, I don't want to use ads there, I just simple need to open website inside apps,
AppsGeyser is doing great ,only issue with powred by link, Is there any way/easy tutorial to create new app for my website ?
My website: qatarcommunity com Its compatible with every Mobile and tablet already
View 1 Replies
View Related
Dec 28, 2013
how to create an android app that would display a simple .txt document?
View 1 Replies
View Related
Jan 13, 2010
I'm thinking of creating an answering machine in android that automatically alerts the caller that he/she has reached the answering machine after an alloted time and then records the message. Is it possible in android?
View 4 Replies
View Related
Dec 29, 2009
what is best way to create app in which I only need to draw simple lines through onTouchEvent? When i use invalidate everytime i draw any line, that erase lines i draw before. But if I use some List structure to store drawed lines it lose performance. Is there any simple way to do it?
View 6 Replies
View Related
Jan 20, 2009
I am trying to create small simple application on emulator. I want to create button and display with some click event. I am not able to use findViewById method with R.id.abc. It always gives error as R.id cannot be resolved.
View 2 Replies
View Related
Jan 4, 2010
I am trying to find a way to create a widget and the program on the same app so that i can give the user the choice to add to the home screen either the dynamic widget or the normal program, same functionality for both except that the widget would run a service to update every x hours and the program won't. Similar to what "bbc news" and "weather bug" have done. I am guessing that something needs to be added to the manifest but i have not found any documentation for it. Can anyone help on this?
View 6 Replies
View Related
Feb 5, 2010
How to create a custom dialog box in android?
Any example program?
View 3 Replies
View Related
Apr 24, 2010
I would like to create a program wich communicates between pc and an android mobile connected to USB via tcp/ip. Is this possible? How can I get the IP-address to a connected mobile from PC or the other way around?
View 1 Replies
View Related
Nov 4, 2010
I am developing droid apps with eclipse (new to both) and have a basic Layout question. When using the layout tab (rather than the coding tab) in my main.xml, I am trying to create a home screen for when my app opens.
There is going to be the logo at the top center, then 3 simple buttons below, all centered. How do I go about formatting the Logo so it maintains a size relative to the person's screen size, and stays in the center?
I don't want to write sloppy code to where my program looks fine (UI wise) on my screen and is poorly formatted on other's screens. Also, is there good documentation explaining all of the Property values in the layout view?
View 1 Replies
View Related
Aug 24, 2010
All I want to do is create a simple "vibrate" profile that turns phone calls and text messages to vibrate. I have the call part but the messages just come in silently with no vibrate. I have the following in the task:
1) Vibrate on Notify: On
2) Vibrate on Ringer: On
3) Silent Mode: Vibrate
View 6 Replies
View Related
Nov 1, 2009
I have to create a program using accelerometers. I have written these pieces of code in order to start recording the accelerometer data when you push start, stopping when you press stop and then saving that in a file called data1.csv and so on (data2,3 4 etc). The reason I want to do this is so that I can look at the data for a given gesture and analyse it using graphs and other simple methods.
The issue I'm having is this program just makes random empty files - doesnt seem to log the data. It does make each file though, so that's nice
Code:
package com.test.Acceltest;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorManager;
[code]...
View 19 Replies
View Related
Sep 8, 2010
I use a Live Wallpaper .apk called "Waterize Live" that is very cool. You can basically make any wallpaper look like it is submerged in water.Anyway, the only problem is that it only takes images that are sized perfectly to fit in "portrait" mode on your EVO. I will use larger images, but squish them to fit.I am looking for a wallpaper editing program that will take my normal EVO wallpapers are create these "portrait" sized versions for me. If no such app exists, can someone tell me the exact dimensions on EVO portrait view?
View 1 Replies
View Related
Nov 18, 2009
Is there anyway to create an icon on the actual program list called "Games" for example and containing all the g sames Ive downloaded. Ive used apps organizer to label my games as games!
View 6 Replies
View Related
May 12, 2010
I thought this would be easy to find:
A text editor that can create/edit text files from the SD card.
i.e. Windows Notepad on the Desire?
View 4 Replies
View Related
Nov 9, 2010
I'm writing a small program, it can show and manager all files and folder in the android mobile. Now I get a problem need to help, when I click to a file icon, example a audio, i want the audio player can run and play it.
View 2 Replies
View Related
Jul 17, 2009
How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.
View 8 Replies
View Related
Jun 3, 2010
I've tried astrid, and google, and syncing astrid with RTM (free version), and other to-do lists and calendars. I'm just looking for a simple agenda app, where I can click on a damn date and add a list of stuff I want to do without all the mess of prioritizing, adding times, colors, drops of blood, etc. I just want to click and type and have it there, laid out in a simple organized view. possibly a widget. does anyone know of anything like this? Or could someone create one? Not everyone needs an overcomplicated mess.
View 1 Replies
View Related
Jul 24, 2010
I need to save my bank account numbers, passwords and some credit card numbers. I do not need an app that is all that high tech and complicated. I would just like something that is protected via a password so that if my phone is lost/stolen the finder cannot access this information. I tried Keepass but I didn't really like it as I was unable to change the entry fields, ect. It would be nice to have the ability to have this information backed up somewhere.
View 10 Replies
View Related
Nov 17, 2010
I have been trying to reuse the tutorial on the Android developer website about developing a TabActivity App but, unfortunately, it never worked, even when I constructed it the exact same way as it is described...
Using the debugger it seemed the problem came from the main layout.
-> setContentView(R.layout.main); //After this line the app stops.
Here is my main.xml:
CODE:.............................
View 1 Replies
View Related
May 28, 2010
I haven't seen any docs on using the new ContactsContract API. Can someone please direct me to an example/explanation of using it?
View 1 Replies
View Related
May 31, 2010
I'm looking for a simple alarm. Say I want the alarm to sound of next Thursday at 8:00 (with a text note re what the alarm is for would be really nice) or every June 7th, and a regular 24 hour alarm. On my PC I use Chameleon Clock which I rely on for scheduling. I'd love to find something like that if it's out there.
View 3 Replies
View Related
Sep 19, 2009
I think I already know the answer to these, but I'm going to ask anway:
1) Is there a straightforward way to set the background color of a tab in its unselected state?
2) Is there a simple way to align the text on a tab?
View 2 Replies
View Related