iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I've tried to get live chat but no one ever answers...
I have the following issues:
Android:
-I'm trying to change the styles.xml to change the background but it keeps saying "No resource found that matches the given name (at 'android:windowBackground' with value '@drawable/radioBackground'). I put the image in the drawable folder
<item name="android:windowBackground">@drawable/radioBackground</item>
-Unable to change image on Android using the BindableProperties.ImageSourceProperty
public virtual string radioBackgroundUrl { get { return "radioBackground.jpg"; } set { _radioBackground = value; OnPropertyChanged("radioBackgroundUrl"); } }
public LoginViewModel() { LoginCommand = new DelegateCommand(ExecuteLogin); SocialLoginCommand = new DelegateCommand(ExecuteSocialLogin); _radioLogo = "radioLogo.jpg"; _radioBackground = "radioBackground.jpg"; _settings = Container.Current.Resolve<AppSettings>(); }
-How can I get the facebook user info once it gets back into the application?
-How can you use Webviews with Crosslight? Is there a way to bind into them???
Please help, I have e-mailed technical support and tried to chat with technical support multiple times and I never get answered.
Q: I'm trying to change the styles.xml to change the background but it keeps saying "No resource found that matches the given name (at 'android:windowBackground' with value '@drawable/radioBackground'). I put the image in the drawable folder
A: In the Solution Explorer, right-click on the solution; select "Clean Solution". After the process finish, try to "Rebuild Solution".
Please let me know whether this helps or not.
Q: -Unable to change image on Android using the BindableProperties.ImageSourceProperty
A: Please find my sample posted on August 28, 2014 which shows how to load an image from a remote url and locally in Crosslight Images thread.
There are two buttons in the sample. When user press the button, it will change the "image placeholder" with other images. The images loaded from a remote url and local.
Q: -How can I get the facebook user info once it gets back into the application?
A: To obtain the user profile for the logged-in user, simply use the following code.
ISocialNetworkService sns = ServiceProvider.GetService<ISocialNetworkService>(); if (sns != null) { UserProfile facebookProfile = sns.GetProfileAsync("Facebook"); }
For more detail information, please check Getting User Profile of Crosslight documentation
Q: -How can you use Webviews with Crosslight? Is there a way to bind into them???
A: Currently there is no way to bind WebViews using Crosslight.
Could you please provide me with more information about the binding? Is it binding for the navigation or something else?
1) This did not help, it still says no refrence found. Do I have to add it manually to another file?
2) How do I get the license file to work? I put in my runtime code and its not working and I've tried pasting the entire XML file but there are problems when it comes to the quotations.
3). Yes just simple binding to load up a webpage
Thank you for the other response, I have not right the Facebook yet.
For the facebook I get the following error:
Error 4 Cannot implicitly convert type 'System.Threading.Tasks.Task<Intersoft.Crosslight.Services.Social.IUserProfile>' to 'Intersoft.Crosslight.Services.Social.UserProfile' C:\Users\xxx\Dropbox (Personal)\xxx\xxx\xxx.Core\ViewModels\xxxViewModel.cs 256 51 xxx.Core
Exception of type 'Java.Lang.IllegalArgumentException' was thrown but first I see the attached screenshot.
1) This did not help, it still says no reference found. Do I have to add it manually to another file?
I created blank project using Crosslight project template. Next, an image named: mywindow_background.png is added into drawable folder. I also set the Build Action of the image to AndroidResource.
To change the background, Styles.xml is modified into following (the default image for windowBackground is light_splash)
<?xml version="1.0" encoding="utf-8" ?> <resources> <style name="Theme.Splash" parent="android:Theme"> <item name="android:windowBackground">@drawable/icon</item> <item name="android:windowNoTitle">true</item> </style> </resources>
Save the changes; rebuild the solution; and deploy the project to the Android device. It works without any issues.
Should you have different steps or approach to change the background, please let me know so that I can assist you further.
To apply the runtime license to the target project, open the AssemblyInfo.cs file and instantiate an IntersoftLicense assembly attribute. Copy the content of the downloaded runtime license and paste it as the content of the IntersoftLicense assembly attribute. See the following example.
using System.Reflection; using System.Runtime.InteropServices; using Android.App; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. using Intersoft.Crosslight; [assembly: AssemblyTitle("ImageLoaderLocalAndUrl2.Android")] ... [assembly: IntersoftLicense("sample-license-key")]
When properly licensed, the evaluation message will no longer appear when the application starts.
Should the problem persist, please provide more information regarding the problems when it comes to the quotations.
I'm afraid that the binding to load up a webpage is not available in the current version of Crosslight.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname