Forums Register Login

It doesn't provide me expected output

+Pie Number of slices to send: Send
this is my main.xml file


this is string.xml



below is screenshot of my project
project.jpg
[Thumbnail for project.jpg]
+Pie Number of slices to send: Send
this is the output i am getting.but i am expecting a screen with some buttons.where is the error?
output.jpg
[Thumbnail for output.jpg]
+Pie Number of slices to send: Send
That's the emulator home screen; how are you trying to run the application? What's in the logcat output while you do that?
+Pie Number of slices to send: Send
I remember getting goofed up with this.
Notice the "Lock" icon. You need to drag it to the right hand side to "unlock" the phone. If coded correctly, you will see your app there
+Pie Number of slices to send: Send
I select Sudoko java file & select Run from drop down.
below are the screenshots.
SelectSudoku.jpg
[Thumbnail for SelectSudoku.jpg]
Run.jpg
[Thumbnail for Run.jpg]
+Pie Number of slices to send: Send
here is the consol output
+Pie Number of slices to send: Send
"Maneesh " what do you mean lock icon ?
can you explain ?
+Pie Number of slices to send: Send
The android emulator screenshot you provided. At the bottom you can see two icons. One is the "lock". The second is the "volume". Slide the lock icon to the right using your mouse to unlock the phone
+Pie Number of slices to send: Send
As Maneesh told drag it to the right hand side to "unlock" the phone. After unlocking phone you can see the output. Or you can press Menu button to unlock the phone.

And what you had posted is not Logcat output it is consol output. To see console output click on DDMS which is located at top right of eclipse.
+Pie Number of slices to send: Send
thanks all .it is working now.Anyway what is logcat ?

I have attached a screenshot.can you show me where to click?
logcat.jpg
[Thumbnail for logcat.jpg]
+Pie Number of slices to send: Send
Window->Show View->Other->Android->LogCat
+Pie Number of slices to send: Send
i run the project again.but logcat doesn't show anything ?
ok.jpg
[Thumbnail for ok.jpg]
no.jpg
[Thumbnail for no.jpg]
+Pie Number of slices to send: Send
Ok. Do one thing on the top right side of eclipse there is icon of "open perspective" (to the just left of Java) Click on that. Then select DDMS. Then If device contain your emulator name then click on that (just one click) If focus come on that then again look at Logcat you will get Logcat output.

To go to the .java files then click on Java (again top right of eclipse )
+Pie Number of slices to send: Send
ya,i got it.anyway what can we get from these thisng
+Pie Number of slices to send: Send
At last you got it

Using logcat output you can trace flow of your application by inserting System.out.println (""); statement.

Try inserting some statement in onCreate () method and in some other method. so you know that first onCreate statement execute first when you run your application. You can also use it for checking variables value at runtime.
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1950 times.
Similar Threads
list view problem
how to add a scrollbar to a view
when i change android:orientation to horizontal it shows blank screen
ListView textColor
Layouts, bottom position
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:05:38.