Eclipse Android Development Question - Android Q&A, Help & Troubleshooting

I just installed eclipse and I want to start developing some small apps but it seems that Android Training has not been updated and some of the settings have been changed.
Can someone point out which is the correct project to create for apps?... I've tried all in the picture below but on Android Training it says that "Open the main.xml file from the res/layout/ directory (every new Android project includes this file by default)." when trying to create a user interface, but it isn't there for me.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Any advice?

Its weird!
Which version of Eclipse and Java ?
Have you set the Environment variables for Java ?
Anyways I've never faced this problem, as I'm using Eclipse 3.7 with JDK 1.6

Eclipse: Juno Release
Java JDK 6 update 33
It seems like I cannot create a new project from scratch.. I have to start with one of the prebuilt layouts like in the picture:

Anyone know?

Sorry, I'm not sure what exactly is the problem.
Just check whether you've installed eclipse & android-sdk like this : http://www.youtube.com/watch?v=ZoWVeXizfbo (pretty old video, but its a good one)
Also make sure you've set the Environment variables like this :
(Path should be your JDK installation path)

Th problem is that I cannot create a new blank project with all the basic files in the project.
In the android training it says to that you should have main.xml in /layout, but that only happens when I create an activity with that predefined layout.
Is this the only way to get the the necessary files?

isinisterx said:
Th problem is that I cannot create a new blank project with all the basic files in the project.
In the android training it says to that you should have main.xml in /layout, but that only happens when I create an activity with that predefined layout.
Is this the only way to get the the necessary files?
Click to expand...
Click to collapse
I don't think so, because for creating Widgets, there is no need for Activity. Still you could get the main.xml file. Actually in every projects that I've created, main.xml, strings.xml, manifest.xml etc comes by default. That's why I said 'weird' before. I'm confused with the Eclipse version because I'm still using older version 3.7. But that doesn't mean it will not work in new versions.
I guess there is some error with the ADT plugin, and make sure you've downloaded development tools after connecting android-sdk. The video I posted before is the exact steps for preparing the dev environment. So please make sure you've followed the exact steps.
EDIT: Also, this Thread gives the exact steps, for connecting Eclipse with android-sdk.

Will do and then report back, thanks
Sent from my Galaxy Nexus using Tapatalk 2

Related

GNote/Android runs JAVA?

we are using a web-based program that needs java. was wondering if i could use Android/GNote to access the website so i dont need a full PC to lug around and visit the site.
the first time you visit the website, it will ask you to install JAVA. am just wondering if its compatible with any ANDROID browser. maybe chrome? or something else?
appreciate any input.
jeraldyne c",)
Give me the link and I will check your website for you.
From the browser settings:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
link HERE c",)
btw, no hablo español mi amigo!! ;-)
rangercaptain said:
Give me the link and I will check your website for you.
From the browser settings:
Click to expand...
Click to collapse
JavaSCRIPT != JAVA - javascript is a very specific subset designed for doing just a bit of flow control textual / dialog programming on web sites. Java uses semi-compiled byte code to create full stand-alone applications.
technically, yes, android supports Java, in fact, at the core of android is linux, which handles all of the hardware input/output stuff, but then right on top of linux is Dalvik which is a Java byte code virtual machine designed by google to be nice and lightweight as well as supplying additional features for tablets and phones specifically (touch screen support and such). so yes, android by nature of being android, can run java. the trick is weather or not the application that you're trying to run from the web site uses code that is fully supported by Dalvik.
unless someone more knowledgable than I would care to chime in, I would strongly simply recommend either borrowing a friend's phone / tablet for a few minutes and just test out the application for yourself and see how well it runs for you, or visit your nearest cellular phone store and try one of the store demos in the same capacity.
Good luck!
Upon my visit to your link Amiga:
I guess that about says it all.
Pushing the ok button just gave me the same message.
I'm pretty sure that android cannot run normal java applets. The JVM used oly has a certain subset of java capabilities.
Not a mobile site either, I'd guess.
there a workaround to this?
Upon opening the site I chose install and it auto downloaded a file but it could not run on my note. The other option was a button that I couldn't activate. Thats where the Java would be needed.

