[android-developers] Send and Receive Video files to Application Server

2012-08-11 Thread Muhammad Rashid
Hi all,
I would like to say that in my android project I want to send a video file 
from SD Card to our Application Server and also Receive that Video file 
from Server. I need a most efficient solution and best practices 
to achieve this task.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: List of Available Wifi Devices

2012-08-11 Thread Meena Rengarajan
Thankyou so much . Yeah i got it very clearly

On Sat, Aug 11, 2012 at 3:08 AM, bob b...@coolfone.comze.com wrote:

 startScan () returns immediately. The availability of the results is made
 known later by means of an asynchronous event sent on completion of the
 scan.


 So, you either need to wait 10 seconds or so after startScan or wait till
 you get the event that the scan has completed.

 IOW, you are calling wifi.getScanResults() before it has time to find
 anything.



 On Friday, August 10, 2012 3:53:39 AM UTC-5, Meena Rengarajan wrote:

 Here , i wanna display list of Available Wifi devices ..
 This is my code please anyone help me , i do not understand what mistake
 is here ?

 Please anybody help me here , i wanna display list of Available Wifi
 devices, i am very new to this Technology ..

 wifi = (WifiManager) getSystemService(Context.WIFI_**SERVICE);
if (wifi.isWifiEnabled() == false)
{
Toast.makeText(**getApplicationContext(), wifi is
 disabled..making it enabled, Toast.LENGTH_LONG).show();
wifi.setWifiEnabled(true);
}
String[] str1 = null;
 ArrayAdapterStringadapter=**new ArrayAdapterString(this,**
 android.R.layout.simple_list_**item_1,android.R.id.text1,**str1);
 lv.setAdapter(adapter);
//lv.setAdapter(this.adapter)**;
WifiInfo info = wifi.getConnectionInfo();
 textStatus.append(\n\nWiFi Status:  + info.toString());
 // wifiConfig=new WifiConfiguration();
 // wifiConfig.status=**WifiConfiguration.Status.**ENABLED;
  boolean b=wifi.isWifiEnabled();
  if(b){
  wifi.setWifiEnabled(false);
  Toast.makeText(**getApplicationContext(), Yes,
 Toast.LENGTH_SHORT).show();
  }

  else{
  wifi.setWifiEnabled(true);
  Toast.makeText(**getApplicationContext(), No,
 Toast.LENGTH_SHORT).show();
  }



  wifi.startScan();
  ListScanResult results = wifi.getScanResults();
  for (ScanResult result : results) {
 Toast.makeText(this, result.SSID +   +
 result.level,Toast.LENGTH_**SHORT).show();
  ListWifiConfiguration configs = wifi.getConfiguredNetworks();
 for (WifiConfiguration config : configs) {
 textStatus.append(\n\n + config.toString());
 }

 if (receiver == null)
 //receiver= new WiFiScanReceiver(this);

 registerReceiver(receiver, new IntentFilter(
 WifiManager.SCAN_RESULTS_**AVAILABLE_ACTION));
 Log.d(TAG, onCreate());
 }
 }

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Alert Dialog Box

2012-08-11 Thread Meena Rengarajan
Thanku :)

On Sat, Aug 11, 2012 at 3:38 AM, bob b...@coolfone.comze.com wrote:

  final WifiManager wifiManager = (WifiManager) this

   .getSystemService(Context.WIFI_SERVICE);


  AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(Enable Wifi?)

   .setCancelable(false)

   .setPositiveButton(Yes,

new DialogInterface.OnClickListener() {

public void onClick(DialogInterface dialog, int id) {

 wifiManager.setWifiEnabled(true);

}

})

   .setNegativeButton(No, new DialogInterface.OnClickListener() {

   public void onClick(DialogInterface dialog, int id) {

dialog.cancel();

finish();

   }

   });

  AlertDialog alertDialog = builder.create();

  alertDialog.show();

 On Friday, August 10, 2012 12:48:11 AM UTC-5, Meena Rengarajan wrote:

 How to Enable Wifi automatically in Android 2.2 in an alert box ? If i
 click Yes button then it should be enable and if i click no then
 application must be closed. Can anyone tell me this how should i do ?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Fixing the lack of the unit % and the lack of the unit em for a Layout for a View

2012-08-11 Thread RichardC
For % read about  
android:layout_weighthttp://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_weight.
 
For em read about sp.

On Saturday, August 11, 2012 6:02:21 AM UTC+1, goodG wrote:

 I don't get the reason why but in Android this 2 units seems to be not 
 available when creating a new layout


 http://developer.android.com/guide/topics/resources/more-resources.html#Dimension

 There is a workaround for this ? At least for the percentage that is 
 really helpful when dealing with a big number of possible aspect ratio and 
 resolutions.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] [XML] Setting a View background based on theme attribute crash the app.

2012-08-11 Thread Sébastien Brochet
Dear Android experts,

I'm trying to set a ListView background color based on the current theme 
attribute, but it crash every time the ListView is shown.It seems I'm doing 
something wrong but I can't see what...

Here's what I'm doing:

First, create the background color:

resources
color name=userlist_background_light#fff0f0f0/color
color name=userlist_background_dark#ff040404/color
/resources


Second, create attributes for my custom themes:

resources
attr name=userlist_background format=reference|color /
/resources


Third, setting this attribute in my themes:

resources xmlns:android=http://schemas.android.com/apk/res/android;
style name=Light parent=Theme.Sherlock.Light
item 
name=userlist_background@color/userlist_background_light/item
/style

style name=Dark parent=Theme.Sherlock
item 
name=userlist_background@color/userlist_background_dark/item
/style
/resources


And finally, using this attribute in the ListView xml:

ListView
android:id=@+id/user_bar
android:layout_width=0dip
android:layout_height=0dip
android:background=?attr/userlist_background
android:cacheColorHint=?userlist_background
android:visibility=gone /


Even the Eclipse layout view crash. Of course, it works fine if I use a 
@color/ directly in the background attribute. It even work if I use say, 
?android:attr/colorBackground. The message error is:

android.view.InflateException: Binary XML file line #8: Error inflating 
class android.view.ListView
Caused by: android.content.res.Resources$NotFoundException: Resource is not 
a Drawable (color or path): TypedValue{t=0x2/d=0x7f010068 a=-1}

