Android Programming ABC Tracing Application - colors

i want to make an application ABC Tracing , and i want to insert a color picker in my application , but how do
i include the source code into my application ?
please explain in detail , thank you very much

Right click in package explorer or goto file>import - choose svn
get svn repository location (for example this great library : http://color-picker-view.googlecode.com/svn/trunk/) from here
http://code.google.com/p/color-picker-view/source/checkout
follow wizard importing the trunk/library, it should end up in your package explorer
Right click in your project to use the libray, select properties, select Android, at bottom select Add Library and select the color picker.

Related

"Layout" folder not appearing in "res" folder

Recently I installed android studio and wanted to create a map, selected java language instead of kotlin.
As I was following a guide on internet,
https://developers.arcgis.com/android/latest/guide/install-and-set-up.htm
it said to select "Main_activity.xml" in res->layout.
But I couldn't find any layout folder.
Here's the image of my project view:Android Project View
Thank You
From your "Android Project View"
In Java folder, you can see three "com.ecample.hackathon" folders, among these three folders first one is blank, when we create any Activity in our project, java class show at here, and xml file show in layout folder(parent is res folder).
So now, you have to create Activity.
Steps:
1) Right click on this empty folder "com.ecample.hackathon"
2) Select New
3) Than Select Activity
4) As per your choice you can select the option.
Ex. Select "Empty Activity
Name as according your use.
You can get java and xml file in proper place.
Hope this help you.

Bitrix - How to find last updated component or file in Bitrix

I have updated one component file from the Edit Mode of Bitrix environment. I have written one statement and write exit to debug the code. But now I can't find the component which I have edited.
Is there any way to find last updated files or templates or component or any other way by which I can revert back that component?
I have updated component file from this page - CRM > Deals > Add New Deal page.
Any help would be appreciated.
If you edited CRM > Deals > Add New Deal page using "Edit page" button then check out /crm/deal/index.php file.
To check out what core files/system components were affected (if they were modified) you could use "Project Quality Control" tool:
Open Control Panel > Settings > Tools > Project Quality Control
Click "Release Project".
In checklist find "Project release" group and click "The system kernel was not modified".
Click "Run autotest".
Click "Detail report" link to see which core files was modified.
But the best way to figure out what files was modified is compare document root folder with the backup copy.
If you want to continue to edit the files then I recommend you to set up version control system (e.g. GIT).

Cannot create class-file Android Studio

I'm trying to integrate Google Calendar API into my android project and I follow the tutorial here
https://developers.google.com/google-apps/calendar/quickstart/android
At step 5 create a new java class
I right click project folder src>main>java>com>example>utarapp and then new>file and entered the file name but then it has this error
What's going on ?
I'm using android studio 1.3.1
I think you are trying to create file with same name which is already present in the same package. This may be one possible reason.
It seems like you are right-clicking on the upper level in your application's directory tree.
Right click on one of the files inside the utarapp folder and then select Java class option from the menu.
For me this was happenning because of the length of the class name. In my case it was "ChallengesFragmentPagerAdapter"!
Changing it to "ChallengesPagerAdapter" solved the problem.
Create a blank Activity then remove "extends Activity" from the activity class.

VB6: Name conflicts with existing module, project, or object library

Opening a VB6 Project, I get errors like:
Errors during load. Refer to xyz.LOG
I open the log file and see these errors:
Line 42: Class Threed.SSPanel of control XYZ was not a loaded control
class.
In this case I can see the problem is due to the Sheridan 3D Controls: C:\WINDOWS\system32\THREED32.OCX
I thought the project was missing a component so, VB6 > Project > Components > tick the Sheridan 3D Controls and got this error:
---------------------- Microsoft Visual Basic ---------------------------
Name conflicts with existing module, project, or object library
--------------------------- OK Help ---------------------------
I will give you the best way to get rid of this problem. I came across many ways, but this is the most best way to deal with..
Close the project. Right click on the vb project and open with notepad (not with vb). This Project file will only consist of all the references, libraries and information about forms and modules used in the project.
Now just remove the conflicting module or component file, you have problem, by just deleting the entire line.. Save and close it
and now open the project and add component. I swear you wont get that error.
Thank you. Enjoy
The way to troubleshoot this problem is to start a new VB6 project > Project Menu Components > tick the Components that are selected in the affected project until you get the error.
---------------------- Microsoft Visual Basic ---------------------------
Name conflicts with existing module, project, or object library
--------------------------- OK Help ---------------------------
You need to narrow it down to the two OCX's that are conflicting.
In my case I narrowed it down to Sheridan 3D Controls / THREED32.OCX and Outrider Spin Control / SPIN32.ocx
To fix the problem I used RegSvr32 to unregister the OCXs - make sure you UNregister with the /u flag.
REGSVR32 "C:\WINDOWS\system32\THREED32.OCX" /u
I then copied the OCX's to the project folder and registered them again using:
REGSVR32 "C:\Dev\Project\THREED32.OCX"
Then in the project with the problem > Project Menu Components > select the item in the listbox Sheridan 3D controls / THREED32.ocx (you cant tick without getting the error or untick the conflicting one that is selected as its in use) > click Browse and reference it from the project folder rather than C:\WINDOWS\system32\
Another trick is close the project and unregister the affected ocx - make sure you UNregister it with the /u flag, eg
RegSvr32 "c:\Windows\system32\mscomctl.ocx" /u
Then open the project > Components > and you should see the "Microsoft Windows Common Controls 6.0 (SP6)" is using a OCX file in C:...\Microsoft Vi..\VB98\mscomctl.ocx" rather than c:\Windows\system32\mscomctl.ocx.
The project should then load without these errors:
Errors during load. Refer to xyz.LOG
Try unchecking the latest object library / reference from the references and check it again and then go for your desired reference (vb6 has few bugs which can be countered by a reverse process). I solved the error mentioned using this process.

Issue after editing Search Properties in coded UI?

We are using coded ui test using visual studio 2010.We are testing .Net 4.0 windows application.
Here is an scenario.
We have an windows app which has a button named submit and we have recorded a workflow which clicks on submit.
Now when we generate code using coded ui the serach criteria for the button is based on its name (display name of button).
If tommorrow developer changes the button's text to submit1 , our scripts fail.
We tried using "controlName"[name given to the control and not the display name] property in search criteria instead of Name , but it does not work.
We get following error - "The playback failed to find the control with the given search properties"
Related problem happens to me also. I solved it by sending the Focus to the UI control before using that control.
Try this.
this.UIAssettePresentationsWindow2.UINOWindow.UINOButton.SetFocus();

Resources