I'm looking for a way to decode AAC natively to PCM on Android. The decoder source code is at http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree;f=codecs_v2/audio/aac/dec;hb=HEAD, but I'm not familiar with NDK at all.
1) There's no way of doing this directly using the Android SDK, but can this be done via the NDK?
...
I have an activity A, which starts ActivityB through Intent's startActivity() method.The context is as below:
A.java
String name = edittext.getString();
Intent i = new Intent(A.this,B.class);
Bundle b = new Bundle();
b.putString("Name",name);
i.putExtras(b);
startActivity(b);
B.java
Bundle bb=getIntent().getExtras();
String name...
Hi guys, I have an android application that needs to zoom an image about centre. i implemented the code
Matrix matrix = new Matrix();
matrix.setScale(scaleWidth, scaleHeight);
imView.setScaleType(ScaleType.MATRIX);
imView.setImageMatrix(matrix);
...
I was surfing the net looking for a nice effect for turning pages on Android and there just doesn't seem to be one. Since I'm learning the platform it seemed like a nice thing to be able to do is this.
I managed to find a page here: http://wdnuon.blogspot.com/2010/05/implementing-ibooks-page-curling-using.html
- (void)deform
{
Vertex...
I am developing an application which shows the current location of the user. I want to display a marker on the current location of the user.
I have used an image as marker to display current location. But i want to display an animated arrow showing the range just like in the google maps android app. Can anyone please tell me how to ach...
So, I've setup the Android LVL with my application to check for licensing. This seems to work great with the Test Accounts. The problem is, if I turn the phones internet connection off and try to run the app, the licensing check will fail and tell me it's NOT licensed!
One thing is, why does it tell me the application is NOT licensed an...
Hello........
I need to run DDMS commands via java code..
So is there any way to run the commands like: geo fix, etc from java code in Android.
...
I have an Activity that uses a ListView to simply display a list of options for a user to select and when they select an option they are taken to a new Activity.
However on occasion the Activity with the options freezes when I try to select one of the options, I get the ANR and in the log cat the following error is displayed:
java.lan...
Hello,
I plan to develop database application in a Android mobile ? Is that possible to connect a SQL Server 2000 from an Android mobile, that I could add / delete / edit records from that mobile ?
...
Hi everybody,
i have a problem with ExpandableListView: in my app i use a ExpandableListView and i fill it with my adapter
"class MyExpandableListAdapter extends BaseExpandableListAdapter".
In method
public View getChildView(int
groupPosition, int childPosition,
boolean isLastChild, View convertView,
ViewGroup parent)
{ if (...
When I got something like this
ERROR/AndroidRuntime(18677): Caused by: java.lang.NullPointerException
ERROR/AndroidRuntime(18677): at com.companyname.a.a.a(Unknown Source)
How can I know where the problem is and debug this issue?
I only got the mapping output from ProGuard and don't know the line number.
Thanks.
...
Hi. i am trying to create a basic custom dialoge view on android witha few drop down boxes and a background image.
the issue i am having is that for some reason, it always draws the dialogue box bigger than necesary and therefore, the background image doesnt cover the whole dialogue box.
Its best i show you a pic of what i mean:
S...
My android application needs another NATIVE application executable to run before the android one, so that they can communicate through sockets. Android application has a JNI layer for handling the client-side communication.
Now i need to bundle up the native executable along with the apk file, so that when it is installed on a device it...
Hello.
I'm very new on Android development.
I want to create and start an activity to show information about a game. I show that information I need a gameId.
How can I pass this game ID to the activity? The game ID is absolutely necessary so I don't want to create or start the activity if it doesn't have the ID.
It's like the activit...
Hi all,
I've got an problems on reloading ListView content.
on each time for pressing any button, it will call related .java program for handling content.
and each .java program, I've used the following code to inflate xml.
LayoutInflater inflater = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
infla...
Hi
I have sprites image, which contain set of sprites. i want to pull out each sprite from grid.
I know that we have to split them through their pixels positions. But i think its not an easy task and time consuming. so is there other way or tool to get thier pixel position to retrieve images ?
Thank you ,
Srinivas
...
I have an Android ListView whose items have a checkbox.
The checkbox is checked by default. Once unchecked it should be removed from the list.
The problem is that onCheckedChanged is being fired twice: when I tap the checkbox to uncheck it (with isChecked false) and after I remove the item (with isChecked true).
This is the relevant c...
Hi,
I have an ImageView on which I have applied rotate animation. Since I want the rotation to go on continuously, I gave the repeatCount as infinite in my rotate.xml
android:repeatCount="infinite"
In onCreate(), I load the animation and start it.
Animation myAnim = AnimationUtils.loadAnimation(this, R.anim.rotate);
objectImg.sta...
Scenario: I have three buttons defined in xml
<button android:id="@+id/firstbtn"
...
/>
<button android:id="@+id/secbtn"
...
/>
<button android:id="@+id/thirdbtn"
...
/>
In Java one way to listen to them is
Button firstbtn = (Button) findViewById(R.id.firstbtn);
firstbtn.setOnClickListener(new View.OnClickLis...
Hi,
I have a android database and it has a column called 'name'.'Name' column can have international characters. Now when I query this database, I want to sort the name column. The sort should consider international characters while sorting. I have read that there is a UNICODE collator for android but I am not able to use it in queries....