I'm pretty sure I'm doing something wrong, as it works with android 
attributes, but I haven't be able to find what during my Google searches.

I hope you'll be able to help me!

Many thanks,

Sébastien.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: not able run 4.1 emulator?

2012-08-11 Thread Sneha Rathod
Oleg Vaskevich theolegv at gmail.com writes:

 Have same issue for my Android 4.0.3 emulator- All this happening after the 
update.:
Starting emulator for AVD 'Test15'
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software 
renderer.
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

 
 Had the same issue, but with just:
 
 
 Failed to allocate memory: 8This application has requested the Runtime to 
terminate it in an unusual way.
 
 Then I realized there is no X86 support for API 16 yet, so I'm sticking with 
API 15 for now.
 On Wednesday, July 25, 2012 2:29:23 AM UTC-4, Hitendrasinh Gohil wrote:
 On Wednesday, July 25, 2012 11:58:34 AM UTC+5:30, Hitendrasinh Gohil wrote:Hi,
 I am not able to run jellybean emulator from eclipse as well as from command 
line.
 Below is the error that i am getting from command line.
 
  
 emulator: ERROR: Could not load OpenGLES emulation library: Could not load 
DLL!
 emulator: WARNING: Could not initialize OpenglES emulation, using software 
renderer.
 Failed to allocate memory: 8
 
 This application has requested the Runtime to terminate it in an unusual way.
 Please contact the application's support team for more information. 
 
 so can any one pls point me to the problem?
 
 
 
 
 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Nexus 7 not visible to adb over usb (WIndows 7 x64, up to date Jelly Bean sdk)

2012-08-11 Thread mkh
The driver there appears to be the same as the one in the android SDK. I 
installed it anyway, and the result is the same -- 

PS C:\Users\mkh\AppData\Local\Android\android-sdk\platform-tools 
$env:ADB_TRACE='all'
PS C:\Users\mkh\AppData\Local\Android\android-sdk\platform-tools 
$env:ADB_TRACE
all
PS C:\Users\mkh\AppData\Local\Android\android-sdk\platform-tools ./adb 
devices
system/core/adb/adb.c::main():Handling commandline()
system/core/adb/adb_client.c::adb_query():adb_query: host:devices
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client:
 
port 5037 type tcp = fd 100
system/core/adb/transport.c::writex():writex: fd=100 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=100 len=12: 
686f73743a76657273696f6e host:version
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 100
system/core/adb/adb_client.c::adb_connect():adb_connect: service 
host:devices
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
30303034 0004
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
30303164 001d
system/core/adb/sysdeps_win32.c::adb_close():adb_close: 100(lo-client:5037)
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:devices
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client:
 
port 5037 type tcp = fd 101
system/core/adb/transport.c::writex():writex: fd=101 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=101 len=12: 
686f73743a64657669636573 host:devices
system/core/adb/transport.c::readx():readx: fd=101 wanted=4
system/core/adb/transport.c::readx():readx: fd=101 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 101
system/core/adb/adb_client.c::adb_connect():adb_connect: return fd 101
system/core/adb/transport.c::readx():readx: fd=101 wanted=4
system/core/adb/transport.c::readx():readx: fd=101 wanted=4 got=4
30303030 
system/core/adb/transport.c::readx():readx: fd=101 wanted=0
system/core/adb/transport.c::readx():readx: fd=101 wanted=0 got=0

system/core/adb/sysdeps_win32.c::adb_close():adb_close: 101(lo-client:5037)
List of devices attached

PS C:\Users\mkh\AppData\Local\Android\android-sdk\platform-tools


On Friday, August 10, 2012 10:18:41 AM UTC-7, goodG wrote:


 http://support.asus.com/download/ModelList.aspx?SLanguage=enkeyword=nexus%207type=1

 my personal advice is just to avoid programming on Windows, it's a 
 nightmare.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Get SMS

2012-08-11 Thread Ehsan Sadeghi
I create an activity
  activity
android:name=.GetResponse
 
   android:label=@string/title_activity_main  
android:launchMode=singleTask
intent-filter
action android:name=ir.smspeik.sms.getresponse /

category android:name=android.intent.category.DEFAULT /
/intent-filter
/activity 
   that starts when a sms received. i write this code to 
display sms but nothing is shown : 
public class GetResponse extends Activity{
IntentFilter intentFilter;
private BroadcastReceiver intentReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
//---display the SMS received in the TextView---
//TextView SMSes = (TextView) findViewById(R.id.textView1); 
Toast.makeText(context, intent.getExtras().getString(sms) + 
Ehsan,
Toast.LENGTH_SHORT).show();
String[] sms = intent.getExtras().getString(sms).split(-);
EditText smsNo = (EditText) findViewById(R.id.txtSmsNo);
smsNo.setText(sms[0]);
Toast.makeText(context,sms[0],
Toast.LENGTH_SHORT).show();
TextView smsBody = (TextView) findViewById(R.id.lblSmsBody);
smsBody.setText(sms[1]);
Toast.makeText(context,sms[1],Toast.LENGTH_SHORT).show();
}
};

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.getresponse);
  intentFilter = new IntentFilter();
intentFilter.addAction(SMS_RECEIVED_ACTION);

//---register the receiver---
registerReceiver(intentReceiver, intentFilter);
}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android's InputMethodService does no get onKeyDown/Up if javascript is involved

2012-08-11 Thread Aleksandr Konstantinov


Hello,
I am developing keyboard service to perform custom key mapping of hardware 
keyboard. So far it is just a slightly modified Android SoftKeyboard 
example. Code can be found at

https://protronika.dyndns.org/websvn/listing.php?repname=FLEXKBDpath=%2Fsc=0

It works without problem in most cases except when javascript (I think so) 
input field in web browser is used - for example google search input in 
firefox. In that case onKeyDown and onKeyUp of InputMethodService are 
called only for META and CTRL keys. All other keys are somehow bypassing my 
code completely and key are mapped to their default ASCII values.

I'm developing on TF101 with ICS 4.0.3 and it seems like even it's own 
keyboard application from Asus has same problems. I can enter anything but 
ASCII in javascript fields.

Regards,

A.K.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to dynamically change row layout of list view on click event

