adt

Java generic arguments

和自甴很熟 提交于 2019-12-12 04:48:39
问题 Going back over my basic ADT stuff here to revise for an interview, and trying to kill two birds with one stone by learning Java while I am. Attempting 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

Linking from an activity to a fragment activity with a button using actionBarSherlock

大城市里の小女人 提交于 2019-12-12 02:15:27
问题 I made a project wherein when you click a button from the MainActivity, it will lead to a fragment activity. But I can't seem to make it work. Here's a snippet of my code for the button in MainActivity: Button button2 = (Button) findViewById(R.id.button2); button2.setOnClickListener(new OnClickListener () { public void onClick(View v) { Intent intent = new Intent (v.getContext(), page3.class); startActivityForResult(intent, 0); } }) ; Here's my snippet for page3 where the button from

Trouble importing .class files into Android project

[亡魂溺海] 提交于 2019-12-11 23:40:20
问题 Hello Stack Overflow community, I'm creating an Android app for an engineering project. The basic goal of the app is to remotely control an RC car via WiFi. The car has a camera and microphone mounted on it, and transmits video and voice wirelessly back to the control. We (the group) have a working Java app where the video transmission works perfectly via a wireless camera. I have the working Java code, but the code requires for .class files to function: aplug.class, aplug$AU.class, aplug$SI

Android Library Projects could not be used with ACRA due to their resources identifiers not being final fields anymore

旧时模样 提交于 2019-12-11 22:39:44
问题 From the ADT Site: The constants are not final in a library project. The reason for this is simple: When multiple library projects are combined, the actual values of the fields (which must be unique) could collide. Before ADT 14, all fields were final, so as a result, all libraries had to have all their resources and associated Java code recompiled along with the main project whenever they were used. This was bad for performance, since it made builds very slow. It also prevented distributing

Repeat LinearLayout element containing other UI elements and fill it with data

半世苍凉 提交于 2019-12-11 22:20:06
问题 I have created some "data row template" in xml. It looks like this: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="match_parent" android:padding="8dp"> <ImageView android:layout_width="56dp" android:layout_height="56dp" android:background="#CCCCCC" android:layout_margin="8dp" /> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android

Empty folders when import existing Android project into Eclipse

南楼画角 提交于 2019-12-11 20:37:43
问题 I'm trying to import an Android project into Eclipse by using File > Import > Android > Existing Android Code Into Workspace. After project imported I found that src and res folder are empty !!! I don't know why I have this problem, any idea to solve this ?? Thanks, 回答1: Really annoying indeed. I had the same problem with destroyed files when importing an existing project into Eclipse (Java ADT Package 22.0.5), when I previously had copied the project files into the workspace. Solution: I

I have just written my first android app, and after 3 hours it still doesn't work

六眼飞鱼酱① 提交于 2019-12-11 19:52:22
问题 I have just started writing my first piece of code in an android app, however when I run it with the following section uncommented it crashes (anything else I tell you would be a useless guess): public void onButton1Click(View v){ if(v.getId() == R.id.button1){ StringBuilder str = new StringBuilder(""); if (pepBox.isChecked()) { str.append("Pepperoni"+" "); } if (cheeseBox.isChecked()) { str.append("Extra Cheese"); } if (str.length() == 0) { str.append("Plain"); } textView.setText(str); } }

Convert project in existing workspace from ADT to Andmore

大兔子大兔子 提交于 2019-12-11 17:38:24
问题 I have just updated from Eclipse Luna to Eclipse Oxygen and installed Andmore. I have a bunch of project workspaces which were created with Eclipse Luna and ADT. Eclipse automatically upgrades workspaces to the newer version on import, but it doesn’t convert from ADT to Andmore (which, although sharing much of the same code, is a different plugin). Is there a way I can migrate an existing Eclipse workspace from ADT to Andmore without having to delete and re-import every single Android project

Eclipse ADT won't detect android devices

喜你入骨 提交于 2019-12-11 12:57:51
问题 I've done everithing I need to in order to ADB recognize my device As you can see, it is connected. But eclipse won't let me work in peace Additional info: juan@juan-TE5:~$ lsusb Bus 002 Device 006: ID 22b8:2d66 Motorola PCS juan@juan-TE5:~$ cat /etc/udev/rules.d/51-android.rules UBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev" I have also checked in the device "debuggable mode". Any ideas? Updated Now I see this 回答1:

eclipse juno (new version of ADT) always crashes in ubuntu 14.04 and create an error log file

眉间皱痕 提交于 2019-12-11 12:41:29
问题 I started android development and I downloaded the latest version of adt available on developer.android.com for linux OS. Now my eclipse crashes automatically without any prior error or notice and it creates an err log file in the same directory, also my virtual device(emulator) is not working in this. now what can I do. I tried to re install this but same problem occurs and also it works fine if I use previous version of ADT. 回答1: I had the same problem for couple of weeks now. Adding the