[android-developers] Re: JNI and caching jobject thiz?

2012-01-16 Thread FrankG
Hello !

It seems for me, that your question is not really  ndk and android
related,
instead more or less something related to Reflection and the Dynamic
Invocation API.

Good luck ! Frank




On 13 Jan., 11:11, M J fakeacc...@googlemail.com wrote:
 Hey guys,

 I nned your help. I am currently developing an application which uses
 JNI and native sockets. The problem is that I have to call Java code
 if some packages arrive on the native socket connection. Currently I
 am using CallVoidMethod to do that. The JNIEnv cannot be cached so I
 get it like this:

 inline JNIEnv *get_env()
 {
         JNIEnv *env;
         jvm-GetEnv((void **)env, JNI_VERSION_1_4);
         return env;

 }

 The jmethodID I is cached and initialized on startup. My only problem
 now is, how can I get the jobject? Currently I am making a global
 reference on the parameter jobject thiz, which is passed to my init
 function.

 Is this okay? I am asking because I am having some trouble with that,
 eg. the reference to the local and the global obj are exactly the
 same. And when I a call DeleteGlobalRef on the global reference there
 is a warning in the log cat output that this reference does not exist
 and the app crashes.

 I also tried using the local reference but then the CallVoidMethod
 crashes and the output says this reference does not exist, so I think
 I am on the right way.

 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


[android-developers] Re: Access to USB Device

2012-01-16 Thread FrankG
Hello Nico,

you didn't said which device type your GPS receiver plays.

But from the dmesg output it seems that their might be a problem
with the power supply for your external device ??

6[ 2786.151489] msm_otg_suspend: usb in low power mode
6[ 2786.842376] cpufreq: cpu 1 is not active.
6[ 2789.192687] msm_otg_resume: usb exited from low power mode

Did you provide explicit power for your device ?

Good luck ! Frank


On 13 Jan., 08:58, Nico Guth nicolai.g...@googlemail.com wrote:
 Hi!

 I have a USB device (GPS receiver) which I want to connect to my
 Android 3.2 tablet.
 The device is somehow recognized by the system and a ttyACM0 node is
 created in /dev. But here my problem starts: how can I get access to /
 dev/ttyACM0 without root access rights? I also tried to use the
 UsbManager etc. from the API, but here the device is not listed.
 Another program from the market (USB Device Info) also couldn't find
 the device via API but only by parsing /sys/bus/usb/devices/.

 Is there a way to send/receive data to/from the device without rooting
 the tab?
 The tab is a Huawei MediaPad.

 Here is an excerpt from dmesg:
 6[ 2781.888427] msm_hsusb_host msm_hsusb_host.0: Qualcomm On-Chip
 EHCI Host Controller
 6[ 2781.897521] msm_hsusb_host msm_hsusb_host.0: new USB bus
 registered, assigned bus number 1
 6[ 2781.905059] msm_hsusb_host msm_hsusb_host.0: irq 132, io base
 0x1250
 6[ 2781.911712] usb usb1: New USB device found, idVendor=1d6b,
 idProduct=0002
 6[ 2781.918243] usb usb1: New USB device strings: Mfr=3, Product=2,
 SerialNumber=1
 6[ 2781.928039] usb usb1: Product: Qualcomm On-Chip EHCI Host
 Controller
 6[ 2781.933380] usb usb1: Manufacturer: Linux 2.6.35.11 ehci_hcd
 6[ 2781.938995] usb usb1: SerialNumber: msm_hsusb_host.0
 6[ 2781.946319] hub 1-0:1.0: USB hub found
 6[ 2781.949035] hub 1-0:1.0: 1 port detected
 6[ 2786.151489] msm_otg_suspend: usb in low power mode
 6[ 2786.842376] cpufreq: cpu 1 is not active.
 6[ 2789.192687] msm_otg_resume: usb exited from low power mode
 6[ 2789.349945] usb 1-1: new full speed USB device using
 msm_hsusb_host and address 2
 6[ 2789.507843] usb 1-1: New USB device found, idVendor=152a,
 idProduct=8230
 6[ 2789.513580] usb 1-1: New USB device strings: Mfr=1, Product=2,
 SerialNumber=0
 6[ 2789.530883] usb 1-1: Product: Septentrio USB Device
 6[ 2789.534729] usb 1-1: Manufacturer: Septentrio
 6[ 2789.543395] cdc_acm 1-1:1.0: ttyACM0: USB ACM device

 I hope you can help me
 So long,
 Nico

-- 
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 Security in Android

2012-01-16 Thread mayur
Hi ,
  I want my application to support Digital Signature Verification  for
a given xml Signature file.
  For this , currently we are using  open source libxmlsecurity which
does that but is not part of Android Code base.
 Libxmlsecurity complies to http://www.w3.org/TR/xmldsig-core/
specifications of Digital Signature .

Is there any such support for XML Digital Signature parsing and
Verification in Android which complies to the aforesaid link/spec. ?

-- 
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: JNI and caching jobject thiz?

2012-01-16 Thread M J
Hey,

hmmm, I do not think so. I just want to know how to call a Java method
from C without having the jobject. Can I cache it when I previously
got it as parameter?

On 16 Jan., 09:11, FrankG frankgru...@googlemail.com wrote:
 Hello !

 It seems for me, that your question is not really  ndk and android
 related,
 instead more or less something related to Reflection and the Dynamic
 Invocation API.

 Good luck ! Frank

 On 13 Jan., 11:11, M J fakeacc...@googlemail.com wrote:







  Hey guys,

  I nned your help. I am currently developing an application which uses
  JNI and native sockets. The problem is that I have to call Java code
  if some packages arrive on the native socket connection. Currently I
  am using CallVoidMethod to do that. The JNIEnv cannot be cached so I
  get it like this:

  inline JNIEnv *get_env()
  {
          JNIEnv *env;
          jvm-GetEnv((void **)env, JNI_VERSION_1_4);
          return env;

  }

  The jmethodID I is cached and initialized on startup. My only problem
  now is, how can I get the jobject? Currently I am making a global
  reference on the parameter jobject thiz, which is passed to my init
  function.

  Is this okay? I am asking because I am having some trouble with that,
  eg. the reference to the local and the global obj are exactly the
  same. And when I a call DeleteGlobalRef on the global reference there
  is a warning in the log cat output that this reference does not exist
  and the app crashes.

  I also tried using the local reference but then the CallVoidMethod
  crashes and the output says this reference does not exist, so I think
  I am on the right way.

  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


[android-developers] Re: Tool for handling of localisation files

2012-01-16 Thread Pent
 I am working on a App that supports several languages and got an offer to
 have my strings.xml file translated into several languages. However, the
 persons doing that are not technical and I would really prefer to give them
 an Excel file or something like that.

 Anybody using something else than a pure XML editor to handle translations?

I use this: http://mygengo.com/translation-services/string/

Not perfect, but not bad.

Pent

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Pent
 Every apps that uses canvas are slowed down when this acceleration is
 enabled.

Watch the memory size balloon fantastically too.

Pent

-- 
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: can use ATM cum debit card of State Bank of India (SBI) for registration.

2012-01-16 Thread Mohd Arshi Khan
Thank you friends.

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Romain Guy
 Watch the memory size balloon fantastically too.

That is an unfortunate but necessary side effect. Note that the system
will pretty aggressively free up that memory whenever the user
switches to another app.

-- 
Romain Guy
Android framework engineer
romain...@android.com

-- 
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 update a remote database from an Android application

2012-01-16 Thread tarun sablok
I want to update a remote database from my Android application .


Just need some pointers  on how to set up a remote database and  how
to update it from my application ??

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Pent
  Watch the memory size balloon fantastically too.

 That is an unfortunate but necessary side effect. Note that the system
 will pretty aggressively free up that memory whenever the user
 switches to another app.

It balloons to such a degree that it should really be noted in the
documentation for the attribute. I spent a couple of days trying to
find the memory leak bug in my app that turned out to be this.

The app has a constant service running and the process was taking up
on the order of 70MB directly after leaving the UI instead of the
usual 20MB (especially pronounced if the user viewed documentation in
a webview while in the UI). Visiting other applications does help, but
still left around 26MB over time.

In other words, the attribute seems to be no-lose-why-not-turn-it-on,
but actually needs a cost-benefit decision.

Pent

-- 
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] Interactive ebook reader

2012-01-16 Thread sumit garg
Hello everyone

I am working on developing a e-book reader for tablets which will be very 
interactive in the sense that it will read books which will have videos, 
animations, simulations embedded in the book.
apart from the basic features like highlighting the text, bookmark etc. we 
are trying to put various other features as well.

If anyone is working on any such thing or has any idea how this can be done 
plz reply.
We are looking for a developer who can help us out in this project.
Also we are planning to incorporate HTML 5 in it.plz suggest on this as 
well 

Thanks in advance.