2012-08-11 Thread log4droid
There is no way that you do it with the adapters that already exist. You 
have to create your own. The adapter's getView method is responsible for 
creating and displaying every single row. Let's suppose that you need only 
two row layout to switch with. In that case the model used with the adapter 
could have an attribute to tell if it is using row type 1 or 2. In the 
onclick you change the model of the clicked item, you choose its row type 
and you notify that the data have changed with notifyDataSetChanged().

Tell us if it works for you.

On Thursday, August 9, 2012 7:46:22 AM UTC, Jovish P wrote:

 We are using list view in our app with one simple row layout.
 But on click of list view we want to change the row layout of
 tht particular item . is it possible to do ? wht is the best approach ?
 Ho to add listeners to view inside the row layout?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] getWaveForm() method of Visualizer class returns byte array with all -128

2012-08-11 Thread Ahmad Naqibul Arefin


Hi,

When I call getWaveForm method of Visualizer class, most of time I get all 
-128 in byte array and sometimes I get different values in byte array (this 
is correct). I though it may be sound volume issue, but applied both high 
volume and low volume in code and got same result. My sample audio file 
length is 2/3 seconds.

I have attached my file, plz check it. Dont be confused to  see the code, 
basically  it is a PhoneGap plugin part. Please see the Android part 
(especially getWaveForm() of Visualizer class), that I am facing issue.

My question is why I am getting some times correct value in byte array. 
Though most of time I am getting -128 in array.

This can not be a solution, I need a stable solution. I need getWaveForm 
method will return different values (not all -128).

Any idea?


-arefin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=enpackage com.first;

import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.audiofx.Equalizer;
import android.media.audiofx.Visualizer;
import android.util.Log;
import org.apache.cordova.*;
import org.apache.cordova.api.Plugin;
import org.apache.cordova.api.PluginResult;
import org.json.JSONArray;
import org.json.JSONException;

import java.io.IOException;

public class Audio2Wave extends Plugin {

	private static final String CONVERT = convert;
	private static final int JSON_INDEX = 0;
	// private String output=;

	MediaPlayer mp;

	// Vizualization
	private Visualizer mVisualizer;

	@Override
	public PluginResult execute(String arg0, final JSONArray arg1, String arg2) {
		// TODO Auto-generated method stub
		if (arg0.equals(CONVERT)) {

			try {
String url = arg1.getString(JSON_INDEX);

// start media player - like normal


mp = new MediaPlayer();
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);

try {
	mp.setDataSource(url); // set data source our URL
			// defined
} catch (IllegalArgumentException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
} catch (IllegalStateException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
} catch (IOException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}

try { // tell your player to go to prepare state
	mp.prepare();
	// mp.prepareAsync();
} catch (IllegalStateException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
} catch (Exception e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}

// Start stream / player
mp.start();
// mp.setVolume(1,1);

// Visualizer object and attach it to media player.
// NEED android.permission.RECORD_AUDIO for that in
// AndroidManifest.xml
mVisualizer = new Visualizer(mp.getAudioSessionId());
mVisualizer.setCaptureSize(Visualizer.getCaptureSizeRange()[1]);

mVisualizer.setDataCaptureListener(
		new Visualizer.OnDataCaptureListener() {
			public void onWaveFormDataCapture(
	Visualizer visualizer, byte[] bytes,
	int samplingRate) {

			}

			public void onFftDataCapture(Visualizer visualizer,
	byte[] bytes, int samplingRate) {
			}
		}, Visualizer.getMaxCaptureRate() / 2, true, false);

// enable vizualizer
mVisualizer.setEnabled(true);

try {

	String output = ;
	int captureSize = mVisualizer.getCaptureSize();
	byte[] waves = new byte[captureSize];

	// conver to waveform
	int result = mVisualizer.getWaveForm(waves);

	if (result == 0) {
		// success
		Log.i(arefin, success);

		// conver byte array to sting
		for (int i = 0; i  waves.length; i++) {
			output = output + waves[i] + ,;
		}
		if (output.length() != 0) {
			output = output.substring(0, output.length() - 1);
		}

	} else if (result == -6) {
		// no memory
		Log.i(arefin, no memory);
	} else if (result == -5) {
		// invalid operation
		Log.i(arefin, invalid operation);
	} else if (result == -7) {
		// Operation failed due to dead remote object.
		Log.i(arefin,
Operation failed due to dead remote object);
	}

	// disable the visualizer

	if (!mp.isPlaying()) {

		mVisualizer.setEnabled(false);
		mVisualizer.release();
		mp.release();
		mp = null;
	}

	return new PluginResult(PluginResult.Status.OK, output);

} catch (IllegalStateException er) {
	er.printStackTrace();
} catch (Exception ex) {
	ex.printStackTrace();
}

			} catch (JSONException e) {
// TODO Auto-generated catch block
return new 

[android-developers] Error: Unable to create application --app name--

2012-08-11 Thread amykaroline
Hello all, I received a stack trace with an error on Google Play...
I have no idea where this could have come from.  Any help/ideas would be 
greatly appreciated!  Thank you in advance!

java.lang.RuntimeException: Unable to create application --app name-- 
android.database.sqlite.SQLiteException: unable to open database file
at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4247)
at android.app.ActivityThread.access$3000(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: unable to open database 
file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.init(SQLiteDatabase.java:1812)
at 
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)
at 
android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:168)
at 
org.appcelerator.titanium.util.TiDatabaseHelper.getPlatformParam(TiDatabaseHelper.java:73)
at 
org.appcelerator.titanium.util.TiPlatformHelper.initialize(TiPlatformHelper.java:69)
at 
org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:349)
at --app name--.onCreate(--app name--.java:34)
at 
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4244)


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: AccountManager wrong password or account changed error

2012-08-11 Thread Andrius Semionovas
I have same strange behavior. Your application is signed with DEBUG key?

On Wednesday, 14 April 2010 19:15:50 UTC+3, exh wrote:

 I've been trying to work with the AccountManager and it's not going so
 well.  I've read through the various discussions on it but nothing
 seems to cover what I've hit:

 In my app, I find the com.google account type, then call
 getAuthToken() on it.  The first time this is called, it does the
 expected thing and provides the intent for requesting user permission
 (both GET_ACCOUNTS and USE_CREDENTIALS are set in the manifest).
 However, when I tell it to Allow, it then opens a dialog called
 Google sign-in with the message You entered the wrong password or
 your account has changed.  Please re-enter your password.  However,
 I'm just using the account that's been set on the phone, and
 everything other than my app is working fine.  Re-entering the correct
 password does nothing -- it looks like behind the scenes an exception
 gets thrown:

 java.io.IOException: Bad HTTP response code: 302