[APP][GUIDE][share][run android 4.1.1 in your pc]

Hello Everyone !!!
Ok So Now Getting into the Process How to have JB in PC
Its actually Done By an app called VirtualBox....i guess some of you are already familiar with it.
and you will need One Of The Following OVA File.
OVA FILES LIST:
vbox86t version :http://androvm.org/Download/androVM_vbox86t_4.1.1_r4-20121119-gapps-houdini-flash.ova
vbox86tp version :http://androvm.org/Download/androVM_vbox86tp_4.1.1_r4-20121119-gapps-houdini-flash.ova
vbox86p version :http://androvm.org/Download/androVM_vbox86p_4.1.1_r4-20121119-gapps-houdini-flash.ova
**Note : version Info
t version is tab Version,tp Version is tablet with phone capabilities Version and p version is Phone Version.​
Set Up Process:
[*]Download The Virtual Box from Here and install.
[*]Download One of the OVA file from above and extract the tar file into a Folder.
[*]Open Oracle VM VirtualBox.
[*]Click File, and then Import Appliance…
[*]Click Choose… and open the androVM OVA file from your extracted Folder.
[*]Click Next button.
[*]Click Import button.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[*]Select androVM and click Start (big green arrow) button.
[*]Done. It’s just that easy. Enjoy the Jelly Bean Goodness.
***Note :
-To regain control of your desktop cursor, press right Ctrl key
Screenshots :
NOTE : You can use your Internet connection in this and can use all the internet based apps like Play store and all
Orignal Thread:http://forum.xda-developers.com/showthread.php?t=2165145
SINCERE THANKS TO SIR raja4sure FOR SHARING THIS HELPFUL GUIDE
nice...
But why didnt u use the Android SDK for this..??
P.S. - i have vmware workstation 9 ..can i use the OVA files ?
I think I have seen exactly same guide in some other thread
Have you copied it?
There is another VM by another really senior member... The Emulator is called Jars of Beans it alsorun on Android 4.1.1 and if you have good Graphics and specifications in your pc then its the coolest emulator of android 4.1.1 on the earth! Just search "Jars of Beans" on google or xda forums or portal I have tried using it... User Experience is really good...
Re: Run android 4.1.1 in your pc
How to make it works faster ? It too slowly
there is a version that doesnt need vm on windows ive posted weeks ago
http://forum.xda-developers.com/showthread.php?t=2154314
im using it on my win8 64bit
mjckey said:
How to make it works faster ? It too slowly
Click to expand...
Click to collapse
you need at least 2gb rom
You can also download bluestack which also plays .apk files... You don't need an android on your computer.
Sent from my Galaxy Ace"i". Should be called Galaxy Y Advanced.

[Beta] AWToolkit - All in one tool for Android Wear (support Mac/Windows/...)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So, this is my new project so far. I'm trying to build a tool to help all Android Wear devices with simple tasks. At the moment, this is the initial release and I'll keep it updated.
What's inside the package?
Java Application: you can run it from any platform, Windows, Mac, Linux,...
A folder called "lib" including adb,fastboot for Windows & Mac. If using Linux, you need to find your own adb and put it under "Other" folder
I'm looking forward for your feedback and suggestion. Thanks!
K thanks for this tool we want simple tool for control android touch if the touchpad is broken or damaged...
sureshsoori1 said:
K thanks for this tool we want simple tool for control android touch if the touchpad is broken or damaged...
Click to expand...
Click to collapse
Any features suggestion will be welcome I'll take more times for the next release:
Threading: not blocking main UI anymore
More fastboot & recovery functions
How about a one click unlock bootloader/root watch!? :good:
So, this is my new project so far. I'm trying to build a tool to help all Android Wear devices with simple tasks. At the moment, this is the initial release and I'll keep it updated.
What's inside the package?
Java Application: you can run it from any platform, Windows, Mac, Linux,...
A folder called "lib" including adb,fastboot for Windows & Mac. If using Linux, you need to find your own adb and put it under "Other" folder
I'm looking forward for your feedback and suggestion. Thanks![/QUOTE]
very good thank you
thank u
thank u pro......................
Hi tdiddy.2, i'm trying to enable adb over wifi on android wear. I have managed to make it work, but theres a lot of steps because you need to connect over bluetooth first. I know thats probably a way to enable adb over wifi direct over adb shell, but i dont know how to use adb shell well. Maybe you want to contribute? Thanks in advance.
Heres the link