Sumit

-- 
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 update a remote database from an Android application

2012-01-16 Thread tarun sablok
I want to update a remote database from my Android application .


Just need some pointers  on how to set up a remote database and  how
to update it from my application ??

-- 
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] I want to add items/services in my App for sale services

2012-01-16 Thread Ark Solutions
Hi, I have uploaded my app on android market, when I clicked on in-
app Products link to add items in my app it showing this message
New in-app products cannot be added because the current application
version does not use the BILLING permission

I have already add this permission  in my Manifest file.
uses-permission android:name=com.android.vending.BILLING /

In AKP draft it showing APK draft that saved:-

VersionCode: 2
VersionName: 2.1
Size: 73k
Localized to: default
Permissions: com.android.vending.Billing
Features: android.hardware.telephony, android.hardware.touchscreen

Please guide me any one why this happen? thanks

-- 
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] Newbie Needs Some Help

2012-01-16 Thread jp
Hello, I was wondering if anyone can help me out. I am having trouble
having my app update/add information to my database. I fill out the
log in page and I keep getting my toast message can not sign in and
no info is added to mysql database. Can anyone see what I am missing
in my code that is causing this? Thanks in advance for any help

This is my login code
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;


public class LoginJ extends Activity {
Button login;
String name=,pass=, EMAIL=;
EditText username,password, email;
TextView tv;
byte[] data;
HttpPost httppost;
StringBuffer buffer;
HttpResponse response;
HttpClient httpclient;
InputStream inputStream;
SharedPreferences app_preferences ;
ListNameValuePair nameValuePairs;
CheckBox check;
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.login);
app_preferences =
PreferenceManager.getDefaultSharedPreferences(this);
username = (EditText) findViewById(R.id.username);
password = (EditText) findViewById(R.id.password);
email = (EditText) findViewById(R.id.email);
login = (Button) findViewById(R.id.login);
check = (CheckBox) findViewById(R.id.check);

String Str_user = app_preferences.getString(username,0 );
String Str_pass = app_preferences.getString(password, 0);
String Str_EMAIL = app_preferences.getString(email, 0);
String Str_check = app_preferences.getString(checked,
no);
if(Str_check.equals(yes)) {
username.setText(Str_user);
password.setText(Str_pass);
email.setText(Str_EMAIL);
check.setChecked(true);

}
login.setOnClickListener(new View.OnClickListener()
{

public void onClick(View v) {
name = username.getText().toString();
pass = password.getText().toString();
EMAIL = email.getText().toString();
String Str_check2 =
app_preferences.getString(checked, no);
if(Str_check2.equals(yes))
{
SharedPreferences.Editor editor =
app_preferences.edit();
editor.putString(username, name);
   editor.putString(password, pass);
   editor.putString(email, EMAIL);
 editor.commit();

}



if(name.trim().equals() || pass.trim().equals() ||
EMAIL.trim().equals())
{
Toast.makeText(LoginJ.this, Blank Field..Please
Enter, Toast.LENGTH_LONG).show();
}
else{

try{

 httpclient = new DefaultHttpClient();
   httppost = new HttpPost(http://
10.0.2.2/AppConnection/main.php);

// Add your data
nameValuePairs = new
ArrayListNameValuePair(3);
   nameValuePairs.add(new
BasicNameValuePair(UserName, name.trim()));
nameValuePairs.add(new
BasicNameValuePair(Password, pass.trim()));
nameValuePairs.add(new
BasicNameValuePair(email, pass.trim()));
httppost.setEntity(new
UrlEncodedFormEntity(nameValuePairs));

// Execute HTTP Post Request
response =
httpclient.execute(httppost);
inputStream =
response.getEntity().getContent();


ResponseHandlerString
responseHandler = new BasicResponseHandler();
String 
response = httpclient.execute(httppost,
responseHandler);
   

[android-developers] Android Multiline Textbox Inside Flash WebView - Cannot Insert Linebreak with Enter Key

2012-01-16 Thread Elad Nava
I am facing a very strange bug with Flash rendering in Android.

**The enter key in the soft keyboard does not insert a line-break into
the focused textarea in Flash.**

To reproduce: please visit this URL via your android browser:
http://tinyurl.com/826nd6a

The original URL:
http://www.flashwonderland.com/control-components/textarea.html

That page contains an example of a multi-line textarea in Flash.

Try editing this textarea via Android and inserting a line break.
Nothing happens when you press the return key in the soft keyboard. :-
( This is what I'm trying to solve.

I have tried feeding KeyEvents to the WebView with different keyCodes,
I tried 13 (ASCII line break), 66 (Android Enter key), nothing
actually made a line-break appear in the code. When I tried other
keyCodes (for example, a letter) the letter was appended to the
textarea as expected. It seems as if the flash object blocks all line-
breaks.

I even tried feeding a line-break event via jQuery to the flash
object, but couldn't get it to work.

Does anyone know how to work around this bug?


**Reproduction code:**

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);

TestView = new WebView( this );

TestView.getSettings().setPluginsEnabled(true);
TestView.getSettings().setJavaScriptEnabled(true);

setContentView( TestView );

TestView.loadUrl( http://www.flashwonderland.com/control-
components/textarea.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] how to click listview item by code

2012-01-16 Thread Baiqi WU
Hi,
   I meet an problem I want select the privious item in listview when
I go to the child activity and click the cancel button.

 Button editButton= (Button)
findViewById(R.id.config_intervals_edit_button);
editButton.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
if(selectedPosition!=-1){
Intent editIntent = new
Intent(WCAConfigIntervalsView.this,WCAConfigIntervalsRowView.class);
editIntent.putExtra(isEdit, true);
editIntent.putExtra(config_interval_index, 
selectedPosition);

// ?I think it is better to store the 
previous selected
item, but I don't know how to //solve this problem

startActivityForResult(editIntent, 
CONFIG_INTERVALS_EDIT_INDEX);
}
}
});


 I am trying to select the previous item again but it doesnt work,
when the cancel button is clicked the onactivityresult will be
called,

@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
Log.v(callback, selectedPosition+);
//?can not use set selection
configIntervalsListView.setSelection(selectedPostion);
}
the setSelection will not select the previous item. Is any one know
this problem, or tell me how could use code to click the listview item
to flip the item click listener?
 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] How to continously updating data from XML

2012-01-16 Thread Cheah Peng Huat
I have a problem trying to get dynamic data from XML. I have written
code to parse data from xml, but the data only update once when i
execute the application.
What i want is continuosly update of data.

Can anyone help me on that? 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] Re: YUV to h263/h264 compression on android to stream video

2012-01-16 Thread DmitryDzz
I have the same problem. But I need to send and receive video and audio 
streams in both directions. The solution I have found is to install Android 
NDK and compile ffmpeg open source project. I'm afraid its a very 
complicated way, but I cannot find anything better.

-- 
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] Slideable top navigation

2012-01-16 Thread dnnddane
I am currently developing an application to follow an UI pattern as
guiding in the following link:

http://www.androidpatterns.com/uap_pattern/slideable-top-navigation

I did try to implement by using HorizontalScrollView of array of
buttons at first, but i hesitated after reading an article (http://
blog.uncommons.org/2011/04/18/scrolling-tabs-in-android/) which tends
to implement the same thing. However, i couldn't get it to work. Can
anybody suggest the best solution or gives me some hints with code
example for that?

Appreciate any help,

Dane

-- 
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] Cannot get text to appear when created dynamically

2012-01-16 Thread Jim Morris
I am trying to create an activity UI by setting buttons and text
dynamically. Just to get started I have dynamically created a
ScrollView that contains a LinearLayout which contains a TextView and
two Buttons. Everything is created dynamically. There is no layout
file for this activity. I can get the two buttons to appear on the
android emulator, but the text will not appear. I can see the
Scrollview in the debugger and it has three elements in side it, a
TextView and two Buttons. Everything looks okay in the debugger. Can
somebody give me an idea on how to get the text to appear?

Here is the code that creates the dynamic TextView:

public static TextView CreateTextView(Context context, int id, float
size, int color, int gravity, int width, int height, String text) {
TextView t = new TextView(context);
t.setId(id);
t.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);
t.setTextColor(color);
t.setGravity(gravity);
t.setLayoutParams(new LinearLayout.LayoutParams(width,
height));
t.setText(text);
return t;
}

Here is the onCreate code that appears inside of onCreate for the
activity. This onCreate code is called to create the ScrollView,
LinearLayout, the TextView and the two Buttons dynamically. Like I
said above, the buttons appear, but the text does not.