at O.p.a(Unknown Source)
at O.n.run(Unknown Source)
at java.lang.Thread.run(Thread.java:1096)

 And the dialog just stays up, with the Sign-in button disabled until
 I start typing in the password field again.

 What's the deal?  My password is correct.  Every other app dependent
 on my google account info works.

 thanks for any help,
 eric



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ListView sorting

2012-08-11 Thread Aparna Ks
i hop tis wil help you
http://www.ezzylearning.com/tutorial.aspx?tid=6816874
http://www.josecgomez.com/2010/05/03/android-putting-custom-objects-in-listview/


On Friday, 10 August 2012 00:18:41 UTC+5:30, Wolfgang wrote:

 Hey guys,
  
 I'm using a ListView that displays a list of ChartInfo. ChartInfo is a 
 class I wrote that contains two strings: name, type; and a boolean: 
 notification. The ListView is sorting the charts based on name. I would 
 prefer that it sorts first based on the boolean, notification, and then 
 sorts by the string, name. Can someone point me to a good resource to 
 accomplish this or give me some guidance. Here is an example of what I 
 would like to accomplish:

 https://lh3.googleusercontent.com/-fV_JkTnTw_Q/UCQFm2NfFlI/AAM/rpH5Nv05NLA/s1600/exampleSorting.png
  

 https://lh3.googleusercontent.com/-fV_JkTnTw_Q/UCQFm2NfFlI/AAM/rpH5Nv05NLA/s1600/exampleSorting.png
 Thanks,
 -W


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Hardware keyboard events are not intercepted by InputMethodService

2012-08-11 Thread AK
Hello all,

I'm trying to develop keyboard service which performs customized keys 
mapping for hardware keyboard. 
My working target is Asus Transformer TF101 with ICS 4.0.3 and hardware 
keyboard aka dock. 
I have implement onKeyDown and onKeyUp methods of InputMethodService which 
catch all keyboard 
events and it all works perfectly in ordinary text fields.
But when text is being entered into web browser's text field handled by 
javascript (like google search field
in Firefox for example) most keyboard events are not going through 
onKeyDown anymore. Actually it looks
like only BACK and META are catched by InputMethodService.
And it is not only my service which looses ability to map keys. Asus 
Keyboard service supplied as part of 
firmware also stops functioning effectively allowing to enter text in ASCII 
only. Which by the way is 
extremely annoying.

Any ideas on what I am doing wrong? Or is it some bug in ICS?


Regards,

A.K.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Is Chrome in android simulator supported?

2012-08-11 Thread Aaron Labiaga
Is chrome in the android simulator supported? I've looked in other forums 
and no one seemed to have been successful in doing this. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Examples for Android with Eclipse

2012-08-11 Thread augusto
Where can I find examples for Android Programming, using Eclipse?

I have tried to install the Samples of the SDK, but it doesnt work

TIA,

Augusto

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Non sticky service gets recreated (indefinetly?)

2012-08-11 Thread Dianne Hackborn
Sorry yes I meant if it *is* sticky.

On Fri, Aug 10, 2012 at 12:08 PM, Kostya Vasilyev kmans...@gmail.comwrote:


 2012/8/10 Dianne Hackborn hack...@android.com


 As long as the service is in the started state, the system will try to
 keep it created/started, and if the process is killed then it will be
 restarted if it is not sticky.


  Is that a typo?

 Was that supposed to be Restarted if it *is* sticky?

 -- K

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Non sticky service gets recreated (indefinetly?)

2012-08-11 Thread Dianne Hackborn
Unless the service has something bound to it or it is started, it will not
be re-created.

You can look at the service state with adb shell dumpsys activity
services or adb shell dumpsys activity service package_name or
service_name.  If your service is listed there, it will show you what its
current state is -- what is bound to it, whether it is started, etc.

On Fri, Aug 10, 2012 at 2:26 PM, Johan Appelgren
johan.appelg...@gmail.comwrote:

 You're right that I'm not understanding something here, most likely it is
 something really obvious too. :(

 As I wrote, my understanding of what you describe is not the behavior I'm
 seeing with my test app on my Galaxy Nexus with Android 4.1.1 nor the 4.1.1
 emulator image. After I've unbound from the service, in my test I do this
 in the activity's onPause, when the app process is killed, it and the
 service is restarted. Then after that the process and service is killed and
 restarted every now and then, without starting the activity or any calls to
 startService or bindService made by any code in my test app. It starts
 quicker if I start a couple of different games to put some memory pressure
 on the system.

 Not even stopping the cached process in the Cached processes list stops
 it, it is restarted a little while after. Only going to the Downloaded list
 and pressing the Force stop button stops the stop/restart cycle.

 Perhaps someone could look at my dummy app code and point out what I'm
 doing wrong. If someone does, I'm sorry for most likely wasting your time.

 public class MainActivity extends Activity {

 @SuppressWarnings(unused)
 private int[] mDummyData = new int[3 * 1024 * 1024];
  private final String TAG = MainActivity;
  private boolean mBound;
  private boolean mCalledBind;
 private boolean mStarted;
 private final ServiceConnection mConnection = new ServiceConnection() {

 @Override
 public void onServiceConnected(ComponentName className, IBinder
 service) {
 Log.d(TAG, onServiceConnected);
 mBound = true;
 }

 @Override
 public void onServiceDisconnected(ComponentName arg0) {
 Log.d(TAG, onServiceDisconnected);
 }
 };

 public MainActivity(){
 Log.d(TAG, ctor);
 }

 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);

 Intent intent = new Intent(this, MainService.class);

 Log.d(TAG, onCreate);

 if (!mStarted) {
 Log.d(TAG, startService);
 startService(intent);
 mStarted = true;
 }

 if (!mBound  !mCalledBind) {
 Log.d(TAG, bindService);
 bindService(intent, mConnection, BIND_AUTO_CREATE);
 mCalledBind = true;
 }
 }

 @Override
 protected void onPause() {
 Log.d(TAG, onPause);

 if (mBound) {
 Log.d(TAG, unbindService);
 unbindService(mConnection);
 mBound = false;
 mCalledBind = false;
 }

 super.onPause();
 }

 @Override
 protected void onDestroy() {
 Log.d(TAG, onDestroy);

 super.onDestroy();
 }
 }

 public class MainService extends Service {

 @SuppressWarnings(unused)
  private int[] mDummyData = new int[1024*1024];
  private static final String TAG = MainService;
  private final IBinder mBinder = new LocalBinder();
  public class LocalBinder extends Binder {
  MainService getService() {
 return MainService.this;
 }
 }
  @Override
 public IBinder onBind(Intent arg0) {
 Log.d(TAG, onBind);
  return mBinder;
 }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId) {
  Log.d(TAG, onStartCommand);
 return START_NOT_STICKY;
 }
  @Override
 public void onCreate() {
 Log.d(TAG, onCreate);
  super.onCreate();
 }
 }

 On Friday, August 10, 2012 8:39:46 PM UTC+2, Dianne Hackborn wrote:

 On Fri, Aug 10, 2012 at 12:17 AM, Johan Appelgren 
 johan.a...@gmail.comwrote:

 Still occupies some amount of memory though, and the service's onCreate
 might not be cheap.


 I'm not sure what this means...?  If you are concerned about the service
 having too much overhead because you have bound to it and it doesn't need
 to run just while bound, don't use BIND_AUTO_CREATE.


 Anyways, I guess this is one of those little undocumented things you
 just have to learn. Do not rely on START_NOT_STICKY if you both start and
 bind to a service if you don't want the service to stay around forever as a
 cached process after you've unbound it.


 Honestly I think it is pretty fully documented.  But maybe we have a
 misunderstanding -- once you unbind from the service, the fact that you had
 previously bound to it has no further impact on how it is handled, and if
 its process is killed after that it will not be restarted.

 As long as you are bound to it with BIND_AUTO_CREATE, the system will try
 to keep it 

