w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
making smtp class for windows store apps and windows phone apps
If you haven't done any socket programming I propose to learn first the basics of socket programming in C#. A start could be the book C# Network Programming http://www.amazon.de/C-Network-Programming-Richard-Blum/dp/0782141765. This book contains also a chapter about SMTP. As you said you want to build this library for Windows Phone I assume you only need a client to send mails to a server. A mail server inside a Windows Phone would not make a lot of sense... But to build a library with a useful interface you should have some experience in using the Protocol. So build first a small example client for Windows Form, refactor it, test it (with different mail servers, if possible) and with the experiences you've made create your SMTP library. tl;dr: learn the socket basics build a first m

Categories : Dotnet

cant submit apps to the app store xcode 5
If you read the documentation you will see that XCode 5 and iOS7 are currently under Beta and apps built using these cannot be submitted to the app store. The current version of XCode is 4.6.3 you need to download this from the Mac app store and submit your apps using this

Categories : IOS

Get OS version in Windows Store Apps
Duplicate. Check out the full thread for the answer though, because unless you're doing analytics on your user-base, you shouldn't need it.

Categories : Xaml

WCF and Windows Store apps, ConfigurationErrorsException
It is probably because the referenced assembly is not part of the ".NET for Windows Store apps" library. According to this, http://msdn.microsoft.com/en-us/library/windows/apps/br230302(v=vs.110).aspx, diagnostics are not supported: "Types and members that wrap operating system functionality (such as System.Diagnostics.EventLog and performance counters)."

Categories : C#

How to get a random sample of apps from the Apple App Store
The iTunes API does not support randomized requests however you could use the iTunes RSS feed to get the top apps and get a random sample that you could then use against the API. We (appFigures) do a lot of data aggregation from Apple and also other app stores so we deal with this on a daily basis.

Categories : Json

My iphone app pilot available to download outside of apps store
Unfortunately, you cannot install a native iPhone application without going through the App Store (unless you wish to publish your app solely to jailbroken devices). If you really don't want to use the app store, you can build a web app that runs on the server, but you cannot install and run arbitrary binaries on a users device that have not been approved by Apple. EDIT: As people have pointed out, there are options for testing purposes that will allow you to install your app on other devices via the internet (TestFlightApp, iOS Enterprise program), but for a wide-scale deployment technique this will not work.

Categories : HTML

Saving files in Windows Store apps
As far as I know, you cannot save a file in the PC unless you proceed with a saving Picker, in the case of a Windows Store App. That is why you might get Access Denied error. Click here for File Access and Permissions. On the other hand, you can save files always, in a system location dedicated for the app itself, in the ApplicationData.LocalFolder . You can set additional capabilites to your app so it could acces Removable Devices. I don't know to be others than these.

Categories : Dotnet

