We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Jbeerdev • 12 years ago

Buenas Mar Luke.

Bueno, ese problema que tienes es de tu teléfono, poco tiene que ver con la programación en Android. Aún así, si ves que las aplicaciones dejan de funcionarte, podrías resetear el teléfono de forma que se te quede "como viene de fábrica". Aquí tienes cómo hacerlo. http://www.butterscotch.com...

Mucho ojo pq si no haces backups de tus aplicaciones y datos se te borrarán todas las que te hayas instalado (te dejará el teléfono tal cual te lo compraste).

Mar Luke • 12 years ago

hola!! tengo htc de google. la camara dejo de funcionar y la aplicacion adobe forzo cierre. como tener de nuevo aplicacion de android market?? gracias
atentamente
Mar Luke

Jbeerdev • 13 years ago

Hi Peter.

I have never worked with App Inventor, I write the code by myself. Maybe this can help you:

http://www.androidworld.it/...

I have not tried it so I don't know if it works.

Good luck

Peter Milko • 13 years ago

You can make apps in AppInventor and export an .apk file but you cant upload it to the market because it doesnt have the AndroidManifest.xml file

how can i add this file?
App inventor doesn't let you see a root folder.

please reply

yalini • 13 years ago

Hai, im new for android i have one doubt pls help me, when i upload my app in android market i get following err,
java.lang.RuntimeException: Unable to create service com..taxorg.activity.PutService: java.lang.NullPointerException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2969)
at android.app.ActivityThread.access$3300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.taxorg.activity.PutService.onCreate(PutService.java:33)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2959)

Jbeerdev • 13 years ago

Hi venkat

Well... Thats a odd question... it's difficult to say what packages to use...It's like using Swing in java, What packages do you use most and what are they for?

for example:

If you are using databases,

android.database is mandatory :)

In the UI we always use:

android.widget
android.view

Is this in any way useful to you? I mean, I place here some packages, and now what? watch what are inside? The best way to do this is programming and going to the API just when you are looking for something you don't know how to do.

That's my advice :)

I will write more about the Manifest. More attributes and parameters we can use here.

venkat • 13 years ago

Dear!
I am a Java developer and started learning android.
I found the article to be very useful and interesting.
Can you please let me know what all packages (eg: android.app,android.app.admin) we use mostly in app development..
Thanks in advance and looking forward for the reply.

Girija • 13 years ago

Nice Article. Could you please explain other attributes?

thanks

arindam • 13 years ago

Sir i have solved that problem The name of the main activity was different thats why the error was giving.

anyway now the problem is i draw a background image in android using openGL the steps i followed :-
1) create OpenGL(main activity)
2) created another class "GLView.java"( to see something on the frame
3) created another class "ThreeDFormatLikeCube.java" (here i have drawn a cube)
4) last class is "renderer.java"(here i put the image)

Now my question is for drawing a simple background image why i have to do so many things?
ALL I WANT IS TO DRAW A SIMPLE BACKGROUND IMAGE & ON IT A SIMPLE SMALL IMAGE using openGL.
plzz help if u can plzz pass me your mail id or if possible send me some sample project like this.
arindam2047@gmail.com is my mail id plzz help im just 4 days on Android.

Jbeerdev • 13 years ago

@Karan - Doing HTTP request using Get in Android is the same as in Java. I have not any full-code example but I'm sure that you can fin a lot on info in the web :)

@arindam Really strange error. Need more info. Waht info can you post about the Activity?

arindam • 13 years ago


<manifest xmlns:android="http://schemas.android.com/..." package="com.biswas.DrawBGOpenGL" android:versioncode="1" android:versionname="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
ERROR---> <activity android:name=".DrawBGOpenGL" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

</application>
<uses-sdk android:minsdkversion="4"/>
<uses-permission android:name="android.permission.INTERNET"/>

</manifest>

& The error msg is like:-
DrawOpenGL(my main activity) must be public or the system will not be able to instantiate it.
Sir what to do now?
plzz pass me ur mail id.
Description Resource Path Location Type
com.biswas.DrawBGOpenGL.DrawBGOpenGL must be public, or the system will not be able to instantiate it. AndroidManifest.xml /DrawBGOpenGL line 9 Android XML Content Problem

Karan • 13 years ago

Sir,

I want help for http connection using get method. I want full code including manifest.xml file. I hope you'll send as soon as possible.

Thank You,
Karan

khushi • 13 years ago

sir ,
firstly i would like to thank you for all your articles,they are really educative,easy and useful even for beginners like me. i request you to kindly explain how to make appropriate changes in the android manifest according to our code written in java or xml . i am getting an error when i run my code .........." ButtonImageDemo1 does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml ". though there is no error in any of the files main.xml or java ...and im not able to figure what this actually means..... i guess there is some conceptual error and i request you again to kindly guide.
thank you

Anonymous • 13 years ago

Hi,

I still do not have a clear picture about the understanding of the xml files in Android. I know it is very beneficial but how to understand the code written in it. Please kindly help.

Thanks,
Shaista

Jbeerdev • 13 years ago

Hi Dinh Linh

Of course you are allowed to use other classes different from Activities. You don't have to declare them in the Android Manifest.

Just create your class:

public myClass(){

}

and from the place you want to call this class, just create objects from it.

---- Piece of code inside an Activity, for example---

MyClass myC = new MyClass();

and you can work with it as usual. (Java like)

Dinh Linh • 13 years ago

I have question about active, i have config file like here :
<application android:icon="@drawable/icon" ...............................................................="" <activity="" android:name=".IcMain" ..............="" <="" activity="">

</application>
then i know that when application run it invoke IcMain class which inherits from Activity.
Now i want to invoke other class like MyClass and it is not inherit from Active class,

My question:
- Can i do it ?
- If yes how can i do ?

Thank you so much

Jbeerdev • 14 years ago

Hi Zahira

The AndroidManifest.xml file is in the project root directory. Its not hard to find...

Zahira • 14 years ago

The AndroidManifest.xml file? Which directory?
Thanks.

Jbeerdev • 14 years ago

Hi Sarita

You mean in the "style.xml" file? I'm going to write about this today. In few hours I will have an article explaining this.

sarita kumari • 14 years ago

Sir,

I want to know that how we will add style.java files in values. Values which are present in the res folder of Eclipse. Help me out sir.