Android :: Creating JAR In Eclipse
Nov 23, 2010
I have a "thirdparty.jar" which I have to add into my Eclipse project and make one combined JAR for my entire package. I have added the thirdparty.jar into my pproject using "Java Build Path" Libraries settings in eclipse. But when I try to make jar for my entire project, the jar creation for my project is success but the "thirdparty.jar" is not getting included in my project.jar.
View 2 Replies
Feb 3, 2009
How to create an Android service (that uses IPC) using eclipse?
View 2 Replies
View Related
Jun 1, 2009
Just a few days working on Android, but... I don't see this to be "normal" (well, the Dalvik isn't but that's another subject... xD)
when i try to create a new XML file (for a layout) from eclipse, using the android plugin, it shows up a window saying "Problem Opening Wizard - The selected wizard could not be started", and the error comes to show:
"The selected wizard could not be started. Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. com.android.ide.eclipse.editors.wizards.NewXmlFileWizard"
Ok, I see the error is something missing (or failing) in the plugin...
View 2 Replies
View Related
Nov 10, 2010
I got the following error on error log,"conversion to dalvik format failed with error 1" How to resolve this issue?
View 3 Replies
View Related
Jun 14, 2009
When I make a new project the .java file is not generated. I can run the project, but it does not run in the emulator or anything. It did use to work before then it stop working. I tried deleting the folder and all project files. After that I reinstalled everything but I am still having problems.
View 3 Replies
View Related
Jul 7, 2010
I've been trying to export it to a jar file but as there is no main method in my app this doesn't work. Can someone tell me how to create this executable? the executable is to run the emulator and app both in computer not at phone!
View 4 Replies
View Related
Jul 7, 2010
I'm creating a new class, using eclipse "New Java Class" dialog box. I can write the superclass I want (I can't find using "browse" button), but I can't write or select an interface to implement. I click "add" but ther is nothing to select. What I'm doing wrong?
View 4 Replies
View Related
Jun 22, 2010
I want to get started with an Android application but can't download the plug-in.
Anyone know where else I can get this?
View 3 Replies
View Related
Jan 30, 2009
I can't seem to get anything back from https://dl-ssl.google.com/android/eclipse/ - even accessing from a browser just gives a 404.
View 6 Replies
View Related
Aug 6, 2009
I'm seemingly having problems creating the apk using an ant build for 1.5. It's building so I'm guessing the sdk pointer in local.properties is set correctly, but it seems to not be finding sun.security.x509.* (?).
I can see that jarutils.jar is in
CODE:...............
Here's the traceback spew...
release: [apkbuilder] Creating .Phresheez-unsigned.apk for release...
CODE:................
View 5 Replies
View Related
Oct 5, 2010
I'm developing an Android application and I'm very new on Java and Android. I want to create some constants to use in some activities. Where can I define these constants?
View 4 Replies
View Related
Aug 25, 2010
I am thinking about creating a 2D game for android. Kind of like the flash game "Age Of War" (just google it). Can I do it with just Java or do I also need openGL?
View 4 Replies
View Related
Oct 3, 2010
I'm sure this is simple, but I've got myself confused over it.I have an image resource, such as R.drawable.myimage, and I want to convert this into a URI.I tried:
Uri selectedImage = Uri.parse("android.resource://com.my.package/" + resourceId);
but this just returns a NullPointer. The resourceId needs to be dynamic (so I can pass any image to it), not just a hardcoded "myImage".Any help please?
View 6 Replies
View Related
May 7, 2009
Is there any way to create window on Android using C++.
View 2 Replies
View Related
Nov 22, 2010
Let's say I randomly generate a number 0 to 100. Where 0 is really cold and 100 is red hot. Wen the number hits, it would show an image bar (kind of like a % finished bar) that shows in the image what # you hit.
So it would kind of be like a progress bar from 0 to 100, and whatever # they hit it shows in the image of the bar in an imageview?
View 1 Replies
View Related
Aug 6, 2010
I want to create a directory by using program in android sdk. Is it possible to listen the folder action like open folder and close folder etc.
View 1 Replies
View Related
Oct 18, 2010
I am creating one notification based on some event. This notification will only create sound. I just want to generate the sound using this notification, but no UI. Following is my code for this:
// make notification sound whenever the device is connected or disconnected
Notification notification = new Notification();
notification.defaults |= Notification.DEFAULT_SOUND;
notification.flags = Notification.FLAG_AUTO_CANCEL;
NotificationManager manager = (NotificationManager)
mContext.getSystemService(Context.NOTIFICATION_SERVICE);
// notify to all, manager.notify(0, notification);
I am facing few problems and have some doubts. I tried to search for answers in this post but could not find, so I am posting here for your people's suggestions:
1. Here I am using 0 as id for the notification. Is it good in practice. Since, I don't want to that this notification conflicts with other.
2. I have one doubt, about notification ids, e.g. if i keep my notifications id as 1 and some other application also have set that as 1. In that case, will my notification be updated. or Android treats, application's notifications differently.
3. Is it necessary to add FLAG_AUTO_CANCEL flag in my notification. Because, I think this is used when notification will appear in the status bar. But in my case, I have no UI. It means nothing will appear in status bar.
4. Currently there is one problem. When my notification makes sound, sometimes it seems that it is suppressed or distorted by any other sound or event. I am not sure what is happening there.
View 4 Replies
View Related
Mar 15, 2010
Is it possible to write an Softkeyboard without XML or is this the time I'll need it?The idea is: I have an Arraylist with buttons which have a specific position in the layout, height, width, text etc. Those buttons should create my keyboard by converting them into keys.If this won't work, my second idea is, to write a XML-File out of Java.I wonder if one of these ideas are possible.
View 2 Replies
View Related
Sep 29, 2010
I am trying to create a information based application, I have 92 subjects, for these subjects I have 92 map locations and maybe as much as 400 url links. Currently I have created a class for each map location and a class for each url link, but this would mean I would have in excess of 500 classes, so what I want to do is split the subjects in four catergories ie. listview of about 23 in four tabs which I have done and create a class that gets the url based on the selection the use makes and do the same for the map locations.Do I need to put these in a xml using the id method and how do you call individual entries, i.e. would I need 500 Android:id is there an easier way?
View 2 Replies
View Related
Aug 11, 2010
Is it possible to create files in subdirectories created under "/data/data/packagename/files/" directory using openFileOutput method in android?
ie there is a sub-directory by name "text" inside the "/data/data/packagename/files/" directory.
I want to use the openFileOutput (String name, int mode) method to write a file eg:sample.txt into this directory....Is it possible to use openFileOutput method to do it....
View 1 Replies
View Related
Jan 22, 2010
I want to create a java.util.map in android from a resource. I want to do this because I have a lot of entries to populate into the java.util.map and I want to store the values in the res folder of the project in xml format.
Is there an effecient way to do this in android? My map will have around 2500 entries so I want to do this as effeciently as possible and I don't want to hard code them...
View 1 Replies
View Related
Jul 22, 2010
How does one go about adding a custom SQLite function from within the Android sqlite API? I have a function (written in C) that I'm able to add using the C API outside of Android as described here: http://www.sqlite.org/c3ref/create_function.html.
View 4 Replies
View Related
Jul 31, 2010
In a broadcast receiver I want to do the following:
1. See if MyActivity is alive somewhere. 2. If it is, bring it to the foreground. 3. Otherwise, start a new MyActivity.
View 3 Replies
View Related
Sep 16, 2009
In my MediaPlayer application for streaming Video i am using the following code File temp = File.createTempFile("mediaplayertmp", "dat"); while running it throws exceptions like
Parent directory of file in not
writable:/sdcard/
mediaplayertmp43912.dat
I dont how to handle this problem, and i want to know that when we execute that code means where the file will be created.
View 5 Replies
View Related
Sep 5, 2010
I want to create a file on the SD-Card and later save a CSV file in it. From surfing around I noticed that there seem to be two ways about going about it:If you're using API Level 8 or greater, use getExternalFilesDir() to open a File that represents the external storage directory where you.................................
View 1 Replies
View Related
May 3, 2010
While trying to create a new Android Project., Get a error - An SDK Target must be specified. The documentation states that - "Under Target, select an Android target to be used as the project's Build Target. The Build Target specifies which Android platform you'd like your application built against." However in my case The Build Target section of the open dialog does not contain any text field or select dropdown, so I am not able to specify anything.
View 11 Replies
View Related
May 23, 2009
I am new to android and I have a problem in creating a database.
public class database extends ListActivity {
/** Called when the activity is first created. */
private final String MY_DATABASE_NAME = "myCoolUserDB.db";
private final String MY_DATABASE_TABLE = "t_Users";
Context c;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ArrayList<String> results = new ArrayList<String>();
setContentView(R.layout.main);
SQLiteDatabase mydb=null;
try
{
mydb.openOrCreateDatabase(MY_DATABASE_NAME, null);
} catch(Exception e){}
}}
When I run this code it throws a run time exception.
View 4 Replies
View Related
Jul 29, 2009
1. It contain's the native binary with it. Then it will llod that native binary to AFS. 2. Then it should call or execute that native binary. But when I do that one. The native binary is working fine. But the problem cmoes out here. The function of the native binary is to read the file in the AFS and to copy it to another location.
But when I do the above steps. The native binary has been successfully loading to the AFS. After that when I try to execute the native binary. The file is get created with 0 size. The file permissions looks like below.
......................
View 2 Replies
View Related
Nov 22, 2010
How can I create a XML file that has identation or, at least, line breaks between each tag? I'm using class XMLSerializer (available in Android) to handle the XML creation.
XMLSerializer serializer = new XMLSerializer();
StringWriter writer = new StringWriter();
serializer.setOutput(writer);
String xmlFileContents = writer.toString();
Then I use the contents of xmlFileContents to create a file, using a BufferedWriter. The file is written, but the XML is not idented, and would like it to be.
View 1 Replies
View Related
Dec 13, 2009
In my main.xml layout file, I define a FrameLayout. Then in another layout file (say overlay.xml), I define another layout.
At runtime (onCreate) I want to create a new View object, set it's layout with overlay.xml, and add it to the frame dynamically. I need access to the elements of the overlay, to change text etc.
View 4 Replies
View Related