Android :: Invoking Activity That Is Located In A Jar
Apr 30, 2010
I tried to invoke another activity from my main acitivty which is located in a jar file.
CODE:..........
Im doing it this way because i only know the name of the class. This works fine but unfortunately, all resource files can't be found while loading the activity from the jar file. at the first occurence of loading a res file there is a ResourceNotFoundException:
CODE:..............
View 1 Replies
Aug 3, 2010
Please find the code sample below:
public class Abc extends Activity implements OnClickListener{
private ListView displayList;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mainlayout);
displayList =(ListView)findViewById(R.id.addressbooklistview);
addressbookAdapter = new CustomListAdapter(this,addressbookList);
displayList.setAdapter(addressbookAdapter);
registerForContextMenu(displayList);}
I am not able to invoke the context menu on long press. Please let me know any solution for the same.
View 2 Replies
View Related
Oct 1, 2009
Where is the code for Home Screen activity located?
There is a Home application in development/samples/Home --> I am not sure if it is the Home Screen code.
View 2 Replies
View Related
Sep 8, 2009
Can I send an email without invoking any activity (with Send/SendTo action)? Just compose a mail and send to recipient from my application.
View 7 Replies
View Related
Jan 16, 2010
Is there a way for an App to invoke the default Alarm Clock application and receive a intent at a given time for specific functions to be activated.I understand the the AlarmManager can be used for this sort of purpose but I'm trying to leverage the complete alarmclock GUI framework that allows users to set the time of an alarm, activate/deactivate them, etc (as implemented in the default alarmclock application package and the setalarm.java file for example).
View 2 Replies
View Related
Jan 20, 2009
I want to start the application after particular interval time. How this could be possible. Can some one give me some clue ? Which permission i will have to use ? I hope some one will give me reply as early as possible ?
View 4 Replies
View Related
Oct 15, 2009
I have an Activity X which is only accessible after you've entered a valid credential.
How can I prevent other apps from calling startActivity with an Intent pointing to X?
e.g. Intent intent = new Intent( this, ActivityX.class );
startActivity( intent );
Basically I don't want Activity X to be exported to any apps except my app.
View 1 Replies
View Related
Sep 24, 2010
There's a lot of posting going on about removing bloatware, but, other than un-cluttering the apps drawer, what are the benefits over just leaving them in place and not invoking them?
View 8 Replies
View Related
Apr 16, 2010
I would like to use Android for Model-Driven-Software-Development.
For this, I need to locate the Android Model in the SDK. I already searched a while for it, but were not able to find it. Has anyone an idea where it could be?
Is it possible, that it is the AndroidManifest.xml-File in the folder android-sdk-platformsandroid-xandroid.jar? After unpacking this file, I am not able to open that file correctly on Windows XP, because a lot of characters have the wrong character set.
Or is it also possible, that it is only located in the source code?
View 5 Replies
View Related
Oct 30, 2010
I have a new Galaxy S. If I go to Market and install an application, everything is done automatically without giving me options.
So, my questions:
a. What is/are the files that are downloaded?
b. Where are files saved to?
c. What happens during installation? Is there just one binary? Or a binary with lots of other files? How can I find out the files that belong to a particular application.
If it is a paid application, how can I save it so that I can reinstall again. I am having so much trouble learning this new phone that I have to restore it to factory state already twice on the first day.
View 7 Replies
View Related
Mar 18, 2010
How does one tell it where to put the AVD? by default it is creating it in my windows home directory under a .android folder. i cannot start my avd if its located over a unc path oavd. our sys admins put all of your home directories on another shared server.
View 1 Replies
View Related
Jun 4, 2009
I am trying to port a VoIP application based on SIP protocol to android.
I want to test this application first on two emulators running on two different PCs connected via LAN.
The problem is that, the communication is not happening when I run the application on two PCs. The same application works when I run it's non-android version on the same PC's.
I have identified the following problem. Let's say there are two computers C1(192.168.1.101), C2(192.168.1.102) connected in a LAN.
Emulator E1 is running on C1 Emulator E2 is running on C2
The application uses UDP protocol and the port being used is 5060 on both computers.
I have setup port forwarding on both the emulators. This is the command used for that in Android console. redir add udp:5060:5060
When we make a voip call from E1 with the URL 192.168.1.102:5060, then E2 responds to the call, but what ever E2 sends in response is not coming back to E1, and hence E1 is timing out.
When I observed the log files, actually E2 is sending the response to 10.0.2.2:5060, which is the C2's loop back address(127.0.0.1). How do we resolve this issue?
I have gone through the developer guide where they have mentioned about two emulators communicating on single PC. But looks like this concept doesn't work when we run emulators on two different computers.
I tried 'redir' command for port forwarding and added INTERNET permission, still it doesn't work.
My question is, Is it possible to implement this communication on two emulators? and if yes, How to do this?
View 5 Replies
View Related
Sep 6, 2010
I am new to android. I want to set OnclickListner for different buttons which are located in different xml layouts.
View 2 Replies
View Related
Apr 2, 2010
Does somebody knows where the file with the actual stored SharedPreferences is located?
View 1 Replies
View Related
Oct 31, 2010
I know it is possible to use TelephonyManager to get information like: service state, device ID, Sim Operator, etc...
Is it possible to edit some of this information?
Couldn't find .set() functions on Android.com documentation but I've found the GSMPhone.java source code which includes functions like .setNumber1Number() (used to set/edit the number?).
I basically want to know if it's possible to edit the phone number located on Sim card (Settings->About->Status->My Phone Number).
Appreciate any answer, even a simple "NO", if it's indeed impossible.
View 1 Replies
View Related
Oct 18, 2010
I've been trying to call a non-static method, located in my main application Class, from the Preferences Class. Because the method I call is not static, I instantiate the main class and then try to call the specific method I want but it's force closing.
Preferences.class (from where I call the method):
Preference sorted = (Preference) findPreference("sortPref");
sorted.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
public boolean onPreferenceChange(Preference preference, Object newValue) {
Object d = new Dmarks();
((Dmarks) d).queryBookmarks();
return true;
}});
the Dmarks.class method I call:
public void queryBookmarks() {
Toast.makeText(context, Toast.LENGTH_LONG).show();
//context is not null and the Toast is working if I call it from Dmarks.class }
The Logcat:
E/AndroidRuntime(11718): FATAL EXCEPTION: main
E/AndroidRuntime(11718): java.lang.NullPointerException
E/AndroidRuntime(11718):
at android.content.ContextWrapper.getContentReso
lver(ContextWrapper.java:90)
E/AndroidRuntime(11718):
at android.app.Activity.managedQuery(Activity.ja
va:1520)
E/AndroidRuntime(11718):
at com.droidil.droidmarks.Dmarks.queryBookmarks(
Dmarks.java:101)
E/AndroidRuntime(11718):
at com.droidil.droidmarks.Preferences$2.onPrefer
enceChange(Preferences.java:47)
E/AndroidRuntime(11718):
at android.preference.Preference.callChangeListe
ner(Preference.java:756)
E/AndroidRuntime(11718):
at android.preference.ListPreference.onDialogClo
sed(ListPreference.java:219)
E/AndroidRuntime(11718):
at android.preference.DialogPreference.onDismiss
(DialogPreference.java:384)
E/AndroidRuntime(11718):
at android.app.Dialog$ListenersHandler.handleMes
sage(Dialog.java:1047)
E/AndroidRuntime(11718):
at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime(11718):
at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(11718):
at android.app.ActivityThread.main(ActivityThrea
d.java:4627)
E/AndroidRuntime(11718):
at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(11718):
at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime(11718):
at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(11718):
at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:626)
E/AndroidRuntime(11718):
at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm(11718): GC_FOR_MALLOC freed 4248 objects / 282248 bytes in 40ms
W/ActivityManager( 244): Force finishing activity com.droidil.droidmarks/.Preferences
View 5 Replies
View Related
Aug 10, 2010
How can I parse my local XML file located in the systems hard disk.
View 1 Replies
View Related
Jun 9, 2010
On the stock screen which has those on-off toggles for 4G, Wi-Fi, Bluetooth, GPS as well as that phone "Favorites" column - where are the originating Widgets or Apps located?You can drag and dump them but where do you find if you want them on a differnt screen?
View 4 Replies
View Related
May 21, 2010
i'm going to root my phone, hoping they will help but I don't know where the chat is located?
View 3 Replies
View Related
Feb 9, 2012
Where is the notification bar located in a rom? I want to make a few tweaks to it.
View 1 Replies
View Related
Jun 8, 2010
I'm trying to figure out where the mic on the X10 is located. Sometimes when i'm on a call, i'm not too sure how to hold the phone incase i'm covering the Mic or something. Sometimes the recipient wouldn't hear me that well and i think it's b/c i'm covering the mic.
View 2 Replies
View Related
Jun 16, 2010
Anyone know where to find them? Or does one need to root the phone?
View 7 Replies
View Related
Sep 5, 2010
I keep getting the prompt to install the new 2.2 ota update but ive just rooted my phone and want to put a custom rom on it. but since i already have the ota downloaded im trying the delete the update.zip so i wont have any problems but i cant find it.
View 1 Replies
View Related
May 29, 2010
I've wanted to re-do downloads but can't find how to get to the list. When I do download the list shows up, but I can't find it otherwise.
View 7 Replies
View Related
Sep 3, 2010
Where is the "Droid" sound located that comes on when you boot your phone with Froyo? Can it be used as a text message tone, etc?
View 4 Replies
View Related
Feb 11, 2010
Trying to find the gmail and the regular email icons for the stock programs installed on the nexus one are. Anyone know where they are located or have a source?
View 6 Replies
View Related
Apr 4, 2010
I'd like to know where the preloaded wallpaper images are located on the Droid. Somewhere in the system folder perhaps?
View 2 Replies
View Related
Apr 3, 2010
I want to back up all the free and paid apps in my Moto Droid, but can't seem to find where they're located using Astro. Are they in the phone memory? On the SD card? Regardless, I can't find any of them.
View 8 Replies
View Related
May 6, 2010
Where is the ambient light sensor located?
View 4 Replies
View Related
Jun 8, 2010
Where is the task killer located that is Pre-installed on the EVO?
View 1 Replies
View Related