Android : Can I Call Framework Classes Directly?
Mar 28, 2009
e.g. it would be useful to call some methods in com.android.camera.ImageManager / ImageLoader rather than trying to copy / paste them into my project and figure out all missing references etc.
View 2 Replies
Jul 11, 2009
I updated the android framework ( java code), and I was able to compile the new java classes and test it. My issue is that i want to make some of the new java classes part of the android.jar, and i am unable to figure out the best way to add it to be build file.
For example: I want to include another class just like com.android,internal.util.Predicate.class is included in the android.jar. How and where do one indicate that the Predicate.class needs to be included in the android.jar?
View 4 Replies
View Related
Dec 15, 2009
Is it possible to make a call from an activity and make sure the activity doesn't keep running while the call is in session? And, once the user is done with the call (by pressing the hangup button or whatever), the call log screen wouldn't get shown and the user would be directed to a new activity within the application. I know there's ways to detect calls and call hangups through services, but, I'm not sure if it's possible to make an activity from an app pop up as soon as a call is over.
View 2 Replies
View Related
Jun 6, 2010
I saw that previous versions of android allowed you to send specific callers directly to voicemail, but I can seem to figure it out for this phone. Can anybody let me know or suggest an app that works with the evo?
View 5 Replies
View Related
Oct 29, 2009
Just talking on the hero when another call beeped in, screen came up showing who was calling. I hit the Decline button which is supposed to send the call directly to VM, but it only made the screen go away. I kept getting the beep notification that another call was trying to get through and then the choppy dial tone hang up signal after the call eventually made it to VM.
View 6 Replies
View Related
Sep 11, 2010
I was wondering if someone could explain how to forward a telephone # directly to voicemail? I tried googling this but the steps I found are not working (i.e. no option appears in my contact page to forward the #)
View 1 Replies
View Related
Oct 29, 2010
I want to use the accessibility classes, but I'm a begginer in android programming and i can't understando how to use them. I don't find any example using these classes. Somebody can give me some use examples? Another thing Can I set enable the Accessility mode in the emulator?
View 2 Replies
View Related
May 18, 2009
I am writing a app, which has sort of plugin framework. public abstract class AbstractService {public abstract AbstractService getInstance(String name)..
View 2 Replies
View Related
May 29, 2009
I have an apk installed in /data/app. I want to use the class methods in there. Here is what I tried. code...
I got "ClassNotFoundException". By peeking into the apk, I don't see class files but classes.dex. I would assume SystemProperties class is in classes.dex. Why can I load it?
View 5 Replies
View Related
Apr 7, 2009
I am developing sample Video Recorder for Android.Following is My code snippet.
CODE:............
But when i am trying to run in eclipse,am getting following errors. MediaRecorder.VideoSource can't be resolved. MediaRecorder.VideoEncoder can't be resolved.
I am using android-sdk-windows-1.1_r1 as my android SDK,and didn update this from 1.0 instead i installed it freshly.
I guess there might be some problem with the SDK.
View 2 Replies
View Related
Mar 19, 2010
I am looking for the implementation of the IAlarmManager.I am interested in the scheduling done by the AlarmManager.setInexactRepeating method and so I started looking for the implementation but I haven't been able to find anything.Internally to AlarmManager, I can see that the actual work is being done by an android.app.IAlarmManager interface.After googling around for a bit there seems to reference to an implementing class called android.app.IAlarmManager.Stub but that is as far I get.I am working with Android 1.6.
View 1 Replies
View Related
Oct 7, 2010
I have an app I am working on and being new to Android Dev I am running into a situation. I have a Scores class not extended from anything (Activity,Service, etc) but in the same package that needs to access SharedPreferences
public class Scores {
Context ctcx;
public Scores(Context context) { ctcx = context;
}
View 4 Replies
View Related
Aug 30, 2010
I am trying to determine how to structure the code of a simple android game I am writing. I am focused on the UI portion. The behind the scenes portion (like a pause/restart/switching/etc) does not concern me. The Android demo games source code already do a great job with this. Essentially my game will need a UI with a series of objects on the screen (roughly 100 or 10x10) that the user can interact with. I need to supply an image for each object as well as implement the touch events and animation events for each object. What I am wondering is what type of class do I use for each object so that I can successfully implement these methods and how do I implement that particular class. Note that this game only executes on a user interaction with one of these objects, meaning I don't need a "real-time" implementation.....
View 2 Replies
View Related
Apr 19, 2010
I have read the Backward Compatibility Article, and I don't full understand how (or if I can) make a program backwards compatible if I want to use a class introduced in later versions. For example, I want to use WallpaperManager for apis 5+, but make the app as a whole compatible with api 3+. Is this possible?
View 14 Replies
View Related
Apr 28, 2010
Since i'm still new on Android programming, I have some problems on some issues. I have a QuadTree data structure implementation in 3 seperated Java files and i would like to use this data structure in my application. But i don't know how to use this .java files in an Android project. I tried to put them in a new Android project, just for testing, but I get lots of errors. Could anyone help me about using this java classes in my Application?
View 3 Replies
View Related
Apr 6, 2010
I have a class2 which is involved by class1 when clicks are made. I have to pass some parameters/objects from class1 to class2. I only know the standard way which does not have an option of passing parameters.
CODE:.................
View 1 Replies
View Related
Sep 26, 2010
How can I install java classes not included with android ?
Is it possible to add java.awt.image package into android?
Where can I find above package jar file?
View 5 Replies
View Related
Mar 15, 2010
This is a very weird problem. My app that runs just fine but somehow if I leave my phone for an hour or two while my app is running, I get the following error when I come back to it later:
CODE:................
I know for a fact that my yoga.database.Manager class was loaded at the time when the app was launched, but somehow the class must have been unloaded by the system as I left the phone.
Does Android unload classes automatically after certain periods? What can I do when my class gets unloaded? The above error causes my app to crash, but I can easily re-launch it and it runs just fine. The problem occurs mostly on my HTC Magic phone running Android 1.6.
View 2 Replies
View Related
Mar 19, 2010
I have a couple of third party classes which serve as a library I can build my application upon. They are contained in a folder which was added Java Build Path -> Libraries (in Eclipse) with "Add Class Folder". It works fine so far an my app compiles. But the produced .apk contains only my classes and therefore the application does not run. How can I tell Eclipse to package the third party classes into the .apk as well?
View 1 Replies
View Related
May 4, 2010
I have a bunch of objects that implement Serializable that I want to store in a SQL database.
I have two questions:
Is there a way to serialize the object directly into the database. Is that the best way to do it or should I Write the object out to a formatting String and put it in the database that way and then parse it back out
Write each member to the database with a field that is unique to each object.
View 3 Replies
View Related
Oct 14, 2010
I have a little idea of the Utility Classes with a slight doubt on demand.
If I use a Utility class in my Application than to use that class in my main Activity do I have to create the object of that class or I can directly Import that class in my main activity?
In the nutshell, all I want to be clear about is that basically how can I use the utility class in my Main Activity?
View 5 Replies
View Related
Nov 24, 2010
When calling javah on a .java file in my android project, javah was unable to find the android classes (specifically android.graphics.Bitmap).
Here's the terminal output:
CODE:..................
View 1 Replies
View Related
Jan 9, 2010
Any one know about In Android Widget Package how many Classes are there?
View 2 Replies
View Related
Sep 29, 2009
A static field which was initialized becomes null at some point. Can it be because that class was unloaded and loaded again?
View 3 Replies
View Related
Feb 16, 2010
I'm fairly new to Android and have gone through the basic tutorials. I thought I'd dig a little deeper and downloaded the source code to some of the "native" Android apps, like IM, Email, Voice Dialer, etc.
In importing the source of these native apps into Eclipse, I found that they reference classes that are not in the 2.1 API, i.e. classes such as android.content.Entity, android.net.http.DomainNameChecker, etc. As a result, I can't compile and play with this code.
So is there is a "hidden" API that the native apps use that is not available to the regular app developers? Is there a "native" SDK I can use to import these classes?
View 2 Replies
View Related
Jun 6, 2010
Before I delve into it, I'm very new to Android and I have just started learning Java last month. I've hit bumps while trying to develop my first simple app. Most of these hurdles were jumped thanks to random tutorials online. MY CODE IS VERY MESSY. Any tips are appreciated.
The question above is quite broad, but this is what I want to do: It's a essentially a blood alcohol content calculator / drink keeper-tracker. Basic layout: http://i.imgur.com/JGuh7.jpg
The buttons along the bottom are just regular buttons, not ImageButtons (had problems with that) Here's some example code ..
It outputs the following to the text view: "Your BAC is -0.017". This is the Bac value for if StandardDrinks was still 0, so obviously there is some problem communicating between the classes.
The other elements of the formula (weight, time spent drinking, and the alcohol %'s and such) are variables because I will ultimately allow the user to change those values in the settings.
I've heard around the water cooler that global variables are not good programming style, but this is the closest I've come to getting it to work..
View 2 Replies
View Related
Jul 17, 2010
I'm new to JNI, i'm developing a native library for an Android project. I read some papers about JNI programming but i didn't understand if it is possible to create a library that can be loaded in different project classes with different packages. I read that to declare a new JNI method the syntax is:
the prefix "Java_"
an encoded fully qualified class name
an underscore ("_") separator
an encoded method name
Based on this definition it shouldn't be possible...
Suppose i had defined a class A in the package pkg1 with the native method foo contained in libfoo, and then i defined a class B in the package pkg2. Can i use libfoo and the foo method in B? How should i define the native method to achieve the result?
View 2 Replies
View Related
Feb 11, 2010
I use Google Voice (love it) primarily because of it's visual voicemail on my Droid. I do have a Google Voice number, and I'm trying to decide whether to set the Droid app to "make calls using Google Voice" or not.
I have no problem with giving out a different number, and my placed calls seeing the GV number in caller ID.
My question is, does this affect how the call is actually connected, from a quality standpoint? I tired a call both ways, and the sound quality seemed a little bit different. But then, I am an obsessive compulsive weirdo.
Is there any difference in call quality or routing between making a native Verizon call and a Google Voice call on Droid? (Like, does Google voice actual use 3G to connect to Google server over the internetz, then place the phone call?)
View 3 Replies
View Related
Oct 16, 2010
I have a .jar in my Android project which has many references and uses of the java.awt.* classes and other classes not available on Android. How can I provide my own implementations of these classes so that I can embed the unmodified .jar file (the only modification is being ran through dx) in my Android application and it will use my own class implementations?
View 1 Replies
View Related
Mar 18, 2009
I downloaded the android source code.. how to make our own jar file with all our available java classes in the Android source code....
View 5 Replies
View Related