[android-developers] BackGround Process

2012-08-16 Thread reshmy anup


Hi..

My phone is having a weird problem, whenever I get communication from 
anywhere (e.g. e-mail and sms), I get greeted with Unfortunately, X has 
stopped. with X representing the application that handles the 
communication. The weird thing is, after showing that pop up, I can still 
use the application without problem.

Let's say somebody texts me, that error will pop out but when I click on 
the notification, the SMS opens up without a problem. So far it hasn't 
affected anything (yet) but you can imagine the annoyance of seeing that 
pop up every time someone contacts you.

What should I do?






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

Re: [android-developers] Disabling wifi, GPS, Bluetooth, and celluar in an app

2012-08-16 Thread Jason Hsu
I know I can go into airplane mode, but I want to give the user the option 
of conserving the battery AFTER starting the app by providing in-app 
buttons.

-- 
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] Database example

2012-08-16 Thread Sadhna Upadhyay
 Hi Everybody,
  please share with me database example

-- 
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: Database example

2012-08-16 Thread RichardC
android-sdk\samples\android-16\NotePad

On Thursday, August 16, 2012 8:00:03 AM UTC+1, Sadhna Upadhyay wrote:



  Hi Everybody,
   please share with me database example 



-- 
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: Database example

2012-08-16 Thread Live Happy
may this well help you
http://www.vogella.com/articles/AndroidSQLite/article.html
On Thu, Aug 16, 2012 at 10:52 AM, RichardC
richard.crit...@googlemail.comwrote:

 android-sdk\samples\android-16\NotePad

 On Thursday, August 16, 2012 8:00:03 AM UTC+1, Sadhna Upadhyay wrote:



  Hi Everybody,
   please share with me database example

  --
 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: Database example

2012-08-16 Thread Angelo Luciani
You have to do 2 things:

*1. Create your class relate Database a Table you want create*

package com.angelo.sqllite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MioDatabaseHelper extends SQLiteOpenHelper {
private static final String DB_NAME = minchiature_db;
private static final int DB_VERSION = 1;
public MioDatabaseHelper(Context context) {
super(context, DB_NAME, null, DB_VERSION);
}

@Override
public void onCreate(SQLiteDatabase db) {
String sql = ;
sql += CREATE TABLE agenda (;
sql +=  _id INTEGER PRIMARY KEY,;
sql +=  nome TEXT NOT NULL,;
sql +=  cognome TEXT NOT NULL,;
sql +=  telefono TEXT NOT NULL;
sql += );
db.execSQL(sql);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
// Aggiornamento delle tabelle
}


}

*2.Use Your activity *

package com.angelo.sqllite;

import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;

public class TestSqlLiteActivity extends Activity
{
private MioDatabaseHelper mioDatabaseHelper;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

 /***CREATE A
DATABASE**/

mioDatabaseHelper = new MioDatabaseHelper(this);
SQLiteDatabase db = mioDatabaseHelper.getWritableDatabase();
ContentValues values = new ContentValues();

values.put(nome, Mario);
values.put(cognome, Rossi);
values.put(telefono, 061299178);
long id = db.insert(agenda, null, values);

values.put(nome, Mario2);
values.put(cognome, Rossi2);
values.put(telefono, 0612991782);
id = db.insert(agenda, null, values);

values.put(nome, Mario3);
values.put(cognome, Rossi3);
values.put(telefono, 0612991783);
id = db.insert(agenda, null, values);


String query = SELECT _id FROM agenda WHERE cognome = ? ORDER BY
_id ASC;
String[] selectionArgs3 = { Rossi };
// I cursori sono gli oggetti di Android che permettono di navigare
all’interno di un result set, ossia
//nell’insieme dei risultati restituiti da una query.
Cursor cursor = null;
cursor = db.rawQuery(query, selectionArgs3);

int count = cursor.getCount();

System.out.println(il numero di dati contenuti nel database +
count);

while (cursor.moveToNext()) {

id = cursor.getLong(0);
System.out.println(Questo è l'ID +id);
String nome = cursor.getString(1);
System.out.println(Questo è l'ID +nome);
String cognome = cursor.getString(2);
System.out.println(Questo è il COGNOME +cognome);

}



 /***DROP
TABLE***/

db.execSQL(DROP TABLE agenda);

}

}




On Thu, Aug 16, 2012 at 9:55 AM, Live Happy livehap...@gmail.com wrote:

 may this well help you
 http://www.vogella.com/articles/AndroidSQLite/article.html
 On Thu, Aug 16, 2012 at 10:52 AM, RichardC richard.crit...@googlemail.com
  wrote:

 android-sdk\samples\android-16\NotePad

 On Thursday, August 16, 2012 8:00:03 AM UTC+1, Sadhna Upadhyay wrote:



  Hi Everybody,
   please share with me database example

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

Re: [android-developers] Database example

2012-08-16 Thread Rocky
check   www.android-exp...@blogspot.com




On Thu, Aug 16, 2012 at 12:30 PM, Sadhna Upadhyay sadhna.braah...@gmail.com
 wrote:



  Hi Everybody,
   please share with me database example

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

-- 
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: LVL suddently stopped working - returns only timeouts

2012-08-16 Thread Kostya Vasilyev
Thanks for responding.

I guess the failure rate is pretty low for this to be treated as a priority
issue, although for those customers who are unlucky to run into this, the
failure rate is exactly 100%.

At least now I know I'm not hallucinating.

-- K

2012/8/16 Pent supp...@apps.dinglisch.net

 My app only required a single positive response and then would never
 query again. I had a few people every day with OK orders who couldn't
 validate, starting around May I guess, as you say. I don't know what
 the cause was.

 The only thing that helped was uninstall-reinstall.

 After giving Google a few months to fix it I gave up and removed the
 LVL, I was just too embarrassed to ask brand new customers to
 uninstall-reinstall anymore.

 Ideally the situation would have been:

 - see problem
 - investigate
 - report as much details as possible to Google
 - wait for fix

 But since they don't respond to any messages about Market I didn't see
 the point of wasting my time and increasing my blood pressure.

 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


-- 
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: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-16 Thread b0b


On Thursday, 16 August 2012 03:47:02 UTC+2, MagouyaWare wrote:

 Then you would need to talk to the makers of the roms that are doing 
 this... 

Yes after even more digging deeper, it is due to a recent CM commit:

http://review.cyanogenmod.com/#/c/18319/1

which is enabled if build type != user. That's the case in CM9 since for 
some reason they only know about, build type = userdebug.

It is stupid to have this patch enabled by default as it affects 
performance for all their users.

 

 As for onCreate() you shouldn't really be doing ANYTHING except calling 
 setContentView() and initializing a few member variables.  Anything else 
 needs to go in a separate thread (perhaps using AsyncTask) to do heavy 
 initialization/work...


Yes absolutely, using threading or lazy initalization when appropriate. 
onCreate(), onResume(), onStart() have to execute as fast as possible.  The 
only limiting factor here
is is the time taken by loading layouts which cannot be easily reduced or 
reduced at all.

 

-- 
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 can handle onkeydown on nested PreferenceScreens

2012-08-16 Thread lruck
Title: How can handle onkeydown on nested PreferenceScreens 



how can iam handle the onkeyevent on nested preferencescreen.

in the preferenceactivity its working correct with onkeydown method.

but if iam add a sub preferencescreen like the follow (inner1), iam don't can handle key events.

how can iam get the keyevent (onkeydown) from the inner preferencescreen???



PreferenceScreen android:id="outer"
 ListPreference .../ListPreference
  PreferenceScreen android:id="inner1"
   CheckboxPreference .../CheckboxPreference
  /PreferenceScreen 
 /PreferenceScreen



-- 
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] Ping status in android

2012-08-16 Thread chainz roid
Hello 

I'm working with android ICS. I want to check whether my server is 
available or not, hence i tried is.Reachable() but its not efficient. when 
i try this function application is killed. So i moved on to PING command 
its working file and its showing the Ping statistics 

Pinged IP, Packets transmitted, Packets received, Packets loss and 
transmitted time.

But i need the status, I need to get OK or FAIL its enough. no need of the 
ping statistics 

Can any one help me the functions to return the just Response OK or 
Response FAIL just true or false.

Thanks in advance.

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

Re: [android-developers] Re: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-16 Thread Kostya Vasilyev
2012/8/16 b0b pujos.mich...@gmail.com



 On Thursday, 16 August 2012 03:47:02 UTC+2, MagouyaWare wrote:

 As for onCreate() you shouldn't really be doing ANYTHING except calling
 setContentView() and initializing a few member variables.  Anything else
 needs to go in a separate thread (perhaps using AsyncTask) to do heavy
 initialization/work...


 Yes absolutely, using threading or lazy initalization when appropriate.
 onCreate(), onResume(), onStart() have to execute as fast as possible.  The
 only limiting factor here
 is is the time taken by loading layouts which cannot be easily reduced or
 reduced at all.


It seems that inflating views just isn't very fast, even with the binary
XML format and stuff.

I recently spent some time profiling my app's opening a ListView
containing... a list... of data items (duh).

On a Galaxy Nexus, there are about 7-8 of them fitting on the screen, each
having about 8-10 child views in a RelativeLayout.

The initial onLayout() takes about 150-200ms, which is very noticable. The
time spent in the layout inflater (called by getView, called during this
initial layout to make scrap views) is about 2/3 of that.

By comparison, the Gmail app's (just to pick an example) list rendering is
really fast -- but then each item in their message list is a sinlge Android
view.

-- K

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

[android-developers] android gps location problem

2012-08-16 Thread suresh
Dear Friends

Am developing gps application. my requirements are the app should send 
location continuously for every 10 min to server. but its working for some 
time after that its keep sending same location even though the mobile is 
located in different place.

please can any one suggest me regarding this.

Thanks
Suresh

-- 
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: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-16 Thread b0b



 It seems that inflating views just isn't very fast, even with the binary 
 XML format and stuff.


Yes it can be very slow for complex layouts. 

It is unfortunate that it is not safe to invoke the layout inflater  in a 
thread to preload the layout while displaying a loading screen , 
to avoid the black screen effect while the app is busy in onCreate() 
loading the layout.


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

[android-developers] getActivity returns null after restoring application

2012-08-16 Thread TheNetStriker
I've created an FragmentActivity containing a ViewPager which loads its 
Fragments from an FragmentPagerAdapter. I need to call the Fragments from the 
Activity, so I've created an interface and a way to get a reference to the 
created Fragments. I is working pretty well until the Activity is destroyed and 
recreated. Then the Fragments are not linked to the Activity any more and I get 
null when calling getActivity(). What am I doing wrong? Here is a sample of my 
FragmentPagerAdapter:

private static class MyPagerAdapter extends FragmentPagerAdapter { 
private static Fragment[] fragments;
private String[] fragmentTitles;

public MyPagerAdapter(FragmentManager fm, Context context) {  
 super(fm);
 if (fragments == null) fragments = new Fragment[] { new 
Fragment1(), new Fragment2(), new Fragment3(), new Fragment4() };
 fragmentTitles = new String[] {context.getString(R.string.title_1),

context.getString(R.string.title_2),

context.getString(R.string.title_3),

context.getString(R.string.title_4)};
}  

@Override  
public Fragment getItem(int index) {  
return fragments[index];
}

@Override
public CharSequence getPageTitle(int index) {
return fragmentTitles[index];
}

@Override  
public int getCount() {  
 return fragmentTitles.length;  
}
public Fragment1 getFragment1() {
return (Fragment1) fragments[0];
}

public Fragment2 getFragment2() {
return (Fragment2) fragments[1];
}

public Fragment3 getFragment3() {
return (Fragment3) fragments[2];
}

public Fragment4 getFragment4() {
return (Fragment4) fragments[3];
}  
   }

-- 
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-developers】 It is a question about an activity-alias attribute.

2012-08-16 Thread 安藤玲生
I am a Japanese programmer.
My name is Reo Ando

It is a question about an activity-alias attribute.
It is the processing A, if an alias is attached to Existing Activity and
a class name is an alias on sauce.
It does not work, although he would like to carry out processing B when
coming by the original class name of Existing Activity.
Please let me know.
Please give me a sample code.

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] Please give me a 'kick-start' to build an app that will log me into a web site.

2012-08-16 Thread Rob
Never developed an app.
Downloaded and installed required software.

As a 'learning experience', I want to build a app for my android Galaxy S 
II (4.0.4) that will use my web browser to log me into my Gmail account.

Can someone point me to a tutorial to do this, or, suggest how I need to 
proceed?

Thanks,

Rob.


-- 
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] CTN Car - Vehicle Management

2012-08-16 Thread Cristian Cardoso
I'm sharing my first Google Play app, it's an application that will help you to 
manage your vehicle fuel consumption.
Download it, write a review and share your experience!

https://play.google.com/store/apps/details?id=br.com.ctncardoso.ctncar

Make your suggestion for the new versions!

We'll be glad to receive your reviews, even positive or negative.

Thanks
Cristian Cardoso

-- 
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] OpenGL using multiple classes

2012-08-16 Thread Braindrool
I've been programming for years, but I have very little experience with 3D 
graphics. I thought OpenGL would be the most efficient in this project. 
It's coming along alright, I am still studying the API and documentation. 
But I have encountered a problem using multiple classes. For instance, here 
I try to use a separate class for the player model. (Yes, currently it's 
just a cube.)

Renderer:

Code:

package com.braindrool.bla;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import android.opengl.GLSurfaceView.Renderer;

