yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Cloned2:
Some background: 10 years ago I had classes in basic, pascal, and c++( I missed something simple some where with functions or classes which messed me up in this I believe.)

So far I've watched a tutorial and set up my emulator and eclipse..

http://www.youtube.com/watch?v=z7bvrikkG7c

I then did a tutorial that ran my first program helloworld

http://www.youtube.com/watch?v=2gdhvwYUNJQ

I then did a tutorial and made a simple program that changes between two screens on a button click ( Why it is an hour long is beyond my understanding)

http://www.youtube.com/watch?v=m-C-QPGR2pM

I've proceeded to learning how to create menus and simply retrieved example code from the Google android site

Source: http://developer.android.com/guide/topics/ui/menus.html

As I copy and pasted it into ecplise within an Activity, I realize there is some assumed information that I am missing when i received a bunch of errors

So.. I found A video tutorial

http://www.youtube.com/watch?v=6UYNnQOxCS8

and it instructs me to make sure I put these two lines of codes in first

Private static final int MENU1 =

MENU

.FIRST;

private static final int MENU2 =

MENU

.FIRST + 1;

I under line the menu's because it gives me errors on them as well... there seems to be some assumed knowledge I'm missing as well....

What specific piece of information am I missing to not have known that i would need those two lines as well as what I need to do to know the appropriate fix out of the suggestions they give me...

Are there any online tutorials or videos that'll bring me up to speed specifically with programming android apps... all the stuff I find just keeps leading me down a path to where I realize I've gotten ahead of myself because people are teaching things while assuming certain knowledge is known.