Re: [android-developers] Non sticky service gets recreated (indefinetly?)

2012-08-11 Thread Dianne Hackborn
Also, if the service is not showing up as a running service in manage apps,
then that should mean that it is not started, so it it is created that is
because something has bound to it.  You can see what is bound to it with
those shell commands.  If it is not started, the only reason it would be
recreated is because another process continue to be bound to it after its
process is killed.

On Sat, Aug 11, 2012 at 11:21 AM, Dianne Hackborn hack...@android.comwrote:

 Unless the service has something bound to it or it is started, it will not
 be re-created.

 You can look at the service state with adb shell dumpsys activity
 services or adb shell dumpsys activity service package_name or
 service_name.  If your service is listed there, it will show you what its
 current state is -- what is bound to it, whether it is started, etc.


 On Fri, Aug 10, 2012 at 2:26 PM, Johan Appelgren 
 johan.appelg...@gmail.com wrote:

 You're right that I'm not understanding something here, most likely it is
 something really obvious too. :(

 As I wrote, my understanding of what you describe is not the behavior I'm
 seeing with my test app on my Galaxy Nexus with Android 4.1.1 nor the 4.1.1
 emulator image. After I've unbound from the service, in my test I do this
 in the activity's onPause, when the app process is killed, it and the
 service is restarted. Then after that the process and service is killed and
 restarted every now and then, without starting the activity or any calls to
 startService or bindService made by any code in my test app. It starts
 quicker if I start a couple of different games to put some memory pressure
 on the system.

 Not even stopping the cached process in the Cached processes list stops
 it, it is restarted a little while after. Only going to the Downloaded list
 and pressing the Force stop button stops the stop/restart cycle.

 Perhaps someone could look at my dummy app code and point out what I'm
 doing wrong. If someone does, I'm sorry for most likely wasting your time.

 public class MainActivity extends Activity {

 @SuppressWarnings(unused)
 private int[] mDummyData = new int[3 * 1024 * 1024];
  private final String TAG = MainActivity;
  private boolean mBound;
  private boolean mCalledBind;
 private boolean mStarted;
  private final ServiceConnection mConnection = new
 ServiceConnection() {

 @Override
 public void onServiceConnected(ComponentName className, IBinder
 service) {
 Log.d(TAG, onServiceConnected);
 mBound = true;
 }

 @Override
 public void onServiceDisconnected(ComponentName arg0) {
 Log.d(TAG, onServiceDisconnected);
 }
 };

 public MainActivity(){
 Log.d(TAG, ctor);
 }

 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);

 Intent intent = new Intent(this, MainService.class);

 Log.d(TAG, onCreate);

 if (!mStarted) {
 Log.d(TAG, startService);
  startService(intent);
 mStarted = true;
 }

 if (!mBound  !mCalledBind) {
 Log.d(TAG, bindService);
 bindService(intent, mConnection, BIND_AUTO_CREATE);
 mCalledBind = true;
 }
 }

 @Override
 protected void onPause() {
 Log.d(TAG, onPause);

 if (mBound) {
 Log.d(TAG, unbindService);
 unbindService(mConnection);
 mBound = false;
  mCalledBind = false;
 }

 super.onPause();
 }

 @Override
 protected void onDestroy() {
 Log.d(TAG, onDestroy);

 super.onDestroy();
 }
 }

 public class MainService extends Service {

 @SuppressWarnings(unused)
  private int[] mDummyData = new int[1024*1024];
  private static final String TAG = MainService;
  private final IBinder mBinder = new LocalBinder();
  public class LocalBinder extends Binder {
  MainService getService() {
 return MainService.this;
 }
 }
  @Override
 public IBinder onBind(Intent arg0) {
 Log.d(TAG, onBind);
  return mBinder;
 }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId) {
  Log.d(TAG, onStartCommand);
 return START_NOT_STICKY;
 }
  @Override
 public void onCreate() {
 Log.d(TAG, onCreate);
  super.onCreate();
 }
 }

 On Friday, August 10, 2012 8:39:46 PM UTC+2, Dianne Hackborn wrote:

 On Fri, Aug 10, 2012 at 12:17 AM, Johan Appelgren 
 johan.a...@gmail.comwrote:

 Still occupies some amount of memory though, and the service's onCreate
 might not be cheap.


 I'm not sure what this means...?  If you are concerned about the service
 having too much overhead because you have bound to it and it doesn't need
 to run just while bound, don't use BIND_AUTO_CREATE.


 Anyways, I guess this is one of those little undocumented things you
 just have to learn. Do not rely on START_NOT_STICKY if you both start and
 bind to a 