public class BlaRenderer implements Renderer {

int nrOfVertices;
float A;
Player player = new Player();

public void onSurfaceCreated(GL10 gl, EGLConfig config) {
// TODO Auto-generated method stub

gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_COLOR_ARRAY);

gl.glEnable(GL10.GL_CULL_FACE);

gl.glFrontFace(GL10.GL_CCW);
gl.glCullFace(GL10.GL_BACK);

gl.glClearColor(0.3f, 0.8f, 0.9f, 1);

//  initTriangle();
player.initPlayer();

}

public void onDrawFrame(GL10 gl) {
// TODO Auto-generated method stub



gl.glLoadIdentity();

gl.glClear(GL10.GL_COLOR_BUFFER_BIT);

// gl.glRotatef(A * 2, 1f, 0f, 0f);
// gl.glRotatef(A, 0f, 1f, 0f);
//
// gl.glColor4f(0.5f, 0, 0, 1);

gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);
gl.glDrawElements(GL10.GL_TRIANGLES, nrOfVertices,
GL10.GL_UNSIGNED_SHORT, indexBuffer);
// A++;

}

public void onSurfaceChanged(GL10 gl, int width, int height) {
// TODO Auto-generated method stub
gl.glViewport(0, 0, width, height);

}

private FloatBuffer vertexBuffer;
private ShortBuffer indexBuffer;

private FloatBuffer colorBuffer;

private void initTriangle() {

float[] coords = { 0, 0.5f, 0, -0.5f, -0.5f, 0.5f, 0.5f, -0.5f, 
0.5f,
0, 0, -0.5f };

nrOfVertices = coords.length;

ByteBuffer vbb = ByteBuffer.allocateDirect(nrOfVertices * 3 * 
4);
vbb.order(ByteOrder.nativeOrder());
vertexBuffer = vbb.asFloatBuffer();

ByteBuffer ibb = ByteBuffer.allocateDirect(nrOfVertices * 2);
ibb.order(ByteOrder.nativeOrder());
indexBuffer = ibb.asShortBuffer();

ByteBuffer cbb = ByteBuffer.allocateDirect(4 * nrOfVertices * 
4);
cbb.order(ByteOrder.nativeOrder());
colorBuffer = cbb.asFloatBuffer();

float[] colors = { 1f, 0f, 0f, 1f, // point 1
0f, 1f, 0f, 1f, // point 2
0f, 0f, 1f, 1f, // point 3
};

short[] indices = new short[] {
// indices
0, 1, 2, 0, 2, 3, 0, 3, 1, 3, 1, 2

};

vertexBuffer.put(coords);
indexBuffer.put(indices);
colorBuffer.put(colors);

vertexBuffer.position(0);
indexBuffer.position(0);
colorBuffer.position(0);

}

}

And now the player class.

Code:

package com.braindrool.bla;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

public class Player extends BlaRenderer{

private FloatBuffer vertexBuffer;
private ShortBuffer indexBuffer;
private FloatBuffer colorBuffer;
private int nrOfVertices;
float A;

public void initPlayer() {

float[] coords = {

-0.5f, 0.5f, 0, // P0
-0.5f, 0, 0, // P1
0.5f, 0, 0, // P2
0.5f, 0.5f, 0, // P3
0.5f, 0.5f, 0.5f, // P4
-0.5f, 0.5f, 0.5f, // P5
-0.5f, 0, 0.5f, // P6
0.5f, 0, 0.5f // P7
};

nrOfVertices = coords.length;

ByteBuffer vbb = ByteBuffer.allocateDirect(nrOfVertices * 4);
vbb.order(ByteOrder.nativeOrder());
vertexBuffer = vbb.asFloatBuffer();

  

[android-developers] listview hashmap checkbox

2012-08-16 Thread anasKun
hello everyone im a beginner at android and im working on a customized 
listview(hashmap) with images, textviews and checkboxes the isue is that i 
can't use the values of some textviews when the checkbox is checked if 
anyone'zs familliar with this i can post the code plzz 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] Re: AVD is no launching in Ubuntu ICS

2012-08-16 Thread coc_21
What exactly is happening?

On Tuesday, August 14, 2012 2:54:19 AM UTC-5, RKJ (Android developer) wrote:

 Hi All,
  
 is it any issue with ICS with Ubuntu to start emulator ?
 Same is working over Windows XM but not working in Ubuntu 10.5 above.
  
 Please suggest me .


 -- 
 Thanks  Regards

 Rakesh Kumar Jha


-- 
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-developers】Please let me know the right directions for use and a function about activity-alias.

2012-08-16 Thread 安藤玲生
hello. im japanese Android Programmer.

I am sorry for awkward English.

It is tired with labor.
Research and development in the application which uses the
activity-aliastag is done.
In the application A, it is a yesterday and half-a-day tone poor place,
for example. Suppose that there are three Activities.
Two activity-aliastags are made to the manifest file which is the
application A.
Activity which you want to display on android:targetActivity= is described.

Then, two application was created after the application A start-up
besides the application A.

Is the phenomenon of making two or more works of this same application
accomplishing a function of the activity-aliastag?

I am pleased if you act as a professor of the function which is possible
using the activity-aliastag to others more.

Only the link of a reference site.
I need your help well above.



***
Name: Reo Ando
Tel: 080-2012-7419
Mail: ando.reo...@gmail.com
※ I am acting as a free programmer (Android, Java).
Android development history eight months.
From the single money 280,000 to consultation
***




-- 
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] Enter PIN number automatically into incoming call during active

2012-08-16 Thread Aung Myo Oo
Here is my scenario,
There is a callback number and called that number. After a few seconds 
later provider callback to my phone and I accepted the call.

At that time I need to choose the language and the enter PIN no.

My question is that it is possible to send the language code and pin no 
at BroadcastReceiver to caller (provider).

Actually, it is conference call dial-er. I can call directly using sent DTMF 
data. I can actually send DTMF tones by invoking for outgoing call.

Intent i = new Intent(android.intent.action.CALL,Uri.parse(tel:// + 
number));   


But some user they want to use with callback number. I have no idea how to send 
my PIN code for incoming.

-- 
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] Jelly Bean has taken over the Search button

2012-08-16 Thread Andrew Mackenzie
In our application we enabled search (triggered when the user pressed the 
Search/Magnifying-glass key on device) in a number of Activities using these 
entries in the manifest:

meta-data 
android:name=android.app.default_searchable
android:value=.Search.SearchActivity /


!--  Search activity --
activity android:name=.Search.SearchActivity
android:launchMode=singleTop
android:label=@string/search_activity_name 
intent-filter
action android:name=android.intent.action.SEARCH /
/intent-filter

meta-data
android:name=android.app.searchable
android:resource=@xml/searchable /
/activity

After any device update to JellyBean we have lost this functionality with the 
Google Search being triggered instead of our own Search activity.

After investigating, I found this page 
(http://www.android.com/about/jelly-bean/)  that in the Google Search section 
states:
For devices with a hardware search key, you can tap it to launch Google 
Search.

So, is that Just the way it is and Google have taken over complete control of 
the Search key when in our app?
   - We will have to add a Search menu or action bar option in all activities 
to get search back...
or is there a way to recover the previous behavior, where we can have our 
search activity triggered by the Search Key?

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: Your Registration to Google Play is still being processed.

2012-08-16 Thread El Ilmy
So me more terrible! After 5 days and 5 times submit issue report still 
have this message. (T_T) 

On Monday, 16 July 2012 21:26:05 UTC+8, Craig Bradley wrote:

 Just to let you know, I still have this message after joining yesterday. 
 Just be patient and wait for the payment to clear. If you read the links 
 that people have posted you will have seen that until they know you have 
 paid for sure you wont be able to access it. In the mean time, if you have 
 an app ready then upload it and sort out your promotional material. 

 On Monday, July 16, 2012 7:20:48 AM UTC+1, elirev4 wrote:

 I registered to the Google Play Developers 24 hours ago and this message 
 Your Registration to Google Play is still being processed. is still 
 there...


 How much time will I have to wait for Google to approve my account?



-- 
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-developers】 activity-alias要素について

2012-08-16 Thread 安藤玲生
お疲れ様です。安藤です。

いきなりですが質問です。

activity-alias要素のIntent Filterに※1を記述して別アプリとして作成すると、
既存Activityを別名にすることができたのですが、※1をせず、ターゲットActivityの別名をしても、別名されませんでした。クラス名の取得の仕方は※2のようなやり方です。

どなたか、※1をしなくても別名することができるというひとはご教授していただければ幸いです。

※1   action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.LAUNCHER /

※2 String componentName = getIntent().getComponent().getShortClassName();

以上何卒よろしくお願いいたします。


**
安藤 玲生
Tel: 080-2012-7419
ando.reo...@kce.biglobe.ne.jp

※フリープログラマー(Android,Java)をしております。
Android開発歴 8ヶ月。
単金28万〜の案件から相談乗ります。


-- 
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] Accessibility: Virtual view hiearchy

2012-08-16 Thread Andreas
Hi all.

I'm working on an Android application where we have a custom view and draw 
everything on a Canvas. I've watched the Google I/O 2012 accessibility video 
that discusses this exact scenario and it gives some pointer on how to get 
started. I have however failed to make this work as I expected it to.

We're aiming to support this on Jellybean and up, so I'm trying to use the new 
level 16 APIs for this.

Here is how it's currently setup.

We override public boolean dispatchHoverEvent(MotionEvent ev) and send off an 
accessibility event of type TYPE_VIEW_HOVER_ENTER and fill the event with the 
text content of the virtual child (getText.add and content description).

We also provide a AccessibilityNodeProvider and create the virtual hierarchy 
via createAccessiblityNodeInfo() callback (first the View.NO_ID where we add 
all the children, and then one callback for each child where we populate the 
virtual child info).

Now, I get all the callbacks and it seems as if it should be working. However, 
with this approach, we get no accessibility focus nor any talkback when 
clicking anywhere in the custom view. By playing around, I changed the event 
type we send off from dispatchHoverEvent to be TYPE_VIEW_ACCESSIBILITY_FOCUSED 
instead, and now the custom view gains accessibility focus.

However, it seems that the virtual views never get accessiblity focus and never 
gets turned to speech via talkback. In order to support the swipe navigations, 
etc, I would expect that they would gain this focus based on the bounds we give 
the node info for each child.

I have found zero working examples of applications that use these new APIs, and 
debugged and played around for 2 days without any success.

Could anyone give some pointers to proper examples, or any ideas on what might 
be missing? Have I misunderstood the function of the virtual views?

Thank you in advance.

Cheers, Andreas

-- 
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: Reference an integer resource for Android manifest versionCode

2012-08-16 Thread Andrew Mackenzie
See my answer to this stackoverflow question that describes how I ended up 
doing this:

http://stackoverflow.com/questions/6018079/reference-an-integer-resource-for-android-manifest-versioncode/6691703#6691703

-- 
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] My package is not visible in framework base

2012-08-16 Thread arun singh
Hi,

I am compiling source code for sdk (make sdk).
It's generating everything but the classes which i have included is not in 
custom android.jar.
Please tell me where to define that package so that it will come in custom 
android.jar.


Thanks,
Arun Singh

-- 
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: wpa_supplicant file for Samsung Galaxy S2 running ics 4.0.3

2012-08-16 Thread Bharani dharan
Hi All,

If the file for Galaxy S2 is not available, please share a valid wpa_supplicant 
file for any Android OS (older versions like GB, HoneyComb).

I'll downgrade my mobile's OS. Thank you.


Cheers,
Bharani :)

On Aug 15, 2012, at 6:04 PM, Bharani dharan wrote:

 Hi All,
 
 Does anyone have right working wpa_supplicant file for enabling adhoc mode in 
 Samsung Galaxy S2 with OS ICS 4.0.3?
 
 I have googled a lot and tried many files and none of them are working.
 
 If yes, please share with me.
 
 Thank you!!
 
 
 Cheers,
 Bharani :)
 

-- 
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] InApp billing - always getting RESULT_ITEM_UNAVAILABLE

2012-08-16 Thread Przemyslaw Wegrzyn
Hi!

I'm integrating InApp Billing functionality into my application. Testing
with fake items e.g. android.test.purchased works fine, but trying to
purchase any of my own items fails.

I've double-checked the following:

- signed application was uploaded to the publisher site, same APK
installled on the device
- all the inapp items were created
- device runs Android 2.2.2, Google Play 3.7.15, and I have just
factory-reseted it and assigned a brand new gmail account
- the account is added as a test account on a publisher site

Unfortunately, all I get is RESULT_ITEM_UNAVAILABLE. To make things more
frustrating, I can see that the item was found on the server, as the
billing popup dialog contains the item title/description that was
entered on the publisher site!