Android Wear apps to work with Android Read with APK Easy Tool

I guess a lot are aware of the thread http://roundandroidwatches.pr which shows how to port Android Wear apps to Android in order to run them on the Amazfit pace watch. The above mentioned threads describes the principle solution on a mobile with the help of an App "APK Editor" which works only with the paid version.
Therefore I was looking for a free and easy GUI controlled solution running on WIndows which serves the same issue which I found with "APK Easy Tool v.1.41".
1) you have to ensure that JDK and JAVA are refences by your Windows PATH variable and that they run on the same version. I am using java build 1.80.. and javac build 1.8.0....
2) You install APK Easy Tool v.1.41
after start-up you need to do the following setting for APK signing:
https://ibb.co/he7Gmb
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3) Select the downloaded APK, decompile it and modify open the APK directory
https://ibb.co/hdXcsG
4) Open the "Decompiled APK directory", step on the first level of app and open the *Manifest.xml file in a XML editor (e.g. Notepad++) and modify the data according to http://roundandroidwatches.pr
change min sdk version to, e.g.:
Code:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="24" />
change screen resolution to:
Code:
<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" ...
remove if available hardware line, e.g. :
Code:
<uses-feature android:name"android.hardware.type.watch" />
5) Click the Compile button the APP get assigned too
6) Transfer it to the watch. I used Apk Installer 3.5 on Windows to do do on a rounded up GUI solution (of course one can use ADB shell too)
PS: I have tried this with Invaders Android Wear APP and the entire process worked with any issues and the App is running perfectly on the watch.
i will give it a try later today
Here you can find some Wear Apps which have been already converted and can be used on Amazfit.
http://amazfitcentral.com/2017/08/31/free-apps-amazfit-pace/
In addition I ported a flashlight App too. It worked but the light is not very bright: https://www.apkmirror.com/apk/googl...elease/flashlight-7-1-1-android-apk-download/

How to fix app crashing when using the showFloatWindow API on Huawei devices running EMUI before version 9.1

A number of reports were received about crashes when the showFloatWindow API is called on devices running older versions of EMUI. Let's take a look at this crash today and how we can fix the issue.
Start by integrating version 6.1.0.301 of the Game Service SDK into a project and successfully implemented the floating window function.
Then, when testing the game on devices running a version of EMUI earlier than 9.1, the game crashed when showFloatWindow API is called. The crash logs are as follows.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The error logs suggested that the issue was caused by missing layout files during layout implementation. This error suggests that c_buoycircle_window_small.xml, c_buoycircle_hide_notice.xml, and c_buoycircle_hide_guide_dialog.xml layout files were not found in this project. However, they had been saved under the layout folder as displayed in the following figure.
The next possible issue could have been that the layout files were obfuscated. So, let's check the build file to be sure:
As you can see minifyEnabled was set to true, indicating that the obfuscation function was enabled. This was also the case for shrinkResources, which meant that resource files were excluded during package creation.
One option of course would be to simply disable the shrinking of resources. By commenting out this line the game would run fine and the API call wouldn’t crash, however, the resource files are no longer compressed and will take up much more space.
To compress the resources, you can create an XML file that contains the resources tag in the project or use the keep.xml file in the res/raw directory, and specify the resources to be reserved in the tools:keep attribute as follows:
XML:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="@layout/c_buoycircle*" />
This solution allows the floating window function to work and is able to compress the resource files.
Note: If you have integrated the Game Service SDK, Huawei suggests that you add the following resources and configure the following obfuscation scripts.
@drawable/c_buoycircle*
@drawable/hms_game*
@Layout/c_buoycircle*
@Layout/hms_game*
@StRiNgS/hms_game*
@StRiNgS/c_buoycircle*
nice article

Categories

Resources