Super NOOB


Last Updated:

  1. stainlessray

    stainlessray Well-Known Member This Topic's Starter

    Joined:
    Jun 22, 2010
    Messages:
    642
    Likes Received:
    106
    I'm not a developer, I'm just using the SDK attempting to install an app. When I use the command "adb install %path\apname" it returns the message "can't find %filename" but i can change to the directory and see it right there... I've even tried doing it from the directory where it exists, using the path for the adb command.

    ALSO, the apps name has spaces in it, and when i enter it in verbatim, it cuts off the 1st 2 words. i tried renaming it excluding the spaces, and that didn't work either, it can't find the file then either.

    I figured, theres got to be someone in this forum who can help me. and i couldn't find my exact problem anywhere else. thanks.
     

    Advertisement
  2. markb

    markb Well-Known Member

    Joined:
    Sep 14, 2009
    Messages:
    148
    Likes Received:
    26
    Hi stainlessray

    Could you post the exact commands that you're using please.
    It's not clear to me how the error message relates to the command you're using. I can't tell if you're using environment variables, and I'm confused about why the error says "%filename" when your command specified "%path\appname".

    Are you working with an apk file?
    If you dowloaded that file then it's much easier to install it by downloading it directly to your phone. Once it's downloaded you can do the installation on the phone. You just select the apk file from the notification bar after the download is complete. (Check your settings to make sure you enable installation for unknown sources. See the Applications page in the settings app.)

    If you can't download the apk file to your phone, you could put it on the SD card. There are apps around that will then let you select the file and install it. (I can't suggest any as I've not used one myself. But I've seen them mentioned.)

    Mark
     
  3. stainlessray

    stainlessray Well-Known Member This Topic's Starter

    Joined:
    Jun 22, 2010
    Messages:
    642
    Likes Received:
    106
    Upon reading your answer i realize how poorly my question was written. I should never have shorthanded my quotation the way i did to programmers. SORRY about that.
    I use (from the directory where adb exists)

    "adb install c:\users\ray\downloads\apk files\Hands Free Music.apk"

    gets me:

    "unable to find Music.apk to install"
    (tried renaming the file without spaces on a whim, no help same result)

    if i do it from the directory where the apk file exists it looks very much the same except i use the path to the abd, and get the same result.

    whatever i am doing wrong is eluding me because i know so little, yet i know i am close, because the error message suggests i am indeed trying to install something on my device, but for a stated reason, i can not.

    also, although i could use an apk to install it, i am on a mission to make this single leap forward in my knowledge of how all this works. it may seem small to you, but to me it has become important. i believe a greater understanding will lead to greater enjoyment, and the abillity to get more from my device :D

    thanks in advance for any help or time you spend on this. it really will be appreciated.
     
  4. cp1

    cp1 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    try:

    adb install "c:\users\ray\downloads\apk files\Hands Free Music.apk"

    instead
     
    stainlessray likes this.
  5. stainlessray

    stainlessray Well-Known Member This Topic's Starter

    Joined:
    Jun 22, 2010
    Messages:
    642
    Likes Received:
    106
    I knew I came to the right place.... I've got to get educated.
     
  6. cp1

    cp1 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    Glad it worked. Having spaces in directories and filenames is a pain unfortunately.
     

Share This Page

Loading...