In the logs I can see the following messages from Finsky (replaced
package name with xxx ,as I don't want to disclose it yet):

08-14 12:46:03.312 D/Finsky  (  525): [7]
MarketBillingService.getPreferredAccount: com.xxx.xxx: Account from
first account.
08-14 12:46:03.322 D/Finsky  (  525): [7]
MarketBillingService.getPreferredAccount: com.xxx.xxx: Account from
first account.
08-14 12:46:03.513 D/Finsky  (  525): [1]
SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update. Local
Version [8013015] = Server Version [0]
08-14 12:46:03.722 W/Finsky  (  525): [1] CarrierParamsAction.run:
Saving carrier billing params failed.
08-14 12:46:03.722 E/Finsky  (  525): [1] CarrierBillingUtils.isDcb30:
CarrierBillingParameters are null, fallback to 2.0
08-14 12:46:03.732 D/Finsky  (  525): [1] GetBillingCountriesAction.run:
Skip getting fresh list of billing countries.
08-14 12:46:03.742 E/Finsky  (  525): [1] CarrierBillingUtils.isDcb30:
CarrierBillingParameters are null, fallback to 2.0
08-14 12:46:03.752 D/Finsky  (  525): [1]
CarrierProvisioningAction.shouldFetchProvisioning: Required
CarrierBillingParams missing. Shouldn't fetch provisioning.
08-14 12:46:03.752 D/Finsky  (  525): [1] CarrierProvisioningAction.run:
No need to fetch provisioning from carrier.
08-14 12:46:04.242 E/Finsky  (  525): [1] CheckoutPurchase.setError:
type=IAB_PERMISSION_ERROR, code=4, message=null
08-14 12:46:07.302 D/Finsky  (  525): [1]
MarketBillingService.sendResponseCode: Sending response
RESULT_ITEM_UNAVAILABLE for request 3209013950184753921 to com.xxx.xxx.

What am I missing here? What is IAB_PERMISSION_ERROR, code=4 ?

Any help highly appreciated!

Przemek

-- 
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: InApp billing - always getting RESULT_ITEM_UNAVAILABLE

2012-08-16 Thread Przemyslaw Wegrzyn
Actually, I've just realized that Googl'e s InApp tutorial contradicts
the documentation statement.

Documentation states that:
Note: You do not need to publish your application to do end-to-end
testing. You only need to upload your application as a draft application
to perform end-to-end testing.
Make sure that you publish the items (the application can remain
unpublished).

However, above the inapp items list in the developer console I see the a
message saying that I need to *publish the application itself* to make
the items published, regardless of the individual item state.

Which is true? Do I really need to publish my app to check InApps?!

BR,
Przemek


On 08/14/2012 12:48 PM, Przemyslaw Wegrzyn wrote:
 Hi!

 I'm integrating InApp Billing functionality into my application.
 Testing with fake items e.g. android.test.purchased works fine, but
 trying to purchase any of my own items fails.

 I've double-checked the following:

 - signed application was uploaded to the publisher site, same APK
 installled on the device
 - all the inapp items were created
 - device runs Android 2.2.2, Google Play 3.7.15, and I have just
 factory-reseted it and assigned a brand new gmail account
 - the account is added as a test account on a publisher site

 Unfortunately, all I get is RESULT_ITEM_UNAVAILABLE. To make things
 more frustrating, I can see that the item was found on the server, as
 the billing popup dialog contains the item title/description that was
 entered on the publisher site!

 In the logs I can see the following messages from Finsky (replaced
 package name with xxx ,as I don't want to disclose it yet):

 08-14 12:46:03.312 D/Finsky  (  525): [7]
 MarketBillingService.getPreferredAccount: com.xxx.xxx: Account from
 first account.
 08-14 12:46:03.322 D/Finsky  (  525): [7]
 MarketBillingService.getPreferredAccount: com.xxx.xxx: Account from
 first account.
 08-14 12:46:03.513 D/Finsky  (  525): [1]
 SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update. Local
 Version [8013015] = Server Version [0]
 08-14 12:46:03.722 W/Finsky  (  525): [1] CarrierParamsAction.run:
 Saving carrier billing params failed.
 08-14 12:46:03.722 E/Finsky  (  525): [1] CarrierBillingUtils.isDcb30:
 CarrierBillingParameters are null, fallback to 2.0
 08-14 12:46:03.732 D/Finsky  (  525): [1]
 GetBillingCountriesAction.run: Skip getting fresh list of billing
 countries.
 08-14 12:46:03.742 E/Finsky  (  525): [1] CarrierBillingUtils.isDcb30:
 CarrierBillingParameters are null, fallback to 2.0
 08-14 12:46:03.752 D/Finsky  (  525): [1]
 CarrierProvisioningAction.shouldFetchProvisioning: Required
 CarrierBillingParams missing. Shouldn't fetch provisioning.
 08-14 12:46:03.752 D/Finsky  (  525): [1]
 CarrierProvisioningAction.run: No need to fetch provisioning from carrier.
 08-14 12:46:04.242 E/Finsky  (  525): [1] CheckoutPurchase.setError:
 type=IAB_PERMISSION_ERROR, code=4, message=null
 08-14 12:46:07.302 D/Finsky  (  525): [1]
 MarketBillingService.sendResponseCode: Sending response
 RESULT_ITEM_UNAVAILABLE for request 3209013950184753921 to com.xxx.xxx.

 What am I missing here? What is IAB_PERMISSION_ERROR, code=4 ?

 Any help highly appreciated!

 Przemek


-- 
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] Navigation bar position

2012-08-16 Thread bfalk2
I am fairly new to Android from a development standpoint, and I have a question 
that I can't seem to find the answer for.  Where is the position of the 
navigation bar in ICS defined?  I have a system running that will only be in 
one position (landscape) with no sensor for orientation, but currently the nav 
bar is on the short side on the right (phone orientation) and I want to force 
it to be across the bottom (tablet orientation).  I started looking at the 
layout.xml in the SystemUI.apk, but that doesn't seem to be working for me.

Can someone point me in the right direction?

-- 
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] Default Voice Recorder

2012-08-16 Thread Ewerton Florencio
My Android is 2.2.1 and I want to open the voice recording app, I found it at 
App Manager from the Apps in the Settings menu, and I also opened the app 
when trying to upload a photo on imageshack.com, there was an option that I 
could open the voice recorder, but I want to know how can I open this app 
because it isn't on the main menu, neither on the shortcuts for apps, I really 
want to use the default voice recorder for android, so how can I open it or at 
least create a shortcut for this ?

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


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

2012-08-16 Thread Gopal

* Do you have used the sample programs? should they work?* 

Yes, I have used the sample programs in Eclipse and they worked out of the 
box for me.

I'm not having enough knowledge to say the cause of error you are getting. 
But it seems it is not finding the R (the resource class). You might have 
messed with something in the sample code? Or you can try to clean the 
project from Eclipse.

Good luck!




On Tuesday, August 14, 2012 7:08:17 AM UTC+5:30, augusto wrote:

 Thanks a lot, again,  for the answers. I have attached a bild with an 
 example of the problems. As you think, I suppose also, some libraries could 
 be missing in the environment of my eclipse. I hope, the graphic example is 
 enough to identify, what is missing.

 Do you have used the sample programs? should they work?

 Another question: are there other source of examples with simple code to 
 follow the programs?

 AUGUSTO



 El lunes, 13 de agosto de 2012 14:12:07 UTC-5, Kristopher Micinski 
 escribió:

 You'll have to provide some help, such as, what the errors are, 
 otherwise we have no idea where the error is coming from. 

 It's probably coming from your setup. 

 kris 

 On Mon, Aug 13, 2012 at 3:08 PM, augusto amer...@gmail.com wrote: 
  Thank you for your answer Justin. Please excuse my poor english 
  knowledments. 
  
  I want to use the examples to learn about Android programming. I have 
  installed the Samples for SDK of Android 4.1, 2.3.3 and 2.1. 
  
  As example, I have imported thecom.example.android.apis.Apidemos of 
  Android 4.1, but, if I want to run it is not posible, because it has a 
 lot 
  of errors. I don't know where is the problem; most of  examples that I 
 have 
  importes have similar problems. 
  
  Do you know where can I find other sample programms? 
  
  TIA, 
  
  AUGUSTO 
  
  
  El viernes, 10 de agosto de 2012 10:35:01 UTC-5, augusto escribió: 
  
  Where can I find examples for Android Programming, using Eclipse? 
  
  I have tried to install the Samples of the SDK, but it doesnt work 
  
  TIA, 
  
  Augusto 
  
  
  El viernes, 10 de agosto de 2012 10:35:01 UTC-5, augusto escribió: 
  
  Where can I find examples for Android Programming, using Eclipse? 
  
  I have tried to install the Samples of the SDK, but it doesnt work 
  
  TIA, 
  
  Augusto 
  



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

[android-developers] Multi lists in a single listview

2012-08-16 Thread Đức Lê
In a my music application, I have search function. When user submits a query, 
it will search for songs, albums and artists. The search result will display as 
follow:
Song:
   List of songs
Album:
   List of albums
Artist:
   List of artists
This is like search function in Google play music. After searching for days, 
I'm still a bit confused of what I have to do.  Any suggestion?
Thank you for reading.

-- 
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] Manage contacts from desktop application

2012-08-16 Thread Predrag Djordjievski
What would be the best approach for developing desktop application in .NET 
for managing contacts from Android phone?


-- 
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] Call intent not working with device screen off

2012-08-16 Thread Woopiedoo
We have an app that sends a Intent.ACTION_CALL from a service. This has 
been working fine.
But as of android 4.0.4 the call is not started if the device is in sleep 
mode with the screen black. Now the call is only triggered if you press a 
button on the phone so it goes out of sleep mode... why is this? And how do 
we fix it? It needs to be able to start calls even when you have the phone 
in your pocket and haven't been messing with it for awhile.

-- 
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] In App Billing Test User Question

2012-08-16 Thread Duong Nguyen
Do i need to setup a sandbox account to test my in-app billing? I've added 
the test account like the In-App billing docs wants but when I go to buy my 
product it prompts me for real credit card info, this is not what I want to 
do. I will be performing many purchase requests daily and I don't want this 
to go through my real CC. I don't understand the relationship between 
Google Wallet / Checkout / In-App Billing..

-- 
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: service dies without calling onDestroy()

2012-08-16 Thread Digipom
I got bitten by this the hard way. The official documentation on services 
doesn't have any warnings about this, so I figured onDestroy() was good 
enough. I had some audio shut down code in onDestroy() that wasn't getting 
called when the phone was being shut down, so I'd have a corrupt file 
because the MP4 file would not be properly finished by Android's 
MediaRecorder. 

What would you recommend as an ideal way to handle this? Trap the shut down 
intents? Unfortunately, it seems that won't handle other instances where 
the app might kill the service, though I do register it as a foreground 
service.

On Thursday, August 11, 2011 5:16:41 PM UTC-4, Mark Murphy (a Commons Guy) 
wrote:

 On Thu, Aug 11, 2011 at 4:58 PM, Mikael Kuisma kui...@ping.sejavascript: 
 wrote:
  System.exit()?

 No, a regular stopSelf() / IntentService should be fine.

  Since Android keeps the DVM around even after I terminate my
  services and activities, I thought it would be a nice place to store the
  state via a singelton object to save flash writes.

 As a cache, sure. Don't count on it though -- save your data before
 onHandleIntent() returns or you call stopSelf(). Static data members
 are *only* to be used as a cache.

  Users don't like sloppy developers who keep services in RAM for no
  good reason. Guess what? Users win.
 
  A good reason is to save unnecessary flash writes, wouldn't you say?

 Users don't notice unnecessary flash writes, assuming that they are
 done on a background thread. They do notice services running 24x7.
 Developers who create such everlasting services have harmed Android's
 reputation and spawned the creation of task killers and equivalent
 capabilities within the OS itself.

 You are welcome to write daemon processes that run forever on your 8GB
 RAM Web server. Please don't do it on a 192MB RAM phone.

  You have to know how long the next sleep will be, by definition.
  After all, you have to tell Android when to resume operation of your
  code, regardless of how you accomplish it (AlarmManager,
  Thread.sleep(), postDelayed(), etc.).
 
  I don't control the user, I'm sorry.

 Then who is calling set() on AlarmManager to trigger your PendingIntent?

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

 Android Training in Oslo: http://bit.ly/fjBo24



-- 
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] Galaxy Nexus JB OTA fails

2012-08-16 Thread David Ross
I reported this as an issue and I have done lots of googling but I have not 
found a satisfactory answer.
 
I work for a company that is using the Galaxy Nexus to deploy an 
application. We have literally hundreds of handsets.
 
With the roll-out of the Jelly Beans OTA update we are finding that roughly 
80% of our handsets fail to process the update. We are running stock 4.0.4 
and the handsets are not rooted, our app does nothing special to the system 
files.
 
This must be happening to thousands of ordinary phone users out there. We 
now have the pain of repeated notifications to install and we do not have a 
clean method yet to make these updates actually happen.
 
Has anyone else had this problem? Is google aware of it? Is there any 
advice on how we can get hundreds of handsets to accept the OTA update?
 

-- 
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] Unable to add product list to my android application

2012-08-16 Thread Oleg Pravdin
Hi,

I have created a Google checkout account but haven't verified my bank account 
yet. Also, I've uploaded an app. to Google Play with permission = billing. For 
some reason, I'm unable to view 'Add product list' link below my application 
name as mentioned in in-app developer guide.

Am I missing any step here?

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: How restore transaction in In-App Billing (Android) work?

2012-08-16 Thread NemoDo
I have finished this feature in my app. You should follow these steps to do 
it:

   1. Upload app to market with your real id list
   2. Purchase some of them
   3. Re install to run restore transaction
   4. All response from server will display in this function (NOTICE:  even 
   restore transaction or after purchase)

   @Override
   public void onPurchaseStateChange(PurchaseState 
purchaseState,
String itemId, int quantity, long purchaseTime, String 
developerPayload) {
Log.e(TAG, onPurchaseStateChange + itemId +  - );
if (Consts.DEBUG) {
Log.e(TAG, onPurchaseStateChange() itemId:  + itemId +  
+ purchaseState);}

   }
   //Do everything here: update database..
  }


  About restore transaction:
  @Override public void 
onRestoreTransactionsResponse(RestoreTransactions request,
ResponseCode responseCode) {}
  It just noticed for user know restore ok

 If you have any question, Contact me: docongba2...@gmail.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] Re: TTS / Jellybean

