workspace

programmatically add the widget to home screen in android

落爺英雄遲暮 提交于 2019-12-06 04:56:58
问题 I have developed android widget app and its working fine. Now my client asks that, when the user installed this app, it automatically needs to place on homescreen top position. How to do this? please help me. 回答1: As of Android O, In your app, you can create a request for the system to pin a widget onto a supported launcher. Create the widget in your app's manifest file Call the requestPinAddWidget() method See the bottom part of this page: https://developer.android.com/preview/features

Workspace integrity : The file could't be opened Xcode 5

蓝咒 提交于 2019-12-06 04:19:20
I'm developing an application in PhoneGap using Xcode 5. I created project as per steps given in PhoneGap documentation. The app worked well in last run. But as of now it's showing an Workspace Integrity Error : The file cannot be opened. This error comes-up in case of Xcode 5 and not in Xcode 4. Any idea how to deal with this issue? Go to your xcode project file in finder, right click and select show package contents. Inside that you have this file called project.pbxproj. Open that with the text editor and see if there are many conflict texts in it like git merge conflict text ( <<<<>> ) .

Jenkins Pipelines: Re-use workspace when loading an external Jenkins pipeline script

左心房为你撑大大i 提交于 2019-12-06 03:57:09
I have the following use case: Checkout/pull a certain Git revision, using written pipeline script (I need this because I retrieve the revision dynamically) From that revision, load a Jenkins-pipeline-file, located among the previously checked out files This file would rely on files from the same checked out revision (thus, from the same workspace) Problem: The loaded Jenkins-pipeline-file gets executed in a new workspace. But it is empty. I need that file to get executed in the same old workspace. I thought, perhaps it's because of surrounding node , because the node keyword creates

Eclipse: Maven project builder generating NullPointerException when building workspace

a 夏天 提交于 2019-12-06 02:43:57
问题 I'm using STS, with the following version info Spring Tool Suite Version: 3.7.0.RELEASE Build Id: 201506290652 Platform: Eclipse Mars (4.5.0) I have imported a number of Maven projects. When Eclipse is automatically building my workspace, this dialog will pop up Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'myproject'. java.lang.NullPointerException When I look in my workspace/.metadata/.log file, I see !ENTRY org.eclipse.core.resources 4 75 2015

eclipse导入Java工程提示“No projects are found to import”

寵の児 提交于 2019-12-06 00:45:00
问题一、Eclipse导入Java工程的时候提示“No projects are found to import” 一般这种提示表示,你的project下面没有.project文件呢。 方法1:最直接的操作,可以把其它项目的.project, .classpath文件拷贝过来,修改相应的地方则可。 注意:最好工程的类型是一致的,比如是maven 构建的还是普通的工程。检查一下.project文件里面的buildcommand 1).project文件只需要修改 XXXXXXXX 这个项目名称则可 2) .classpath文件通常不用改,比如如下就是一个普通的Java工程内容如下: 当修改项目属性-> java build path时这个文件会被自动修改 问题二、Eclipse导入Java工程的时候提示" Some projects cannot be imported because they already exist in the workspace " 解决方法: 看到这个提示的时候,你的eclipse workspace 下面肯定有相应的工程在里面。找出来这些工程看看是否是需要的,如果没有用,那就删掉吧。 来源: oschina 链接: https://my.oschina.net/u/2308739/blog/686504

Relative Paths in Eclipse

帅比萌擦擦* 提交于 2019-12-05 19:30:16
I have an Eclipse workspace that is checked into a Subversion repository. However, if I change the name of the workspace directory, the project files don't load and I have to re-import them, as well as set any workspace related settings again. Does Eclipse work with relative paths? I am not the only team member on this project, and unfortunately the other guy refuses to follow a common directory organization scheme. EDIT These are all java projects at this point EDIT There are several files in the workspace matadata folder, though here is the first one I found in relation to the project

ROS package not found after catkin_make

只愿长相守 提交于 2019-12-05 19:20:16
问题 I created a ROS workspace following the Wiki page from ROS. I also created a package using catkin_create_pkg under the workspace I just created. Then, following the steps in ROS Wiki to build the package using catkin_make , after the package is built, I insert the command rospack find packagename , and my package is not found anymore. Can anyone help me on this? 回答1: Have you followed this basic tutorial? You have to create the package in your workspace and have set properly your Bash file

MS Access (Jet) transactions, workspaces

情到浓时终转凉″ 提交于 2019-12-05 12:53:50
I am having trouble with committing a transaction (using Access 2003 DAO). It's acting as if I never had called BeginTrans -- I get error 3034 on CommitTrans, "You tried to commit or rollback a transaction without first beginning a transaction" ; and the changes are written to the database (presumably because they were never wrapped in a transaction). However, BeginTrans is run, if you step through it. I am running it within the Access environment using the DBEngine(0) workspace. The tables I'm adding records to are all opened via a Jet database connection (to the same database) and using DAO

Workspace with multiple projects or one project with multiple targets?

≯℡__Kan透↙ 提交于 2019-12-05 08:16:19
I have 4 iOS apps that are all similar. They're flash card apps, with each app having a different topic. They share a lot of classes and images. Right now I have all 4 of them as separate projects, but I'm looking to simplify maintenance and share resources. Would it be better to have all 4 projects in the same workspace, or have 4 targets in one project? What are some pros/cons of each method? They seem very similar. This is an excerpt of the PDF that Marty posted. It is an excellent document, but 4.4MB and will probably be taken offline after a lot of people download it ;) Trade-Offs of

Integration of Java and Python Code in One Eclipse Project

牧云@^-^@ 提交于 2019-12-05 06:42:33
I am writing a compiler in Python using Eclipse with PyDev. I've come to a stage where I needed to write some code in Java. I'm wandering if there is a way of combining these into a single project, because at the moment I have two separate projects, and whenever I need to change the Java code, I have to manually copy the .class file into the Python project. If this is not possible, what would you suggest is the most elegant way of structuring the files of these projects, and how should I set up my build process? Thanks. You can keep things in separate projects without having to copy the .class