The tutorial I am following and getting errors on is for an 8th grade class of students... :(
[Android Software Development] Cloned2:
Me: I'm pissed at that java toturial...

http://xdaforums.com/showpost.php?p=6521891&postcount=6

Bastards.
[Android Software Development] Cloned2:
Following the suggestion from this post

http://xdaforums.com/showpost.php?p=6522089&postcount=7

I obtained a copy of Hello android.

Following the example to create a menu I used the code

I place this into my strings.xml

I place this into my main.xml

I import this files into my src app.java

right uner the other imports

I place this inside my activity ( where I think it would belong since it doesn't say where to put it. ) and ERROR

Quick fix says that menu needs to be either a field or constast so i give it a go and click field and it modifies a file called R.java.

I go back to app.java and not only is the menu highlighted but now R.menu.menu is entirely highlighted and says cannot be resolved or is not a field..

I try to modify the R.java file to remove what its done...

It won't let me..

Epic fail. on the third tutorial to create a menu.

I guess ill redo everything in a new project and then do the quick fix making menu a constant....

[edit] never mind ill look else where for help

http://www.youtube.com/watch?v=X3QO0ffg2Tc&feature=related
[Android Software Development] Cloned2:
ok the toturial looks like it will work but when he types in this line in his app.java

it is under lined with an error on his screen as well as mine and then he says he is importing the missing classes and the error just disappeas with no demonstrations of what missing classing or what key combination he used to import them...

http://www.google.com/#hl=en&q=impo...=f&aqi=&aql=&oq=&gs_rfai=&fp=d059ab474882bfe2

WOO HOO found what he left out...

Compiled and installed...

Boo hoo menu key does nothing!! time to go back through the other menu tutorials and see if i cant get it working now that i know of this hot key..
[Android Software Development] Cloned2:
Went back to this toturial with the elusive import missing classes hotkey..

http://www.youtube.com/watch?v=6UYNnQOxCS8

It worked like a charm :rolleyes:

just had to remove

newGame();

and

quit();

and i have buttons that do nothing so far
[Android Software Development] Cloned2:
More missing pieces.

I created a new activity as shown to me in previous tutorials giving it its own seperate XML file in the res/layouts as well as a jave file and I made sure it is calling for the right layout.

I also added the activity in the androidmanifest as shown to me as well..

off this site

http://developer.android.com/guide/topics/ui/menus.html

I've taken the code to create menus.. ( i got it working )

I then followed this and made the changes

It doesn't work... I don't understand why the intent would be in the onCreateOptionsMenu... it doesn't seem to work so I tried the alternative and replaced setIntent with with startActivityForResult.. and then I noticed it says "As usual" in the onOptionsMenuItemSelected()... which is where I would think the code would belong in the first place... but when I originally failed and tried to move the code there it errors...

Is ever step of the way really going to be half assed instructions.. i was beginning to think I had the hang of this.

Are the instructions bad or am i missing something???

Guess ill go dig in my hello android book.

EDIT: Wow that helped

guess that book is worth something after all...

guess im just intending to start an activity with a particular intent and setting an intent alone isn't going to start the activity.... i suppose there must be some purpose behind setting an intent as they had describe on the google page.. just not seeing it yet...

Got to what i wanted tho.
[Touch Diamond2, Pure Themes and Apps] sonsonnnnn:
G-SENSOR APPS

does anybody know how to made this lock and games work on touch diamond 2 or leo devices or and wvga htc devices?!!? The lock app is so awesome, very user friendly and interactive. i tried installing on ma td2 but unfortunately it doesn't seem to work ... i don't know how to made it work on the td2 so it would be nice if some knows how! right now i think it only works on samsung omnia 2 and i8000.

It features colorful butterfly, humming bird and funny yellow man which moves according to the movement of your device for locks, and same for the games. (G-sensor).

http://mobile.prompt.co.kr/lock/yellowman/content.asp

http://www.youtube.com/watch?v=XdbQAnPN4jU
[Touch Diamond2, Pure Themes and Apps] sonsonnnnn:
here's some screenshots
[Android Software Development] toast000:
I'm trying to make an app that looks at two pictures, looks at some random pixels in both, and compares them. I know how to display a picture, but I'm not sure how to simply load the two images to compare. Maybe I'm overlooking something simple. Any help and suggestions are welcome.
[Shift Accessories] mirowade:
my power buton ist broken , i need the power buton only,
[Shift Accessories] psdos:
I think that the best is you call a official SAT for buy the button.

Best Regards.
[Hero CDMA General] bigupurself7:
Do you guys still use Autokiller in the new Fresh Toast?
[Hero CDMA General] Rsoehelk:
I use it. Dont really want to go and use the task killer so i let the auto killer do it. I set it to aggressive. Keeps my phone fast.
[Hero CDMA General] Jus10o:
Many people use it. The only reason flipz stopped including it because he noticed it was reporting your location to the dev. The dev since then has removed it from the app.

ALSO THERE IS A SECTION CALLED.. QUESTIONS AND ANSWERS

Please post in the right section from now on. The only thing that belongs in Development is something that you provide to others to use for your computer, phone or others means of developing towards "android" or "htc hero"
[Hero CDMA General] ratson:
yes, i have flurry analytics included to better understand the usage of my application, and it also collected location information, but i have disabled this feature a few weeks ago...
[Hero CDMA General] Draken Korin:
Mod edit: not dev related, moved to general
[Hero CDMA General] fixxxer2OO8:
why would u need location info and dont give me that "to better understand your clientele" crap.... thats why i dont use it anymore i dont want flurry analytics or location info being recorded
[Hero CDMA General] markus_del_marko:
I have already reported to the creator of autokiller that the app doesn't seem to function anymore on most of the 2.1 roms ive tired. It's a shame as it used to be a really useful app.
[Shift General] mirowade:
hello my power button ist broken, i need only power buton
[HD2 General] luderdune:
I have several excel files that i use frequently enough to make this very helpful indeed. Also, is it possible to customize the text and/or the icon used for the file in addition?
[HD2 General] samsamuel:
assuming using built in file manager...

press and hold the file, choose copy, browse to windows/start menu press and hold, choose paste as shortcut. now you can assign it to a quicklink.

as for the icon, not sure, maybe hand edit the link file and reference the icon there,, or if you browse to

hklm software htc manila home

find the numbered key your link is in and play with the icon reference there.

i don't bother with icons, sorry.
[Touch Diamond2, Pure Themes and Apps] opensea:
Hello,

I am looking for a small and simple task manager instead HTC Task Manager. Actually The HTC T.M. is doing fine but since it's been removed from latest official ROM and installing "dutty's HTC T.M." gives some visual troubles. I don't know why but dutty's lost sometimes the buttons in it. I mean there is a task manager but useless.

Do you know a working HTC T.M. or an alternate one?

Regards.

P.S.

Forgive my very poor English.
[Touch Diamond2, Pure Themes and Apps] wuub:
using ameba you can assign the longpress on start button to open /windows/taskmgr.exe

very basic and yet effective task manager (windows default taskmanager) ;)
[Touch Diamond2, Pure Themes and Apps] opensea:
I will try. Thanks. ;)
[Touch Diamond2, Pure Themes and Apps] madsurfer1:
try mmtaskmanager

http://sites.google.com/site/maximusmobileproject/Current-Apps/mmtaskma
[Touch Diamond2, Pure Themes and Apps] joooe:
Xtask is amazing.

http://xdaforums.com/showthread.php?t=606162
[Touch Diamond2, Pure Themes and Apps] wuub:
mmtask is nice but a little long to launch compare to windows taskmgr...

Xtask isn't bad but i think i prefere waku's wktask !