2012-08-16 Thread Luis Ibáñez
I have a problem with this solution, this 
isLanguageAvailable(Locale.getDefault()) always returns -2, I have tried 
also with Locale.ENGLISH, Locale.UK, Locale.US and always returns -2. 

I have tried to use TTS directly and is working, so it's installed, but 
isLanguageAvailable always returns -2.

-- 
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] Detach an App from Google Play

2012-08-16 Thread franc walter
Hello

I tried to ask this first in a Android forum for consumer with maybe only 
few developers, but I didn't get a qualified answer.
My question:

I want to detach an OpenSource app from Google Play so that I won't get any 
updates anymore.
Reason is, the app changed to an newer version which I don't like anymore. 
I just want to keep the old version, but each time I look into Google Play, 
I see that there is an update for this app, which is not only annoying but 
unhandy, when I want to update several other apps in one click.

Previously, when Google Play used to be Google Market, this was not a 
problem, with apps like Titanium I could detach apps from market. But since 
the informations of all my installed apps are stored on google play servers 
now, I have not anymore control over it.

I tried to rename the apk in /data/app/ folder, but this doesn't change 
anything.

Do I need to change something in the source and then compile the app? But 
what to change?
Somebody has a hint?

I am on SGS2 with OS 2.3.5 (root).

Kinds

frank


-- 
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] Jelly Bean OTA fails on Galaxy Nexus

2012-08-16 Thread David Ross


This is not a programming question per se, it is a question about how to 
get information from Google about Android.

The company I am working for has hundreds of Galaxy Nexus handsets which 
are used as the standard operating platform of a company specific app. The 
app is not important.

We have found that about 70% of the devices fail to install the standard 
OTA Jelly Beans update. We are running completely stock OS (4.0.4 ICS) and 
the devices are not rooted.

My questions are:

   1. Why does the OTA fail for completely standard builds? Factory reset 
   makes no difference.
   2. How can I get some idea as to why the OTA fails?
   3. Where does Google provide support for this situation?
   4. Can I disable the OTA updates? We are getting very frustrated with 
   the regular interruptions to normal service when the OTA notification pops 
   up no matter what the user is doing.
   5. Is there a Google web site that describes how to do the OS update 
   manually? Perhaps we can manually handle the hundreds of handsets, costing 
   us thousands of dollars in labour costs?

I have reported this to the code.google.com Android issues list, no 
response from that.

I tried to post a notice on Android Developers but the moderation process 
there seems to take four or more days, perhaps never.

This must be happening the thousands of non-developer users of the Galaxy 
Nexus, they can not be expected to hack their way around it. Where is the 
Google fix (or does Google simply not care?).

-- 
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] Negative Application review?

2012-08-16 Thread Eitan


Hi,

I have a paid app with over 2300 reviews, and overall score of 4.6!

I got about 2100 positive reviews (4 or 5 stars)

100 of 3 stars

and about 100 of negative ones(1 or 2 stars)

But in the last week, all the user can see is the negatives reviews, they 
are ALWES on the top 3 (that in the main page), and populate most of the 
first 2 reviews pages.

This thing severely damage my sales. I still getting lot of positive review 
but they push down to the back by the negatives ones (not helpful to 
anyone?) and I stick with negatives review.

The negatives review constantly refreshing, it’s not the same one, so it’s 
not a static case.

I don’t know if it’s a spam, I think most of them are legitimate response, 
but its seems very strange that they push high so fast and so constantly.

 Is it possible that someone is manipulating my app review (helpful \ 
unhelpful)? Do I have something to do about it?

 Thanks

Eitan

-- 
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] Regarding API MediaPlayer.setVideoScalingMode() in api level 16

2012-08-16 Thread Wendong
Hi All,

Has anyone tried this API when using software codec? I found that it's working 
fine when using hardware codec, but on software codec, the mode used is always 
VIDEO_SCALING_MODE_SCALE_TO_FIT, even I set the mode to 
VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING.

Is mode VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING not supported on software 
codec?

Thanks,
Wendong

-- 
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: Android SDK Manager Failed to fetch URL

2012-08-16 Thread Navneet Singh
Thanks Alexandra,
 
The information really helped.
 
I was facing this problem of SDK Manager not fetching the package list, 
since last 2 days.
 
Problem in my case was the proxy settings. Once the changed the proxy 
settings, it was done, without an issue.
 
Regards
Navneet

On Saturday, 23 July 2011 00:33:11 UTC+5:30, Alexandra Kulik wrote:

 Sometimes in the Android SDK Manager appear problems with updating the 
 installed package or with installing new packages and you can get 
 error: Failed to fetch URL 
 http://www.echobykyocera.com/download/echo_repository.xml/addon.xml, 
 reason: Server returned HTTP response code: 403 for URL: 
 http://www.echobykyocera.com/download/echo_repository.xml/addon.xml; 

 There are the several methods that maybe can help you: 

 1. Start SDK Manager with administrator privileges 
 (In Windows right click on SDK Manager.exe and select Run as 
 Administrator). 

 2. Maybe you need select HTTP instead of HTTPS 
 (Go to Settings and select Force https:// ... sources to be 
 fetchign using http:// ...). 

 3. If you have proxy-server you must specify it 
 (Go to Settings and insert your HTTP Proxy Server and HTTP Proxy 
 Port in appropriate cell). 

 4. Disable all antiviruses and firewalls or add Manager to the list of 
 exception.

-- 
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] offline mode for mapview

2012-08-16 Thread David Asher
Now that the Google Maps app is supporting offline tiles mode, will this 
feature be made available to the MapView object in the Android SDK? With 
the Nexus 7 having GPS but not cell service, offline maps will be a 
critical feature for apps such as tour guides. Is there a roadmap?

-- 
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] Keyboard listener should be activated after a count of input?

2012-08-16 Thread User1234
Hi all,
 
I want to set an listener in an activity, which only execute the code when 
all the 6 or 8 digits is typed in the editText field. 
I can use an keyboard listener, but this will be activated each time the 
user type in a single character. I want something more intelligent :) that 
only call the listener if the EditText field contains 6 digits(if possible 
6-8 digits).
 

-- 
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] Help me Android SDK Install, please!

2012-08-16 Thread AZ DEP
This trick does not work with Windows 7 64 bit.  How about a real fix?  
Need to get this installed if possible today.  Any help would be greatly 
appreciated.

Thanks,

AZ DEP


On Wednesday, August 8, 2012 1:37:54 PM UTC-7, TreKing wrote:

 On Wed, Aug 8, 2012 at 10:16 AM, TV ti...@k66.ru javascript: wrote:

 What should I do? 


 Press back, then forward again. No, seriously.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
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: InApp billing - always getting RESULT_ITEM_UNAVAILABLE

2012-08-16 Thread bharadwaj
u have publish the items u have put in the developer account but no need to
publish ur app.
also need to mention required permisssions in your manifest.the unique id
which u have given in for each item should be same as the id u are sending
to google while purchasing package.


On Tue, Aug 14, 2012 at 6:59 PM, Przemyslaw Wegrzyn
codepaint...@gmail.comwrote:

  Actually, I've just realized that Googl'e s InApp tutorial contradicts
 the documentation statement.

 Documentation states that:
 Note: You do not need to publish your application to do end-to-end
 testing. You only need to upload your application as a draft application to
 perform end-to-end testing.
 Make sure that you publish the items (the application can remain
 unpublished).

 However, above the inapp items list in the developer console I see the a
 message saying that I need to *publish the application itself* to make the
 items published, regardless of the individual item state.

 Which is true? Do I really need to publish my app to check InApps?!

 BR,
 Przemek



 On 08/14/2012 12:48 PM, Przemyslaw Wegrzyn wrote:

 Hi!

 I'm integrating InApp Billing functionality into my application. Testing
 with fake items e.g. android.test.purchased works fine, but trying to
 purchase any of my own items fails.

 I've double-checked the following:

 - signed application was uploaded to the publisher site, same APK
 installled on the device
 - all the inapp items were created
 - device runs Android 2.2.2, Google Play 3.7.15, and I have just
 factory-reseted it and assigned a brand new gmail account
 - the account is added as a test account on a publisher site

 Unfortunately, all I get is RESULT_ITEM_UNAVAILABLE. To make things more
 frustrating, I can see that the item was found on the server, as the
 billing popup dialog contains the item title/description that was entered
 on the publisher site!

 In the logs I can see the following messages from Finsky (replaced package
 name with xxx ,as I don't want to disclose it yet):

 08-14 12:46:03.312 D/Finsky  (  525): [7]
 MarketBillingService.getPreferredAccount: com.xxx.xxx: Account from first
 account.
 08-14 12:46:03.322 D/Finsky  (  525): [7]
 MarketBillingService.getPreferredAccount: com.xxx.xxx: Account from first
 account.
 08-14 12:46:03.513 D/Finsky  (  525): [1]
 SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update. Local Version
 [8013015] = Server Version [0]
 08-14 12:46:03.722 W/Finsky  (  525): [1] CarrierParamsAction.run: Saving
 carrier billing params failed.
 08-14 12:46:03.722 E/Finsky  (  525): [1] CarrierBillingUtils.isDcb30:
 CarrierBillingParameters are null, fallback to 2.0
 08-14 12:46:03.732 D/Finsky  (  525): [1] GetBillingCountriesAction.run:
 Skip getting fresh list of billing countries.
 08-14 12:46:03.742 E/Finsky  (  525): [1] CarrierBillingUtils.isDcb30:
 CarrierBillingParameters are null, fallback to 2.0
 08-14 12:46:03.752 D/Finsky  (  525): [1]
 CarrierProvisioningAction.shouldFetchProvisioning: Required
 CarrierBillingParams missing. Shouldn't fetch provisioning.
 08-14 12:46:03.752 D/Finsky  (  525): [1] CarrierProvisioningAction.run:
 No need to fetch provisioning from carrier.
 08-14 12:46:04.242 E/Finsky  (  525): [1] CheckoutPurchase.setError:
 type=IAB_PERMISSION_ERROR, code=4, message=null
 08-14 12:46:07.302 D/Finsky  (  525): [1]
 MarketBillingService.sendResponseCode: Sending response
 RESULT_ITEM_UNAVAILABLE for request 3209013950184753921 to com.xxx.xxx.

 What am I missing here? What is IAB_PERMISSION_ERROR, code=4 ?

 Any help highly appreciated!

 Przemek


  --
 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] Help me Android SDK Install, please!

2012-08-16 Thread Asheesh Arya
try to install jre6 for 32 bit and sdk also 32 bit!! then it work !

-- 
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] Detect scrolling stop and TableLayout updating

2012-08-16 Thread Иван Дунский


I have TableLayout in the ScrollView. I add items there in with the method:

private void appendRows(int start , int end) {
final TableLayout table = (TableLayout)findViewById(R.id.table);
for (int i=start; i=end; i++)
{ 
TableRow row = new TableRow(this); 

TextView idText = new TextView(this);

idText.setText(Integer.toString(forPrint.get(i).getOrderid()));

idText.setPadding(10, 0, 0, 20);
idText.setTextColor(Color.BLACK);
row.addView(idText);

TextView textOne = new TextView(this);
textOne.setText(forPrint.get(i).getTitle());
textOne.setSingleLine(false);
textOne.setPadding(15, 0, 0, 0);
textOne.setTextColor(Color.BLACK);
row.addView(textOne);

TextView textTwo = new TextView(this);
textTwo.setText(Float.toString(forPrint.get(i).getPrice()));
textTwo.setPadding(15, 0, 0, 0);
textTwo.setTextColor(Color.BLACK);
row.addView(textTwo);

 TextView textThree = new TextView(this);
 
textThree.setText(forPrint.get(i).getProcess_status().getProccessStatusTitle());
 textThree.setPadding(15, 0, 0, 0);
 textThree.setTextColor(Color.BLACK);
row.addView(textThree);

   table.addView(row, new TableLayout.LayoutParams()); 
   }
 }

I want to react on user's scroll action and update items in TableLayout 
corresponding to scroll events. For example it should be first 10 items of 
the list when user opens the activity. Then if he scroll down, it should be 
next 10 items of the list. If he scroll up - previous 10 items. I created 
such class for this:

class MyGestureListener extends SimpleOnGestureListener implements 
OnTouchListener
{

public boolean onScroll(MotionEvent e1, MotionEvent e2, float arg2,
float arg3) {
mIsScrolling = true;   
float pos = e2.getY() - e1.getY();
  if (pos0)
  {
  start +=10;
  end+=10;
  }
  else 
  {
  start -=10;
  end -=10;  

  }

   if (e2.getAction() == MotionEvent.ACTION_UP)
   {
   String message = Helo;
   Toast toast = Toast.makeText(getApplicationContext(), message, 
Toast.LENGTH_LONG);
toast.show();
   }
return true;
}

}

I want to react on scrolling events - detect pos variable after scrolling 
was stopped and update items in TableLayout correspondingly. I tried do it 
with

Scroller scroller = new Scroller(getApplicationContext());
scroller.isFinished();

