I am developing an app for Windows Phone 8.1 by using XALM and C# within a Windows Universal Project.
My problem is that the background images of the buttons do not correctly scale.
I want to use an image as the background of a button and the image should always scale to maximum size of the button, but keep the correct ratio (a circle shall always look like a circle and not like an ellipse!).
then the image is not cut and looks OK, but only on 16:9 devices such as Lumia 640 XL.
On 15:9 devices auch as Lumia 520 there is a distortion: a circle looks like an elipse!
The image is not correctly scaled: the aspect ratio is not perserved!
But you are asking for opinions. In my opinion what the developers are asking for is quite reasonable. However, without knowing all the details of the product they are trying to create, that opinion is not based on anything concrete.
I am facing problem in updating wide live tile while switching from Square Tile to Wide Tile in windows universal app development. It is working fine in windows surface and Desktop but coming to phone it is not updating Wide tile could any one please help me?
By default Wide Tile is working fine for us but when we change it from Square Tile to wide tile it is not working in emulator.
Here is our total Sample code:
var _tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquare150x150PeekImageAndText03);
var tileImage = _tileXml.GetElementsByTagName("image") as Windows.Data.Xml.Dom.XmlElement;
var tileText = _tileXml.GetElementsByTagName("text");
(tileText as Windows.Data.Xml.Dom.XmlElement).InnerText = "xyz";
(tileText as Windows.Data.Xml.Dom.XmlElement).InnerText = "ABC";
(tileText as Windows.Data.Xml.Dom.XmlElement).InnerText = "EFGH";
(tileText as Windows.Data.Xml.Dom.XmlElement).InnerText = "IJKL";
var tileNotification = new TileNotification(_tileXml);
Windows.Data.Xml.Dom.XmlDocument tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWide310x150PeekImageAndText02);
var tileText1 = tileXml.GetElementsByTagName("text");
(tileText1 as Windows.Data.Xml.Dom.XmlElement).InnerText ="xyz";
(tileText1 as Windows.Data.Xml.Dom.XmlElement).InnerText = "ABC";
(tileText1 as Windows.Data.Xml.Dom.XmlElement).InnerText = "EFGH";
(tileText1 as Windows.Data.Xml.Dom.XmlElement).InnerText ="IJKL";
(tileText1 as Windows.Data.Xml.Dom.XmlElement).InnerText = "Sample App";
var tileImage = tileXml.GetElementsByTagName("image") as Windows.Data.Xml.Dom.XmlElement;
** this was first posted as a question, but I don't see it in the questions list so I don't know if it was removed or what happened to it (or where did I posted it).
Hi. I want to make apps for the big two mobile platforms (plus desktop), and want to make these in C++. The idea is to use the same code, with as little change as possible for both systems. My current state is that I have knowledge in C++, and I am aware that the sdk for android includes an extension for compiling code in C++ (ndk); but, I don't know which compiler should I use for IOS, and what standard libraries should I get to use graphics in the same way or with the same code in both cases.
Here is the background: I am interested in making mobile apps, and as common sense dictates, if I want to make the apps for both systems, the idea would be to use a tool that allows me to do the development for both platforms at the same time, and not repeat the effort in making the same thing twice.
With this in mind, as cross platform tools my choices were either Flash or Unity. The thing is, I already have some Flash licenses, though kinda old, and Unity, though 'free', is not really free, and I may end up paying more than what I have to pay to develop the app in Flash in the long term, if I am successful, which would be the idea
I already had an old Flash version installed, plus I had done some things in Flash previously, which would be a starting point. I also know how to use the tool, so the most adecuate choice was Flash
I am aware that if I choose a third party development platform, I am subject of what the platform can or can not do, and if they change the platform, I have to be subject to this. Anyway, the version of Flash I had installed was an old version that allowed me to make the development, but would not let me export it as a mobile app, as this functionality came later. I had (have) though, a more recent version, which I had not installed till recently, because for what I was doing, the installed version was enough. I don't plan to get the more recent version if not neccessary (CC, or cloud); I already have legal permanent licenses, instead of paying rent of $20 per month per product
Ok, so I start making my project, based on previous works, in an older version. Recently I installed the more recent, yet old version (5.5; 6 was the last one before it went cloud) but which would allow me to export it as Air for Android (Air is supposed to be a superset of Flash, so the same code made in Flash is supposed to run the same way in Air).
It did not work. When running as Air, or the same thing not in the Flash player but in Air player, has bugs that are not present in Flash, and I have not found a work around it. Basically, a big deal of my work in the last year gone to the trash because of the ineptitude of some companies and their programmers who release buggy products.
To explain the error, a big deal of Flash functionality is based in movie clips. Movie clips act as containers, and have properties such as current frame, visibility and others. The error is, movie clips are objects, and inherit from a movie clip class. My Flash app generates in runtime a lot of movie clips, and stores them in an array. Is not the actual case, but assume for example that you want to put a lot of characters in the screen, and each character is contained in a movie clip. The different frames of the movie clip contains different states of the characters. Now, all movie clips inherit from the same class and are treated the same way. In runtime, I may tell (with a loop) each movie clip to display a certain frame; some do, some don't. The same code runs with no problem in Flash, but does arbitrary things in Air, which is my main concern (as the purpose of this thing was to release it as a mobile app).
Previously, I had made some things, with movie clips inside movie clips. For example, assume each character has a weapon. You could call the movie clip called 'weapon' inside the movie clip of the character, and make it visible or invisible. I tried to do something similar recently; these kind of things used to work perfectly in actionscript 2, but they fail, both for air and for flash in actionscript 3 (in a loop that executes the same code with no conditions over all movie clips, it will generate exceptions about some of the clips not having a movie clip called 'weapon', and me calling methods in a null reference). It is not possible to export as a mobile app if not coded in actionscript 3. I have made Flash test to try specifically if is a bug from Flash, and it is.
So as I see it, I can not make the program to deal with those movie clips if these are not generated in runtime (as opposed to making each one in design time and having named each one). Neither do I see a work around for this; The Air aplication is simply not running the code correctly.
So basically, I plan to remake the whole thing in C++, assuming there is a way to make apps from C++ code in each platform. I know how to program in C++, though I may be a.little rusty, but for 'console' (text mode) things; I have not dealt yet with events, or images on a window, or animation, or stuff like that in C++. I did Open GL long time ago, but when I tried to compile my old works recently, it would not even compile.
I expect that if I do the thing in C++, in whichever platform, assuming I am able to run it, it will do as I say. It will not get creative on its own, there will be no ambiguity, or it will fail with giving me no chance to do it differently. So C++ it is.
Basically, I need all the tips and info I can get to start making mobile apps from scratch, with the code being as most cross platform as possible. That means, if there is a library I can use in both Android and IOS (and desktop) for graphics, that includes at least transformations such as scale and rotation, and if possible apply color filters, and if there is a frame that in C++ allows me to handle the screen events in the same way for every platform, I would appreciate it.
Also, I would like tips on which compiler should I use to release for each platform, etc etc. Tutorial links and everything I can get, if I am gonna start from scratch making C++ apps for different platforms, including mobile.
Hopefully it will use open or free tools and frames, and since it is intended to be released as a mobile app, I hope there will be no restrictions as requiring me to release the code
hi, tnx for your answer, but not what I meant. Objective c and swift are languages that get compiled in the sdk released by apple; I am not asking which language to use, as I have stated that I plan to use c++. The question was, which tool can I use to compile c++ code into an ios binary. Anyway, for the immediate plans, it seems I found a workaround for the problem in flash (basically, avoid garbage collection), but for a medium term, I plan to make my own c++ libraries that allow me to compile c++ code in many platforms
Normally, in my country, mobile users have to text the wordy and complex codes to telcos when they want to know their internet usage and balance.
I'm going to build up an application which allows users can check there information at anytime when they open the app on their mobile. I do not have any clue about the telcos having any API service for that or have to make the business deal with telecommunication companies.
I did attempt to figure out the way but nothing has come up yet. Does any have any idea for that
Then your application would be charged (or would use to send the requests to their server; unless they have an API) and I am not sure whether they would release such information to your application due to privacy and security concerns.
So, I would leave this to "Do not do this".
However a simple way around would be to store the metrics of usage in your application and provide a guess of it from that data. For example, you can ask the users for their data connection details and store each session data sharing. Then provide the users with total bytes being used (KBs or MBs) and user would know how much is left (or ask them to provide a remaining amount by subtracting the amount users from their total volumne).
Calculating the balance remaining would take another shape. You should ask them for their total balance, amount charged for activities like SMS or calls. Then calculate the remaining balance.
Note: This would not be the same data that network operator would have.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
Thanks Afzaal for your great support. I agree that it's not easy to make a deal with telcos because of charge and privacy; I also do not recognise any API service from those telcos.
Your solution is good trick. However, I try to minimise the manipulation of users. just imagine when opening the app, all information has showed up already,it's such great handy.
How do you think about following idea. Luckily, mobile users are freecharge of texting the checking message in my country. Firstly, when the app is opened; the requesting messages (by the forms of telcos' codes) + phone number id will be sent to telcos; then the data-usage information will be sent back to the app. The problem is how to let all data jumps into app, not show up in messenger. Is that possible to do ???? i'm stucking
The problem came just back to where it started. You need to ask the operators for details. Which will cost you money, unless you ask them to give you a monthly subscription for these actions.
I cannot think of anything else, long story short the answer is same as Richard said, you have to talk about this with a company representative. This is a service-usage issue, not an API or programming related issue. Once you get a solution from there end, we would love to guide you further.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
Your app will need to do the same and send the specific message to the mobile system to get this data. That is unless you can find a short cut message that they will respond to. This is not a programming issue, but one of communication with the service providers.
That depends on which one supports the language and target system you are developing for. You can find the answer by going to their respective websites, and reading the documentation. The Zebra website also has a support section, you could try asking them.
Perhaps you need to learn Web Services first. Using Web Services you can transfer data from one device (client) to another device (client) using a hub (server). Database can be stored on the hub itself, and the data from database can be shared or manipulated through the devices.
On a second thought you can also create a Web API in ASP.NET and then create a client application with HttpClient in it. You can use HttpClient in multiple devices and frameworks where as WCF can be consumed by only a .NET framework supportive client device. Where as ASP.NET Web API can be consumed by any device, platform, OS or machine. I have written an article for ASP.NET Web API and a client also, the client is a Windows application with same framework (Windows Runtime). You will find it easy to learn.
Hello. I am using VS 2008 to develop an VB.Net compact framework 3.5 application on a Honeywell Dolphin 6500 running Windows Mobile 6.5, the highest OS available for the hardware. For this type of application what I will typically do is run SQL Server as the backend database and make good use of System.Data.SqlClient in developing my mobile application. However, I'm currently faced with a situation where I need to have my mobile application connect to a MS Access database on a network share and insert records into one of the tables. At first glance there doesn't appear to be a way to add System.Data.Odbc or System.Data.OleDb. So now I'm wondering if what I'm trying to do here is even possible. Is there a way I can connect to this Access database from my application?
Last Visit: 31-Dec-99 19:00 Last Update: 24-Nov-15 19:23