super.onCreate(savedInstanceState);
final Resources res = getResources();
ScrollView s = DynamicLayout.CreateScrollView(this, 1, true,
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.FILL_PARENT);
LinearLayout q = DynamicLayout.CreateLinearLayout(this, 1,
LinearLayout.VERTICAL, 0x11 /* CENTER=0x11, LEFT=3, RIGHT=5 */,
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.FILL_PARENT);
s.addView(q);
TextView t = DynamicLayout.CreateTextView(this,
  2,
  30.0f,
  0xff,
  0x11 /* 
CENTER=0x11, LEFT=3, RIGHT=5 */,
  
LinearLayout.LayoutParams.WRAP_CONTENT,
  
LinearLayout.LayoutParams.WRAP_CONTENT,
  
res.getString(R.string.EstablishmentName));
q.addView(t);
Button b = DynamicLayout.CreateButton(this, 3, 0x11 /* CENTER=0x11,
LEFT=3, RIGHT=5 */, 291, 43,
res.getDrawable(R.drawable.spot_ticket_red));
q.addView(b);
b = DynamicLayout.CreateButton(this, 4, 0x11 /* CENTER=0x11, LEFT=3,
RIGHT=5 */, 291, 43, res.getDrawable(R.drawable.spot_ticket_green));
q.addView(b);
setContentView(s);

-- 
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] Severe ICS wifi bug.

2012-01-16 Thread cvlowe
The below is an ICS only bug. Further info- I went to a friends house
and his devices detect and connect to my Nexus except for his Xbox.
His Xbox can connect through his iPhone wifi and a Razr, just not my
ICS running Nexus.

I'm copying this from the below link since I'm not getting a reply
there:
http://www.google.com/support/forum/p/Google+Mobile/thread?tid=3efbd0895a5a4614hl=en

I have a new Galaxy Nexus and the Verizon unlimited tethering plan.

So far, I've been able to tether my laptop, Kindle, work lapotop, my
sons Nintendo DS and even my old Blackberry.

I can not tether my Xbox. It says it can not acquire an IP address and
to verify DHCP is turned on.

I tried changing the password, changing the SSID and turning off
security completely. I am still unable to connect only the Xbox.

I had a HTC Rezound for a couple weeks before switching to the Nexus
and the Xbox connected just fine to that.

I pulled out my old DSL router and powered it on and the Xbox
connected to the router (but no internet because my DSL is off). That
tells me there is no problem with the Xbox itself.

Does anybody have any ideas?

Alternatively, does anybody know where I can acquire the tethering app
the Rezound used? It had some configuration options that are
inaccessible on the stock ICS.

Device: Galaxy Nexus
Carrier:Verizon
Country / Language:US
OS / Browser / build number (if applicable):ICS 4.02

-- 
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] Why do I need a MotoDev login to install sdk?

2012-01-16 Thread JeffH
Newbie installing sdk, running the update, I was prompted for my
MOTODEV login and it appears that I had to have it to continue.  What
is up with that?

Best,

Jeff

-- 
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] where/how to close database connection when using custom contact provider

2012-01-16 Thread appyChappy
hi, hope someone can help?

as i understand it, database connections need to be closed when
finished with the connection. when using a custom content provider,
surely all the closing should be taken care of within the provider?
for example, i have a simple content provider that i have created. if
i now access the data from any application using the content provider,
i don't have control over the opening and closing of the database.
inserts, updates and deletes can take care of closing the database
connection in the provider. queries can't as a cursor is returned to
the calling application. once the cursor is finished with, it can be
closed in the calling application but the database connection can't.

how does one take care of closing the data connection in this case? i
have searched all over for an answer to this but have not found a
satisfactory answer yet. any help would be appreciated.

thanks

regards

appyChappy

-- 
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] Can't update browser bookmarks

2012-01-16 Thread James G
I have come across an awkward issue, and I would very much appreciate
your help to find out what I am doing wrong.

I have an app which among other things allows users to edit bookmarks
in the Android Browser's bookmark store. It uses the
ContentResolver.query, .insert, .delete, and .update methods, with the
URI Browser.BOOKMARKS_URI.

It all works well under Android 2, but on Androids 3 and 4 the .update
command does not appear to work. I have tried everything I can think
of, and just cannot make it work.

To repeat this issue yourself in under one minute, create a new app
with an Activity named BookmarkTestingActivity and paste in the
source at the bottom of this post. Also add these two permissions to
the Manifest:
uses-permission
android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS/
uses-permission
android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS/


This source simply inserts a new bookmark with title Test and url
http://test.com;, attempts to update the url to http://
updated.test.com, then Logs the url after that attempted change.

In Android 2, the url correctly changes to http://updated.test.com;
but in Androids 3 and 4 it remains at http://test.com;. The same
thing happens when I try updating other fields or using different
select variables etc.

I'm testing with the latest SDK in Eclipse, on Android 2.3.3, Android
3.1, and Android 4.0.3.

I can work around the problem of course by doing a delete then another
insert, but that's not the point :)

Thanks in advance!

James.

Source to repeat this issue:
===
public class BookmarkTestingActivity extends Activity {
private static String LOGTAG = BookmarkTesting;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// Insert a new bookmark, with title Test, and url http://
test.com.
ContentValues cv=new ContentValues();
cv.put(Browser.BookmarkColumns.TITLE, Test);
cv.put(Browser.BookmarkColumns.URL, http://test.com;);
cv.put(Browser.BookmarkColumns.BOOKMARK, 1);
getContentResolver().insert(Browser.BOOKMARKS_URI, cv);

// Update the url of all bookmarks with title Test, to 
http://
updated.test.com.
cv.clear();
cv.put(Browser.BookmarkColumns.URL, http://updated.test.com;);
getContentResolver().update(Browser.BOOKMARKS_URI, cv,
BookmarkColumns.TITLE+=?, new String[]{Test});

// Log out what the url is now.
Cursor cur =
this.getContentResolver().query(Browser.BOOKMARKS_URI, null,
BookmarkColumns.TITLE+=?, new String[]{Test}, null);
if (cur == null) {
Log.e(LOGTAG, Cursor null);
}
else if (cur.getCount() == 0){
Log.e(LOGTAG, Cursor empty);
}
else {
cur.moveToFirst();
Log.e(LOGTAG, URL is now
+cur.getString(cur.getColumnIndex(BookmarkColumns.URL)));
}

this.finish();
}
}

-- 
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] Java Formatting on Eclipse

2012-01-16 Thread Frownyface
Is there a way to disable all code formatting for Java on Eclipse?  I
hate the way it mangles my code, and just want it to stop changing
what I type.  It looks like you can only change how it mangles the
code.  I can't find any master checkbox to turn it all off.

-- 
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] contact database structure

2012-01-16 Thread Manoj Bawane
hi friends,
I am Novice programmer in Android and I want to make an backup program
for my android fone so that I can take a copy/backup of my contact
list so that I can retrive it whenever I loss my contacts mistakly..
please guide me about it...
thanks..

-- 
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] Urgent

2012-01-16 Thread Ashwani tiwari
Hello,
 I am sorry but there is really frustrating moment for me,I have a
client from Italy ,he published an app named Absolute Vintage in
android market ,he used minsdkversion=7 and targetsdkversion=8 in
manifest file,that means any user whoose device having android version
2.1 or more,It is compatible with all,but it is not appearing in some
devices even recent devices also.for example: Galaxy S,HTC wildfire
S,HTC desire,Samsung 9000i and many more.It's highly urgent.my client
burst on me.please give me a quick reply.Thanks in advance.
Regards:
Ashwani Tiwari

-- 
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.view vs android.widget

2012-01-16 Thread Franzi Roesner
Hi,

In android.view.LayoutInflater, non-fully qualified classes are
expanded to android.view.ClassName -- why not
android.widget.ClassName for classes that are in the widget package?

(Some context, if helpful: I'm working on a research project that
involves making some changes to the UI toolkit, and now I'm getting
errors like java.lang.ClassNotFoundException:
android.view.LinearLayout for a number of widget class while booting.
If I change LayoutInflator to expand names to android.widget.ClassName
it works, but that seems like a change I shouldn't be making, so I've
clearly broken something else I don't know about.)


Thanks!
Franzi

-- 
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:screenOrientation not allowed in a style?

2012-01-16 Thread Chuck Kasek
Can anyone tell me if there is something specific you have to do to
use the screenOrientation attribute in a style?  If i put it directly
on the activity tag in my manifest, it works fine, but if I try to use
it as part of a style it doesn't work.

This works:
activity android:name=.MyActivity android:label=@string/app_name
android:screenOrientation=landscape

This does not work
activity android:name=.MyActivity android:label=@string/app_name
android:theme=@style/Landscape

in styles.xml:
style name=Landscape
item name=android:screenOrientationlandscape/item
/style

Thanks
Chuck

-- 
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 add a theme attribute to android:startColor in gradient drawable in Android?

2012-01-16 Thread khr2003
According to android documentation, android:startColor can take attributes 
as a value:

This may also be a reference to a resource (in the 
 form @[package:]type:name) or theme attribute (in the 
 form ?[package:][type:]name) containing a value of this type.


I am trying to add an attribute to my gradiant drawable, however I get an 
error. Here is the code for the drawable:
?xml version=1.0 encoding=utf-8?
layer-list
xmlns:android=http://schemas.android.com/apk/res/android;
item
shape
gradient
android:startColor=?startColor
android:endColor=#0b2749
android:angle=90 /
/shape
/item
/layer-list


Here is the code in style.xml:

style name=test parent=android:Theme
item name=android:startColor#0b2749/item 
item name=startColor#0b2749/item
/style

When I try to run the activity I get this error message:

01-10 20:47:30.810: E/AndroidRuntime(7279): Caused by: 
java.lang.UnsupportedOperationException: Can't convert to color: type=0x2

I tried changing ?startColor to ?attr/startColor and still got the same 
error. I also applied the theme to the activity in the AndroidManifest.xml 
file.

How can I add a theme attribute to the gradient drawable?

-- 
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 Printf in Android development ??

2012-01-16 Thread Haider Ali
Hello every one,

Can any one help me how can I Print some line in Console ???
It is not working through printf(); ?

Best Regards
Haider Ali Ch.

-- 
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] WCF - Android - Complex Types - Can send, but properties arrived empty...

