I am trying to compile the following for the android ndk
#include <jni.h>
#include <string.h>
extern "C" {
JNIEXPORT jstring JNICALL Java_com_knucklegames_helloCpp_testFunction(JNIEnv * env, jobject obj);
};
JNIEXPORT jstring JNICALL Java_com_knucklegames_helloCpp_testFunction(JNIEnv *env, jobject obj) {
return env->NewStringUTF(...
I am currently pondering the feasability of implementing part of the Android APIs on a desktop JVM and I was wondering whether you had already heard of such a project.
If there aren't, and you know good reasons why (beyond "no one has begun that yet"), I would be glad to read them.
...
Hi,
I want to add a border in a listview with code rather than on the xml, I have searched google but to no avail, can anyone point me in the right direction?
Thanks in advance
...
Hello List,
Is there any procedure/API provided in Android SDK/NDK to check if "JPEG HW Decoder" exists in the underlying android phone handset?
If yes, then
Is there any procedure/API provided in Android SDK/NDK to access "JPEG HW Decoder" for decompressing JPEG image?
( I guess PV Media framework provides access for the same, but ...
I would like to write an App, that picks up sound from the mic, adds effects to it and plays it back in realtime.
If found AudioRecord to pick up sound from the mic and AudioTrack to play it back. In between, I need some library to manipulate the sound, add effects or use some equalizer on it. This maybe achieved with the Java Sound API...
How do you stop this force close??
Im trying to load a c++ ndk library called helloCpp but using the following code.
My program force closes as soon as it opens. I have checked that the libhelloCpp.so file is in the lib folder and it compiled with no errors.
//helloCpp.java
package com.knucklegames.helloCpp;
import android.app.Activity...
Hello! I've created an app that uses MediaPlayer to play a random (short) sound when a button is clicked. The sounds are played correctly on android devices < 2.2. This is the code responsible for playing sounds.
r = new Random();
sounds = new ArrayList<MediaPlayer>();
sounds.add(MediaPlayer.create(this, R.raw.sound1));
sounds.add(Media...
I'm trying to use RelativeLayout to display a map tile, surrounded by directional buttons, in a simple dialog.
I've tried a few variations, but inevitably, some of my buttons are missing.
In this version of the example, the up and left buttons are missing. If I declare the up button first and place the tile button relative to it, then ...
whenever I click on the EditText, the screen readjusts and the edittext-view moves up. But this is not enough and the soft-keyboard still covers the view to not show what a user typing.
My layout is as follows:
A listview occupying 65% of screen height, followed by an editetxt view and a button
LISTVIEW
_____________________________...
Hi,
I've taken some animation xml straight from the android docs, and as
far as I can see, doesn't work on either my 2.1 update 1 emulator or
my 2.1 update 1 Galaxy S device.
Specifically, I'm trying to create an animation to pulsate a view
(i.e. make it smaller then larger in one animation)
This is the very simple markup:
<?xml...
Hi all
I need to implement c2dm in my app. Is there anyone who is also doing this? Please help..some tutorials will be very helpful OR if you have completed your c2dm implementation then a tutorial is more than appreciated.
Please help.
...
I am watching a YouTube Video on a Browser, how would i continue to watch the same video using YouTube Apk on an Android Phone? Assuming that i already have the parameters of where to continue from and pass those parameters to the phone using C2DM ?
Regards
V. Ramkumar.
...
I wounder if the source code for Twitter android app is released??
...
Hi,
I am new to android.I need to create a Transparent Panel .
Can any one help me with same code..
Thanks in advance....
...
I have a very odd problem, hopefully easily solved.
I am drawing a quad as a triangle strip. It simply has 2 triangles in the strip and I apply a texture containing an alpha channel to it.
For one of the triangles it seems the alpha is fine and exactly as I want it however for the first triangle it looks as though the alpha is either ...
Hi all, i`m start developing my first Android app, and i have a problem:
so i want to display a GridView with lots of image every image need to be downloaded
from an URL (like: http://www.mysite.com/images/image1.jpg) and cached for offline use.
And have an SQLite database with a table:
_id, name, img, content
And what i want is to disp...
hi
i have create a simple activity but does not work any one help me that how could it does not work here is the code
public class CountriesActivity extends Activity {
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.countries);
ArrayAdapter<String> adapter = new ...
Hi everyone!
I'm currently trying to create a gallery of pictures loaded from Internet.
I'm using a standard Gallery object, with a custom adapter and a custom ImageView. Everything is working quite fine, expect for the pictures downloading.
I'm using an asynchronous task to do this (I have thumbnails displaying while loading).
It's ...
Hi I am new to android.I just create the Grid view by using java code(not using xml design)
I need to reduce the font size of the Grid view .How to do this ?
...
Hi all,
I have downloaded the image from given url,and displayed in the imageview,which works fine in the emulator .but not works in real device... whats the problem?
Here my code
final String url = urlStr;
InputStream inputStream = null;
try {
inputStream = httpRequest.openHttpConnection(url);
...