Re: [android-developers] Examples for Android with Eclipse

2012-08-11 Thread Justin Anderson
Care to explain what doesn't work means?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 10, 2012 at 9:35 AM, augusto amerc...@gmail.com wrote:

 Where can I find examples for Android Programming, using Eclipse?

 I have tried to install the Samples of the SDK, but it doesnt work

 TIA,

 Augusto

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] getWaveForm() method of Visualizer class returns byte array with all -128

2012-08-11 Thread Harri Smått

On Aug 11, 2012, at 5:36 PM, Ahmad Naqibul Arefin arefin.s...@gmail.com wrote:
 
 Any idea?
 

Since you're using URL playback, I'm wondering does polling (getWaveForm) work 
as you're expecting in your code. Have you checked how it worked if you used 
DataCaptureListener instead?

--
H

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Canvas or OpenGL

2012-08-11 Thread Simon Giddings
I am going to start the development of a Music document app.
In the past, when I developed under widows, I used world coordinates and 
screen coordinates to provide scaling/zooming.

I am unclear as to weather I should go to OpenGL under Android, or if I 
could still use Canvas.

Can anyone advise me here?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to remove black topbar on activity animation?

2012-08-11 Thread user123


I defined a scale animation from 0 to 1 for entering activity:

overridePendingTransition(R.anim.scale, 0);

In application tag in Manifest:

android:theme=@android:style/Theme.NoTitleBar

But I get a black topbar on the entering activity, while it scales... looks 
very ugly since the activity doesn't have this topbar. How do I hide it?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: java.lang.IllegalStateException: Fragement no longer exists for key f1: index 3

2012-08-11 Thread user123
Well, for now I surrounded 

pager.setAdapter(adapter);

with a try - catch. Happens mostly when the screen is not visible anymore, 
so it's not critical.

But it still would be good to understand it and be able to fix correctly. I 
was reading the source and as far as I remember, it was related with saving 
the fragment's state appropiatedly, the active fragment list and the 
fragment manager... but it's quite dense and there should be better 
documentation on this...


On Sunday, August 5, 2012 5:25:37 PM UTC+2, hostj2me wrote:

 I am also seeing this issue. 

 java.lang.IllegalStateException: Fragement no longer exists for key f451: 
 index 2
 at 
 android.support.v4.app.FragmentManagerImpl.getFragment(FragmentManager.java:534)
 at 
 android.support.v4.app.FragmentStatePagerAdapter.restoreState(FragmentStatePagerAdapter.java:208)
 at android.support.v4.view.ViewPager.setAdapter(ViewPager.java:374)

 Have you found a solution?




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: java.lang.IllegalStateException: Fragement no longer exists for key f1: index 3

2012-08-11 Thread user123
Well, for now I surrounded 

pager.setAdapter(adapter);

with a try - catch. Happens mostly when the screen is not visible anymore, 
so it's not critical.

But it still would be good to understand it and be able to fix correctly. I 
was reading the source and as far as I remember, it was related with saving 
the fragment's state appropiatedly, the active fragment list and the 
fragment manager... but it's quite dense and there should be better 
documentation on this...


On Sunday, August 5, 2012 5:25:37 PM UTC+2, hostj2me wrote:

 I am also seeing this issue. 

 java.lang.IllegalStateException: Fragement no longer exists for key f451: 
 index 2
 at 
 android.support.v4.app.FragmentManagerImpl.getFragment(FragmentManager.java:534)
 at 
 android.support.v4.app.FragmentStatePagerAdapter.restoreState(FragmentStatePagerAdapter.java:208)
 at android.support.v4.view.ViewPager.setAdapter(ViewPager.java:374)

 Have you found a solution?




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to remove black topbar on activity animation?

2012-08-11 Thread user123
If it's of interest for somebody, here is the xml of the animation:

scale 
xmlns:android=http://schemas.android.com/apk/res/android;
android:duration=1000
android:fromXScale=0
android:fromYScale=0
android:pivotX=50%
android:pivotY=50%
android:toXScale=1
android:toYScale=1 
android:fillAfter=true
/


On Saturday, August 11, 2012 11:20:52 PM UTC+2, user123 wrote:

 I defined a scale animation from 0 to 1 for entering activity:

 overridePendingTransition(R.anim.scale, 0);

 In application tag in Manifest:

 android:theme=@android:style/Theme.NoTitleBar

 But I get a black topbar on the entering activity, while it scales... 
 looks very ugly since the activity doesn't have this topbar. How do I hide 
 it?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Get SMS

2012-08-11 Thread Fred Niggle
A good effort.
Now you need to look into debugging to solve your problem.


On 11 August 2012 17:47, Ehsan Sadeghi esade...@gmail.com wrote:

 I create an activity
   activity
 android:name=.GetResponse

android:label=@string/title_activity_main
 android:launchMode=singleTask
 intent-filter
 action android:name=ir.smspeik.sms.getresponse /

 category android:name=android.intent.category.DEFAULT /
 /intent-filter
 /activity
that starts when a sms received. i write this code to
 display sms but nothing is shown :
 public class GetResponse extends Activity{
 IntentFilter intentFilter;
 private BroadcastReceiver intentReceiver = new BroadcastReceiver() {
 @Override
 public void onReceive(Context context, Intent intent) {
 //---display the SMS received in the TextView---
 //TextView SMSes = (TextView) findViewById(R.id.textView1);
 Toast.makeText(context, intent.getExtras().getString(sms) +
 Ehsan,
 Toast.LENGTH_SHORT).show();
 String[] sms = intent.getExtras().getString(sms).split(-);
 EditText smsNo = (EditText) findViewById(R.id.txtSmsNo);
 smsNo.setText(sms[0]);
 Toast.makeText(context,sms[0],
 Toast.LENGTH_SHORT).show();
 TextView smsBody = (TextView) findViewById(R.id.lblSmsBody);
 smsBody.setText(sms[1]);
 Toast.makeText(context,sms[1],Toast.LENGTH_SHORT).show();
 }
 };

  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.getresponse);
   intentFilter = new IntentFilter();
 intentFilter.addAction(SMS_RECEIVED_ACTION);

 //---register the receiver---
 registerReceiver(intentReceiver, intentFilter);
 }
 }

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Canvas or OpenGL