2012-01-16 Thread chankly
Hi guys !!!

First... i'm sorry for my english... i am spanish, sorry.

I have a strange problem with my comunications.

I send a complex type from android to my service and i have anything
problem. All OK.

My service wcf recived the object, but... the properties is empty !!

however, my service update the properties and return to the client
which recived correctly the object with the values properties OK.


Please... can you help me??


My client code is this:

*
METHOD ACTIVITY WHICH CALL WEBSERVICE
*
private class LaunchWebService extends AsyncTaskString, String,
Integer
{

@Override
protected Integer doInBackground(String... params)
{


try
{

SoapObject request = new SoapObject(NAMESPACE, 
METHOD_NAME);

//*** OBJECT ***
CompositeType objComposite = new CompositeType();
objComposite.setProperty(0, true); //This arrive false.
objComposite.setProperty(1, this arrive null);

//*** ADD NEW PROPERTY TO ENVELOPE WITH THE OBJECT ***
PropertyInfo objParameter = new PropertyInfo();
objParameter.setName(http://schemas.xmlsoap.org/soap/
envelope/);
objParameter.setName(composite);
objParameter.setValue(objComposite);
objParameter.setType(CompositeType.class);

request.addProperty(objParameter);


SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
envelope.addMapping(NAMESPACE_CONTRACT, CompositeType,
CompositeType.class);


HttpTransportSE androidHttpTransport = new
HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);

SoapObject response = 
(SoapObject)envelope.getResponse();
String txt = 
response.getProperty(StringValue).toString();

publishProgress(txt);

return 1;
}
catch(SoapFault exSoap)
{

exSoap.printStackTrace();

publishProgress(exSoap.getMessage());

return -1;
}
catch(Exception ex)
{

ex.printStackTrace();

publishProgress(ex.getMessage());

return -1;
}
}






*
COMPLEX TYPE DEFINITION
*
public class CompositeType implements KvmSerializable{

public static final int STRING_VALUE = 1;
public static final int BOOLEAN_VALUE = 0;

public String StringValue;
public Boolean BoolValue;

public CompositeType() {
}

@Override
public String toString() {
return StringValue =  + StringValue + , BoolValue =  +
BoolValue.toString();
}

@Override
public Object getProperty(int arg0) {
switch(arg0)
{
case STRING_VALUE:
return StringValue;
case BOOLEAN_VALUE:
return BoolValue;
}

return null;
}

@Override
public int getPropertyCount() {
return 2;
}

@Override
public void getPropertyInfo(int index, @SuppressWarnings(rawtypes)
Hashtable arg1, PropertyInfo info) {
switch(index)
{
case STRING_VALUE:
info.type = PropertyInfo.STRING_CLASS;
info.name = StringValue;
break;
case BOOLEAN_VALUE:
info.type = PropertyInfo.BOOLEAN_CLASS;
info.name = BoolValue;
break;
default:break;
}
}

@Override
public void setProperty(int index, Object value) {
switch(index)
{
case STRING_VALUE:
StringValue = value.toString();
break;
case BOOLEAN_VALUE:
BoolValue = Boolean.parseBoolean(value.toString());
break;
default:
break;
}
}


}

-- 
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] Streaming Video From Android

2012-01-16 Thread Asmishra
Hi,

I want to stream a video file present in the AVD SD card to a
server.

I thought there is a way to do it using the mediarecoder. Indeed
it does provide the streaming options like the following API  ==
recorder.setOutputFile(pfd.getFileDescriptor()); Here by setting the
sock fd we can redirect the stream data.

Now the problem. The problem comes when we create the
mediarecorder.

  MediaRecorder recorder = new MediaRecorder();
 recorder.setVedioSource(MediaRecorder.AudioSource.MIC); = This
API is the point of contention as MediaRecorder.VideoSource has only
two values .. 1) Camera; 2) Default.

   Can any how I can put the source to be the video file ???


Kindly help.

Thanks  Regards
Ashutosh

-- 
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] want to begin with sync with sqllite db

2012-01-16 Thread pankajdev
Hi,

i want to develop an android application where i would like to sync
the sqllite or localdb it will be an address database and would like
user to prompt based on their location , kindly suggest as i would
like to develop this first time. please suggest some doc or light up
some path how to go about it, i would like that it will be a location
based address search even for the users who are in online mode.

with regards

-- 
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] A needle in a haystack

2012-01-16 Thread Rasmus Westerlin
I recently published my second app for android app store - a year
after my first release which attracted about 4000 downloads (the app
is free). My second app seem to be lost even before it is submitted -
which is quite annoying when I think of all the nights and evenings I
have spend developing it. Actually I think the app is good. All my
friends who have Apple are very impressed with it and ask when it will
come on their platform. However, on the Android platform the app
drowns in all a maelstrom of apps. I  experience a lot of wall paper
apps in the game section and I also experience very large differences
in quality.

I reckon, that google has tried to encourage more shows by creating
various lists - but to be hornest - I think it is the same stuff (and
not always the best) which shows up on the lists.

So how can a small time developer get some attention?

My first app was launched when the store had a news list (not sorted
on popularity). Although the app never was on top of the list for
long, it was there for some hours - enough to gain the first momentum
to get it going. Presently this list does not exists anymore - and my
app only shows if the user seeks on specific key words - not for the
casual user.

My suggestion is therefore if it would be possible to reinstate the
news list as it were - really showing new stuff in its cronological
order - and maybe introduce random lists - showing random apps in the
low end of download spectrum. This could ensure better dynamics.

Furthermore I have noticed that some developers have got a certain
approval mark. How is that obtained - and could I apply for such
approval - maybe paying a fee and get to a verification proces.

Anyways I feel like a needle in a haystack - I have a strong point -
but is lost,

-- 
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 install android?

2012-01-16 Thread Md.Aynul Hasan Nahid
Hi,
i am crazy about android and want to know how to install it into my
jointech je200 7 ebook reader
running by samsumg s3c2440a (arm920t) and 128 Mb nand flash currently
it has windows CE 5.0 Plz help me

-- 
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] prepare the image size for different screen

2012-01-16 Thread GT
I am preparing some images which would display in my app, but I am not
sure what size (width, height, resolution) shall I set before I made
it in photoshop/firework. shall I prepare 3 set (for hdpi,mdpi, ldpi)
for each image? but still, what resolution shall I set in each set?

Thank you for your help!

-- 
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] Track the name of the service provider for outgoing call receiver

2012-01-16 Thread Nira
Hi,

I am trying to get the name of the service provider (carrier) for the
person who receive the outgoing call when a call has been made. Would
be helpful if you guys can tell me whether this can be done.

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


[android-developers] App not installing in Android device.

2012-01-16 Thread svkirans
Hi,

I am new to Android development. I tried to create a sample
application in eclipse. I connected my device and ran the application
from eclipse and the application worked on my Android device. Then I
exported the app and exported it into the sd card of the device and
tried to install. It failed and gave an error message 'Application not
installed'. Any clues on what could be the probable reason.

-- 
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] Eclipse Failed to initialize Monitor Thread.

2012-01-16 Thread Kalder
Ok, I've been searching and searching a lot, I've seen people post the
same problem on forums a lot, though non of the solutions that were
suggested are working.
I tried disabling my firewall/virusscanner and windows firewall too, I
tried adb kill-server and adb start-server, nothing seems to help.
The SDK directory is set up right in eclipse, I even deleted eclipse
and reinstalled it (or unpacked as there is no installer).
I even changed the hosts file in windows/system/drivers/etc to make
sure 127.0.0.1 was localhost (it had been commented out)
I tried running eclipse in admin mode, nothing helps I keep getting
the following error when I start eclipse after the ADT has been
installed:

