Xamarin has a RazorTodo sample that demonstrates how to build a hybrid app using WebView and razor. It contains a portable library that contains the views, models, and so forth. However, when adding a program for the portable library, I can't find a template for that. I can create a normal "portable" library, but it doesn't have a "Views" folder. I can create one, but then there's no template for adding .cshtml files. I can create a file of a different type with the .cshtml extension, but it would be nice for VS to know about the type. Am I missing something?
Thanks.
-John
Using a Views folder is just convention. It is perfectly legitimate to just add the folder.
If you are working inside of Xamarin Studio, you can add a .cshtml file to your project by choosing "Preprocessed Razor Template" under "Text Templating" in the "New file" dialog.
Visual Studio doesn't currently include this template type, but you can easily add a Text File or HTML File to your project, named with the .csthml file extension, and turn it into a preprocessed razor template by editing the properties on the file and setting "Custom Tool" to RazorTemplatePreprocessor.
Related
I have an Android App I downloaded and installed, I have also extracted the APK,
Is there some way from the apk file to tell what programming language was used to write the program?
Are there any tools are available to help with this?
What languages can be determined and which ones cannot?
Normally most android app is build using the following texhnologies:---
React Native app
Cordova app
Native java/kotlin app
To determine the technology, you need to decompile the app first using this link
Then look for "assets" folder. Normally, asset folder should be present at the very top of application hierarchy.
Then you can determine the app technology by the following prediction:--
If asset folder is present and there have any file with the extension ".bundle"(mainly the file name is "index.android.bundle") then the app is build using React Native.
If the assets folder contain a folder name "www" and "assets/www" contain the following file/folder structure then it is a cordova app.
If neighter 1 or 2 is true then the app may be written using native code, i.e using java/kotlin
You can do a reverse engineering : (https://www.apkdecompilers.com/ or http://www.javadecompilers.com/apk) decompile the apk and see the code and its programming language.
Not an accurate way to get the specific technology, but through adb, you could check the activity name of an app.
Usually when you open different activities or pages, with native technology the ActivityName will be different like below (Playstore app):
whereas in hybrid apps such as Ionic e.g, it is usually bundled up into one, hence the only activity will be MainActivity... like the Hamilton app made with flutter:
I am trying to use a different audio advice language for navigation, however when I set the SKAdvisorSettings to use a new language (en_us) it said it could not find the file. After some research I found this link saying I needed to add the sound files to the .zip file:
http://forum.skobbler.com/showthread.php/7250-Language-files-for-2-5-0-and-2-5-1
However when I unzip, add the file, and zip again (using Mac, right click, compress), the map fails to initialize and the only error shown is E/SKPrepareMapTextureThread: Shaders or Common files not found
Maybe I do not know how to add files to a .zip without otherwise affecting it, or I am missing how I am supposed to add the sound files to the project completely.
tl;dr: I want to be able to add more sound files to the navigation advice.
Thanks
After you have added the language files, you have to create a new zip by selecting all files inside the SKMaps folder, and renamed it from Archive.zip to SKMaps.zip and move it the assets folder replacing the old SKMaps.zip.
I am new to Android Studio.I like the IDE very much,it has got some nice set of features and has a rich look and feel, however I have some issues with the IDE. I recently created a Cordova application in android studio.I created an HTML file called index.html under assests/www folder.I included my jquery-1.11.3.min.js inside index.html file.I have the habit of checking whether the file jquery-1.11.3.min.js has been correctly included inside HTML file.In eclipse I use cntrl +click to check whether the js file path given is right.But when I use the same thing in Android studio,even if the path is right,it is showing like 'Cannot find declaration to go to'.The screenshot for the same is given below.
Can anyone suggest a solution for this situation.
I was looking for a way to add some such folder in my Android Project that do no get compiled up to my apk file.
Why I need it :-
We need to maintain proper documentation for project (that actually
everybody needs to ;) nothing new),
but I find it very irritating to look out for that documentation
folder again and again.
.
I am open for any way i can make dcocumentain folder easily one
click accessible (I am already doing it thru taskbar sortcut. ) But
I want it to get the ease of version control thru Eclipse likewise we
do it for our project
IDE :- Eclipse
I got a way myself :-
I had an idea that if I create a folder in my application project with
some anonymous name that actually android has not listed in its
directories ("I am talking about the default one like "res", "src",
"anim"......)
Then either it should "raise an error" or should "ignore" it while compiling to form apk file
luckily it ignores any such folder. now i can put all the documentation in my project.
NOTE:-
My answer empirically driven
I had tested it by creating a "Docs" folder and then copied 1 GB of
random data (includes almost all type of files we came across from
multimedia to zipped ones).
Then I build the apk and the size of the apk was in-effective of all
this..
but when i copied the same data to assets it was showing a huge change
in size of my apk file..
Consider using Javadoc in addition or, if possible, instead of any other documentation.
I would like to know how to create a customized directory structure template that will be created each time I start a new project. Rather than having to create files, and folders over and over, is there a way to just have the New Project Wizard create them by default in Eclipse? I know you can customize the content of files by modifying the template. I am interested in creating new folders and perhaps new customized files in those folders.
I don't know of any way to do this in Eclipse, but one thing that comes to mind is to create a sort of template project setup the way you want it and then just copy it. I don't know if you are working with plugin projects, if you copy a plugin project, make sure you fix the manifest to change the name of the plugin.