I create a ASP.net MVC 4 project by using Visual Studio 2010 IDE.
I want to make sure that my web application could run at Desktop PC as well as Mobile Browsers which is not the same sizes and properties.
After learning from this, I found that I need to use 51Degree when it comes to android based opera browsers detection.
But unfortunately, when i use nuget command
Install-Package 51Degrees.mobi
The downloaded data is not like I already expected.
Below is my current project situation after I downloaded by using nuget Command,
01.)51Degrees.mobi.config [found]
02.)AppStart_51Degrees.cs [not found]
03.)FiftyOne.Foundation.dll [found]
04.)~/App_Data/wurfl.xml.gz [not found]
05.)~/Mobile [found]
06.)<redirect> element inside <fiftyOne>
[not found at web.config]
[found at 51Degrees.mobi.config]
Could anyone please give me any suggestion or any reference links which using Razor and 51Degree.mobi?
51Degrees.mobi has been updated to version 2 since the blog post you refer to was written. The files you mention are no longer required. I suggest you look at this blog post for guidance on MVC4 mobile detection.
Related
I am quite new to azure hubs. But spent three days to understand the flow(to use in xamarin forms).
Currently tying to link with android only(through xamarin forms). So when I thought everything needed is ready(GCM key and azure access policies) from my side, I started coding using vs2015.
First thing I did was creating "Blank portable cross platform" project.
Then,tried to install Microsoft.Azure.NotificationHubs package. PFA
But I am getting following errors( related to Profile259).
I spent whole day to understand what error is saying and I understood that package is expecting different target framework than what I am referring.
So I tried changed to other versions and through some blogs I found that maybe this Profile259 directory is missing.But it's all there.
Package is expecting .Net Framework 4.5 Full Profile. I cross checked it by following the link
I updated my azure version.Nuget package is also latest.
So what could possibly go wrong.
Please guide me in right way to get push notifications in devices.
PFA below.
I had to add it as a component. Go to the Components under the Android and iOS project, select edit components off the context menu, and add the "Azure Messaging by Xaramin" component. You'll probably have to download it by clicking "Get More Components".
If you're working on Android only for now, try removing all other targets from screenshot #2. There's a chance the error message is caused by one (or all) of the Windows targets.
Really hope someone can assist, we are using Azure Mobile App Service and everything works fine in the editor and on IOS, we only have a problem on Android when trying to update an existing record.
According to the Azure resource documentation you need to use Patch
PATCH /tables/tablename/:id Update an existing record in the table
When testing on an Android device it does not even try to send the web request it simply returns error: "Unsupported Protocol"
The research shows that there are workaround solution but I have not found anything relevant to Unity.
I did a search on the forum for HttpMethod.Patch but could not find a single article. Really having some trouble understanding how to resolve the issue and if there is a way to resolve it in Unity.
Any help would be greatly appreciated.
Just thought I would add this, according to the Unity documentation found here: https://docs.unity3d.com/Manual/UnityWebRequest.html
Platforms supported in 5.3:
Mobile Platforms: iOS, Android, Windows Phone 8
Set HTTP verb (GET, POST, HEAD, etc.)
Custom verbs are permitted (So we added Patch)
This should work no problem, but it does not even try to do the UnityWebRequest it just returns the error: 'Unsupported Protocol'
Seeing that the official documentation states that this should work, could this be a bug in UnityWebRequest?
Thanks in advance.
P.S. we have posted this on
http://answers.unity3d.com/questions/1230067/trying-to-use-patch-on-a-unitywebrequest-on-androi.html and we haven't heard any reasons, that is why i am posting the question here. Please if anyone knows anything about this topic to shed some light.
According to the API reference of UnityWebRequest, it seems to not support PATCH verb by default, besides following the definition of PATCH verb to construct a request with method PATCH and other parameters in UnityWebRequest. It's just my understanding above, because I could not find any information about PATCH verb with UnityWebRequest.
However, according to the issue information Unity Web Request and Json Utility, you can try to follow the GitHub project that using UnityRestClient instead of UnityWebRequest to update Azure Mobile App table record.
Hope it helps.
Azure SDK for Android uses okHttp library, which supports PATCH. However, Unity's webrequest uses native Android networking which does not support PATCH.
Just made a simple workaround using Easy APIs: https://github.com/dgkanatsios/AzureServicesForUnity
One workaround is to install "method-override" which works with Azure App Services (node backend).
Add "method-override": "^2.3.7" to your "package.json" dependencies by running:
npm install method-override --save
Insert the following to your "app.js" express app config (this is explained in the method-override readme)
var methodOverride = require('method-override');
Then after the line var app = express(); add:
app.use(methodOverride('X-HTTP-Method-Override'))
Now change your update request from "PATCH" to "POST" and add the header:
X-HTTP-Method-Override: PATCH
Then enable the x-http method override header and allow you to send a POST request on Android which will be seen as a PATCH request - this will process the update successfully.
We are enhancing an Android app to have advanced SEARCH features.
The app uses Couchbase-mobile (version 2.0.0) as a an Android service...
I have these questions with implementation:
How simple it is to integrate something like [CouchDB-Lucene][1].
I guess we will have to trigger the couchdb-lucene java process on the Android device (as a service), but not sure if configuring the local Couchbase's .ini file is the only thing needed.
Is CouchDb-Lucene okay for Android or too heavy?
Would be great if anyone could provide some pointers.
Looks like someone got started here: https://github.com/ArtooTrills/TouchDB-Android-Lucene
I should note that this version of the Android syncronizing database is old. We are working on a new lighter version of it, check out the Couchbase mobile mailing list to get the latest info: https://groups.google.com/forum/#!forum/mobile-couchbase
I want to use Infragistics controls in my android application which i am creating in Eclipse IDE. But i cannot find a way to integrate these controls with eclipse. I have downloaded the file named NetAdvantage from
http://www.infragistics.com/products/android/
But I cannot find a way to use it in my project. When I try to install it, it installs it for Visual Studio. Can anybody please tell me some way as my application is in java not in C# or VB.NET
I assume that you are referring to the IGUANA UI toolset? In this case I suggest choosing the "Iguana UI 2012 Complete Bundle" download option on the IG Website.
IGUANA UI actually does not require installation - the toolset as well as the documentation and product samples (including sample source code) are all available in the downloaded zip.
Please let me know if this helps.
I have download a set of android source code, which has folders such as "bionic, bootable, build, dalvik, development, frameworks, hadware, packages, prebuilt" and so on. When I browse the whole code, wonder how "import android.preference.PreferenceActivity;" works in Settings.java(D:\android-srce\Google-source\packages\apps\Settings\src\com\android\settings\Settings.java). I guess there is a android.jar file somewhere after compilation. But how does Settings.java import PreferenceActivity correctly?? I'm a beginner in Android, please help me.
Sounds like you have downloaded the source code to the Android OS. If you want to build your own ROMS then you need to study about building the OS for a particular hardware platform. This is not trivial.
If you want to build an Android app that runs on an Android device then you want to download the SDK instead - start at Android SDK and follow your nose, buy a book, read the sample code.
There is not a lot of information how to change parts of Android. However, you can read information that is connected with the aosp tag. The first cite is source.android.com After the installation of android build system you can see video from marakana group. You'll find a lot of valuable information there.