ddms] Failed to initialize Monitor Thread: Unable to establish
loopback connection

And when I try to run something I get this:

test] --
test] Android Launch!
test] Connection with adb was interrupted.
test] 0 attempts have been made to reconnect.
test] You may want to manually restart adb from the Devices view.

If anyone has a working solution please let me know, I've been
searching so much that I gave up, all the solutions I found don't fix
it, so maybe someone here can help me on. I would really appreciate
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] Proxy settings for ICS over ethernet

2012-01-16 Thread Robert Walsh
I am trying to set the browser proxy settings in Android ICS but am
having no luck.   The device I am using has ethernet but no wireless
so trying to set the APN or wireless network settings does not work.

I've found suggestions that you can use the java properties
(http.proxyHost and http.proxyPort) set via the setprop command, but
this does not seem to work.

There is also someone saying you can set the proxy in one of the
sqlite3 DBs, but again, no luck. The database is /data/data/
com.google.android.providers.settings/databases/settings.db and the
row should read – 99, http_proxy, proxy:port.

I have also tried setting the proxy on a nexus s ICS phone and then
poking around the sqlite dbs and the java properties (via getprop) but
I cannot find where the settings are stored.

Can anyone help me out here?

thanks!

-- 
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] bluetooth

2012-01-16 Thread vikram s
how to send the data to other android device via bluetooth

-- 
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 app with embedded tutorial

2012-01-16 Thread Kookamonga
I'd like to embed a tutorial into my app that the user can step
through when the app is first started. Does anyone know how the Google
Currents app tutorial is implemented? It is extremely sleek and allows
users to step through at their own pace.

I found a similar question here:

http://stackoverflow.com/questions/5510258/building-a-tutorial-giving-a-hint-for-my-android-app

But the answer that is given - showing toasts at startup - is pretty
much a non-solution. Yes, I can simply have a series of Activities
that represent the pages of the tutorial and have the user step
through, but again, I'm looking to know the specific way in which the
Google Currents app tutorial is written.

Thanks for your help and time.

-- 
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] Animation on a set of ImageViews

2012-01-16 Thread MikeMike
I have been trying to find the answer to this question for 3 days
now.  I am developing a game.  And as one progresses in levels, I want
to AlphAnimate each of my imageviews.  So I have an array list of
imageviews.

For iterator i current_game.next()
{
   AlphaAnimation anim = new AlphaAnimation(0.0,1.0)
   anim.setDuration(500);
   i.startAnimation( anim );
}

I want the animation to complete then start the next one, but what is
happening is they are all being animated at the same time.  Please
help!

Thanks

-- 
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] Animation Is repeating...why?

2012-01-16 Thread MikeMike
I am trying to get my imageView animations to play serially.  But when
onAnimationEnd the original one somehow replays :


   private void drawCurrentGame()
{
final LinkedListImageView animation_queue =
(LinkedListImageView) current_game.clone();

ImageView working_view;

final AlphaAnimation anim = new AlphaAnimation(0.0f, 1.0f);
anim.setDuration(500);

anim.setAnimationListener(new Animation.AnimationListener() {
public void onAnimationStart(Animation a)
{

}
public void onAnimationRepeat(Animation a) {}
public void onAnimationEnd(Animation a)
{
ImaveView v = ((AlphaAnimation)a).getView();

if( animation_queue.isEmpty() ) return;
animation_queue.poll().startAnimation(anim);
}
});

 if( !animation_queue.isEmpty())
 {
 animation_queue.poll().startAnimation(anim);
 }
}


HElp please!

-- 
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: gps waiting problem.

2012-01-16 Thread EstelKay
Probably this might help you 
http://stackoverflow.com/questions/3893626/how-to-use-asynctask-to-show-a-progressdialog-while-doing-background-work-in-and

-- 
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: Help with AlertDialog Needed

2012-01-16 Thread EstelKay
Hi Glen,
a workaround seems to have an array where the array index of the players is 
the same as the index of the player in your list view. So you can access 
the array with the player id you get from your alert.

Probably there's a better way to do that maybe this can help you 
http://developer.android.com/reference/android/widget/AdapterView.html#getItemAtPosition%28int%29
  
http://developer.android.com/reference/android/widget/AdapterView.html#getItemAtPosition%28int%29I
 
haven't tried it yet but seems to give you an object probably with an text 
attribute or sth. else 

-- 
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] Thread errors - AsyncTask Fatal Error

2012-01-16 Thread Vanadis International
Hello,
We are using threads in our app, to ask for an xml and some remote
images which load on our activity's listview. This activity also uses
Tabs, so when we click on the tab buttons the info on the listview is
updated.

However, in certain occasions we get a Fatal Error: Asynctask #1 (or
2, or 5, etc)
This starts with a NullPointerException when trying to read the xml
from the server. However, this xml is available (and correct) all the
time, so not quite sure why it's doing this.

Investigating we have found this must be a thread error, which happens
when we are using various threads at the same time on the same
activity.

We believe we must have some control of this threads, to prevent the
error from happening. For instance, when we order a new thread to load
content on the list, it would be interesting to stop the previous
thread executions to prevent collisions between them.

We also have investigated ThreadSafeClientConnManager, which may be a
good way to control conflicts between thread executions...but haven't
managed to solve the problem.


Can somebody throw some light into our problem...? How can we handle
threads and prevent this asynctask errors?!


Many 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


[android-developers] File Handling in Android

2012-01-16 Thread tejas_muley
Hi Android Team,
 I try to create folder in android app, that folder used only in
application in which its create that folder. Can this is possible or
is there any folder (already provided by android ) which work like
this. Please help me to solve this problem. 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


[android-developers] IMountService available on Honeycomb / Other way to force flush file-system-cache

2012-01-16 Thread EstelKay
Hey there,
I'm developing an app for reading data from a USB attached device on 
honeycomb (3.2).
The device reads data from an external infrared meter prepares data and 
shares them over mass storage. It means the USB device is mounted as mass 
storage device. As it updates and creates some files by itself the android 
file-system doesn't seem to recognize the changes.

The only solution seems to mount/unmount the device over the settings menu. 
After remounting all data is updated as this is the most effective way to 
force android to refresh the file-system-cache. But this solution is not 
practical for daily use.
So I looked for a solution to mount/unmount USB storage by code and found 
the MOUNT_UNMOUNT_FILESYSTEM permission, google led me to some 
information about IMountService but I'm unable to find any documentation 
about IMountService on honeycomb. Every implementation or use of this 
service seemed to be on Android 2.x and might need root. As I'm using a 
ASUS Transformer for developing I saw that ASUS provides a widget to 
unmount mass storage devices which is located next to the clock in the 
bottom right corner. What leads me to assume that there has to be an 
Interface to mount/unmount devices. ASUS doesn't support third party 
developers and doesn't want to give me some information about that issue.
I had no success trying to implement the MountService with the 
documentations I found even on a rooted device.

*All this led me to the assumption that IMountService is only available for 
OS developers (like Asus, Acer and so on) and not for SDK developers. Am I 
right with this?*

Trying to find another way to force honeycomb to refresh the 
file-system-cache and re-read data from the device a colleague mentioned 
that creating a new file in the folder I try to read might force honeycomb 
to synchronize device data and cache data. Try and Error again and again no 
success I can see the created file appearing in different file explorers 
and disappearing when deleted but all other files doesn't seem to be 
updated.
Another thing might be that all data produced by the USB device have a 
time-stamp from 2004 or 2005 so honeycomb might be intelligent enough not 
to update these files as they have no current timestamp. Trying to use 
Runtime.exec() to run a touch command and update the time-stamp led to 
errors on unrooted tablet and had no effect with a rooted tablet.

Now the question is: *Is there any documentation how to access the 
MountService or equivalent on honeycomb as an SDK developer?* The 
developers doesn't seem to provide permissions that can not be used by any 
API call and the 
referencehttp://developer.android.com/reference/android/Manifest.permission.html#MOUNT_UNMOUNT_FILESYSTEMSclearly
 says that this permission is used to mount / unmount file-systems. 

*Or is there any other way to force honeycomb flushing the 
file-system-cache and reload all files?*

Maybe there's an option in ICS (4.0) as this version is completely open 
source and honeycombs source code was only provided to the vendors.

Thanks for reading this and hopefully giving me a hint ;-)

-- 
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] Hello All

2012-01-16 Thread unicus unicus
Hello All,

Today is my first day in this group...
Looking for support  help to enhance my android skills.


Cheers,
Androindu

-- 
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: Directory structure for project related files

2012-01-16 Thread Sarvex Jatasra
This reminds me of the variable naming discussions in Code Complete... misc
is a misnomer, generally meaning that one did not put sufficient effort
analyzing the contents

If res is taken... what about resources, or better yet Market Resources..