But it detects very sensitivly and also when scrolling wasn't stopped. So 
works not properly. Also tried to make it with

  gestureListener = new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {

if (gestureDetector.onTouchEvent(event)){
Log.i(qew,qwe);
return true;}


if(event.getAction() == MotionEvent.ACTION_UP) {
 if(mIsScrolling ) 
 {
Log.d(qwe,OnTouchListener -- onTouch ACTION_UP);
mIsScrolling  = false;
handleScrollFinished();
  }

}

in my onCreate() method but in some reasons this method can't be called. I 
tried to put there simple Log.i(qew,qwe);

But it wasn't call. Tell how can I implement it. Appreciate 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

Re: [android-developers] Re: AVD is no launching in Ubuntu ICS

2012-08-16 Thread Rocky
when i'm running project, console saying that emulator 5554 is launching
.. but it is not launching at all.



On Wed, Aug 15, 2012 at 12:29 AM, coc_21 ccoly...@gmail.com wrote:

 What exactly is happening?


 On Tuesday, August 14, 2012 2:54:19 AM UTC-5, RKJ (Android developer)
 wrote:

 Hi All,

 is it any issue with ICS with Ubuntu to start emulator ?
 Same is working over Windows XM but not working in Ubuntu 10.5 above.

 Please suggest me .


 --
 Thanks  Regards

 Rakesh Kumar Jha

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

-- 
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: Instantiating (but not attaching!) a View from a non-UI thread

2012-08-16 Thread Kostya Vasilyev
2012/8/16 b0b pujos.mich...@gmail.com


 It seems that inflating views just isn't very fast, even with the binary
 XML format and stuff.


 Yes it can be very slow for complex layouts.


I wouldn't consider 8-10 views, times 7-8 list view items very complex.



 It is unfortunate that it is not safe to invoke the layout inflater  in a
 thread to preload the layout while displaying a loading screen ,


I suppose one could preload some views in advance on the UI thread, taking
10-15 ms here and there when noone's looking... but it's kind of unpleasant
to manage and wouldn't work in your case with the initial onCreate


 to avoid the black screen effect while the app is busy in onCreate()
 loading the layout.


I'm not getting the black screen, but the 150-200 ms is very noticeable
(the db query behind the list view runs on a worker thread and takes 10-20
ms -- these times are from when I update the adapter to when the list view
is done with its layout).

... except, well, on my app's initial screen when posting a dialog (the
changelog after a version update), which is kind of unpleasant too, will
need to look at that.

-- K

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

[android-developers] How to toggle the display of an activity dynamically

2012-08-16 Thread frantz lohier
Hello,

I'd like my activity to start without any display and, based on some
criteria/user preference, revert back to displaying a UI/dialogue when
onCreate() is called.

After some research on the web, I found that the application manifest can
be easily set to force a none display theme with '
android:theme=@android:style/Theme.NoDisplay ' - and effectively, my
activity starts and nothing gets displayed.

What is not obvious is how to force a theme from onCreate() that will allow
me to see dialogues.

I've tried forcing a time  with setTheme() from onCreate() with an opaque
background but it did not work.

It's as if there's is no window manager that was ever initialized when the
manifest is set to Theme.NoDisplay.

I'd appreciate if anyone could help!

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

Re: [android-developers] Re: AVD is no launching in Ubuntu ICS

2012-08-16 Thread fahad mullaji
First start AVD then run application on it

Thanks
Fahad Mullaji

On Thu, Aug 16, 2012 at 4:02 PM, Rocky rkjhaw1...@gmail.com wrote:


 when i'm running project, console saying that emulator 5554 is launching
 .. but it is not launching at all.



 On Wed, Aug 15, 2012 at 12:29 AM, coc_21 ccoly...@gmail.com wrote:

 What exactly is happening?


 On Tuesday, August 14, 2012 2:54:19 AM UTC-5, RKJ (Android developer)
 wrote:

 Hi All,

 is it any issue with ICS with Ubuntu to start emulator ?
 Same is working over Windows XM but not working in Ubuntu 10.5 above.

 Please suggest me .


 --
 Thanks  Regards

 Rakesh Kumar Jha

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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Android Developer, Trainer and Mentor
 Bangalore
 Skype - rkjhaw
 (O) +918050753516
 (R) +919886336619

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




-- 
Regards
Fahad Mullaji

-- 
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] Prevent garbage collection for Broadcast receiver that are dynamically registered

2012-08-16 Thread frantz lohier
Thank you Mark - this was never very clear in any of the books I've bought
regarding Android programming or on Android website unfortunately.

My next question is as follows:

I've listed a receiver in the manifest as suggested pointing to the
following definition:

public class TESTWAKEUP extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
   Intent rerun=new Intent(context,MyApp.class);
   rerun.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   rerun.putExtra(fromstaticreceiver, parameter);
   context.startActivity(rerun);
}
  }
   }

Now, for some reason, when my activity is brought back to the foreground by
the about receiver (which is triggered by a Service), it does not seem that
the extra parameter is ever receiver:

@Override
public void onCreate(Bundle savedInstanceState) //this is for MyApp
{
Intent argv=getIntent();
Bundle bundle = argv.getExtras();
String fromstaticreceiver=null;
if (bundle != null)
fromstaticreceiver = bundle.getString(fromstaticreceiver);
Log.d(here:, fromstaticreceiver= + fromstaticreceiver);
//always shows null for fromstaticreceiver

My question is:does getIntent() represent the argument of the intent that
originally started the activity or does it reflect intent in the system
that are forcing an activity to come to the foreground?

Many thanks for any feedback on this front.

Rdgs,


On Wed, Aug 15, 2012 at 9:43 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Aug 15, 2012 at 12:34 PM, frantz lohier floh...@gmail.com wrote:
  Question: is there a way to ensure that receiver are programmatically
  registered at run-time are not deallocated when an app goes in
 background?

 IMHO, a better implementation would be to register the receiver in the
 manifest, then use PackageManager and setComponentEnabledSetting() to
 control when it should and should not receive broadcasts. IMHO, a
 receiver registered via registerReceiver() from an activity should
 only be used for broadcasts while the activity is in the foreground.

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

 _The Busy Coder's Guide to Android Development_ Version 4.0 Available!

 --
 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] Disabling wifi, GPS, Bluetooth, and celluar in an app

2012-08-16 Thread Jose_GD
Then your answer should be How do I put a phone in airplane mode 
programatically?

El jueves, 16 de agosto de 2012 03:26:15 UTC-3, Jason Hsu escribió:

 I know I can go into airplane mode, but I want to give the user the option 
 of conserving the battery AFTER starting the app by providing in-app 
 buttons.


-- 
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] Prevent garbage collection for Broadcast receiver that are dynamically registered

2012-08-16 Thread Mark Murphy
On Thu, Aug 16, 2012 at 7:26 AM, frantz lohier floh...@gmail.com wrote:
 Thank you Mark - this was never very clear in any of the books I've bought
 regarding Android programming or on Android website unfortunately.

Books and documentation cannot possibly cover the infinite variations
of applications and the ways that they are assembled.

 My question is:does getIntent() represent the argument of the intent that
 originally started the activity

I would phrase it as the one that originally created the activity.

 or does it reflect intent in the system that
 are forcing an activity to come to the foreground?

No. I think that you will be called with onNewIntent() in this case,
instead of onCreate(), and the Intent supplied to onNewIntent() will
be the one used by your startActivity() from the BroadcastReceiver. I
have not tried this in conjunction with a BroadcastReceiver and
FLAG_ACTIVITY_NEW_TASK -- at least not recently -- and so I am not
100% certain about onNewIntent() for your scenario.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Re: service dies without calling onDestroy()

2012-08-16 Thread Mark Murphy
On Thu, Aug 9, 2012 at 11:23 AM, Digipom digi...@gmail.com wrote:
 I got bitten by this the hard way. The official documentation on services
 doesn't have any warnings about this, so I figured onDestroy() was good
 enough. I had some audio shut down code in onDestroy() that wasn't getting
 called when the phone was being shut down, so I'd have a corrupt file
 because the MP4 file would not be properly finished by Android's
 MediaRecorder.

 What would you recommend as an ideal way to handle this? Trap the shut down
 intents?

If by that you mean register a BroadcastReceiver from the service for
ACTION_SHUTDOWN, that's certainly worth a shot.

 Unfortunately, it seems that won't handle other instances where the
 app might kill the service, though I do register it as a foreground service.

Not everything is designed to be used indefinitely by a service.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


[android-developers] How to implement actiobar drawers?

2012-08-16 Thread Alexey Zakharov
There is Drawers section inside ActionBar guidelines 
http://developer.android.com/design/patterns/actionbar.html

How actionbar drawer should be implemented?

--
Alexey

-- 
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 toggle the display of an activity dynamically

2012-08-16 Thread Mark Murphy
On Thu, Aug 16, 2012 at 7:08 AM, frantz lohier floh...@gmail.com wrote:
 I'd like my activity to start without any display and, based on some
 criteria/user preference, revert back to displaying a UI/dialogue when
 onCreate() is called.

Have two activities. One is the Theme.NoDisplay one, and it examines
some criteria/user preference. If those factors indicate a UI is
called for, it starts the second activity and finishes itself. If not,
it proceeds as normal.

You can see an example of that here:

https://github.com/commonsguy/cw-omnibus/tree/master/Maps/NooYawkMapless

The Theme.NoDisplay one checks to see if MapActivity is available. If
it is, it starts up a MapActivity, then finishes. If not, it displays
a Toast, then finishes.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] How to implement actiobar drawers?

2012-08-16 Thread Mark Murphy
On Thu, Aug 16, 2012 at 7:59 AM, Alexey Zakharov
alexey.v.zaha...@gmail.com wrote:
 There is Drawers section inside ActionBar guidelines
 http://developer.android.com/design/patterns/actionbar.html

 How actionbar drawer should be implemented?

There are one or two open source solutions floating about (at least
one in GitHub), possibly under the name ribbon (what many in the
Android ecosystem had settled upon as a name). I am not aware that any
open source solution has achieved significant traction yet. There is
nothing in the Android SDK or Support package for this, at least as
yet.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] offline mode for mapview

2012-08-16 Thread Mark Murphy
On Thu, Aug 9, 2012 at 2:13 PM, David Asher dja.as...@gmail.com wrote:
 Now that the Google Maps app is supporting offline tiles mode, will this
 feature be made available to the MapView object in the Android SDK?

Conceivably, but the Maps SDK add-on has not been changed for years.

 Is there a roadmap?

Yes. And, if you get a job with Google and join the Android or Maps
teams, you might even be able to find out what is on the roadmap.
Otherwise, you will find out when the rest of us find out, which is
when that feature is released (or the heat death of the universe,
whichever comes first). Very little is published publicly in the way
of roadmaps.

I would encourage anyone interested in offline maps to ignore Google
Maps for the time being and focus on something else, such as
OpenStreetMap.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Re: AVD is no launching in Ubuntu ICS

2012-08-16 Thread Rocky
I did, from AVD manager, I started, for that also emulator is not comming.

I heart that it is open issue in google with ICS and Ubuntu.



On Thu, Aug 16, 2012 at 4:54 PM, fahad mullaji fahadmull...@gmail.comwrote:

 First start AVD then run application on it

 Thanks
 Fahad Mullaji


 On Thu, Aug 16, 2012 at 4:02 PM, Rocky rkjhaw1...@gmail.com wrote:


 when i'm running project, console saying that emulator 5554 is launching
 .. but it is not launching at all.



 On Wed, Aug 15, 2012 at 12:29 AM, coc_21 ccoly...@gmail.com wrote:

 What exactly is happening?


 On Tuesday, August 14, 2012 2:54:19 AM UTC-5, RKJ (Android developer)
 wrote:

 Hi All,

 is it any issue with ICS with Ubuntu to start emulator ?
 Same is working over Windows XM but not working in Ubuntu 10.5 above.

 Please suggest me .


 --
 Thanks  Regards

 Rakesh Kumar Jha

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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Android Developer, Trainer and Mentor
 Bangalore
 Skype - rkjhaw
 (O) +918050753516
 (R) +919886336619

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




 --
 Regards
 Fahad Mullaji


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




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

-- 
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] Detach an App from Google Play

2012-08-16 Thread Mark Murphy
On Sat, Aug 11, 2012 at 7:45 AM, franc walter francwal...@gmail.com wrote:
 Do I need to change something in the source and then compile the app?

Yes.

 But what to change?

The package name, everywhere it appears:

- in the manifest
- in the source code (directories and package statements at the top of
the files)
- in the resources (particularly layouts might have reference to
custom attributes)
- etc.

Since you say that this app is open source, that should be doable, as
a fork of the relevant release of that project.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Re: InApp billing - always getting RESULT_ITEM_UNAVAILABLE

2012-08-16 Thread Przemyslaw Wegrzyn
On 08/16/2012 12:19 PM, bharadwaj wrote:
 u have publish the items u have put in the developer account but no
 need to publish ur app.
That's exactly what I've done.
 also need to mention required permisssions in your manifest.
I have all the necessary permissions configured.
My public key is OK, my test account is configured, device was
factory-reseted...

What makes me wonder: does it matter the account I used the upload
belongs to 2 developer profiles (I have my own + I was added to mu
customer's one, where I uploaded the test app).

I'm gonna check this with the demo application today.

 the unique id which u have given in for each item should be same as
 the id u are sending to google while purchasing package.
It is the same - purchase pop-up windows shows valid item
title/descriptions, so it can see the item on the server side.

I'm nearly sure it is some google-side quirk. Googling around I've found
a few similar cases, e.g. here:
http://stackoverflow.com/questions/11020587/in-app-billing-item-requested-not-available-for-purchase
See the longest answer, point 4.

BR,
Przemek


-- 
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] My package is not visible in framework base

2012-08-16 Thread Mark Murphy
On Mon, Aug 13, 2012 at 2:49 AM, arun singh arun01.allaha...@gmail.com wrote:
 I am compiling source code for sdk (make sdk).

