Cannot Find Symbol - Method StartActivity?
Apr 5, 2012
I am developing an application in order to connect to Google Navigator by the following code..
public static void Call_GoogleMapsNavigation(int longitud,int latitud)
import android.app.Activity;
import android.content.Context;
import android.content.Intent;[code].....
View 2 Replies
Sep 22, 2010
am getting this error: cannot find symbol symbol: method log(java.lang.String) when using method : log("some test", +test);
I have imported import android.text.TextUtils; import android.util.Log;
Still its throwing same error why it is so ?
View 8 Replies
View Related
Aug 17, 2010
I'm struggling to understand why startActivity runs properly when copied from a tutorial I found and fails when I make the smallest change.
Code from the tutorial:
CODE:........
That works. When I try to change it to what I would consider a simpler design, I am getting an error.
CODE:........
The error is: The constructor Intent(FirstTwoApps.ButtonHandler, Class) is undefined
Notice that all I did was moved the action from the handleButtonClick() method to the onClick() method. Apparently that is not allowed, but I don't understand why.
View 2 Replies
View Related
Jan 20, 2010
I can't find the tilde symbol ~ , on my htc hero's keyboard. Can someone clue me in on where it is or if it's not there at all, which i am beginning to believe.
View 4 Replies
View Related
May 31, 2014
Cannot find symbol when compiling cm 11.0 on debian.
Code:
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
int defaultValue = DisplayColorCalibration.getDefValue();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
View 3 Replies
View Related
Sep 27, 2010
I'm having trouble finding an app that I had. I was playing about with multi con and cleared my home screen but then tried to get them all back and the only one I'm having trouble with is anycut i can't find it on the market the app symbol was a musical note (a cleff I think its called) it let me make playlists and put them in the shortcut.
View 4 Replies
View Related
Feb 27, 2010
I have two android projects, ProjA requires ProjB (in Eclipse Properties > Java Build Path > Projects > Add > ProjB). Every thing compiles ok in Eclipse, but when I run ProjA I get an error: Could not find method XXX, referenced from method YYY. Where XXX - is the method from ProjB. How can I fix the settings?
View 3 Replies
View Related
May 29, 2010
Okay, I'm hoping this is the dumbest question ever...but as I was typing in a web address in the browser, I came across a symbol I cannot find anywhere on my Inc keyboard. The = symbol. Where'd they hide it?!
View 5 Replies
View Related
Oct 13, 2010
I need to generate an apk file using an ant script but I'm having problems in the compile target. To generate automatically the ant script I've used the android tool with the command "android update project". The problem is that this project depends on another project so I need to do a custom compile task. For that reason I've overridden that target: I've copied the compiled task from ant_rules_r3.xml and I've changed the javac task like this (I include the comments of what I've changed)code...
but it doesn't solve the problem. If I set it to 1.3 instead of 1.6 it gets more errors so it seems it is using the JDK I'm setting here. Any suggestion?
View 1 Replies
View Related
Mar 5, 2010
I was wondering how should I proceed to debug while working with frameworks. Like specifically how can i tell which method is being called when a particular event happens.
View 2 Replies
View Related
May 27, 2009
I've been getting this error "Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp."
View 7 Replies
View Related
Apr 27, 2010
I know that I can get some informations from the Sim card by using the TelephonyManager class, but I couldn't find any specific method to get its country and area code, and also if the user is on roaming the area code would probably change to the location he currently is.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options,
View 2 Replies
View Related
Aug 20, 2010
My Android app runs fine, but: If I insert a call to WebView.setScrollbarFadingEnabled, it crashes saying:
Could not find method android.webkit.WebView.setScrollbarFadingEnabled, referenced from [my class]
VFY: unable to resolve virtual method 289: Landroid/webkit/WebView;.setScrollbarFadingEnabled (Z)V
I am using Android 1.5, not a custom ROM. My app defines minSdkVersion="3" I always clean before compiling.
Is setScrollbarFadingEnabled unavailable in Android 1.5? If so, why don't I receive a compiler error?
View 1 Replies
View Related
Sep 8, 2010
I have a single screen with a bank of buttons below a ListView. Entries on the ListView light up in orange when I scroll so I assume that are selected. When I then press the "Delete" button I want the onClickListener to remove the currently selected entry. But getSelectedItemPosition() always gives me -1. If I can't hope to use the GUI controls in this way, please give me another way of getting the same result.I have even tried setting the onClickListener of the List View to store the index before the button is pressed (in case pressing the button unselects the entry) but even that is always -1 it seems.
View 1 Replies
View Related
Jan 12, 2010
Today I tried including the apache.commons.codec package in my Android application and couldn't get it running. Android could not find method ord.apache.commons.codec.binary.* and output the following errors in DDMS
CODE:...................
View 2 Replies
View Related
Sep 7, 2010
I'm trying to override the onBackPressed() method of the ActivityGroup class:
public class MyClass extends ActivityGroup {
@Override
public void onBackPressed() {
// do something
return;
}
but I'm getting the error The method onBackPressed() of type MyClass must override a superclass method. I'm relatively new to Java, I've seen here that people do it and it works for them Why I'm getting this error? I'm writing an app for android 1.5, could the problem be here?
View 1 Replies
View Related
Nov 22, 2010
In Eclipse, when I mouse hover over a built-in method, it displays a method definition including stuff like what the method does, input objects, return objects etc. If I have a yellow line (warning) under the method I'm trying to use, I can't get the mouse-over to show the definition. If I try hitting F3, I get a "The Jar of this class file belongs to container "Android 1.6" How do I show the definition of the method I am using when there is a warning?
View 1 Replies
View Related
May 12, 2010
I am trying to use annotation - method.getAnnotation( ) or method.isAnnotationPresent( ) and it is not working. I am using eclipse emulator for 2.1 OS version with JDK 1.6. Following is information about what I did..................
View 4 Replies
View Related
Apr 7, 2009
My use case is to launch one of settings app screen when I receive a certain event in idle state. For which, I added my new intent to PhoneAppBroadcastReceiver() in PhoneApp.java (looks like this receiver handles the misc intents) But when i call startActivity(), The phone seems to go into a panic ex. startActivity(new Intent(this, NetworkSetting.class)); My questions are is this the right approach to go about ? If so 1. How can I launch the activity inside of broadcastReceiver? secondly 2. How do i verify if the activity i want to start is already started?Can the NEW_TASK_LAUNCH be used to verify this ,
View 2 Replies
View Related
Nov 23, 2009
I have splitted my Android project in 2 packages, lets say: test.current and test.another. From an activity in test.current I want to start an activity in the package test.another
View 6 Replies
View Related
Jul 15, 2010
Why should I use startActivity() in a Service? If I need an Activity a have to call an activity and if I need a "delayed activity" I have to use the notification. So, why should I use startActivity()?
View 1 Replies
View Related
Jul 22, 2010
I'm new in Android development and I've a problem when I create my new activity.I want to use my activity before start it. For example, But, my "menu" and "MyActivity.class" aren't the same instance.
View 2 Replies
View Related
Jun 29, 2009
According to the doc, if the intent in startActivity(intent) is not found, there will be an exception raised. Therefore I use a try/catch block. However, even if I use a random string as the intent, the promised exception does not occur.Instead I see a dialog that says: "No application can perform this function". I also get the same dialog if the intent is valid (picked up by an app) but apparently doesn't want to act when the extras are not what the app expects (e.g. my earlier question about Intent.ACTION_SEND and mime types). I am using the 1.5_r2 SDK on an AVD running 1.5, with the app running at version 1.1 (sdk=2). Is this a doc error, a bug or am I misunderstanding something? Can I simply delete the try/catch block?
View 3 Replies
View Related
May 15, 2009
I have a Activity and I have a class which extends this Activity. In this subclass I call:
startActivity(new Intent(this, CameraView.class))
Which should start the "CameraView" Activity. However, I always get this error:
CODE:...........
If it makes any difference the subclass creates a ListView and when a row of the ListView is clicked it calls startActivity();
View 5 Replies
View Related
Mar 4, 2012
Code:
package com.danielholst.soundmixer;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class LoadingSplashScreen extends Activity {
/** Called when the activity is first created. */
[Code] ...
xml here
Code:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar" >
<activity
android:name=".LoadingSplashScreen"
[Code] ......
View 1 Replies
View Related
Dec 7, 2009
I have a TabActivity subclass that attempts to start a new activity via a menu item selection in onOptionsItemSelected.I am receiving the following exception which eludes me at the moment.I'm not sure why it thinks I am *not* in an activity!
View 2 Replies
View Related
Apr 7, 2009
I'd like to launch one of settings app screen when I received a certain event in idle state. For that, I added my new intent to PhoneAppBroadcastReceiver() in PhoneApp.java (because it seems this receiver handles the misc intents) But if I called startActivity(), seems phone goes to panic. ex. startActivity(new Intent(this, NetworkSetting.class));
1. How can I launch the activity inside of bradcastreceiver?
2. If the activity which I want to start is already started, how can I check it? I read can use NEW_TASK_LAUNCH but don't know how to use it. If you have a sample code, could you post it?
View 3 Replies
View Related
Mar 3, 2009
what is the scenario that makes me to pick between startActivity and startSubActivity
View 2 Replies
View Related
Apr 20, 2009
What's the correct way to pass a bundle to the activity that is being launched from the current one? Shared properties?
View 2 Replies
View Related
Sep 28, 2010
Is there any event triggered on an activity when I call startActivity("activity_id", myIntent);
If the Activity exists already. I pass a parameter to the activity via i.putExtra("someID", someSerializableObject ); and would like to call a method to refresh a WebView. Right now, the call on startActivity brings the activity in the foreground but the webview does not display what i want.
View 1 Replies
View Related