Sarvex
On Jan 15, 2012 2:02 PM, nadam a...@anyro.se wrote:

 Thanks Mark. I'll use the following structure:

 misc/
 misc/market/
 misc/market/screenshots/

 Should be enough for most of my projects.

 On 14 Jan, 18:51, Mark Murphy mmur...@commonsware.com wrote:
  I wouldn't call it tmp/, as that would make me think of Linux and OS X
  /tmp, which are files that can be deleted without incident. I've used
  various other directory names for stuff like this (e.g., artwork/,
  misc/). If assets/ weren't already used by Android for another role, I
  would probably have settled on that. But I do like having it
  co-located with the rest of the project files, and in version control,
  for the same reasons you do.
 
 
 
 
 
 
 
 
 
  On Sat, Jan 14, 2012 at 12:44 PM, nadam a...@anyro.se wrote:
   All of my android projects usually have a /tmp folder where I dump all
   the stuff that isn't necessary for building the apk, such as psd/xcf
   files, the 512x512 icon, screenshots and the signed apk that will be
   uploaded to the market.
 
   I'm also considering adding these files to my version control just to
   make sure I have all the files in one place and to have them backed
   up.
 
   Are there any best practices for organizing such files? Or has anyone
   any suggestions or personal preferences to share?
 
   --
   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
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  Android Training in NYC:http://marakana.com/training/android/

 --
 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] Problems of compatibility to hardware

2012-01-16 Thread Rasmus Westerlin
I have been developing apps for android in about 1 year and is
becoming increasingly sceptical on the hardware compatibility issue on
the Android platform - that is, how smoothly android apps are run on
various android devices.

I do not have a lot of money to buy this and that device - but have an
HTC Desire HD phone and an Acer Iconia 500 tablet, which I use for
testing.

Nonetheless, I experience that my apps does not run correctly on
various devices.

As an example, a US customers informed me that big white blobs showed
up on the main screen of my Asteroid Challenge game (uses OPENGL and
non-compressed transparent textures). Although the game runs correctly
and shows the opening menu on my HTC and Iconia devices.

I must say that although I fancy the thought of being compliant to a
varied universe of devices and that the manifest setup seem to be a
great way to overcome the difficulties on compatability - I still feel
that Android may risk loosing ground to Apple (and Windows 8) if
Google does not put more effort into ensuring that apps are running as
intended and various devices - given that the developer have complied
to the design standard and stated the manifest correctly.

Does anyone have a thought on this issue,

An Android Fan and dedicated developer,

-- 
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] KSOAP2 Library…Error sending data to asmx webservice

2012-01-16 Thread pathachiever11
I have an ASMX webservice setup on Microsoft Azure and I'm trying to
send data to the webservice and receive output using an android
application. For this purpose, I am using the KSOAP library.

On the webservice, I'm checking if the strings are null. If they are,
I return an error code 2405

[WebMethod]
public string LoginUser(string auth_token, string username)
{
// All these tests performed, so someone from outside of
out application
// scope does not attempt to abuse our webservice.
#region Check for nulls
if (string.IsNullOrEmpty(auth_token))
return 2405;
if (string.IsNullOrEmpty(username))
return 2405;
#endregion
}
In my android application, I am sending the data, but the webservice
still returns the 2405 error code, which means that the data is not
sent.

The following is my android code:

SoapObject request = new SoapObject(NAMESPACE, method_name);

   request.addProperty(auth_token,TestAuth);
   request.addProperty(username,TestUser);

SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;

envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new
HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
Sorry that I can provide you with the namespace, methodname, url, etc.
It is against the company policy and I hope you understand. :)

Nevertheless, I'll go over the error again. After calling the above
Android code, the webservice returns 2405, which according to the ASMX
code is when any of the twos values are null.

I debugged the SOAP request (androidHttpTransport.debug = true) and
got the following results for the requestDump and responseDump.

REQUEST DUMP

v:Envelope xmlns:i=http://www.w3.org/2001/XMLSchema-instance;
xmlns:d=http://www.w3.org/2001/XMLSchema;
xmlns:c=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:v=http://schemas.xmlsoap.org/soap/envelope/;
  v:Header /
  v:Body
LoginUser xmlns=http://tempuri.org; id=o0 c:root=1
  auth_token i:type=d:stringTestAuth/auth_token
  username i:type=d:stringTestUser/username
/LoginUser
  /v:Body
/v:Envelope

RESPONSE DUMP:

?xml version=1.0 encoding=utf-8?
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  soap:Body
LoginUserResponse xmlns=http://tempuri.org/;
  LoginUserResult2405/LoginUserResult
/LoginUserResponse
  /soap:Body

/soap:Envelope

Please help me out here.

Thanks!

-- 
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] Renderscript benchmrks

2012-01-16 Thread m lobo
Hi,
I m interested in analyzing power/performance benchmarks for the
platform (just like HoverJet and Taiji for OpenGL).
Can anyone suggest such a benchmark or is there one in development.

Thanks

-- 
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] temp folder in iphone = what in android?

2012-01-16 Thread tejas_muley
what is folder used in android as temp folder in iphone? Folder which
unable to acess outside application.

-- 
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] Raster Image/Map and GPS location

2012-01-16 Thread Rustam K.
Hello,

I am new to maps and geo apps, and need some guidance please. I need
to get a location and put the marker on the PNG image. I don't need
zoom or anything like that. Do I need to create a table/list like
pixel on image-gps coordinates? or how would you resolve this task?
BTW, Is there any documentation/guidelines on designing your own map
application with developing of your own maps?

Cheers,
Rustam

-- 
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 put one or more layouts on same position

2012-01-16 Thread vivek gidmare
I am getting problem while setting layouts on same position over the
display.

-- 
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] I have the same problem

2012-01-16 Thread haihua zhang
I have the same problem, also.

-- 
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] SDK updates

2012-01-16 Thread Yar
Hi.
I am in the process of updating my SDK and it is messing itself up.
Basically I have been using SDK 10 for nearly a year and was copletely
happy with it (who creates apps for Android 4.03 today anyway?? I am
targetting Android 1.6 - 3.1, most of the times the 2.2), until I had
to include AdMob ad in one of my apps.  Then problems appeared. I
used /android_sdk_windows/SDK Manager.exe and downloaded and installed
everything but then my Eclipse would not start the ADT, complaining
that ADT is older, than the new SDK. I tried Eclipse/help/check for
updates but that caused an error.

Basically, I urge you to improve the whole update thing to make it
smooth. Do not require people to update stuff, if they do not really
need it. Be smart!

-- 
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] Suggestion for best practice-pattern

2012-01-16 Thread sandma...@libero.it
Hi, 

I'd need to write an app that gets some infos, like remaining time, remaining 
SMS for this month from my provider.

Assuming that these informations are available as html pages, i.e. using a 
browser I can connect, authenticate and get this data, which is the best way to 
write an app to get them, too?

Something that interpretates the html and gets data from here?

Something else? Which technology should I use?

Thanks

Ciao

-- 
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] I have the same problem

2012-01-16 Thread Raghav Sood
Elaborate.

On Mon, Jan 16, 2012 at 10:28 AM, haihua zhang zhanghaihua...@gmail.comwrote:

 I have the same problem, also.

 --
 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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
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: Animation on a set of ImageViews

2012-01-16 Thread skink


MikeMike wrote:
 I have been trying to find the answer to this question for 3 days
 now.  I am developing a game.  And as one progresses in levels, I want
 to AlphAnimate each of my imageviews.  So I have an array list of
 imageviews.

 For iterator i current_game.next()
 {
AlphaAnimation anim = new AlphaAnimation(0.0,1.0)
anim.setDuration(500);
i.startAnimation( anim );
 }

 I want the animation to complete then start the next one, but what is
 happening is they are all being animated at the same time.  Please
 help!

 Thanks

http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html

pskink

-- 
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] Suggestion for best practice-pattern

2012-01-16 Thread Mukesh Srivastav
How are you planning to get, if it is html you will need to  render the
html page in Webview to show the details.

2. you can also go with a simple webservice method which send you the data,
you parse it and show it in a customize way.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Mon, Jan 16, 2012 at 4:55 PM, sandma...@libero.it sandma...@libero.itwrote:

 Hi,

 I'd need to write an app that gets some infos, like remaining time,
 remaining
 SMS for this month from my provider.

 Assuming that these informations are available as html pages, i.e. using a
 browser I can connect, authenticate and get this data, which is the best
 way to
 write an app to get them, too?

 Something that interpretates the html and gets data from here?

 Something else? Which technology should I use?

 Thanks

 Ciao

 --
 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] How to put one or more layouts on same position

2012-01-16 Thread Mukesh Srivastav
why this approach, secondly if you go with approach, i am sure you might
wants to hid the layout in run time and display which is required. can you
elborate in more details.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Sun, Jan 15, 2012 at 10:49 AM, vivek gidmare vivekgidm...@gmail.comwrote:

 I am getting problem while setting layouts on same position over the
 display.

 --
 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] nfc compatibility for 2.2 android