That has nothing to do with this list. Please visit
http://source.android.com to learn more about the Android source code,
including finding lists that might be relevant to your question.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] OpenGL using multiple classes

2012-08-16 Thread Satya Komatineni
Hopefully you have a good reason to structure  your classes they way
you have done.

To start BlaRenderer is a proper derived class that will get called.
So this is a concrete class by itself.

Number 2, the player class looks more like a utilitiy class and hence
doesn't need to derive from BlaRenderer. In your code I don't see the
Player class playing the role of a renderer.

Number 3, BlaRenderer has a local variable pointing to a Player class.
So the variables of Player class are physically separate from the
variables of BlaRenderer. if your intention is to have the Player as a
utility class, then

1. Don't inherit from Renderer
2. Remove the local variables in the BlaRenderer which are now
controlled by Renderer

Hope that helps
http://satyakomatineni.com/android/training
http://satyakomatineni.com
http://androidbook.com
http://twitter.com/SatyaKomatineni


On Wed, Aug 15, 2012 at 8:37 PM, Braindrool cawehk...@gmail.com wrote:
 I've been programming for years, but I have very little experience with 3D
 graphics. I thought OpenGL would be the most efficient in this project. It's
 coming along alright, I am still studying the API and documentation. But I
 have encountered a problem using multiple classes. For instance, here I try
 to use a separate class for the player model. (Yes, currently it's just a
 cube.)

 Renderer:

 Code:

 package com.braindrool.bla;

 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.FloatBuffer;
 import java.nio.ShortBuffer;

 import javax.microedition.khronos.egl.EGLConfig;
 import javax.microedition.khronos.opengles.GL10;

 import android.opengl.GLSurfaceView.Renderer;

 public class BlaRenderer implements Renderer {

   int nrOfVertices;
   float A;
   Player player = new Player();

   public void onSurfaceCreated(GL10 gl, EGLConfig config) {
   // TODO Auto-generated method stub

   gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
   gl.glEnableClientState(GL10.GL_COLOR_ARRAY);

   gl.glEnable(GL10.GL_CULL_FACE);

   gl.glFrontFace(GL10.GL_CCW);
   gl.glCullFace(GL10.GL_BACK);

   gl.glClearColor(0.3f, 0.8f, 0.9f, 1);

   //  initTriangle();
   player.initPlayer();

   }

   public void onDrawFrame(GL10 gl) {
   // TODO Auto-generated method stub

   

   gl.glLoadIdentity();

   gl.glClear(GL10.GL_COLOR_BUFFER_BIT);

   // gl.glRotatef(A * 2, 1f, 0f, 0f);
   // gl.glRotatef(A, 0f, 1f, 0f);
   //
   // gl.glColor4f(0.5f, 0, 0, 1);

   gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
   gl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);
   gl.glDrawElements(GL10.GL_TRIANGLES, nrOfVertices,
   GL10.GL_UNSIGNED_SHORT, indexBuffer);
   // A++;

   }

   public void onSurfaceChanged(GL10 gl, int width, int height) {
   // TODO Auto-generated method stub
   gl.glViewport(0, 0, width, height);

   }

   private FloatBuffer vertexBuffer;
   private ShortBuffer indexBuffer;

   private FloatBuffer colorBuffer;

   private void initTriangle() {

   float[] coords = { 0, 0.5f, 0, -0.5f, -0.5f, 0.5f, 0.5f, -0.5f, 
 0.5f,
   0, 0, -0.5f };

   nrOfVertices = coords.length;

   ByteBuffer vbb = ByteBuffer.allocateDirect(nrOfVertices * 3 * 
 4);
   vbb.order(ByteOrder.nativeOrder());
   vertexBuffer = vbb.asFloatBuffer();

   ByteBuffer ibb = ByteBuffer.allocateDirect(nrOfVertices * 2);
   ibb.order(ByteOrder.nativeOrder());
   indexBuffer = ibb.asShortBuffer();

   ByteBuffer cbb = ByteBuffer.allocateDirect(4 * nrOfVertices * 
 4);
   cbb.order(ByteOrder.nativeOrder());
   colorBuffer = cbb.asFloatBuffer();

   float[] colors = { 1f, 0f, 0f, 1f, // point 1
   0f, 1f, 0f, 1f, // point 2
   0f, 0f, 1f, 1f, // point 3
   };

   short[] indices = new short[] {
   // indices
   0, 1, 2, 0, 2, 3, 0, 3, 1, 3, 1, 2

   };

   vertexBuffer.put(coords);
   indexBuffer.put(indices);
   colorBuffer.put(colors);

   vertexBuffer.position(0);
   indexBuffer.position(0);
   colorBuffer.position(0);

   }

 }

 And now the player class.

 Code:

 package com.braindrool.bla;

 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.FloatBuffer;
 import java.nio.ShortBuffer;

 import javax.microedition.khronos.egl.EGLConfig;
 import javax.microedition.khronos.opengles.GL10;

 public class Player extends BlaRenderer{

   

[android-developers] Problem in larger xml parsing with SOAP web service

2012-08-16 Thread Rajan
i am trying to fetch the record from the SOAP web service but due to larger 
xml size i didn't get the proper output, 
here i'm putting my code as well as logcat entry.


**
*CODE (SoapHTTPPostActivity.java)*
**
public class SoapHTTPPostActivity extends Activity
{
private XMLGettersSetters data;
//private XML_DOM_Parser xml_dom_parser=null;
private ListView list=null;
private TextView selection=null;
private ArrayListArrayListString masterData=new 
ArrayListArrayListString();
//private String URL = 
http://pro.bookadspace.com/WebServices/BAAccountService.asmx;;
private ProgressDialog dialog=null;
private String TAG=SOAP;
@Override
public void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
list=(ListView)findViewById(R.id.list);
selection=(TextView)findViewById(R.id.selection);
FetchRecord fetchRecord=new FetchRecord();
fetchRecord.execute();
}


public class FetchRecord extends AsyncTaskString, 
ArrayListArrayListString, ArrayListArrayListString
{
String xml = ?xml version=\1.0\ encoding=\utf-8\?+
soap:Envelope xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\; 
xmlns:xsd=\http://www.w3.org/2001/XMLSchema\; 
xmlns:soap=\http://schemas.xmlsoap.org/soap/envelope/\;+
  soap:Body+
GetAllAdspacesByBusiness xmlns=\http://tempuri.org/\;+
  businessID+55+/businessID+
/GetAllAdspacesByBusiness+
  /soap:Body+
/soap:Envelope;
 @Override
protected void onPreExecute() 
{
super.onPreExecute();
//xml_dom_parser=new XML_DOM_Parser();
dialog = ProgressDialog.show(SoapHTTPPostActivity.this, Downloading, 
Loading. Please wait..., true);
}
@Override
protected ArrayListArrayListString doInBackground(String... params) 
{
String request = String.format(xml);
HTTPOST httpost = new HTTPOST();
String 
xmlResult=httpost.getResponseByFile(http://pro.bookadspace.com/WebServices/BAAccountService.asmx,request);
 InputStream in=new ByteArrayInputStream(xmlResult.getBytes());
try
{
 InputSource is=new InputSource(in);
//-
 SAXParserFactory saxPF = SAXParserFactory.newInstance();
SAXParser saxP = saxPF.newSAXParser();
XMLReader xmlR = saxP.getXMLReader();
 
 URL url = new 
URL(http://pro.bookadspace.com/WebServices/BAAccountService.asmx;); // URL 
of the XML
 
 XMLHandler myXMLHandler = new XMLHandler();
xmlR.setContentHandler(myXMLHandler);

//  Facing Exception 
  
xmlR.parse(is);

 //  Exception 
}
catch(Exception e)
{
 Log.d(TAG,++ Catch : +e.toString());
}
//data = new XMLGettersSetters();

//=
 return null;
}
@Override
protected void onPostExecute(ArrayListArrayListString result) 
{
//super.onPostExecute(result);
dialog.dismiss();
 for(int i=0;idata.getId().size();i++)
{
 Log.d(SAX,+-+-+-+-+-+-- Id : +data.getId());
 Log.d(SAX,+-+-+-+-+-+-- Name: +data.getAdName());
 Log.d(SAX,+-+-+-+-+-+-- Address : +data.getAddress());
}
Log.d(SOAP,**+-// Finish Successfully **+-//);
 //list.setAdapter(new ArrayAdapterString(getApplicationContext(), 
android.R.layout.simple_list_item_1,result.get(0)));
}
}
}

**
*CODE (HTTPPOST.java)*
**
public class HTTPOST 
{
public String getResponseByFile(String URL,String xml)
{
HttpPost httpPost = new HttpPost(URL);
String response_string = null;
try 
{
StringEntity ent=new StringEntity(xml,UTF-8);
httpPost.setHeader(Content-Type,text/xml;charset=UTF-8);
httpPost.setEntity(ent);
HttpClient client = new DefaultHttpClient(); 
 HttpResponse response = client.execute(httpPost); 
 response_string = EntityUtils.toString(response.getEntity());
//Log.d(SOAP,+ Response : +response_string);
}
catch (Exception e) 
{
e.printStackTrace();
}
return Html.fromHtml(response_string).toString();
}
}

**
*LogCat*
**

D/dalvikvm(1260): GC_FOR_MALLOC freed 10803 objects / 490816 bytes in 63ms
08-16 19:13:38.885: D/SOAP(1260): 

++ *Catch : org.apache.harmony.xml.ExpatParser$ParseException: At 
line 1, column 0: syntax error*

08-16 19:13:38.885: D/AndroidRuntime(1260): Shutting down VM

08-16 19:13:38.885: W/dalvikvm(1260): threadid=1: thread exiting with 
uncaught exception (group=0x4001d800)

08-16 19:13:38.895: E/AndroidRuntime(1260): FATAL EXCEPTION: main

*08-16 19:13:38.895: E/AndroidRuntime(1260): java.lang.NullPointerException*
*
*
*08-16 19:13:38.895: E/AndroidRuntime(1260): at 
com.simform.adspacesoapparsing.SoapHTTPPostActivity$FetchRecord.onPostExecute(SoapHTTPPostActivity.java:113)
*
*
*
*08-16 19:13:38.895: 

[android-developers] Changing whitelisted C2DM email address

2012-08-16 Thread Android Developer
Hi,

I have android application that is in play store. Application has C2DM push
notification feature and i used *accou...@test.com* as a whitelisted email
address. Now i need to change to *accou...@test.com*. If i change it to new
one and push it to play store then what will be the side effects?

1. If the enduser update the app does it switch to new whitelist email
address and notification will work as expected?
2. If the user does not update then no notification to them.
3. Is there any issues for changing one account to another?



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: android gps location problem

2012-08-16 Thread bob
Check your minTime and minDistance here:

public void requestLocationUpdates (String provider, long minTime, float 
minDistance, LocationListener listener, Looperlooper)


On Thursday, August 16, 2012 4:58:34 AM UTC-5, suresh wrote:

 Dear Friends

 Am developing gps application. my requirements are the app should send 
 location continuously for every 10 min to server. but its working for some 
 time after that its keep sending same location even though the mobile is 
 located in different place.

 please can any one suggest me regarding this.

 Thanks
 Suresh


-- 
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: service dies without calling onDestroy()

2012-08-16 Thread Digipom Inc.
On Thu, Aug 16, 2012 at 7:57 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Aug 9, 2012 at 11:23 AM, Digipom digi...@gmail.com wrote:
  I got bitten by this the hard way. The official documentation on services
  doesn't have any warnings about this, so I figured onDestroy() was good
  enough. I had some audio shut down code in onDestroy() that wasn't
 getting
  called when the phone was being shut down, so I'd have a corrupt file
  because the MP4 file would not be properly finished by Android's
  MediaRecorder.
 
  What would you recommend as an ideal way to handle this? Trap the shut
 down
  intents?

 If by that you mean register a BroadcastReceiver from the service for
 ACTION_SHUTDOWN, that's certainly worth a shot.


I hooked onto this as well as the HTC equivalent, and it seems to work. I
opened a bug against the documentation for onDestroy(), and it's been filed
for a future release.



  Unfortunately, it seems that won't handle other instances where the
  app might kill the service, though I do register it as a foreground
 service.

 Not everything is designed to be used indefinitely by a service.


It's hard to think of something more suited to a service than recording in
the background.

However, with foreground mode + the broadcast receiver for shut down, this
captures most of the cases. At least on newer versions of Android, I
haven't seen it kill the service otherwise. I suppose it's still possible
which is really unfortunate, because MP4 and 3GP files that haven't been
terminated properly are a pain to repair. WAVE on the other hand is no big
deal.

For anyone else reading this, it also seems that Android's media recorder
is not smart enough to terminate the file if it runs out of disk space, so
you'll also need to filestat the file and make sure you're not dangerously
low on free space remaining.



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://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




-- 
-- 
Digipom
http://www.digipom.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

Re: [android-developers] Re: service dies without calling onDestroy()

2012-08-16 Thread Mark Murphy
On Thu, Aug 16, 2012 at 10:19 AM, Digipom Inc. digi...@gmail.com wrote:
 Not everything is designed to be used indefinitely by a service.

 It's hard to think of something more suited to a service than recording in
 the background.

You presume that recording in the background is part of the expected
use cases for MediaRecorder.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


[android-developers] Eclipse Config of ADT

2012-08-16 Thread kenshort
I am setting up the Android SDK and I've gotten to the Eclipse Config of 
ADT.  I am following these steps from the setup guide:
 

After you've installed ADT and restarted Eclipse, you must specify the 
location of your Android SDK directory:

   1. Select *Window*  *Preferences...* to open the Preferences panel (on 
   Mac OS X, select *Eclipse*  *Preferences*).
   2. Select *Android* from the left panel.
   
   You may see a dialog asking whether you want to send usage statistics to 
   Google. If so, make your choice and click *Proceed*.
   3. For the *SDK Location* in the main panel, click *Browse...* and 
   locate your downloaded Android SDK directory (such as android-sdk-windows
   ).
   4. Click *Apply*, then *OK*.

* * * 
 
When I do this step I get this message:
 
Could not find C:\Program Files\Android\tools\adb.exe!
 
I checked C:\Program Files\Android\tools\ for adb.exe and found a file 
named adb_has_moved.txt that says ABD has moved to the \platform-tools 
folder.  Anyone have this problem and know how to fix?
 
kenshort
 
 
 
 
 

-- 
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 make an Android Spinner with initial text “Select One”

2012-08-16 Thread Heitor Lima
In Android, I want to use a Spinner that initially (when the user has not
made a selection yet) displays the text Select One. When the user clicks
the spinner, the list of items is displayed and the user selects one of the
options. After the user has made a selection, the selected item is
displayed in the Spinner instead of Select One.

I have the following code to create a Spinner:

String[] items = new String[] {One, Two, Three};
Spinner spinner = (Spinner) findViewById(R.id.mySpinner);
ArrayAdapterString adapter = new ArrayAdapterString(this,
android.R.layout.simple_spinner_item, items);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);