Focus does not work in Windows Store apps
Before starting the ProgressRing remove from tab navigation all controls that enables the keypad private void Button_Click_1(object sender, RoutedEventArgs e) { // First remove your TextBox (or all of them) from tab navitaion MyTextBox.IsTabStop = false; // Now you can start the ProgressRing MyProgressRing.IsActive = true; } If you need you can include again the controls in tab navigation after stop the ProgressRing

Categories : C#

Possible to change ads in iphone apps after publishing to ad store?
If you need to change the binary then you'll need to publish a new version to the App Store. If you can change things on your own server then, no, there's no need to go through the approval process.

Categories : IOS

How to compress the image to 70% in the Windows Store apps?
Please find the link to compressed the image in windows store app. http://msdn.microsoft.com/en-us/library/windows/apps/jj218354.aspx Code sample is given in Javascript, which can be easily changed to c#. This should work.

Categories : C#

Save image in C# Windows Store apps
You can use the FileSavePicker class to choose a destination for your file. When you have the destination, use the methods of FileIO (WriteBytesAsync for instance) to write the contents of the file.

Categories : C#

Windows Store Apps StorageFolder.GetFilesAsync() causes OOM Exception
Use StorageFolderQueryResult.GetFoldersAsync(uint, uint) along with StorageFolderQueryResult.GetItemCountAsync to query the folders in chunks. Something like: StorageFolderQueryResult queryResult = KnownFolders.RemovableDevices.CreateFolderQueryWithOptions(new QueryOptions(CommonFolderQuery.DefaultQuery)); uint numItems = await queryResult.GetItemCountAsync(); uint chunkSize = 50; for(uint startingIndex = 0; startingIndex < numItems; startingIndex += chunkSize) { folderList = await queryResult.GetFoldersAsync(startindIndex, chunkSize); foreach (StorageFolder folder in folderList) { IReadOnlyList<StorageFile> fileList = await folder.GetFilesAsync(CommonFileQuery.DefaultQuery); foreach (StorageFile file in fileList) { BasicPropert

Categories : C#

Script Create Package for Windows Store apps
MSBuild will create app packages for you, in the AppPackages folder. You can also do it manually using MakeAppx, but I've found it to be a bit more cumbersome. Some things to note: There is a build target called Publish you should use (/t:Publish) when making the actual packages. You should look into the different command-line switches, such as DebugSymbols. You'll likely want to use the 32-bit MSBuild, as I've had issues with the 64-bit and things like the Multilingual App Toolkit. Also in regards to the MApp Toolkit, make sure you do a full rebuild before building your app package. If an entry is not in a given language and is in another, the entry for the secondary language will be used, so you can end up with multiple languages all popping up on the same page. Hope this helps and h

Categories : Visual Studio 2012

Domain User Authentication in Windows Store Apps?
I was looking for this answer too. I discovered that you have to go to the package.appxmanifest and check off Enterprise Authentication and then you can use CredentialCache.DefaultNetworkCredentials in your app to get the username, but not the password.

Categories : Authentication

Popup Menu commands in Windows store apps
This is a way of doing it but it is not the best (should be used binding) : When you add the UICommand you have to set additional properties, like in the code below. I have taken advantage of your code, and modified a little also on the matter of positioning the PopUpMenu at calculated coordinates :) like below : private async void AddTaskButtonClick(object sender, RoutedEventArgs e) { PopupMenu menu = new PopupMenu(); menu.Commands.Add(new UICommand { Id = 1, Label = "Everyday Task", Invoke = DoTasks }); menu.Commands.Add(new UICommand { Id = 2, L

Categories : C#

How can I get a messagedialog to call another subroutine in Windows Store Apps using VB?
Update your code with this. message.Commands.Add(New UICommand("Yes", AddressOf Logout)) Check out the MSDN sample

Categories : Vb.Net

Line disappears after some seconds in windows store apps
If you'd like to make your line 5 pixel wide, you should not use the Width property for that, because that makes your whole control 5 pixel wide (so nothing will be seen). You have to use the StrokeThickness property instead.

Categories : C#

How to parse a json retrieved from a URL in windows store apps?
If you try the Json validator at http://jsonlint.com/ the JSON seems to be valid you should try JSON .NET is the most common used library to work with JSON in .NET http://james.newtonking.com/pages/json-net.aspx. Also I see that you are calling JsonArray.Parse I'm not sue but It makes me think that it is expecting an array [] but the response is an object {}. If there is a method JsonObject.Parse it may work for you.

Categories : Json

Managing SQLite Database for Windows Store Apps using C#
To update the existing record, first you need to get that object via SQL query [Query<T>(...)] or Get<T>(...) method. Then update the object properties and call Update(...) method. using (var db = new SQLite.SQLiteConnection(dbpath)) { var objPerson = db.Query<Person>("select * from dbPerson where PersonId = ?", 9); /*** or ***/ var objPerson = db.Get<Person>(9); // Here 9 is primary key value /*** update the object ***/ objPerson.FirstName = "Matt"; db.Update(objPerson); } You don't need to call db.Dispose(); & db.Close(); because you are using using.

Categories : C#

Getting unique device ID in VS2012 Windows 8 Store Apps
I had same confusion, but finally used HardwareIdentification.GetPackageSpecificToken. Because I find no information about uniqueness of EasClientDeviceInformation.ID However, you can't use ID returned by HardwareIdentification.GetPackageSpecificToken as it is, because it depends upon many hardware components. And if any one of them changed, a different id will be returned. There is more information at this link.

Categories : C#

adding DataItems from one page to another in Windows Store Apps?
Hmm.. just to give you some input. I would probably create a "global" static class for this, which you can access from your entire app (public static class PinnedActors). Within this class you have your static ObservableCollection.

Categories : C#

How to get single row from SQLite database in Windows Store apps?
if you just want to get rid of the list step, you can do it directly: PersonMaster objPersonMaster = db.Query<PersonMaster>("select * from PersonMaster where personId = ?", 9).First(); Of course you have to deal with a possible exception in case nothing is returned, but you should do this also with the list approach anyway.

Categories : SQL

Proxy settings in WebView for Windows 8 Store Apps
Try the Windows 7 method to manually modify Registry to add a global proxy settings for your system. http://support.microsoft.com/kb/819961/en-us

Categories : C#

System.Threading.Thread replacement in windows store apps
Use Task.Run or Task.Factory.StartNew private void BackgroundWork() { ... } public async Task DoUsefulWorkAsync() { // Do useful work // Start Background Job Task backgroundWorkTask = Task.Run(() => BackgroundWork()); // Do more useful work // Wait async for BackgroundWork to complete // It won't block the UI thread that we're running on await backgroundWorkTask; }

Categories : C#

Windows Store Apps: Main Navigation Combo Box styling?
Here is a style for the ComboBox that should get you most of the way there <Style x:Key="ComboBoxStyle1" TargetType="ComboBox"> <Setter Property="Padding" Value="8,0"/> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Foreground" Value="White"/> <Setter Property="BorderThickness" Value="{StaticResource ComboBoxBorderThemeThickness}"/> <Setter Property="TabNavigation" Value="Once"/> <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/> <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Disabled"/> <Setter P

Categories : Xaml

javascript: how to call function on appbar by id in windows store apps?
document.getElementById("button1").addEventListener("click", function () { //Whatever you want to do }); Place the above code in args.setPromise(WinJS.UI.processAll().then(function () { //place it here});

Categories : Javascript

How to fetch data from web service in windows store apps using JavaScript
First you need to define the WCF like below [OperationContract] [WebInvoke(UriTemplate = "/GetAreaNames", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)] List<Area> GetAreaNames(); or for Multiple Parameters [OperationContract] [WebInvoke(UriTemplate = "/ExcelDataInfo?area={area}&month={month}", RequestFormat =WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)] void ExcelDataInfo(string area, string month); and after in the Script Page var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

Categories : Javascript

Windows Store Apps: parsing large chunks of JSON
Use JSON.NET. http://james.newtonking.com/projects/json/help/index.html?topic=html/M_Newtonsoft_Json_JsonConvert_DeserializeObjectAsync_1.htm You can use it like: var data = await JsonConvert.DeserializeObjectAsync<ROOT_OBJECT>(stringData);

Categories : Json

'System.IO.Stream' does not contain a definition for 'Close' in Windows Store Apps
You get that error because there is no support for Stream.Close on Windows Store Apps. As is stated on the .Net for Windows Store apps overview page The subset of managed types and members was designed with a clear focus on Windows Store app development. As a result, it omits the following: [...] Members that cause confusion (such as the Close method on I/O types). You will have to replace that with a Dispose() or by using a using statement.

Categories : Dotnet

How do I get the NetworkName(SSID) of the currently connected network in Windows Store Apps (C#)?
//Using the library. It resulted to be quite easy to work with the classes provided: //First I had to create a WlanClient obhect wlan = new WlanClient(); //And then I can get the list of the SSIDs the PC is connected to with this code: Collection<String> connectedSsids = new Collection<string>(); foreach (WlanClient.WlanInterface wlanInterface in wlan.Interfaces) { Wlan.Dot11Ssid ssid = wlanInterface.CurrentConnection.wlanAssociationAttributes.dot11Ssid; connectedSsids.Add(new String(Encoding.ASCII.GetChars(ssid.SSID,0, (int)ssid.SSIDLength))); }

Categories : C#

No Windows Store apps (anymore) in Visual Studio 2013 Preview
If your creating a new project then it targets 8.1 only. If you open an existing 8.0 project then you can open and edit it...or re-target it to 8.1. So the implication is IF you are on Windows 8, you might be ok in loading existing Windows Store App 8.0 projects...you just won't be able to create new ones...as they target 8.1. See these references: http://gyorgybalassy.wordpress.com/2013/06/29/you-can-target-only-windows-81-with-vs2013/ http://tedwvc.wordpress.com/2013/07/19/visual-studio-2013-support-for-targeting-windows-8/

Categories : C#

Graphics debugging of Windows Store Apps in Visual Studio 2012
The problem was that I was selecting GPU Only because that was what I thought I was interested in. However, that option does not allow for capturing frames. The correct choice for the app I was running is Native Only although other options might also work.

Categories : Windows

error in sql lite for windows store apps Unable to load DLL 'sqlite3':
I tried sqlite with winstore using this (http://msdn.microsoft.com/en-us/library/windows/apps/dn263243.aspx ) article and it works for me.

Categories : C#

white dotted lines in backbuttons / Appbars - Windows Store Apps
Check as to which control is getting affected by this dotted line. Now switch to the xaml side and set the "IsTabStop" property to "false" for the affected control. It is said that the white dotted line is due to undesired focus falling on some controls during an event.

Categories : C#

HTML5/JavaScript: how to display swf flash files in windows-store-apps?
You cannot. From the Microsoft website: WWAHost.exe cannot host Adobe Flash Player objects. If a Flash component is essential to your web app, you must port the Flash object to HTML/CSS and JavaScript. HTML5 and the Windows Runtime provide some of the lower-level OS and user interface (UI) functionality you need to accomplish this.

Categories : Javascript

Amazon store rejecting apps containing indirect link to Google Play
They are rejecting your app as the website displays a Google Play store link. I had the same issue with app rating link in my app and was not able to publish to Amazon until I removed any thing tying it to Google Play.

Categories : Android

Windows Store Apps: Globalizing Grid View Item Template
Get the language tag of the app's preferred language: Windows.Globalization.ApplicationLanguages.primaryLanguageOverride and use it with a DataTemplateSelector to choose the right ItemTemplate. Something like this: public class LanguageTemplateSelector : DataTemplateSelector { public DataTemplate ItemTemplate1 { get; set; } public DataTemplate ItemTemplate2 { get; set; } protected override DataTemplate SelectTemplateCore(object item, DependencyObject container) { string language = Windows.Globalization.ApplicationLanguages.primaryLanguageOverride; if(language.Equals("LanguageTAG")) { return ItemTemplate1; } else if(language.Equals("AnotherLanguageTAG")) { return ItemTemplate2; }

Categories : C#

How to control when image data is loaded into memory in Windows Store Apps?
For Windows Store Apps I suggest looking into the AccessCache APIs - http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.accesscache.aspx Specifically the StorageApplicationPermissions class. With it you can add various storage items to be accessed. Take a look at the FilePickerSample (or FileAccessSample) app for more information on how it can be used.

Categories : Image

Windows Store Apps: Bind App bar IsOpen property to ListView Selected Item
I just tested it and it seems, that bindings don't work with AppBar.IsOpen. I bound a Button.IsEnabled to GridView.SelectedItem as well, and the button was correctly set to false, but AppBar.IsOpen was not, the converter was only called once for the button binding. It might have something to do with this: http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.appbar.isopen Note Binding to the IsOpen property doesn't have the expected results because the PropertyChanged notification doesn't occur when the property is set. Though I thought that meant only the other direction. (edit: Here is a simialar post: opening the appbar in metro style apps using binding property) Here is the code I used: <common:LayoutAwarePage.BottomAppBar> <AppBar IsOpen

Categories : C#

Using Google drive to store apps data in structured format- similar to dropbox datastore API
You can use the Drive Realtime API to store structured data that is automatically kept up to date. Or, depending on your use can, the app data folder can be used to store configuration information that shouldn't be accessible to the user.

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.