I have an android app that I am trying to ad-wrap using the Vserv.mobi appwrapper. Below are the steps that I follow:-
Select 'Wrap Android'
Add the .apk file
Set Show At = Both
Entered the Zone ID & ZoneID end
Set View Mandatory = Can view
Set Cache = Yes
Kept all fields in Label section blank
In Advanced section set Block Ads=No and Location Ads=Allowed all other fields are blank
Set Code Signing=Self
Add keystore file, set alias name, set alias store password & set key password
Set the output folder path
Click on 'Wrap App'
However I always seem to get the 'Failed (1 out of 1)' message.
Log file does not give too much information either:-
"APK folder location path !!!Failed!!!"
Does anyone know how to find the specific reasons due to which the wrapping failed?
Related
I am working in a multi language project so want to find out where exactly the strings are used from the value name in the string file programatically so once I get the Ids of the widgets (i.e textview or spinner or any widgets) where the strings are used so I can set them at once.
We are actually giving an interface for the user to change the content (label) of the textview field of android in our website so wanna set them to the received from json at all the places in android application.
Please help!!! Tysm in advance!
I want to find out where the string values are used which is declared
in the string file in android.
Steps.
1) Go to your res folder > Values > strings.xml
2) Select the String which you need to look up in project.
3) right click > find usages ( Alt + F7)
4) In bottom find tab will appear with all the string usages through out the project and it will show the usage in Java and XML resources as well.
For your reference added the screenshot
For replacing the text you can look into the #Anurag Pandit answer
I assume you are using Android Studio. In that case you can right click the key of the string in the strings.xml file and select Find usages. This will show you a list of where the selected key is used.
Simply use Command + Shift + r
A popUp will appear, place your required search string in "Text to find:"
and in Scope select Whole project .
You can see all the places where the string is used in Preview window before replacing it.
Here you could find a bunch of shortcuts for Mac/Windows/Ubuntu for faster development.
I have some problem when I trying to follow a tutorial to create a localization app: After I created all the folders and place the flag images, I run the app and expect to see the greeting message and corresponding flag for the locales; here is the problem:
The flag should change to Germany flag. (I set England flag as default)
This is the error message when I click the flag(Yes, the flag is a button.)
This is my res folder structure:
This is my res directory:
Textview is working fine, only problem is the flag image won't change with the location. Can somebody show me where the problem is?
You have to mention DPI into the name of your drawable folder after language code. For Ex, drawable-de-rDE-hdpi. Otherwise it will not find resources.
I am testing a android app and want to add name to ListView. But I want it to auto generate name which make it unique in the list.
I tried and can add system date to CustomTextView with code below in console.
query("ClearableEditText id:'edt_event_name'", :setText=>`adb shell date`)
Then I want to paste these to .feature and .sh file but no idea to make it work.
Any idea please help!
Thank you
I want to print the source code, Opened File-> Print.
In the print its printing the full file path on top. I want to print only the file name. How can I do this?
The Text line $FILE$ is printing the file path on top of the paper. I tried $NAME$,$FILENAME$, etc,. but not working? Any hope?
You can print the file name with $FILENAME$, Check IntelliJ IDEA documentation here.
Text line :- In this text box, specify the contents of the header or footer. If necessary, combine plain text with print keywords. By default, IntelliJ IDEA suggests to print the name of a file $FILE$ in the header and the current page number $PAGE$ of all pages $TOTALPAGES$ in the footer.
The following print keywords are recognized:
$FILE$ prints fully qualified file name.
$PAGE$
$DATE$
$TIME$
$FILENAME$ prints file name without path.
$TOTALPAGES$
I find it a waste of time that every time I need to enter a string that I have to go edit the strings.xml file manually. What I'd like to be able to do ideally is have Eclipse pop up a dialog box that lets me specify the name of the resource and the value for it. Then Eclipse would generate the code in strings.xml and paste the correct reference to the string at the cursor position.
Does such a facility exist?
Select a String, click Refactor --> Android --> Extract Android String.