adt

android not found resource id

一世执手 提交于 2019-12-13 04:13:23
问题 i've created a new android project target 8, with default activity I've assigned an id to textview with text "Hello world". <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/tvProva" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout>

“PANIC: Could not open” while trying to run Android emulator on Linux Mint

喜夏-厌秋 提交于 2019-12-13 04:03:52
问题 I installed Eclipse Kepler and the Android development tools. Everything is working fine, except for when I try to run my Android code in an emulator I get the following error: Emulator] PANIC: Could not open: [name of Android virtual device] I Googled the problem but I have not found a solution. It might have to do with the Android path or perhaps authorizations, but I do not know where I have to change them to. I hope someone can help me out. 回答1: This has been asked a few times already,

installing ADT 17 on windows 7 and eclipse indigo, Everything works fine but there is no Android type project in New Project

你。 提交于 2019-12-13 02:25:41
问题 Today I installed the new Android SDK tools revision 17. When I started eclipse, it said that you should upgrade your ADT. I downloaded the latest version ZIP file (ADT-17.0.0.zip) and I followed the Eclipse instructions to install ADT. Everything goes fine (as I expected) but at the end I was unable to see Android in preferences and also android project in New Project wizard. I am using Eclipse Indigo and Windows 7. Any idea? 回答1: Try running eclipse with -clean option from command line,

Excel file access from internal storage android app

最后都变了- 提交于 2019-12-13 00:56:02
问题 I want to be able to copy an excel file from my android app res\raw folder to the client phone's internal storage, and be able to retrieve the data from the excel file and update the excel file in the internal storage as needed. So far all I have is this: http://developer.android.com/guide/topics/data/data-storage.html#filesInternal --- write files to internal storage and http://www.vogella.com/articles/JavaExcel/article.html --- using jexcel to retrieve data from and edit an excel file I can

Obfuscating Android Library Project source code with ProGuard

浪子不回头ぞ 提交于 2019-12-12 22:19:29
问题 I am developping an Android Library Project with Eclipse that I want to licentiate. To prevent my clients to easily reverse-engineer and read my code, I want to obfuscate the source code of my library. From the research I did, I found that ProGuard seems to be conciderated the best for my usage. I've seen a post from Eric Lafortune (ProGuard's creator) that tells that library projects don't run ProGuard, and this is confusing me. Why would it work with Android Application Projects and not

What's wrong when I try to install ADT on Eclipse?

拈花ヽ惹草 提交于 2019-12-12 19:28:38
问题 How to fix this? > Cannot complete the install because of a conflicting dependency. > Software being installed: Android DDMS 16.0.1.v201112150204-238534 > (com.android.ide.eclipse.ddms.feature.group > 16.0.1.v201112150204-238534) Software currently installed: Eclipse IDE for Java EE Developers 1.3.1.20100916-1202 (epp.package.jee > 1.3.1.20100916-1202) Only one of the following can be installed at once: > Eclipse UI 3.6.1.M20100826-1330 (org.eclipse.ui 3.6.1.M20100826-1330) > Eclipse UI 3.6.2

enum in a struct; newbie in a c

≯℡__Kan透↙ 提交于 2019-12-12 15:03:12
问题 I'm wondering about the syntax of using an enum in a struct ( in C ) I've seen various examples where a struct + union / enum combination was used to create a complex type, for example: struct MyStruct{ enum{ TYPE_1, TYPE_2, TYPE_3, } type; union{ int value_1; int value_2; int value_3; } value; }; // ... struct MyStruct test_struct; Anyways, from this example, how would I store/test the current "type" as per the enum field? If I have a pointer to test_struct , this doesn't seem to work;

For loop with a generic array?

核能气质少年 提交于 2019-12-12 14:25:14
问题 Going back over my basic ADT stuff here, and trying to kill two birds with one stone by learning Java while I amTrying to write a simple algorithm for a merge sort with a generic linked list ( which I am creating myself). It's proving to be far more difficult than I had first imagined ! Can anyone help me out please ? I will start out working on the basics and will update this post as I get further in. My code for the generic linked list is as follows : public class NodeList<T> { private

Can no longer launch apps after upgrding to android sdk tools 20/platform sdk tools 12

血红的双手。 提交于 2019-12-12 12:24:54
问题 I upgraded my sdk tools and now I can no longer launch apps from Eclipse (I can still install from command line. When I launch I get an error window and an empty device picker. Error window says: An error has occurred. See error log for more details. com.android.ddmlib.IDevice.getName()Ljava/lang/String; I'm not sure what log to look for. DDMS sees the device ok as well. I'm not sure whats wrong here and can't find anything on google or SO. Thanks 回答1: Uninstalling and then reinstalling the

Redeclaration of the method “in” within a class

こ雲淡風輕ζ 提交于 2019-12-12 12:06:23
问题 I am creating an Abstract Data Type, which create a doubly linked list (not sure it's the correct translation). In it I have create a method __len__ to calcucate the length of it in the correct way, a method __repr__ to represent it correctly, but I wan't now to create a method which, when the user will make something like: if foo in liste_adt will return the correct answer, but I don't know what to use, because __in__ is not working. Thank you, 回答1: Are you looking for __contains__? object._