With this code, initially the item One is displayed. I could just add a
new item Select One to the items, but then Select One would also be
displayed in the dropdown list as first item, which is not what I want.

Any ideas? 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: Input transport and input dispatcher error on 2.3

2012-08-16 Thread Jayesh
I am also facing similar problem;
Device: Galaxy S3, Samsung Rugby, Samsung skyrocket

Scenario: Random; while navigating from one activity to other.
 

08-01 14:04:34.122: E/InputTransport(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' consumer ~ Error -1 pinning ashmem fd 
70.
08-01 14:04:34.122: W/InputQueue-JNI(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' ~ Failed to consume input event.  
status=-2147483648
08-01 14:04:34.132: E/InputTransport(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' consumer ~ Error -1 pinning ashmem fd 
70.
08-01 14:04:34.132: W/InputQueue-JNI(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' ~ Failed to consume input event.  
status=-2147483648
08-01 14:04:34.142: E/InputTransport(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' consumer ~ Error -1 pinning ashmem fd 
70.
08-01 14:04:34.142: W/InputQueue-JNI(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' ~ Failed to consume input event.  
status=-2147483648
08-01 14:04:34.152: E/InputTransport(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' consumer ~ Error -1 pinning ashmem fd 
70.
08-01 14:04:34.152: W/InputQueue-JNI(6669): channel '42eb8978 
xx.xx.xx.xx/com.xxx.XXActivity (client)' ~ Failed to consume input event.  
status=-2147483648


On Monday, 23 May 2011 09:11:12 UTC+5:30, wang  wrote:
 Hi,
 
 
 
 I run into many applications in the Android 2.3, but when every time I
 
 perform to a certain program, the following error sometimes occurs:
 
 
 
 05-20 16:43:57.714 E/InputTransport(  102): channel '40540858
 
 com.android.test/com.abdroid.test.Test1 (server)' publisher ~ Error -1
 
 pinning ashmem fd 0.
 
 
 
 
 
 05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
 
 com.android.test/com.abdroid.test.Test1 (server)' ~ Could not publish
 
 key event, status=-2147483648
 
 
 
 
 
 05-20 16:43:57.714 E/InputDispatcher(  102): channel '40540858
 
 com.android.test/com.abdroid.test.Test1 (server)' ~ Channel is
 
 unrecoverably broken and will be disposed!
 
 
 
 
 
 Can tell me in what circumstances would cause such a result?

-- 
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: frame buffer data in android

2012-08-16 Thread Herditya
Hi Niraj.

Can you send me C code to read framebuffer data? I also appreciate if you 
send me complete Android project just to demonstrate how to call those C 
code via JNI.

Thank you.

On Tuesday, December 15, 2009 12:24:32 PM UTC+7, Niraj wrote:

 Hi, 

 I am collecting framebuffer data directly from /dev/graphics/fb0. 
 This way works properly while working with android emulator. 

 I am using C code for this purpose, as I didn't get any functionality 
 in java to read framebuffer directly. 
 And I am using JNI to call this C function in Android. 

 If you need the C code for reading framebuffer data, I can directly 
 mail you. 

 On Dec 14, 6:35 pm, yog usb...@gmail.com wrote: 
  Hi all, 
  
  Iam working on Android frame buffer, I want to collect the frame 
  buffer data and dispaly it. can any one tell me,  from where i can 
  collect the data, Is it from surface flinger? Is there any way that i 
  can collect it from HAL (Hardware abstraction layer) too. 
  
  Thanks in advance 
  yog 


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

Re: [android-developers] Canvas or Gesture??

2012-08-16 Thread John Archer
Thanks all for the efforts Robin  et. al.,

I am trying to so something very similar - create a signature page.

Did you figure what was missing to get the erase and properly saved image 
here?

thanks
john


On Wednesday, February 16, 2011 1:17:15 PM UTC-6, Robin Talwar wrote:

 Alright

 So now i have 2 classes in my application.
 the one is the custom view extending view and has all touch events on key 
 down and on key up.
 This view is being called in my main.xml through the package name.
 The other one is my main class which has the code to call options menu.
 One menu item is Save and if user clicks on it the bitmap image created by 
 the custom view is to be saved .
 It is actually getting saved but it is showing just the background not the 
 changed bitmap image through the touch of the user.

 The custom view code is exactly the same as the FingerPaint class file in 
 api demos 

 The only thing where i am getting stuck is now how to save the changed 
 bitmap image which is created by the users touch i can save the initial one 

 The code of main class file is :-
 package org.testCircle;

 import android.app.Activity;
 import android.graphics.Bitmap;
 import android.graphics.Canvas;
 import android.os.Bundle;
 import android.provider.MediaStore.Images;
 import android.view.Menu;
 import android.view.MenuItem;
 import android.widget.TextView;
 import android.widget.Toast;

 public class testCircle extends Activity {
 TextView tv;
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 //setContentView(new customView(this));
 setContentView(R.layout.main);
 }
 public boolean onCreateOptionsMenu(Menu menu) {
 super.onCreateOptionsMenu(menu);
 
 menu.add(0, 1, 0, save).setShortcut('3', 'c');
 return true;
 }
 public boolean onPrepareOptionsMenu(Menu menu) {
 super.onPrepareOptionsMenu(menu);
 return true;
 }
 
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
 switch (item.getItemId()) {
 case 1:
 //new ColorPickerDialog(this, this, mPaint.getColor()).show();
 fingerPaint cv = new fingerPaint(this);
 Bitmap viewBitmap = Bitmap.createBitmap(cv.getWidth(), 
 cv.getHeight(),Bitmap.Config.ARGB_);
 Canvas canvas = new Canvas(viewBitmap);
 cv.draw(canvas);
 String url = Images.Media.insertImage(getContentResolver(), 
 viewBitmap, title, null);
 Toast.makeText(testCircle.this, url, Toast.LENGTH_LONG).show();
 return true;
 }
 return super.onOptionsItemSelected(item);
 }
 }


 and the Custom View is 

 package org.testCircle;

 import android.content.Context;
 import android.graphics.Bitmap;
 import android.graphics.Canvas;
 import android.graphics.Paint;
 import android.graphics.Path;
 import android.util.AttributeSet;
 import android.view.MotionEvent;
 import android.view.View;

 public class fingerPaint extends View {
 Paint mPaint;
 
 private static final float MINP = 0.25f;
 private static final float MAXP = 0.75f;
 
 private static Bitmap  mBitmap;
 private Canvas  mCanvas;
 private PathmPath;
 private Paint   mBitmapPaint;
 
 public fingerPaint(Context c) {
 super(c);
 mPaint = new Paint();
 mPaint.setAntiAlias(true);
 mPaint.setDither(true);
 mPaint.setColor(0x);
 mPaint.setStyle(Paint.Style.STROKE);
 mPaint.setStrokeJoin(Paint.Join.ROUND);
 mPaint.setStrokeCap(Paint.Cap.ROUND);
 mPaint.setStrokeWidth(12);
 mBitmap = Bitmap.createBitmap(320, 480, Bitmap.Config.ARGB_);
 mCanvas = new Canvas(mBitmap);
 mPath = new Path();
 mBitmapPaint = new Paint(Paint.DITHER_FLAG);
 }
 
 public fingerPaint(Context c , AttributeSet attrs){
 super(c , attrs);
  mPaint = new Paint();
  mPaint.setAntiAlias(true);
  mPaint.setDither(true);
  mPaint.setColor(0x);
  mPaint.setStyle(Paint.Style.STROKE);
  mPaint.setStrokeJoin(Paint.Join.ROUND);
  mPaint.setStrokeCap(Paint.Cap.ROUND);
  mPaint.setStrokeWidth(12);
  mBitmap = Bitmap.createBitmap(320, 480, Bitmap.Config.ARGB_);
  mCanvas = new Canvas(mBitmap);
  mPath = new Path();
  mBitmapPaint = new Paint(Paint.DITHER_FLAG);
 }
 
 public void onerase(){
 mCanvas=null;
 }

 @Override
 protected void onSizeChanged(int w, int h, int oldw, int oldh) {
 super.onSizeChanged(w, h, oldw, oldh);
 }
 
 @Override
 protected void onDraw(Canvas canvas) {
 canvas.drawColor(0xFFAA);
 
 canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);
 
 

[android-developers] 301 Error

2012-08-16 Thread Jacques Deschenes
I am unable to update my Android 2.2 because of this error. Can you provide 
a solution or better still can I get a newer version that I can download to 
a usb and overwrite this one please?
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 make updates to my app at store and alert users about new updates?

2012-08-16 Thread Hady Abd alkhalik
hi all,
how can i  add any updates to my published application at google play and 
inform mobiles which installed before my app about new updates?
thanks all

-- 
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 me Android SDK Install, please!

2012-08-16 Thread HardipPatel


On Wednesday, 8 August 2012 20:46:19 UTC+5:30, TV wrote:

 I can not install Android SDK (see Android_SDK.jpg). I have already 
 installed the Java SDK (see Java.jpg). What should I do?




Hey you installed java in system32,
try to install it in Program files then run the android_sdk installer.

-- 
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] List View View Replicated when scrolling down and movie the stroller towards to up.

2012-08-16 Thread Gourab Singha
List View View Replicated when scrolling down and movie the stroller 
towards to up.   How i Solve this

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

[android-developers] Why does prefetcher service keeps running

2012-08-16 Thread Saud
I dont want to prefetch anything and the maps prefetcher service keeps
coming back. It happens since I updated the maps app. Why the hell
there is no option in the maps to stop prefetching the data.

-- 
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 check bug id on git log

2012-08-16 Thread Danny Hsu
Dear all,

When I check the commit id 503d6a44a8193d8111eba393651dcb522cc1cf87, it 
shows:

commit 503d6a44a8193d8111eba393651dcb522cc1cf87
Author: Craig Mautner cmaut...@google.com
Date:   Mon Jun 25 11:13:24 2012 -0700

DO NOT MERGE Set force hiding differently

Only force hide windows when the keyguard is animating in.

Fixes bug 6721572.

Change-Id: Iad7b8b811bcf0840726cbf6c6f279dabd08a3aba

Conflicts:

services/java/com/android/server/wm/WindowAnimator.java

How do I check what bug occurs on id : 6721572 ?

-- 
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] Screen distortion issue

2012-08-16 Thread Jayesh
Hi,
After performing extensive user operation e.g. navigating through various 
activities, buttons and menu.
The issue, screen distortion, is random and seldom. It can be observed any 
where  on screen when you touch it. But later moving to other activity app 
behaves normally.
Device: Samsung skyrocket 
Android version: 2.3 and ICS

https://lh4.googleusercontent.com/-55-k3_MZbHs/UCPnaoQGbHI/AFs/Q61a1G5aakg/s1600/9CYze.png
Following log observed for every touch event which produce screen 
distortion;


07-18 11:37:15.624: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.644: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.684: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.724: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.724: INFO/PowerManagerService(307): Light Animator Finished 
curIntValue=119
07-18 11:37:15.754: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.784: INFO/InputReader(307): dispatchTouch::touch event's 
action is 1, pending(waiting finished signal)=0
07-18 11:37:15.784: INFO/InputDispatcher(307): Delivering touch to current 
input target: action: 1, channel '405820a8 
com..x.xxx/com..xx.xxx.MainTabActivity (server)'
07-18 11:37:15.794: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.814: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.854: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.884: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.914: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.944: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:15.974: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:16.004: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:16.044: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:16.074: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:16.104: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)
07-18 11:37:16.154: ERROR/msm8660.gralloc(19102): cannot flush handle 
0x6530d0 (offs=821000 len=177000)

-- 
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] Youtube App does not support HLS format

2012-08-16 Thread declan
Hi Guys

Im using 2 Android devices the HTC One S which has Android 4.0.3
Kernel version:3.0.8-01136-g9d2ad31 and also with a Galaxy tablet that I 
have Android 3.2 Kernel version 2.6.36.3.

My question relates to the Youtube Application video format support and 
HLS. 

So I know these devices can manage playback of HLS content fine, however if 
the device is sent HLS content when browsing youtube.com with the Youtube 
App, then it doesnt playback this content its says There was a problem 
while playing.

So is the Youtube app limited to supporting, MP4  3GP container formats 
only? Though the web browser also exhinits this behaviour when accessing 
the youtube.com website direct.  Is there something we can do here to make 
this happen as HLS can be viewed direct with the browser as it prompts 
client for video player and plays just fine

My first post on the forum so I hope I have included all the relevant 
information for you guys to be able to answer.

Thanks
Declan 

-- 
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] Server Unauthorized

2012-08-16 Thread ענבל איטח
Hi,
I am developing an android app with a server
There are .php files on ther server, I am using wamp as my server on my 
 laptop

I tries to send a request for the server,and the return answer was:
401 Unauthorized

How can I solve it?!?!?

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

[android-developers] Re: Change word on buttonclick (with radiobuttons)

2012-08-16 Thread HardipPatel
class tutorialOne extends Activity implements OnCheckedChangeListener {

TextView textOut;
EditText textIn;
RadioGroup gravityG, styleG;
private String alignment;

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tutorial1);
textOut = (TextView) findViewById(R.id.tvChange);
textIn = (EditText) findViewById(R.id.editText1);
gravityG = (RadioGroup) findViewById(R.id.rgGravity);
gravityG.setOnCheckedChangeListener(this);
styleG = (RadioGroup) findViewById(R.id.rgStyle);
styleG.setOnCheckedChangeListener(this);
Button gen = (Button) findViewById(R.id.bGenerate);

gen.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub

if (alignment.equals(left)) {
textOut.setGravity(Gravity.LEFT);
} else if (alignment.equals(right)) {
textOut.setGravity(Gravity.RIGHT);
} else {
textOut.setGravity(Gravity.CENTER);
}

textOut.setText(textIn.getText());
}
});
}