2012-01-16 Thread ANKUR GOEL
hi

i want to compile my nfc application on 2.2 android devices .

pls suggest some ways .

thanks

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sblantipodi
There is some failure in the android hardware implementation, this is
sure.
It is not possible that a 1.2GHz dual core processor with 1GB of RAM
and a SGX540 isn't able
to run a simple and light software like mine in a smoothly way.

I run that code on feature phones with less than 200MHz with a heap of
1MB smoothly,
something is wrong in the android hardware implementation.

I hope that someone will recognize this problem and will fix it soon.
No other platform has this problem, and my canvas code is pretty
similar on every platform.



On 16 Gen, 12:15, Pent supp...@apps.dinglisch.net wrote:
   Watch the memory size balloon fantastically too.

  That is an unfortunate but necessary side effect. Note that the system
  will pretty aggressively free up that memory whenever the user
  switches to another app.

 It balloons to such a degree that it should really be noted in the
 documentation for the attribute. I spent a couple of days trying to
 find the memory leak bug in my app that turned out to be this.

 The app has a constant service running and the process was taking up
 on the order of 70MB directly after leaving the UI instead of the
 usual 20MB (especially pronounced if the user viewed documentation in
 a webview while in the UI). Visiting other applications does help, but
 still left around 26MB over time.

 In other words, the attribute seems to be no-lose-why-not-turn-it-on,
 but actually needs a cost-benefit decision.

 Pent

-- 
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] temp folder in iphone = what in android?

2012-01-16 Thread Mark Murphy
getFilesDir() from any Activity or other Context will return the
application-local area of internal storage. However, I would not
describe it as a temp folder, which implies the contents have no
value.

On Fri, Jan 13, 2012 at 4:31 AM, tejas_muley tejasmule...@gmail.com wrote:
 what is folder used in android as temp folder in iphone? Folder which
 unable to acess outside application.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] How to install android?

2012-01-16 Thread Mark Murphy
This list is for developing Android applications with the SDK. It has
nothing to do with your question.

On Fri, Jan 13, 2012 at 1:15 PM, Md.Aynul Hasan Nahid
matrivashasoftw...@gmail.com wrote:
 Hi,
 i am crazy about android and want to know how to install it into my
 jointech je200 7 ebook reader
 running by samsumg s3c2440a (arm920t) and 128 Mb nand flash currently
 it has windows CE 5.0 Plz help me

 --
 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] Android app with embedded tutorial

2012-01-16 Thread Mark Murphy
You might consider explaining what Google Currents looks like, perhaps
using screenshots, as not everybody has that app, let alone uses it.

On Fri, Jan 13, 2012 at 8:53 AM, Kookamonga site...@yahoo.ca wrote:
 I'd like to embed a tutorial into my app that the user can step
 through when the app is first started. Does anyone know how the Google
 Currents app tutorial is implemented? It is extremely sleek and allows
 users to step through at their own pace.

 I found a similar question here:

 http://stackoverflow.com/questions/5510258/building-a-tutorial-giving-a-hint-for-my-android-app

 But the answer that is given - showing toasts at startup - is pretty
 much a non-solution. Yes, I can simply have a series of Activities
 that represent the pages of the tutorial and have the user step
 through, but again, I'm looking to know the specific way in which the
 Google Currents app tutorial is written.

 Thanks for your help and time.

 --
 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] File Handling in Android

2012-01-16 Thread Mark Murphy
getFilesDir() from any Activity or other Context will return the
application-local area of internal storage.

On Fri, Jan 13, 2012 at 4:47 AM, tejas_muley tejasmule...@gmail.com wrote:
 Hi Android Team,
     I try to create folder in android app, that folder used only in
 application in which its create that folder. Can this is possible or
 is there any folder (already provided by android ) which work like
 this. Please help me to solve this problem. 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] Why do I need a MotoDev login to install sdk?

2012-01-16 Thread Mark Murphy
That should only be needed for the emulator images and such from
Motorola Mobility. If you do not have a MOTODEV login and do not wish
to obtain one, uncheck those items in the SDK Manager before clicking
the Install packages... button.

On Fri, Jan 13, 2012 at 6:10 PM, JeffH dunde...@gmail.com wrote:
 Newbie installing sdk, running the update, I was prompted for my
 MOTODEV login and it appears that I had to have it to continue.  What
 is up with that?

 Best,

 Jeff

 --
 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] How to Printf in Android development ??

2012-01-16 Thread Mark Murphy
On Fri, Jan 13, 2012 at 4:19 PM, Haider Ali
haideralichoudh...@gmail.com wrote:
 Can any one help me how can I Print some line in Console ???

There is no console. For logging purposes, use android.util.Log, to
log messages to LogCat, which you view using DDMS or the adb logcat
command.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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: nfc compatibility for 2.2 android

2012-01-16 Thread sparky
Since NFC wasn't added to the platform until 2.3 (
http://developer.android.com/sdk/android-2.3-highlights.html), your only 
choice is to piece together a complete solution yourself.

-- 
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] IMountService available on Honeycomb / Other way to force flush file-system-cache

2012-01-16 Thread Mark Murphy
On Fri, Jan 13, 2012 at 4:54 AM, EstelKay kay.estelm...@googlemail.com wrote:
 All this led me to the assumption that IMountService is only available for
 OS developers (like Asus, Acer and so on) and not for SDK developers. Am I
 right with this?

Correct. It is not part of the Android SDK.

 Now the question is: Is there any documentation how to access the
 MountService or equivalent on honeycomb as an SDK developer?

You are welcome to attempt to use the USB accessory APIs to connect
with your device. Beyond that, the Android SDK does not support
arbitrary USB storage devices. You cannot access the MountService,
unless you wish to build your own firmware.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] android.view vs android.widget

2012-01-16 Thread Mark Murphy
On Fri, Jan 13, 2012 at 4:24 AM, Franzi Roesner
franzi.roes...@gmail.com wrote:
 In android.view.LayoutInflater, non-fully qualified classes are
 expanded to android.view.ClassName -- why not
 android.widget.ClassName for classes that are in the widget package?

It does. You can tell this by inflating a layout that refers to, say, Button.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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] XML Security in Android

2012-01-16 Thread Mark Murphy
No, but you may be able to get libxmlsecurity to work via an NDK wrapper.

On Mon, Jan 16, 2012 at 3:38 AM, mayur mayurpr...@gmail.com wrote:
 Hi ,
  I want my application to support Digital Signature Verification  for
 a given xml Signature file.
  For this , currently we are using  open source libxmlsecurity which
 does that but is not part of Android Code base.
  Libxmlsecurity complies to http://www.w3.org/TR/xmldsig-core/
 specifications of Digital Signature .

 Is there any such support for XML Digital Signature parsing and
 Verification in Android which complies to the aforesaid link/spec. ?

 --
 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Jim Graham
On Sun, Jan 15, 2012 at 07:18:37PM -0500, Kristopher Micinski wrote:
 I think Romain Guy was looking for specific examples from the stock
 Android apps.  You said that *all* apps slowed down, if some random
 market app slows down, that's not really unexpected, if you can
 substantiate your claim by pointing out an app running on many devices
 because it comes preloaded, it might be a cause for concern.

Time for my $1.00 worth (inflation, you know).  My biggest complaint
about slow performance is my Motorola Bravo MB520 phone, which, until
I got my Acer Iconia A500 tablet, I thought was fast.  I have yet
to see ANY app that run anything slower than blazingly-fast on the
tablet (running Android 3.2.1, until ICS comes out for it, supposedly
later this month).  And that list of apps includes normal or standard
apps, like Dolphin Browser HD, K-9 Mail, etc., and games, including
games with the more-intensive graphics.

So I'm squarely in the what problem? camp on this one.  My guess is
that it's not the device or hardware acceleration that's slow, it's
a case of devs writing code that's slow (maybe due to a lot of stuff
going on in the background, inefficient code, etc., or, as suggested,
broken hardware).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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


Re: [android-developers] No Video but audio present when using MediaPlayer on the emulator

2012-01-16 Thread Mark Murphy
You are trying to use the emulator to play back video. This is
unlikely to be successful due to the speed of the emulator. For
testing video in apps, most likely you will need to use an Android
device.

On Mon, Jan 16, 2012 at 1:09 AM, rperi...@yahoo.com rperi...@yahoo.com wrote:
 Has anyone else had this issue. I'm trying to play video and the video
 window is not present although I can hear audio. I tried creating the
 Mediaplayer as an AsyncTask and the same thing happens although UI
 performance is much better.

 Any ideas on what could be wrong?

 --
 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sparky
Does your application use any of the canvas functions known not to be 
hardware-accelerated? This blog article lists them, along with some best 
practices for Android 2D hardware acceleration.

