Xamarin Forms Open Image in another app - xamarin.forms

I'm using xamarin forms. All I need to do is to open Image full sized with zooming and dragging. I know, that on Android I could do it using another app, "Gallery" for example.
But what should I do when developing on cross platform apps? Maybe there is a lib, that can do such things?

Take a look on ImageEdit plugin. It supports Xamarin.iOS and Xamarin.Android platforms.
This plugin will enable you to manipulate(resize,crop,rotate,monochrome) a image(png,jpg).

I've found the solution for my issue a long time ago, but forget about the answer.
For me the solution was to use the Stormlion Photo Browser. It has some nice functionality, and works with local images. For Uri you just need to use "file:///your_path_to_image" and that's it!

Related

Unable to view designer option at all in xamarin forms

First, This is literally my first time using Xamarin and I'm finding this particular issue quite frustrating. If I miss out any basic info, please bear with me, I have done my best.
I am trying to create a cross-platform app using a blank app template.
When I load up the .xaml files the designer view is not there. Most guides suggest this will be in the bottom right of the screen. I have checked in Tools > Options > XAML designer and the option to use this is ticked.
I have tried just creating an Android app instead of cross-platform but with the same results. I noticed there were no emulators in my android emulator manager so created a basic Nexus 5, still no difference.
I'm really stuck with this now and it's frustrating to fall at the first hurdle like this, am I doing something really simple wrong here?
I'm using VS 2017 V.15.3.3 and installed Xamarin yesterday
Thanks.
In order to use the 'designer' which I call Previewer, your XAML files need to be compiled.
Please note that the previewer is really buggy and there is yet to drag-n-drop tool for designing XAML files.
However, you can use packages such as LiveXAML (paid) or free alternatives so that you can hot-reload your XAML designs.

Ionic2 : working with SQLite, Ionic Serve

I am working with SQLite and Ionic2. So far so good. However, I can't seems to make it work while browsing it with Ionic Serve.
To put in the scenario: sometimes I need to make a quick layout adjustment / design which can be very nice if I could use browser to check instead of build and put on the emulator / devices.
Any idea how to make an SQLite work in web browser?
If it is not possible, any better alternative / approach.
Thank you
The SQLite plugin doesn't support browser but you could either mock your SQLite using ionic-native-mocks or setup a different project without any plugins and design your pages there. A good example about mocking could be this blog.

Detect phonegap app from wordpress

I am building my app in phonegap. In that app I am calling my wordpress website like window.location="http://www.example.com/";.
Because of window.location my app UI and mobile browser UI are looks same. So I want to detect phonegap app to defer from browser UI. Is there any way to do this.
#JayTh
Okay. Thanks. VERY GOOD TO KNOW. I spend hours getting beginners to understand issues. You got them.
Okay, once you load a webpage from a website you are NOT allowed to access any of the Cordova Plugin APIs. However, you can access HTML5 API, like camera and geolocation. Again, you cannot access any of the Cordova Plugin APIs, and any of the 800+ 3rd-party APIs.
The best way to access the web, is via inAppBrowser. However, the third paragraph states:
The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs. For this reason, the InAppBrowser is recommended if you need to load third-party (untrusted) content, instead of loading that into the main Cordova webview.
Apple is serious about their security, so if they detect you are going around this, they may reject your App. Just to be clear on this, there is a new security protocol, which Phonegap Build now requires, and so does Apple. With Phonegap Build, it will create the required Apple ATS entries into the Info.plist.
So, the best I can do at this point is give you three (3) links.
Top Mistakes by Developers new to Cordova/Phonegap
Core Plugins Setup
HOW TO apply the Cordova/Phonegap the whitelist system
On 1., you have hit #5 When designing the app, thinks phonegap works like a website or webbrowser.. For the remainder, I recommend just reading the bold sentences.
On 2., if you want to use the Cordova Plugins, it is best to use the version numbers, if not you will get the latest, and your code may break. This is because now, Phonegap Build now uses NPM for the plugins. And many times bugs fixes get into the plugin, that require the latest compiler - and Phonegap Build is always at least one version behind.
On 3., You'll need to use the whitelist to apply the fixes that maybe required for any new plugins you are using.
If you have more questions, I can answer them in comments. If it get too complicate, we can move to Google Group of Cordova/Phonegap - Best of Luck.

Build an App for a Wordpress site. Is PhoneGap the solution?

I have a few Wordpress sites and I would like to create apps (IOS and Android) for all of them. I did some research and found that PhoneGap (or similar products) appears to be the solution.
The App will simply get information from existing Wordpress site. I do not plan to add login/edit/post features to the app at this time. My sites have both Pages and Posts. Does that matter?
Is there any better solution than PhoneGap?
Thanks.
The two current big multi-platform solutions for apps are PhoneGap and Titanium. PhoneGap is less work, but Titanium has better performance and uses the platform default UI. Since you aren't building an advanced app, just reading JSON feeds, PhoneGap should work great for you.
It does not matter that you have both pages and posts. You will need to use a JSON API in order to get the data from WordPress. There are a couple plugins that do this and they are working on adding a JSON api to core right now. Until the core API is done, I would recommend using the WordPress.com JSON API that's included with the JetPack plugin since its made by Automattic and it has great documentation. If you go this route, you can also fairly easily add login/editing/posting later on with OAUTH2.
You should also check out Steroids.js, which builds on top of PhoneGap and adds features like real-time updates to devices without compiling, native UI elements etc.

Qt client for Facebook

I would like to use Facebook API (http://wiki.developers.facebook.com/index.php/API) in my Qt Application.
I don't want to use WebKit. Is it possibile to use QNetwork only?
Is there any example on how to do that?
Have you seen KFacebook, the KDE client for Facebook?
KdePlayground and KFacebook
They have a library for Facebook API and a Plasma Applet as well.
It's easier using jQuery, probably. But Qt4 can do the work, I think.
Use QNetworkAccessManager to access the web without an actual browser.
If you're interested in posting photos you can download one at
https://github.com/eamocanu/Facebook.Qt.APIs/downloads. I had to make this last year for a project.
use this its ready for Qt open source project for facebook
http://code.google.com/p/facebook-cpp-graph-api/
You can also use QHttp directly

Resources