I am trying to open the user's calendar.
I wrote the following code:
startMillis = Calendar.getInstance().getTimeInMillis();
Uri.Builder builder = Uri.parse("content://com.android.calendar").buildUpon();
builder.appendPath("time");
ContentUris.appendId(builder, startMillis);
Intent intent = new Intent(Intent.ACTION_VIEW).setData(builder.build());
startActivity(intent);
The problem is that it works in version 4.0 but not in 2.2, which is my target version.
What am I doing wrong?
After trying different things, I installed a different calendar on the AVD and it workes now.
Related
I'm new to this topic and couldn't find any guides concerning this. I'm wondering how the Today Extension files from a xcode project (originated from the CN1 iOS debug build sources) needs to be added to the actual CN1 project in order to get integrated properly.
We don't have builtin support for that and didn't really study it. We never had official support for Android widgets either.
Both can be used through native code though. E.g. in this case you can use ios.plistInject to add the necessary plist changes. The actual UI/code that implements them should be done in a native interface anyway.
I have copied the project from my old amchine to windows 10 machine. Application works without any problem on simulator. If I right click to see the properties, I don't see IOS, Android and build hints. Please advise if there is something I'm missing here.
This was removed ages ago in Codename One 5.0 but was deprecated before that. See https://www.codenameone.com/blog/removing-old-preferences.html
You should use Codename One Settings in the right click menu.
I get this error when creating a new Form using IntelliJ. Is this my setup problem or a bug?
This is a known bug where you have two instances of IntelliJ/IDEA working on the GUI builder together. If only one is open this works as expected.
This is the issue that tracks it in the issue tracker.
This question is kind of two fold, I am trying to update my google app engine backend and i keep getting this error:
:contentbackend:appengineUpdate
Please enter code: Encountered a problem: No line found
I was reading around and saw people saying this issue is related to Android Studio and to just manually trigger appengineUpdate like this:
gradlew contentbackend:apengineUpdate
So everytime i try that im getting this error now:
* What went wrong:
A problem occurred evaluating project ':app'.
> Gradle version 2.10 is required. Current version is 1.12. If using the gradle wrapper, try editing the distributionUrl in C:\Users\nicholas\AndroidStudioProjects\TTWebContent\contentbackend\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip
Now i have gone through my project and module setting and made sure everything points to gradle wrapper version 2.10, but i still get this error when trying to updateAppngine. I am using the appengine plugin version 1.9.34. I am aware that this has all moved to using OAuth2.0 so that what im trying to get configured so i can update the backend using the new sdk. Any help is appreciated. Thanks in advance.
EDIT:
Here is the content of my gradlewrapper.properties
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
After a lot of trouble i got this working. So i was trying to execute this command from windows powershell, not understanding the instructions from similiar posts saying to do this manually instead of using Android Studio. I got this to work by using the built in 'terminal' in Android Studio. I always thought when people specified to execute manually they meant outside of Android Studio, I now understand they meant using the terminal built in. This is no longer an issue and it let me enter the OAuth key so i could update my backend.
I'm a newbie developer who develop a software for a company, although I am quite familiar with programming I rarely develop a software for a company, now after I join a company I started to get a problem creating a software.
I must develop a software that can be installed and updated on client computer easily, I solve this by using clickonce, then the problem arise, nearly all software I develop must have report viewer, I try using reportviewer from microsoft, but this give me more problem when installing, I try everything I found on the web to make a setup that easy to install, but I keep struggle when installing reportviewer, it keeps error on some computer although sometimes it install without error on other computer.
I need a suggestion how I can develope a program that can display a report and print it without install any other program on the client. I use C# on Visual Studio 2015, I develop WPF, and web using it.
Use nuget in your project and add the following dependencies to it
Microsoft.ReportViewer.2015.Runtime
Microsoft.ReportViewer.VS2015.WinForms
Launch your report viewer like this:
var dlg = new ReportPreviewDialog();
dlg.ReportViewer.LocalReport.DisplayName = "My report";
dlg.ReportViewer.LocalReport.DataSources.Add(new ReportDataSource("datasource1", data));
dlg.ReportViewer.LocalReport.DataSources.Add(new ReportDataSource("datasource2", data2));
dlg.ReportViewer.LocalReport.ReportEmbeddedResource = "YourClient.TheReport.rdlc";
dlg.ShowDialog();
TheReport.rdlc is your report as resource in your project (=> Build Action: Embedded Resource). Make sure the namespace is correct or your report won't be found.
Works with WPF.
Try to visit this Deploying Reports and ReportViewer Controls.
If the first option doesn't works you can try this step.
Go to your project properties or press (Alt + Enter).
Click the Publish tab.
On the Install Mode and Settings click Application Files button.
Find all Microsoft.ReportViewer dlls and select the Publish status to Include/Include (Auto).
Click OK.
Here is some image:
Application Files Form