http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.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

Re: [android-developers] Re: nfc compatibility for 2.2 android

2012-01-16 Thread ANKUR GOEL
so if i use reflection or wrapper classes it will work or not .






On Mon, Jan 16, 2012 at 5:48 PM, sparky spar...@google.com wrote:

 Since NFC wasn't added to the platform until 2.3 (
 http://developer.android.com/sdk/android-2.3-highlights.html), your only
 choice is to piece together a complete solution yourself.

 --
 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: nfc compatibility for 2.2 android

2012-01-16 Thread Sparky Rhode
I think it would work, but you may want to consider whether supporting
Android 2.2 and older is even worth it. How many 2.2 devices can use
an NFC radio?


On Mon, Jan 16, 2012 at 1:44 PM, ANKUR GOEL ankur1...@gmail.com wrote:
 so if i use reflection or wrapper classes it will work or not .






 On Mon, Jan 16, 2012 at 5:48 PM, sparky spar...@google.com wrote:

 Since NFC wasn't added to the platform until 2.3
 (http://developer.android.com/sdk/android-2.3-highlights.html), your only
 choice is to piece together a complete solution yourself.

 --
 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

-- 
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


R: Re: [android-developers] Suggestion for best practice-pattern

2012-01-16 Thread sandma...@libero.it
Ok for the webview.
For the webservice, I don't know if the provider has such a facility.
I'll ask them for.
Thanks


Messaggio originale

Da: mukicha...@gmail.com

Data: 16/01/2012 12.46

A: android-developers@googlegroups.com

Ogg: Re: [android-developers] Suggestion for best practice-pattern



How are you planning to get, if it is html you will need to  render the html 
page in Webview to show the details.
2. you can also go with a simple webservice method which send you the data, you 
parse it and show it in a customize way.

Warm Regards,Mukesh Kumar,Android Consultant/Freelancer,India,Hyderabad.

On Mon, Jan 16, 2012 at 4:55 PM, sandma...@libero.it sandma...@libero.it 
wrote:

Hi,



I'd need to write an app that gets some infos, like remaining time, remaining

SMS for this month from my provider.



Assuming that these informations are available as html pages, i.e. using a

browser I can connect, authenticate and get this data, which is the best way to

write an app to get them, too?



Something that interpretates the html and gets data from here?



Something else? Which technology should I use?



Thanks



Ciao



--

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



-- 
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: File Handling in Android

2012-01-16 Thread Stephan Wiesner
you can use most normal Java File operations. If you want to access
the sd card you will need to set the necessary permissions.
Sunny greetings from Zurich,
Stephan Wiesner

On 13 Jan., 10:47, tejas_muley tejasmule...@gmail.com wrote:
 Hi Android Team,
      I try to create folder in android app, that folder used only in
 application in which its create that folder. Can this is possible or
 is there any folder (already provided by android ) which work like
 this. Please help me to solve this problem. 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


[android-developers] Re: Interactive ebook reader

2012-01-16 Thread Oli Wright
books which will have videos, animations, simulations embedded in the book

You mean like web pages ...?

-- 
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: Any problems regarding LVL when moving apps from one Google account to another?

2012-01-16 Thread Mark Carter
Trevor Johns has answered this question here: 
http://stackoverflow.com/questions/7802062/any-problems-regarding-lvl-when-moving-apps-from-one-google-account-to-another

-- 
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: bluetooth

2012-01-16 Thread Oli Wright
What've you looked at so far?  Have you tried reading through this?  
http://developer.android.com/guide/topics/wireless/bluetooth.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] Re: Interactive ebook reader

2012-01-16 Thread sumit garg
can say something of this kind check this out 

http://www.youtube.com/watch?v=yX4i9K6upqU 

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sblantipodi
No my apps uses really simple primitives.

On 16 Gen, 13:30, sparky spar...@google.com wrote:
 Does your application use any of the canvas functions known not to be
 hardware-accelerated? This blog article lists them, along with some best
 practices for Android 2D hardware acceleration.

 http://android-developers.blogspot.com/2011/03/android-30-hardware-ac...

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sblantipodi
...and all that primiteves are hardware accelerated.

On 16 Gen, 13:30, sparky spar...@google.com wrote:
 Does your application use any of the canvas functions known not to be
 hardware-accelerated? This blog article lists them, along with some best
 practices for Android 2D hardware acceleration.

 http://android-developers.blogspot.com/2011/03/android-30-hardware-ac...

-- 
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] IMountService available on Honeycomb / Other way to force flush file-system-cache

2012-01-16 Thread EstelKay
Hey Mark thanks for the clarification. 
I still wonder why there is a permission when you don't have API calls to 
use 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] IMountService available on Honeycomb / Other way to force flush file-system-cache

2012-01-16 Thread Mark Murphy
On Mon, Jan 16, 2012 at 8:51 AM, EstelKay kay.estelm...@googlemail.com wrote:
 I still wonder why there is a permission when you don't have API calls to
 use it?

Lots of permissions are that way. You don't have an API call to brick
the phone, yet there is the BRICK permission. My understanding is that
this stems from way back in 2007, when the SDK was carved out of the
previously-monolithic OS -- they made all permissions be part of the
SDK for simplicity.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

-- 
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: getExternalFilesDir() on Acer Iconia Tab A500

2012-01-16 Thread EstelKay
Hey Nicolay
where'd you find the methods getSecondVolumeStorageDirectory and 
getThirdVolumeStorageDirectory?
I can't find them in the documentation or access them in Eclipse with 
regular SDK.
Is there any special library I have to import?

Thanks in advance, these methods might be really helpful for my project.

-- 
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] IMountService available on Honeycomb / Other way to force flush file-system-cache

2012-01-16 Thread EstelKay
Thanks again

-- 
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: getExternalFilesDir() on Acer Iconia Tab A500

2012-01-16 Thread Nikolay Elenkov
On Mon, Jan 16, 2012 at 10:57 PM, EstelKay kay.estelm...@googlemail.com wrote:
 Hey Nicolay
 where'd you find the methods getSecondVolumeStorageDirectory and
 getThirdVolumeStorageDirectory?
 I can't find them in the documentation or access them in Eclipse with
 regular SDK.
 Is there any special library I have to import?


ACRA gets those by reflection when reporting errors. They are not
in the documentation, but apparently the Environment class on A500
has them (or at least did in some particular build).

-- 
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: getExternalFilesDir() on Acer Iconia Tab A500

2012-01-16 Thread EstelKay
thanks for the fast answer

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sblantipodi
The most disappointing thing is this problem is that google don't want
to admit
that they have problem in their implementation, this will probably
means that we
will not see any fix soon.

As I repeat the same canvas runs great on feature phones with 180MHz
CPU and 1MB of heap,
runs great of low end blackberrys and badas phone.
Runs great on android only if you don't enable hardware acceleration,
once hardware acceleration
is enabled it lags also on a 1.2GHz dual core cpu with an SGX540.

This is clearly a bug, I will open a bug report.

-- 
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: Urgent

2012-01-16 Thread Matthew Jacobs
What requirements do you have?
For example in the https://market.android.com/publish page for my app it 
says;

This application is only available to devices with these features, as 
defined in your application manifest.
Screen layouts: SMALL NORMAL LARGE XLARGE
Required device features
android.hardware.touchscreen
This application is available to over 917 devices.

Is there a hardware requirement that you've added that you shouldn't?
Any obvious one would be NFC which is only available on a couple of phones.

Also,
if you click show devices you may have somehow accidentally disabled some 
devices (dont know how)

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Sparky Rhode
Can you share some source code that reproduces this performance issue?



On Mon, Jan 16, 2012 at 3:53 PM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 The most disappointing thing is this problem is that google don't want
 to admit
 that they have problem in their implementation, this will probably
 means that we
 will not see any fix soon.

 As I repeat the same canvas runs great on feature phones with 180MHz
 CPU and 1MB of heap,
 runs great of low end blackberrys and badas phone.
 Runs great on android only if you don't enable hardware acceleration,
 once hardware acceleration
 is enabled it lags also on a 1.2GHz dual core cpu with an SGX540.

 This is clearly a bug, I will open a bug report.

 --
 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] Accessing EVERY single individual video frame from a video file

2012-01-16 Thread MD
Hi *,

I want to read a video file, retrieve every frame ( as a bitmap to do
some processing on each frame like scaling, warping etc. ) and display
them on a canvas.

I tried using getFrameAtTime() function provided by
MediaMetadataRetriever. But it does NOT return every frame to me. It
looks like it's returning back only the keyframes from the loaded
video file(3gp). This limited capability may be good for displaying
thumbnails of a video, but not for a smooth playback after
modification of individual frames.

Can anyone suggest me a good 3rd party library to access individual
frames of a video file? Or perhaps another android API which can do
the job.

Cheers,
M.

-- 
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


  1   2   3   >