@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
// TODO Auto-generated method stub
switch (checkedId) {
case R.id.rbLeft:
alignment = left;
break;
case R.id.rbRight:
alignment = right;
break;
case R.id.rbCenter:
alignment = center;
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] Merge Tag Relative Layout api level 15

2012-08-16 Thread esc0ba
Hello,

Today i found an interesting thing, which i don't know if its a bug or if i 
am doing something wrong.

I build a compound control (extending RelativeLayout) using this ctor.

 public CompundControl(Context context, AttributeSet attrs)
{
super(context, attrs);
((LayoutInflater) 
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.compound_control,
 
this, true);
}

my layout started out with an merge-tag and i used some TextViews inside 
which i layouted with android:layout_centerHorizontal=true.

I used the whole compound in another layout.

The issue is, on higher (i dont know exactly which api version) this 
android:layout_centerHorizontal=true is not working. The Elements are 
aligned right.
Other xml properties (e.g. background color) are working.
This can also be observed in the designer (eclipse).

Best Regard

-- 
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 targeted for non armv7 devices

2012-08-16 Thread arun kumar
Hai all,
We are working in an android project in which we are using a third party
scanning library. We got the information from that third party that they
compiled their scanning library for ARM v7. We have uploaded the app to the
market and working fine for the devices with ARMv7.
Our app has to support from android 2.2 to latest version. There are some
devices without armv7.
To support the non-armv7 devices, we removed the third party scan library
and also removed all the related things from manifest file. According to
goolge play mulitple apk support,(
http://developer.android.com/guide/google/play/publishing/multiple-apks.html)
we build different apks and uploaded with different configuration
parameters for minSdkVersion uses-feature.
We expect those devices without ARM v7 would get this package. But the
Google market says both the packages are targeted for the same users. And
also it warned that one of the package will be ignored and won’t be served
to the users.
But those users without ARM v7 are getting the message that ‘Your device
isn’t compatible with this version’ and also for those users, the app is
not even displaying when searching for our app.
We have searched a lot in the blogs and many sites, but we are not getting
any details on how to get the multiple packages work for.
Kindly assist us how to create an app which is targeted for non-ARM v7
devices.
We are using Eclipse for our development and for creating the builds and we
are developing with Java base.
Thanks a lot in advance :)

-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

-- 
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] Beginner question : The type of the expression must be an array type but it resolved to double

2012-08-16 Thread jg
Hello,

Before anything, I would like to mention that I am new to Android 
develoment, and java as well...
So please, apologize in advance if I ask a stupid question (but there is 
no such thing as a stupid question, is it ;) ? ), or if I do anything wrong 
in this post (I figured out it might be easier for you if I do not post the 
whole code... but maybe I am wrong ?).

So far, I could write the first lines of an android application, but i get 
an issue on which I would need some help...



I have created a bi-dimensionnal array 16*40 :

[CODE]
public double P_N_comp[][] = new double[16][40];
[/CODE]

Later in the code, I populate this array with a function.

At the end, I want to access the last value stored in my array, and display 
it on a textview :

[CODE]
Double last_P_N = P_N[15][39];  // This is the line where i get 
the error
TextView myTextView3 = (TextView) findViewById(R.id.mytextview3);
myTextView3.setText(Last P_N value + last_P_N);
[/CODE]

And i get this annoying error which says :
The type of the expression must be an array type but it resolved to double

From what I understand, it looks like Java is expecting to have an array in 
the expression Double last_P_N = P_N[15][39]
But I don't understand why because P_N[15][39] refers to the the very last 
value of my array, which is defined in order to store DOUBLE values... and 
on the other end of the expression, I just defined the variable last_P_N as 
DOUBLE.


Thank you 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] Error in the sample code of Xml Pull Parser

2012-08-16 Thread Jiahao Liu
Hi everyone:

When I was learning how to parse XML data described in the Android tutorial 
(http://developer.android.com/training/basics/network-ops/xml.html), I found an 
error in the sample file provided.

This error appears in the Android Manifest file and it is related with the 
class name.

Those are the original lines:

activity
android:name=com.example.networkusage.NetworkActivity
android:label=@string/app_name 
intent-filter
action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

Since the default package is com.example.android.networkusage, Android cannot 
find the right class and the follow error appears:

08-14 16:28:24.435 E/AndroidRuntime(23879): java.lang.RuntimeException: Unable 
to instantiate activity 
ComponentInfo{com.example.android.networkusage/com.example.networkusage.NetworkActivity}:
 java.lang.ClassNotFoundException: com.example.networkusage.NetworkActivity in 
loader 
dalvik.system.PathClassLoader[/data/app/com.example.android.networkusage-2.apk]

There are two way to fix this error. The first one is add the full path, which 
is:

activity
android:name=com.example.android.networkusage.NetworkActivity


The second one is simply lfet the activity name (starts with dot):

activity
android:name=.NetworkActivity


Cheers
http://www.jiahaoliuliu.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] Re: android sdk on FreeBSD in Linux emulation mode

2012-08-16 Thread Eugene Dzhurinsky
 I am do android development on FreeBSD8(Gnome). There are linux
 
 emulation mode so I'm using Linux version of SDK.
 
 To run tools/android I added swt from x11-toolkit/swt. Create env
 
 variables:
 
 JAVA_HOME=/usr/local/openjdk
 
 ANDROID_JAVA_HOME=$JAVA_HOME
 
 ANDROID_SWT=/usr/local/share/java/classes
 
 
 
 I managed to see updater window but to my disappointment there were no
 
 installed package - Android SDK r10.
 
 Attempt to update from server failed:
 
 Package SDK Platform Android 3.0 API 11, revision 1 depends on
 
 Missing Android SDK Tools, revision 10
 
 Do you have any idea how to fix this?

Hello!

Did you manage to get it working on FreeBSD? 
Pls share your experience :)

-- 
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: service dies without calling onDestroy()

2012-08-16 Thread Digipom Inc.
Well, it makes sense, expected or not. Many applications do use the
MediaRecorder in the background as most users expect to be able to continue
recording when they do other tasks, not just when they have the activity in
the foreground. If the use case wasn't expected, it probably should have
been.

On Thu, Aug 16, 2012 at 10:29 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Aug 16, 2012 at 10:19 AM, Digipom Inc. digi...@gmail.com wrote:
  Not everything is designed to be used indefinitely by a service.
 
  It's hard to think of something more suited to a service than recording
 in
  the background.

 You presume that recording in the background is part of the expected
 use cases for MediaRecorder.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://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




-- 
-- 
Digipom
http://www.digipom.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] Re: Problem in larger xml parsing with SOAP web service

2012-08-16 Thread JP
This looks to me like you're trying to skin existing code over the Android 
platform?
In my experience, DOM (tree parsing in general) isn't so great in the 
mobile environment as you have to load the tree structure up front to get 
to that last piece of data that you actually might be interested in.
In an ideal world, you would probably want to break this down and implement 
the web services and SOAP elements on a web server. Your mobile app then 
queries this web server through small interactions. Using stream parsing 
and perhaps JSON in place of XML.



On Thursday, August 16, 2012 3:46:32 PM UTC+2, Rajan wrote:

 i am trying to fetch the record from the SOAP web service but due to 
 larger xml size i didn't get the proper output, 
 here i'm putting my code as well as logcat entry.



-- 
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 ads in live wallpapers?

2012-08-16 Thread MobileVisuals
I have researched this now and banner ads will not work for our live 
wallpapers. All of our live wallpapers are hypnotic. The purpose of them is 
to meditate while looking at the hypnotic animations. It would ruin the 
whole purpose of them, to force people to look at banner ads at the same 
time.  

Notification ads would work, since they don't disturb the visual experience 
of the live wallpapers. But they cause so many bad reviews, that they 
decrease and damage the ratings. So we can't use notification ads.

The only option left is the app icon ad format. I have tried this, but it 
is not that profitable. It only generates  25% of the revenue that 
notification ads generate. But they don't cause any bad reviews, so they 
don't seem to disturb people that much.

Does anyone know any other ad format that works for live wallpapers? I 
mentioned Fireflies live wallpaper before, but I mistook this one for 
another live wallpaper. So I have not seen any live wallpapers, which have 
implemented banner ads in a succesful way.



Den måndagen den 30:e juli 2012 kl. 15:19:29 UTC+2 skrev FiltrSoft:

 That's probably a better question for a marketing forum than a developer 
 forum.

 On Monday, July 30, 2012 6:48:10 AM UTC-4, MobileVisuals wrote:

 I see, we plan to implement the same solution that Fireflies uses with a 
 transparent banner. Or do you think live wallpapers without ads will have 
 better chances at getting lots of downloads and being selected for the 
 best new free apps section?

 I just wonder, because our live wallpapers have performed much better on 
 SlideME than on Google play. One of our apps have been the most downloaded 
 live wallpaper on SlideME, but not of them have ever reached the top40 most 
 downloaded live wallpapers on Google Play, only the top100:(

 Den måndagen den 30:e juli 2012 kl. 01:17:50 UTC+2 skrev FiltrSoft:

 lol, I can just see the headlines now, Google says apps with ads are 
 bad idea.

 I take back what I said about not building a business around live 
 wallpapers.  I didn't think people could make money with blogs when they 
 first started and a couple people got rich starting some highly successful 
 blogs, so anything is possible in this industry.

 MobileVisuals, it does sound like you answered your own question, though.

 On Sunday, July 29, 2012 2:56:14 PM UTC-4, Dianne Hackborn wrote:

 This isn't Google's opinion, it is my opinion.

 If other people have found ways to do ads that work, then great.  As I 
 said, I am not morally opposed to it, this just isn't a design goal for 
 them.

 And it sounds like you see ways to do things that you think are 
 acceptable, so what are you looking for in your original question...?

 On Sun, Jul 29, 2012 at 10:05 AM, MobileVisuals 
 eyv...@astralvisuals.com javascript: wrote:

 Thanks for explaining Google's opinion on this! The free version of 
 Fireflies live wallpaper seems to have an ad solution, which works well.
 A transparent banner is shown at the top of the main screen for the 
 live wallpaper. The reviews for the app are good and I don't see any 
 complaints about the ad. I think it has been among the top40 most 
 downloaded live wallapers.

 SlideME is the other big android appstore. The purchase to download 
 rate here is almost 0%, so ad based free versions are the only solution 
 for 
 this appstore. One option is to have one free version without ads for 
 Google play and and one version with ads for SlideME,but this would be 
 time 
 consuming.

 A purchase to download rate of 1% can be realistic on Google play. A 
 company would get about 1$ if we the price is 1,5$. 100 000 free 
 downloads 
 each month on Google play would then be required to earn 1000$. Much less 
 downloads would be required to
 get as much revenue if the free versions has ads.

 Could really a business model of only purchases generate as much 
 revenue as purchases+ads? Maybe if removing the ads generated much more 
 downloads. But there are a lot of live wallpapers with ads, which are 
 getting lots of downloads, like Fireflies live wallpaper.



 Den fredagen den 27:e juli 2012 kl. 23:39:20 UTC+2 skrev FiltrSoft:

 Yea, I don't think live wallpapers were meant as a thing to build a 
 business around, unless you can sell a whole lot of them for $.99, which 
 you might on iOS (if they had the functionality).

 www.filtrsoft.com

 On Friday, July 27, 2012 6:22:39 AM UTC-4, MobileVisuals wrote:

 Could you please explain why you think it is a terrible idea to mix 
 live wallpapers with advertising? 

 I have talked to several mobile advertising companies now and now 
 one has any other advertising solution for live wallpapers than push 
 notifications. Is any one else here developing live wallpapers? If so, 
 how 
 are you managing the advertising in the live wallpapers?

 Den onsdagen den 25:e juli 2012 kl. 19:10:12 UTC+2 skrev Dianne 
 Hackborn:

 Mixing live wallpapers with attempts at advertising seems like a 
 terrible idea to 

  1   2   >