0

I am trying to run an ADB command from HERE-Maps Documentation page which says,

adb push voices /sdcard/Android/data/{YourAppNamespace}/files/voices-download

In above command the "{YourAppNamespace}" is the app name, In my case my app name is separated by a white space like Google<space>Now So if i am passing my application name with white space in between command is giving error because there's a white space in between. How can I resolve it? Am I passing correct name? I copied my app_name from res/strings.xml

GeekWithGlasses
  • 572
  • 2
  • 12
  • 30

2 Answers2

1

You need to add "" quotes when white space is included in the command:

adb push voices "/sdcard/Android/data/{YourAppNamespace}/files/voices-download"

Alex P.
  • 30,437
  • 17
  • 118
  • 169
Sagar
  • 23,903
  • 4
  • 62
  • 62
  • you just copied the same snippet from the documentation page. It doesn't answer my question , Question is, If my app name is `google now` so notice there's a space in between google and now, so how can i pass a command which I have space in between app name, Which is making command fail – GeekWithGlasses Apr 20 '18 at 06:33
  • 1
    i think in a answer changing is this **" "** @GeekWithGlasses – Ali Apr 20 '18 at 06:35
  • @MohammadAli Sorry i think you interpreted that wrong, that double quoted is just for making focus on {YourAppNamespace} , i am simply passing my app name only, without any quotes symbol – GeekWithGlasses Apr 20 '18 at 06:39
  • okay okay i just see the change of the code so i just telling you @GeekWithGlasses – Ali Apr 20 '18 at 06:41
  • Putting my app_name inside double quotes made it possible , Cheers – GeekWithGlasses Apr 20 '18 at 06:44
  • Great! Thanks for updating – Sagar Apr 20 '18 at 06:49
0

You are getting confused with app-name and app-namespace

AppNameSpace: Application namespace is an object placed either directly in the global scope or on some other object as a property, holding all code and data making up the application.

The purpose of the application namespace is to

a) have the application form a single logical unit, and

b) avoid collision with 3rd party code such as libraries and frameworks.

More info here.

so logically it should be name-space of your XML:

xmlns:android="http://schemas.android.com/apk/res/android"

or

xmlns:app="http://schemas.android.com/apk/res-auto"

Hope this helps.

nimi0112
  • 2,065
  • 1
  • 18
  • 32