HTC EVO 4G :: Cause Code 98 Error Class 2
Nov 12, 2010I'm unable to find information about this and unable to find a fix. Every sms my wife or I send gets this error.
View 2 RepliesI'm unable to find information about this and unable to find a fix. Every sms my wife or I send gets this error.
View 2 RepliesEverytime i go to send a message it says sms error cause code 34 error class 2. i did a hard reset and it is still happening?
View 3 Replies View RelatedHow can I use sdk to get the package/class name of a specific apk file, eg: I have a test.apk, and I want to know the package name and class name by API when I write a android program.
View 2 Replies View RelatedI want to serialize my class. I have this code...
I apparently need to implement :
private void writeObject(java.io.ObjectOutputStream out) throws IOException
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
Anyone know what I should do in these function ?? How should I write my Bitmap variable ?Any code examples ? anyone did it ?
I have a huge codebase. I am not very clear about its design as documents are rear to find.
Is there any tool available to construct the class diagram from the code? I need to know the interactions between the classes and relations between them. If there is any such tool where i can give the entire code as input and get the class diagram as out put, it will be best for my understanding.
The code in the main class works perfekt but i need a other thread but there the code won't work code...
The method create(Context, int) in the type MediaPlayer is not applicable for the arguments (Alarm, int)
and
The method getSystemService(String) is undefined for the type Alarm
I want to look at the source code for the ListAdapter class without downloading the entire Android source code tree. Is there a way to do that?
View 4 Replies View RelatedI'm developing an app that uses google maps, but for some reason it crashed every time I try to call the constructor code from the map class.
main
[HIGH]import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
[Code] ......
What is the .git file corresponding to ContactsContract.QuickContact class?
View 2 Replies View RelatedI'm new to Android development and I've been having an issue that I haven't been able to fix. I'm mostly using code from examples provided in the SDK so I'm not sure what's happening here. I'm simply trying to create a custom view GhostSurfaceCameraView that extends SurfaceView. Here's my class definition file GhostSurfaceCameraView.java:
CODE:............
And this is in my ghostviewscreen.xml:
CODE:............
Now in the activity I made:
CODE:........
When setContentView gets called, an exception is thrown:
CODE:.................
Why I get this error?
I had a bunch of code in an activity that displays a running graph of some external data. As the activity code was getting kind of cluttered, I decided to extract this code and create a GraphView class:
public class GraphView extends LinearLayout {
public GraphView(Context context, AttributeSet attrs) {
super(context, attrs);
LayoutInflater inflater = (LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.graph_view, this, true);
}
public void start() {
// Perform initialization (bindings, timers, etc) here
}
public void stop() {
// Unbind, destroy timers, } }
Moving stuff into this new LinearLayout-derived class was simple. But there was some lifecycle management code associated with creating and destroying timers and event listeners used by this graph (I didn't want this thing polling in the background if the activity was paused, for example). Coming from a MS Windows background, I kind of expected to find overridable onCreate() and onDestroy() methods or something similar, but I haven't found anything of the sort in LinearLayout (or any of its inherited members). Having to leave all of this initialization code in the Activity, and then having to pass it into the view seemed like it defeated the original purpose of encapsulating all of this code into a reusable view. I ended up adding two additional public methods to my view: start() and stop(). I make these calls from the activity's onResume() and onPause() methods respectively. This seems to work, but it feels like I'm using duct tape here. Does anyone know how this is typically done?
I am trying to create HTTP connection using AsyncTask class.
Is it possible to create HTTP connection ?
Can you suggest sample source code?
I set a toggle breakpoint at line 36 of the main class, of APIDemos 8, the debug begins at the OnCreate but never processes another line in the class. Why is that?
Here's the code starting a line 36. Code...
Problem: I have one app that let's you lock the device using Device Administration. One of my users had some conflicts with my app and another. He then removed Device Administration and uninstalled my app, rebooted his phone, and now he cannot access his phone.
He of course cannot use my app to change the password now (since it's uninstalled).
His phone is stock 2.2 LG Optimus V, Virgin Mobile, Rooted.
Question:I'm needing to find a way that my user can now change his lock code.
I need:
1.) to know an internal class (from com.android.internal) that I could use within an app to change the lock code (just like the system settings do).
2.) to know a command I can use with adb shell to remove or change the phone lock code.
3.) to know the location of the file that stores the lock code information.
When I try to edit project/res/main.xml using android layout editor in eclipse I get the error "Could not initialize class java.awt.font".
View 3 Replies View RelatedI'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors...
It says "The constructor DrawableContainer.DrawableContainerState (AnimationDrawable.AnimationState, AnimationDrawable) is undefined". Any ideas how to fix it?
I keep getting this when trying to start a new project
ERROR: Unable to open class file C:UsersLeviDesktopAndroidworkspaceDroid1gencomandroidbookdroid1R.java: No such file or directory
I tried changing preferences to alter build path to project, but it still wouldnt work,,,
Is subfolder on desktop a bad place to install Eclipse?
When i extends the MapActivity class it shows an error.
error is: cant resolved datatype. why?
How to add a maps.jar in my project?
I want to show messageBox or notification when connection lost in Static DB class but i cant use getApplicationContext() because its a static class and i tried to call other class called notification but i have error so how i could pass activity object to my new class .
View 3 Replies View Relatedam trying to call a class from the main and am getting an error and the program is stop working. am trying to call from the main.class the test.class
on the main i have write the following code
Intent connectIntent2 = new Intent(Conn.this, Test.class);
startActivity(connectIntent2);
and on the test.java i have write[code]....
the R.id.button_scan is been define in the main.xml and i just want to make it invisible.
Did a fresh install of Eclipse, JDK and android-sdk.
I am currently receiving this error when creating a new project
[2010-09-26 16:07:56 - Test] ERROR: Unable to open class file C:workspaceTestgencomexample estR.java: No such file or directory
What's the reason for this and how I fix it?
Eclipse Helios 32 bit
java version "1.6.0_21"
Android sdk API 8
P.S. Im new to Android development.
EDIT: I tried most of you solutions, but nothing worked. So I started using my frineds install of Eclipse Ganymeade.
Posted my problem here too HERE: A beginner..Im doing a school map app.
First of all I have background with 4 buttons ( level3, level4, level5, level6) I try and click all the buttons, normally after clicking 3 of it, the next one will crash.(each level button goes into a level map, whereby clicking the room image buttons, I will enter into the gallery-imageswitcher)
I have at least 5 imageswitchers in each level maps,so that about over 20 imageswitcher galleries overall.
I did all my stuffs using DRAWABLES instead of BITMAPS.. I have tons and tons of images (because its a school map, show all the photos in my school, and all those backgrounds and imagebuttons)
I did some research, and those who have problems are those using bitmap. Some of the ways that can be solved is system.gc();, and bitmap.recycle...(not so sure how to use it though)
In my main background - starttour.java Code...
PS: I have tons of images in the app; I have at least 5 imageswitcher gallerys in each level, so that kinda adds up to over 20 imageswitchers in my app.
When using this class I get this strange exception. It is used to print out a nice timer display for my game, and is created when my main GameView class is created. The error gets thrown at line 26: super(s*1000,1000);
package tommedley.android.game;
import android.content.Context;
import android.graphics.Canvas;...
public static int MODE_COUNTING = 0;
public static int MODE_PAUSED = 1;
public static int MODE_FINISHED = 2;...
Encounter this problem when trying to Build Project getting such output in console:
CODE:....................
I was looking for my project to use the package javax, not found, clean all also does not help.
I cant text for some reason. when i try i get sms error. cause code: 64 error class: 2
I seen the other threads but they had code 67.
I got my phone from RS and they set it up, everything was working great but now all of a sudden I get this Error message.
Dada Call Failure
Error Code 67. Registration failure. Your PCS Vision username and or password may be incorrect. Please try again
Who is JPARKS and why did he break it ?
View 4 Replies View RelatedHad my EVO for a little over 3 hours and still getting Error Code 67 "Your PCS Vision username and/or password may be incorrect"
I obviously expected some delay given today's launch but assumed about an hour at most....unless I've done somethign 'stoopid'.
Some classes are NOT PUBLIC like android.os.ServiceManager, android.view.IWindowManager, etc, they are implemented in the mobile devices, but not present in the SDK .jar. This is because these classes are private APIs . now please tell me is there any way like compiling source code or importing private class file into android.jar so that i can use this private APIs.
View 3 Replies View RelatedNow, I am trying to verify the JNI in Android Java platform. I am using HTC G1 phone. I write a simple .c file to make a hello.so and a simple hello.java file to load the library. My story is like below:
1. create hellolib.c file and compiled to a hellolib.so create a folder in create a hellolib.c file hellolib.c, it really nothing just a function return;
*#include <jni.h>*
*#define .LOG_TAG "TestLib"*
*#undef LOG*
*#include <utils/Log.h>*
*JNIEXPORT void JNICALL java_com_testHelloLib_PrintHello(JNIEnv
* env, jobject jobj)*
*{* *LOGD("hello android LIB");* *}*
I compiled the hellolib.c to .so by changing the android.mk:
*LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS)*
*LOCAL_SRC_FILES := hellolib.c*
*LOCAL_C_INCLUDES := $(JNI_H_INCLUDE)*
*LOCAL_SHARED_LIBRARIES := libutils
LOCAL_PRELINK_MODULE := false*
*LOCAL_MODULE := libhello *
*include $(BUILD_SHARED_LIBRARY)
* push the libhello.so to /system/lib
2. create a .java file.
*public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
native_test.add_xx(1, 2) ;* * }* * }