2012-08-11 Thread James Black
Without more detail of what you want to do an answer is difficult.

Do you need a fast refresh rate for example?  One music program I wrote had
to turn notes on and off at the correct millisecond, under windows; that
accuracy won't work on mobile devices.

If you just want to show notes either will work.

Do you need a 3d canvas to show notes?  Then opengl is better.
On Aug 11, 2012 2:51 PM, Simon Giddings mr.s.giddi...@gmail.com wrote:

 I am going to start the development of a Music document app.
 In the past, when I developed under widows, I used world coordinates and
 screen coordinates to provide scaling/zooming.

 I am unclear as to weather I should go to OpenGL under Android, or if I
 could still use Canvas.

 Can anyone advise me here?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: All Android in app subscriptions were mysteriously automatically canceled

2012-08-11 Thread fibercode
Trevor,

Everything looks to be back to normal now.

Thank you very much for your cooperation!

This issue can be considered resolved now.

On Friday, 10 August 2012 16:22:07 UTC-4, Trevor Johns wrote:

 fibercode,
 Can you let me know if you're still seeing this? I just confirmed with our 
 engineering team that everything should be back to normal. If anything 
 still looks off, let me know and I'll have them take a closer look.

 (It's possible there was some caching delays with the Developer API, which 
 might explain why you were still seeing non-renewing subscriptions.)

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 11:38:03 PM UTC-7, fibercode wrote:

 Trevor,

 Thank you for your prompt response and the explanation. At least now we 
 know that we are not living in some alternate reality and stopped pinching 
 ourselves in disbelief.

 But, we still have all of our customers subscriptions canceled. None of 
 those were restored back to active. Now when we query the Google API server 
 to see if the subscriptions are still active we get false.

 For example:
 We queried Google order number: 574480490664998 and got the following 
 JSON response:

 {
  kind: androidpublisher#subscriptionPurchase,
  initiationTimestampMsec: 1342064134000,
  validUntilTimestampMsec: 1344749703290,
  autoRenewing: false
 }

 That order should have been restored to autoRenewing: true!

 Please let me know if we are missing something?

 Our customers have not had any termination of service, since our servers 
 are correctly keeping track of the expiration date of their subscriptions.
 But that is not the point. The main thing is that they would have to now 
 manually go and purchase the same subscription they did subscribe to before 
 (the one they did not unsubscribe from).
 I think that is a horrible way to treat them.

 I do not want to sound harsh, but we are trying to run a business not 
 play high school games.

 Any help is greatly appreciated!

 Thank you.


 On Thursday, 9 August 2012 21:29:30 UTC-4, Trevor Johns wrote:

 fibercode,
 A number of in-app billing subscriptions were erroneously marked as 
 canceled this morning due to an issue on our servers. Most of the affected 
 subscriptions have already been restored by our engineers, and users did 
 not loose access to content during this time. We will be sending a followup 
 email soon to those affected explaining what happened.

 There were a small minority of users who's subscription auto-renewal 
 dates occurred before we we were able to restore the subscription, and 
 accordingly were not renewed. These users can choose to re-subscribe using 
 the standard in-app billing mechanism within your app (they will appear as 
 a standard expired subscription to your app).

 The HTTP Android Developer API would have still returned the correct 
 expiration time for all subscriptions, so users continued to receive all 
 content they had paid for.

 We sincerely apologize the inconvenience this has caused, and our team 
 will be taking steps to ensure similar incidents do not occur in the future.

 -- 
 Trevor Johns
 Google Developer Programs, Android
 http://developer.android.com

 On Thursday, August 9, 2012 12:03:23 PM UTC-7, fibercode wrote:

 One of our Android applications has supported in app billing for a 
 while now.

 A little over two weeks ago we published an update that supports the 
 newly released by Google in app subscriptions.

 Everything was fine until this morning when mysteriously all the 
 subscriptions purchased by our customers were canceled automatically! 
 We got up this morning, checked our emails and our test accounts had the 
 subscriptions canceled even though we had not done that. This obviously 
 raised a lot of red flags so we started checking our customers' 
 subscriptions and it seems that they were all canceled !!! We were even 
 contacted by several of our customers who thought that we canceled their 
 subscriptions.

 The new subscription purchases done today (August 9th) are not being 
 canceled but we can no longer trust how long that will last.

 The only conclusion we could come to is that Google canceled the 
 subscriptions (either on purpose or accidentally).
 Most likely this looks like a bug on the Google side, but we need some 
 help to narrow this down.

 Thank you.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-11 Thread IcedNet
Acer Iconia A500 and Acer Iconia A500
Android 4.0.3 
(Lord knows what custom joy layered over that)

I can uninstall (via ADB or the Apps settings) and install the app again, 
the app will show permission is already granted for all connected devices 
(that are part of the app's scope)...
Here's the best part:
I can successfully retrieve devices, endPoints and interfaces -- with one 
of the devices, I can even open the device connection -- but with the 
printer, I consistently return null from UsbManager.openDevice()
Restarting the device (without reinstalling the app) forces the correct 
behavior, ie the system requests permission for all devices and the app 
operates as expected.

I recall this from Honeycomb, and unless I am mistaken, I thought this 
behavior was fixed in ICS.
I suppose I should file a bug, as I searched for one and did not find it, 
but I am in the middle of a project so I figured I would inquire where some 
of the Core Android folks like to hang  ;)

Anyone?

Peace,
Dan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ICS USB Host mode -- device permission exists after uninstall

2012-08-11 Thread IcedNet
Sorry, meant to say A500 and A200  lol

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Unsubscribe

2012-08-11 Thread Andy dev
Dianne, did you have any luck with that sample APK and reproducing the 
issue?
 
Thanks

On Friday, July 27, 2012 12:47:17 PM UTC+1, Kostya Vasilyev wrote:


 2012/7/27 Jim Graham spook...@gmail.com javascript:

 On Thu, Jul 26, 2012 at 10:35:18PM -0700, Andy dev wrote:
  Anyone made any progress with this issue, I still cannot pinpoint what
  causes it?


 It's like life after death - no-one who knows for sure is able to share 
 his knowledge :)
  

  
 It's nothing new...e-mail lists have been plagued with unsubscribe
 requests sent to the list despite very specific instructions given
 to users of the list since the day they signed up.  As to why people
 do that, I'm going to be nice and not answer that part.


 Another mystery in the same category: a refund request for an in-app 
 purchase from a user claming he didn't buy it (and no, neither he or his 
 phone is being held captive).
  


 Later,
--jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)  |  There it was, right in the title bar:
 spook...@gmail.com javascript:  |   Microsoft Operations POS.
  Running Mac OS X Lion  |
 ICBM / Hurricane: | Never before has a TLA been so appropriately
30.44406N 86.59909W|  mis-parsed. (alt.sysadmin.recovery)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Third-parties libraries license

2012-08-11 Thread Sergio Panico
Hi all,
just a legal question.

Anyone know what is the best practice to avoid legal issue in using third 
party libraries?
For my understanding, the app should foresee a section (usually the about 
or information screens) where all the 3rd parties library and/or 
trademarks are attributed to their respective owner with some copyright 
notes (for example: Google, Android, Google Maps are registered trademark 
of Google Inc. [3rd-Lib] is property of [3rd party company name]. All other 
registered trademarks or trademarks are property of their respective 
owners. All rights reserved.)

What i'm wondering is if this note is enought, or there should be an 
explicit reference to the license of the library used? (for example, see 
Google+ App, in the section Settings  About Google+  Open souce 
licenses). In this case what is the license for the addon Google Maps API 
16 (maps.jar, com.google.android.maps)?

Thanks a lot
Bye
Sergio

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Third-parties libraries license

2012-08-11 Thread Jim Graham
On Sat, Aug 11, 2012 at 04:07:49PM -0700, Sergio Panico wrote:

 just a legal question.

Then you need to ask a lawyer.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
spooky1...@gmail.com  | T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
 Running Mac OS X Lion  | 
ICBM / Hurricane: | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+
   30.44406N 86.59909W| I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Po

2012-08-11 Thread El


Please excuse my typos...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Canvas or OpenGL

2012-08-11 Thread bob


On Saturday, August 11, 2012 4:50:21 PM UTC-5, James Black wrote:

 Without more detail of what you want to do an answer is difficult.

 Do you need a fast refresh rate for example?  One music program I wrote 
 had to turn notes on and off at the correct millisecond, under windows; 
 that accuracy won't work on mobile devices.

Millisecond accuracy won't work on Windows either due to the refresh rate 
of the display.
 

 If you just want to show notes either will work.

 Do you need a 3d canvas to show notes?  Then opengl is better.
 On Aug 11, 2012 2:51 PM, Simon Giddings mr.s.g...@gmail.comjavascript: 
 wrote:

 I am going to start the development of a Music document app.
 In the past, when I developed under widows, I used world coordinates and 
 screen coordinates to provide scaling/zooming.

 I am unclear as to weather I should go to OpenGL under Android, or if I 
 could still use Canvas.

 Can anyone advise me here?

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to Handle the Duak Sim Settings

2012-08-11 Thread raja shekar
i want to change the Network Mode for Both SIM in Phone. How can i handle
this ? is there any API is Available for this featutes?


Please suggest ..thanks in Advance

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Canvas or OpenGL

2012-08-11 Thread Dianne Hackborn
On Sat, Aug 11, 2012 at 2:50 PM, James Black planiturth...@gmail.comwrote:

 Do you need a fast refresh rate for example?  One music program I wrote
 had to turn notes on and off at the correct millisecond, under windows;
 that accuracy won't work on mobile devices.

You can do 60fps drawing with either OpenGL or Canvas.  That is the best
you are going to get for accuracy since that is the screen refresh rate.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Hardware keyboard events are not intercepted by InputMethodService

2012-08-11 Thread Dianne Hackborn
Is this only in Firefox, or also in the built-in browser app?  The app
always does get first crack at input events, so it is possible for a broken
application to do this kind of thing.  (This facility is intended for
things like capturing back to dismiss a pop-up instead of closing the IME.)

On Wed, Aug 8, 2012 at 3:07 PM, AK aleksandr.v.konstanti...@gmail.comwrote:

 Hello all,

 I'm trying to develop keyboard service which performs customized keys
 mapping for hardware keyboard.
 My working target is Asus Transformer TF101 with ICS 4.0.3 and hardware
 keyboard aka dock.
 I have implement onKeyDown and onKeyUp methods of InputMethodService which
 catch all keyboard
 events and it all works perfectly in ordinary text fields.
 But when text is being entered into web browser's text field handled by
 javascript (like google search field
 in Firefox for example) most keyboard events are not going through
 onKeyDown anymore. Actually it looks
 like only BACK and META are catched by InputMethodService.
 And it is not only my service which looses ability to map keys. Asus
 Keyboard service supplied as part of
 firmware also stops functioning effectively allowing to enter text in
 ASCII only. Which by the way is
 extremely annoying.

 Any ideas on what I am doing wrong? Or is it some bug in ICS?


 Regards,

 A.K.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Is Chrome in android simulator supported?

2012-08-11 Thread Dianne Hackborn
The simulator is pretty dead.  If something works in it, you are just
lucky. :}  I very much doubt chrome will work in it.

On Wed, Aug 8, 2012 at 1:38 PM, Aaron Labiaga alabi...@google.com wrote:

 Is chrome in the android simulator supported? I've looked in other forums
 and no one seemed to have been successful in doing this.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-11 Thread Kristopher Micinski
perhaps also, android-security-discuss.

kris

On Sat, Aug 11, 2012 at 6:46 PM, IcedNet d...@icednet.info wrote:
 Acer Iconia A500 and Acer Iconia A500
 Android 4.0.3
 (Lord knows what custom joy layered over that)

 I can uninstall (via ADB or the Apps settings) and install the app again,
 the app will show permission is already granted for all connected devices
 (that are part of the app's scope)...
 Here's the best part:
 I can successfully retrieve devices, endPoints and interfaces -- with one of
 the devices, I can even open the device connection -- but with the printer,
 I consistently return null from UsbManager.openDevice()
 Restarting the device (without reinstalling the app) forces the correct
 behavior, ie the system requests permission for all devices and the app
 operates as expected.

 I recall this from Honeycomb, and unless I am mistaken, I thought this
 behavior was fixed in ICS.
 I suppose I should file a bug, as I searched for one and did not find it,
 but I am in the middle of a project so I figured I would inquire where some
 of the Core Android folks like to hang  ;)

 Anyone?

 Peace,
 Dan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en