Tag: eclipse

“Connection with adb was interrupted.” Have tried EVERYTHING

Connection with adb was interrupted. 0 attempts have been made to reconnect. You may want to manually restart adb from the Devices view. I keep getting this error message EVERY TIME I try to run my code which worked fine on a pre-format installation. Now that I’m on a fresh set-up, I get this every […]

“Back” button on Action bar – Android . How to go “back”?

Image ! Action Bar I’m talking about the (Number 1, in the pic), button with a little arrow and the app icon and the top left side of the screen. It is automatically defined when we select the “Black activity” template. My app has a pretty huge hierarchy graph, got about 25 activities now. I’m […]

Saving Logcat to a text file in Android Device

I had found some crashes while running the application in android device, which is not showing in emulator. So i need to save the Logcat in a text file in my device’s memory or SD card. Could you please suggest me good method to do this?

Where are the drawables or clipart from android.R.drawable stored?

I am integrating ActionBarSherlock in my app and I want to have some menus with some items and its respective icons. I have looked into samples and documentation, and everything seems to be clear, but when I Inflate the menu, I can see just the text because there are no icons related to each item […]

android.os.NetworkOnMainThreadException for webservice (ksoap)

I am new to android programming and trying to use webservice in this sample program: I use Android 4.1 and my IDE is Eclipse Juno. I think the programming part is ok, but may be there is a problem about connecting. package com.example.webserviceexample; import java.io.IOException; import org.ksoap2.SoapEnvelope; import org.ksoap2.SoapFault; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; […]

adt eclipse bundle 02-07-2014 UPDATE

Have used the newest bundle provided by the android developers site. Everything is fine but when I try and download the adt plugin it gives this error: Installing Software has encountered an error Details: An error occurred while collecting items to be installed session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt.feature,23.0.2.1259578 No […]

Android NDK in Eclipse :: (Cannot run program “ndk-build”: Unknown reason)

I am loosing my mind trying to build my NDK project from eclipse using the CDT plugin and i get the error:- NDK (Cannot run program “ndk-build”: Unknown reason) The application runs but i loose all of the console output for the build process, this is a nightmare when trying to compile and i have […]

setContentView(R.layout.main); error

package com.elfapp; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class MainActivity extends Activity implements OnClickListener { private Button btn_Login; private EditText et_UserName; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btn_Login = (Button) findViewById(R.id.button_login); btn_Login.setOnClickListener(this); et_UserName = (EditText) findViewById(R.id.editText_userName); } public void onClick(View v) […]

Eclipse: Override library path defined in project.properties

I’m using ActionBarSherlock as a library. We haven’t included ABS into our repository so everyone participating our project must download and install it separately. ActioBarSherlock is an Android library project and I have got it running by opening it and my project in the same Eclipse’s workspace (neither of those are copied into workspace, they […]

NoOptions cannot be resolved to a type

I am trying to put google play services in my game. I have import BaseGameUtils project, when I add him to my workspace eclipse says: “NoOptions cannot be resolved to a type” And: “The import com.google.android.gms.common.api.Api.ApiOptions cannot be resolved” It happens in the GameHelper class. This is the only thing that it cannot resolve. Some […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.