android-2.2-froyo

SMS send as a background Service using SmsManager

ぐ巨炮叔叔 提交于 2020-01-14 03:51:13
问题 I am trying to create an application in Android 2.2 which sends SMS to 6 different contacts the same msg automatically in background as a Service using android.telephony.SmsManager which supports both CDMA and GSM. I saw many threads which has a code snippet but they are using which are deprecated i.e. import android.telephony.gsm.SmsManager; so i just replaced it with import android.telephony.SmsManager and wrote the following code & it works SmsManager sms = SmsManager.getDefault(); sms

Moving an image through a linearlayout

我的梦境 提交于 2020-01-11 12:03:11
问题 I'm developing an Android 2.2 application. I want to move an image from left side of the screen to the right side of the screen. How can I do that? I've read that I have to add this image to a ListView or to a GridView to setup this animation. UPDATE I've created the following files: anim/translate_right <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_decelerate_interpolator"> <translate

Moving an image through a linearlayout

你说的曾经没有我的故事 提交于 2020-01-11 12:03:09
问题 I'm developing an Android 2.2 application. I want to move an image from left side of the screen to the right side of the screen. How can I do that? I've read that I have to add this image to a ListView or to a GridView to setup this animation. UPDATE I've created the following files: anim/translate_right <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_decelerate_interpolator"> <translate

(How) Can an android virtual device use the local computer's internet?

早过忘川 提交于 2020-01-09 05:14:09
问题 I have a server running on the network my computer is on. Is there a way to allow the virtual device to use this same network and access the server? The virtual device won't let me toggle the wifi (probably because it doesn't have one). The only options I see that look right are: "Wireless & network settings" --> "Mobile networks" --> "Access point names". I'm not sure what to fill into all these fields though. If someone has an example of all the fields that are necessary to use the local

Reset an Android Dialog

点点圈 提交于 2020-01-05 08:09:39
问题 I found plenty of topics on how to save states of a dialog, for instance using Bundle instances. However, I can't seem to find how to "properly" reset a dialog. Consider this sample custom dialog (the XML layout carries an EditText with ID "input_text"): public class CustomDialog extends Dialog { public CustomDialog (Context context) { super (context); } protected onCreate (Bundle savedInstanceState) { super.onCreate (savedInstanceState); setContentView(R.layout.input_query); EditText txt =

How do I share variables between classes?

≯℡__Kan透↙ 提交于 2020-01-05 07:53:05
问题 Say I am making something like a quiz, and I have a counter to show the number of questions that have been answered correctly. When one question is correctly answered, and a new screen(Activity) is shown, how do I carry over the number to the next screen? 回答1: When you say screens do you mean Activities? Then you probably want to pass them via extras in your intents. Activity 1: int score; ... Intent Intent = new Intent(...); intent.putExtra("score_key", score); startActivity(intent);

can we have wifi direct api working in 2.3 version

狂风中的少年 提交于 2020-01-04 13:37:40
问题 hi i am developing a app which will use proximity to pair other persons. I can either use Bluetooth or Wifi Direct. After some research i found out that Android ICS has API's for Wifi direct but if my application needs to work on older phones i need some API which can help me, please guide me. Does Google provide any API to be included to the sdk to be used for older android versions or I am wondering if it is possible ?? I am reluctant to use Bluetooth because of it's slow connectivity.

can we have wifi direct api working in 2.3 version

限于喜欢 提交于 2020-01-04 13:36:55
问题 hi i am developing a app which will use proximity to pair other persons. I can either use Bluetooth or Wifi Direct. After some research i found out that Android ICS has API's for Wifi direct but if my application needs to work on older phones i need some API which can help me, please guide me. Does Google provide any API to be included to the sdk to be used for older android versions or I am wondering if it is possible ?? I am reluctant to use Bluetooth because of it's slow connectivity.

How to support API levels < 14?

自闭症网瘾萝莉.ら 提交于 2020-01-04 10:59:05
问题 As it is known, the minimum API level for using the Android support library is 14 now. I would like to release a new version of my app (currently minSdk 15 and targetSdk 27) to support API < 14 (down to Froyo at the minimum if possible). Why you ask? I do not plan to keep supporting for these old system versions, but rather just to fix one critical bug to help the numerous users I have on these platforms - a bug which will actually help them export their data to newer versions. When changing

Android SDK : main.out.xml?

别等时光非礼了梦想. 提交于 2020-01-04 07:03:23
问题 Sometimes Android SDK compiling Project will generate an empty layout XML named main.out.xml , which makes compile failed. The file has to be deleted before compiling again. Why will it appear? and how to avoid it? My IDE is Eclipse with ADT. 回答1: It was reported as a bug. There might an issue with xml plug-ins or something. I've always deleted the xxxx.out.xml file. Take a look at SO threads: Eclipse - Disabling compiling of XML files while in Java perspective android sdk main.out.xml