I am working on Xamarin.ios and using visual studio for development. I have added LaunchScreen.Storyboard for displaying launch image as i want to target new iPhoneX device as well.
Problem that i am facing currently is, i am not able to see image on either device or simulator for launch image.
I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin.
I have tried adding images in Images.xcassets folder and accessing it in storyboard. However, its just displays blank screen.
Also tried editing contents.json for adding iphoneX launch image, still no success.
Please let me know if anybody has faced same issue and resolved it.
I was also having the same issue today I have updated visual studio for mac with the latest version 7.4(build 1033).I am able to add the image to assets.xcassets now its working for me.
I have found a solution for this.
having had the same problem I was finally able to select my Image set in the drop down by making sure the Media.xcassets folder was included in the solution. By default it is not induced.
Once this was done a clean and rebuild allowed me to select the SplashImage Asset set in the drop down under the Image View properties.
Related
How do I run MyLocationDemoActivity.java? I got this file from GitHub this is the link:
https://github.com/googlemaps/android-samples/tree/master
I am completely new to Android Studio, what are the steps to run this file?
On the getting started subtitle when you scroll down on the GitHub site, it tells says to create a file on the "root directory" called secure. properties. I am sorry, but I have no clue what or where the root directory is located and how to create the file. But I did get an Google Maps API key.
I also did import the project, but how do I add an emulator. I have downloaded the emulator and it works because on a different project I created a Google Maps Activity Project and just ran the sample code putting a marker on Sydney. I am not sure how to add the emulator to the project I downloaded from github though. I tried to add a template configuration for an android app, but it says no module. How do I add that? In summary, I am just looking for a step by step way to run this file.
(Also, I am sorry if this seems like a mess of questions, but I really have no idea what I am doing)
You question sounds too generic, so I will give some suggestions:
demo activity could not be run separately, you have to create a full environment of android and open the main activity, then open this demo activity
Don't use emulator for developing Map features, use a real device. In fact, I always use "Real Device" when developing, because "emulator" seems lots of bug, and its speed is very slow.
when studying a new tech/skill/feature, bit by bit. e.g.
3.1 you should know some knowlege about android main activity, android basics
3.2 play with emulator and real device, and know adb commands
3.2 play with DemoActivity
good luck!
I am not able to download required components for android studio.
Every time I click download remaining components it shows:
ERROR:time out.
Further explanation is given by image.
You didn't put a Image there but normally every update & every downloadable feature could be installed manuel. So you should try to find the Updatepackage or whatever you try to install and do it alone / manuel.
This is a weird problem. I created a storyboard to use for our splash screen. It has 2 ImageViews in it. I do a build and everything looks.
Every so often, for some unknown reason, the images will stop displaying. Sometimes it's one of them and sometimes both. What's even stranger is that the images continue to display elsewhere in the app.
What I ended up doing is creating a copy of the images so now there is background.png, background2.png, logo.png and logo2.png.
So when the image stops displaying, I switch to the copy and then it works right.
This has been a work around but is not a solution. I can't seem to figure out what the issue is.
What makes this even worse is, sometimes it happens when I change to an ad-hoc build and then deploy to TestFlight so we don't see the issue until we install it from TestFlight.
Unfortunately I've seen this issue before on a couple of the projects I've worked on in the past. it's a strange situation where resources aren't copied accross to the build folder on the mac, most likely caused by something not working correctly with the Xamarin build process for that specific project.
The solution that I've used in the past is to simply delete the 'mtbs' folder that is situated on the apple Mac that you are building/compiling your project to.
The location can be found below:
~/Library/Caches/Xamarin/mtbs/builds/[Long project Guid]
The long guid can be seen in the output window in visual studio when you build your project, but if this is your first project you may likely only have one folder here.
If you simply delete the folder that relates to your project, and then run 'Rebuild', it should push across any necessary resources that it was missing out before, including images.
Writing an android application. It has no errors when I run it on an emulator. But when I tried to build it to an apk file to test on a device, I get the following error.
com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:853)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:802)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:786)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:250)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:238).......
I seen one similar case raised here which mentions to "Wait till indexing is complete."But I am not sure what I am doing to even interfere with any indexing.
Tried on different computers. Same problem. The only thing I did different before I got this error was to add a dependency at gradle(app) for a RingButton and added that RingButton class to the project to modify it to what I wanted.
As I said it is working fine in emulator.
Just to test if that is indeed the isse, I deleted the class and removed the dependency but the issue is not resolved.
I think this can be solved by creating a new project and moving the files into the new one. Maybe the index is corrupt. But before that can you clear the cache ? in android studio if your prepared to lose some local history then try this:
and then chose invalidate and restart:
I was using Dropbox to constantly backup my project every now and then. So I would click my project and send to Dropbox. I was also instantly clicking run to run the app on my emulator at the same time. During this period, when I mouse over my Dropbox icon, there is an indication that it is "Indexing".
Based on previous answer "Wait till indexing is complete", I can only assume this Dropbox indexing interfered somehow.
Not exactly elegant but I copied each and every file in this project into a New Project and everything is working fine now and able to install the apk file. I didn't change anything so I believe there is some form of corruption in the old project.
Following is my addition to portal-ext.properties for setting up ImageMagick with Liferay
I have installed ImageMagick in D drive as mention below :
imagemagick.global.search.path=D:\\ImageMagick-6.8.3-Q16
imagemagick.enabled=true
preview functionality:
dl.file.entry.preview.enabled=true
dl.file.entry.thumbnail.enabled=true
Set this to true to enable conversion and previewing of videos in the Document Library portlet:
xuggler.enabled=true
In Server Administration--->External servics tab, I have configured it correctly and also downloaded/install jar related to Xuggler.
However, above settings are not working for me to generate preview functionality.
I am not even getting message dispalyed like "Generating preview require few more time, please refresh the page after some time....blah blah blah...."
Any help is appreciated.
Thanks.
Have you configured Xuggler properly? Do you get an UnsatisfiedLinkError exception?
See Xuggler's FAQ for the steps to configure your path properly
If it shows that message "Generating preview...", seems that Liferay doesn't detect this file as a video file (the Mime Type isn't any of the values in the property: dl.file.entry.preview.video.mime.types).
I also saw this problem when uploading videos using some browsers. Try uploading using another one.
For me, the solution was to symlink /usr/bin/convert to /usr/local/bin/convert
Whatever I did, nothing seemed to work. All configuration was pointing to /usr/bin (both control panel and portal-ext.properties). As a last resort, not really believing that it will work, I just did the symlink, as that was the default location for liferay.
And it works! All my configuration still points to /usr/bin. So... it looks like liferay just ignores all that config and only looks to default folder.
I'm using Ubuntu 12.04, imagemagick from package manager. Liferay 6.1.2 GA3.
I hope it helps someone.