(it's only a question of taste ;)
[Touch Diamond2, Pure Themes and Apps] lemonspeakers:
dsgxfgchretydu
[Touch Diamond2, Pure Themes and Apps] Clound:
WkTask +1

I am too used to PC-like interface for managing running programs... :D
[Touch Diamond2, Pure Themes and Apps] opensea:
I think i'll go to develop a small and simple task manager that will have the same interface with HTC's. Will use c#
[HD2 General] wolfee:
NASA TV works like a champ on Opera 10!!!

I have been watching the public channel at nasa.gov, keeping updated on the current shuttle mission... :D Though I wouldnt try it on anything less than a wifi or 3g network...:(
[HD2 General] xlr8me:
Don't forget skyfire too has flash support.. :)
[HD2 General] 10332007:
Nice, I will probably go the skyfire route as I enjoy my opera multi touch too much...
[General Topics] Gissan:
Hello.

I have a problem with a Touch HD2. Sometimes, when I send a message, it doesn't get sent until I restart / reboot the phone. When I do, all the messages gets sent at the same time.

I had the same problem with a Touch HD some months ago.

Anyone know how to fix this?

Thanks for help.
[General Topics] Fallen Spartan:
hmm, interesting one, what is your device currently set to for sending messages, i.e. GSM, GPRS?

Have you recently updated rom, radio or changed ril?

Have you tried running automatic setup again?

Can you provide more info please
[General Topics] ddotpatel:
Yeah, could be a radio problem or your phone not logging onto local masts.

Try a manual roam,.... Go to your network selection, search for available networks, then pick a network you are not on, ideally a network that uses a diff network frequency band thing. So if your nwtwork uses 900 research one that uses 1800 or vice verser. When you select this 'wrong' network it sould give you some kind of error and you should lose all network coverage. Then re select your correct network.

Try power cycling,... Turn off your phone, remove SIM & Battery, hold power button for 5 - 10 seconds. Then put everything back in and turn on.

Last one,... Go onto internet on handset, load a page you have never been on before that has alot of data on it, amazon or something, while its trying to load the page pull the battery out. Then power cycle as above.

I worked for Vodafone Cust services about 8 yrs ago,.... those 3 things usually sorted network issues.
[General Topics] fgth90:
+1

I have exactly the same problem on my HD2.

It's very occasional, and just a soft reset is necessary and everything's fine again.

I don't know why this happens.

Thanks

Franky
[Hero, G2 Touch Q&A, Help & Troubleshooting] pauldn:
Hi,

spent a few days looking for info on this forum, but haven't found it yet so decided to ask the question.

I am in Australia and bought a hero through a dealer, it arrived with the South East Asia ROM. I've tried living with it but its painful and no access to android market.

I want to replace it with the World Wide English ROM. Once done I then want to try out various things on this forum.

I have located and downloaded what appears to be the latest WWE stock ROM for the Hero

RUU_Hero_HTC_WWE_2.73.405.38_WWE_release_signed_NoDriver.exe

I have backed up all data, and made a copy of APN settings.

I dont care about keeping the SEA ROM on there now.

Is it as simple as just running the .exe file above with the phone connected via USB.

Advice for this newbie appreciated.

Paul
[Nexus One General] acantril:
Hi Guys - don't ask me why but a number of people have requested that I place my guide to undervolting (kernel replacing ) for the nexus one in a separate thread. I don't think the quality is all that good - but it does explain the process of kernel replacement & SETCPU power schemes all in one place. Using both it will save you some battery life.

The post is http://www.adriancantrill.me/blog/2010/04/undervolting-the-nexus-one/ and i've updated it for the ADB PUSH and Flash ZIP methods of kernel changing.

Shameless Plug If my article is useful to you please take a look at the ads from some of my sponsors - if their offering something interesting then pay them a visit.

If you have any questions either post here (prefered), blog comment or twitter me @woolnoir
[Nexus One General] acantril:
small changes, based on feedback.
[Nexus One General] acantril:
As some feedback to this, a lot has changed since i wrote the article specifically Intersect raven has started to focus on the 800MV and 900MV variants of his kernel - anyone whos tried this, feedback would be appreciated as to how they find the battery life. I'll be updating my post at some stage with a recommendation based on feedback here, and on the thread in the development forum.
[Nexus One General] acantril:
Been trying the 900MV kernel and it does seem to give a little extra life than the 800 ... odd...also seems to be less 2G to 3G switching in weaker areas, although i could be dreaming.
[Nexus One General] acantril:
Has anyone experienced any battery charging issues with the above kernel, seems on my 2800MAH battery using this one im stuck at 91% charge... even after a restart.
[Windows Mobile Apps and Games] Corwin9S:
Guess where is the Golden Garbage ... If you find it, among the three choices, you earn 1 point. If you do not find it, you do not receive anything. The game is played in 10 rounds and a counter displays the number of points you have.

Its usage is simple, even if texts are in french :

Click on the image to start to start the game

Click on "JOUER" to start playing

When you see the text "CHOISIS", click on one of three bins to check if the Golden Garbage's hiding beside your choice

Click on "ENCORE" to continue to play

Click on the trash in the lower left to reset the counters during game and start over

Click on the trash in the bottom right to exit

* Note 1 : The link is open and do not need to register anyways

* Note 3 : This software is free and will stay free

* Note 4 : Do not hesitate to report any bugs, for improving

RESOLUTIONS : normally fit all resolutions...

VERSION : 1.1 of 19.05.2010

URL : http://www.i900playeraddict.com/i900_forums/viewtopic.php?t=2094

DOWNLOAD : http://www.i900playeraddict.com/ddl/PoubLOr/PoubLOr.CAB

Thanks for comments and feed-backs !

SCREENS :
[Nexus One Q&A, Help & Troubleshooting] audino:
Hi,

Ive got a problem with my sd card. I restart the phone and I can see in gallery all photos done (all saved on sd card)... When I open the cam app, it also shows me the last taken pic. After I took few pic´s, I can see them aas long as the cam app is still running from preview mode but when I go back to home screen and start gallery its empty and says sd card not insert or ready. At this point the cam app although says no sd card insert... :confused::confused::confused:

Whats wrong?!
[Touch Pro, Fuze General] bjornzzz:
Hey all, been having my touch pro for about a year and a half and it has been great so far. Up till today, when I was at work, i noticed this little blue dot on my screen, thought it was nothing and ignored it. The phone was working fine till about few minutes later, when I checked on it the screen just wouldn't respond. Note that everything else works, the buttons and keyboard work, the home clock keeps ticking, but yet the screen just would not do anything. However when the backlight dims (due to inactivity) and when i touch the screen, it goes back to full brightness (the usual) which means that it is still working. So what's going on and how would I go about fixing this?
[Touch Pro, Fuze General] SDreamer:
It's possible something is pressing down on the screen continuously, do you have any snap on cases? Also, this blue dot, how big is it, and what is its shape? Is it a dead pixle? Perhaps the point of impact something hit the screen at to disable it's functionality. Have you tried a hard reset?
[Touch Pro, Fuze General] bjornzzz:
So an update to my situation. Can confirm that this is 100% not a software problem, but a hardware one. No cases on the phone, just a screen protector. The blue dot, more like blue patch has now become bigger. :S

When the screen is turned off, it looks like a patch of blue underneath the screen, and on a white background that patch is very white and bright.

I then removed my screen protector to see if it's just some ink stuck in there as I was getting quite desperate. The blue patch was still there, and is underneath the screen. I grabbed the screen protector and decided to use the sticky side of it to sort of remove the adhesive glue that was on the screen and voila, the blue patch dissapeared. And the screen was again useable.. But when I however press on the affected area, it will filled with the blue patch once again. I can redo this process a million time, but afterall, the phone is still not useable as a slight touch on the area and the screen will no be useable.

Any thoughts?
[Touch Pro, Fuze General] SDreamer:
Sounds like the top layer of your screen is just worn out. The best fix is to replace it most likely. You could try using another screen protector or two to stiffen the top layer and see if that fixes it, but you'd probably lose sensitivity. That spot is caused because the film of oil between the top and bottom layer is non existant at that point, and both the top and bottom layers are literally stuck together. I believe the oil is suppose to prevent this.
[HD2 General] ange11eyes:
I would like to put bsb tweaks on my hd2. However, I do not know where to install it to? Many thanks
[HD2 General] samsamuel:
put the cab file anywhere on your phone and run it.
[HD2 General] leemarie:
Hi put the cab file on you sd card .then install using file explorer

-------------------------------------

Sent via the XDA Tapatalk App
[HD2 General] Meromorph:
You'll probably do more CABS, so I suggest creating a CAB folder on the root of your SD card... Easier to keep track, then.
[HD2 General] Kalavere:
It's a winner, I keep a copy of my cabs on my laptop and another on my SD card for easy of use when flashing from ROM to ROM. :)
[HD2 General] ange11eyes:
do I have to do anything else to the phone? like u would jailbreak an iphone? i unzipped the folder and put it on the storage card but when i select setup nothing happens :/
[HD2 General] rp-x1:
You don't unzip it. You run the .cab file as it is.
[HD2 General] ange11eyes:
ok i am confused lol when i downloaded it from this forum it is in a zip file and actually doesnt have a.cab file in the zip file
[HD2 General] rp-x1:
Are you sure it isn't just a .cab? WinRAR opens them like they are zip files.
[HD2 General] ange11eyes:
lol its ok i figured what i did wrong, thanks anyway. i shouldnt try and do these things late at night
[HD2 General] ange11eyes:
ok I have got it installed now and i want to use it to rotate office but when i bring up the rotate menu the office apps are not listed?
[HD2 General] rp-x1:
Can you not add it in the options, by shaking the phone while in the office app?
[HD2 General] ange11eyes:
this doesn't appear to work. I have the HTC HD2. I open the office app and when I shake it nothing happens. Should it?
[HD2 General] rp-x1:
Follow the instructions in BsBtweaks.
[HD2 General] ange11eyes:
Thank you I have now managed to add them to the list, ticked them, did a soft reset but they are still not rotating. Its just not my night lol
[Nexus One Q&A, Help & Troubleshooting] vnbuddy2002:
Hi all,

Can someone tell me what am I doing wrong here ?

kenny@vaio:~/android-sdk/build$ ls -altr

total 4824

drwxr-xr-x 8 kenny kenny 4096 2010-05-19 02:24 ..

-rw-r--r-- 1 kenny kenny 2621440 2010-05-19 02:41 mtd2.img

-rwxr-xr-x 1 kenny kenny 2310048 2010-05-19 02:54 zImage

drwxr-xr-x 2 kenny kenny 4096 2010-05-19 03:11 .

kenny@vaio:~/android-sdk/build$ ../tools/unpack-bootimg.pl mtd2.img

kernel written to mtd2.img-kernel.gz

ramdisk written to mtd2.img-ramdisk.cpio.gz

gzip: ../mtd2.img-ramdisk.cpio.gz: decompression OK, trailing garbage ignored

523 blocks

extracted ramdisk contents to directory mtd2.img-ramdisk/

kenny@vaio:~/android-sdk/build$ mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel zImage --ramdisk mtd2.img-ramdisk.cpio.gz -o kernel.desire

kenny@vaio:~/android-sdk/build$ ls -altr

total 9980

drwxr-xr-x 8 kenny kenny 4096 2010-05-19 02:24 ..

-rw-r--r-- 1 kenny kenny 2621440 2010-05-19 02:41 mtd2.img

-rwxr-xr-x 1 kenny kenny 2310048 2010-05-19 02:54 zImage

-rw-r--r-- 1 kenny kenny 342016 2010-05-19 03:11 mtd2.img-ramdisk.cpio.gz

-rw-r--r-- 1 kenny kenny 2277376 2010-05-19 03:11 mtd2.img-kernel.gz

drwxr-xr-x 8 kenny kenny 4096 2010-05-19 03:11 mtd2.img-ramdisk

-rw-r--r-- 1 kenny kenny 2654208 2010-05-19 03:12 kernel.desire

drwxr-xr-x 3 kenny kenny 4096 2010-05-19 03:12 .

kenny@vaio:~/android-sdk/build$ ../tools/fastboot flash boot kernel.desire

sending 'boot' (2592 KB)... OKAY

writing 'boot'... FAILED (remote: image update error)

kenny@vaio:~/android-sdk/build$ ../tools/fastboot flash zimage zImage

sending 'zimage' (2255 KB)... OKAY

writing 'zimage'... FAILED (remote: unknown fail)

kenny@vaio:~/android-sdk/build$ ls -althr kernel.desire

-rw-r--r-- 1 kenny kenny 2.6M 2010-05-19 03:12 kernel.desire

kenny@vaio:~/android-sdk/build$ ls -althr zImage

-rwxr-xr-x 1 kenny kenny 2.3M 2010-05-19 02:54 zImage

kenny@vaio:~/android-sdk/build$

Regards,

Kenny N
[Nexus One Q&A, Help & Troubleshooting] craigacgomez:
i think this has something to do with the bad block issue... try using this command to create the boot image

mkbootimg --base 20000000 --cmdline 'no_console_suspend=1 console=null' --kernel zImage --ramdisk ramdisk.gz -o boot.img
[Nexus One Q&A, Help & Troubleshooting] vnbuddy2002:
Thanks Craig - I will give it a try once I got home. It tooks me ~3 hours to customize and build the HTC Desire's kernel for Nexus One. It would be a waste if I can't actually see it in action :)

Regards,

Kenny N
[Nexus One Q&A, Help & Troubleshooting] vnbuddy2002:
tried -- still the same

Regards,

Kenny N