[android-developers] suspend account

2013-04-02 Thread AC
Hi,
Just before being suspended I used the new comments replay feature and i 
answered to someone who complained about an accidently inappropriate index.
I answered her that i updated and fix the app (with new version) and i 
removed the problematic index.  
In response to my comment, Google suspend my account :-(
What should i do? (i already appeal to Google but no response...)
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: getFragmentManager undefined

2013-02-07 Thread ac
please use getSupportFragmentManager() it is same as getFragmentManager()..

On Wednesday, August 24, 2011 7:13:07 PM UTC+5:30, Aaron Visser wrote:

 I need to get the viewpager up and running for a project I'm working on. 

 SDK 2.2, compatibility v4. It's all working, 
 except... getFragmentManager() is undefined.  I can't seem to see it 
 explicitly defined anywhere in code examples. 

 Help? 

 Thanks!


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




[android-developers] Expansion File Best Programming Practices

2012-10-03 Thread AC Arcana
I've just recenty gotten into using expansion files for Android apps. In 
the example the app needs to know the final size of the expansion as well 
as the version number. This is annoying as heck for development and I have 
temporarily commented out the code responsible. 

I imagine for a release build I should re-enable it, but why is this good 
practice? Are we concerned that perhaps the file might be corrupt and we 
could tell this because it would be the wrong size?

It also seems rather annoying that we have to update the entire apk just 
because we've updated some assets and want to change a version and/or file 
size number. Why don't we instead ask the google servers what the file name 
is to get the version, and the size, so that we know if we have the right 
size? Is this impossible? Too complicated? Or perhaps we're so concerned 
about androids corrupting their data that we need some way to check 
integrity even when we do not have an internet connection or permission to 
use it?

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

Re: [android-developers] how to develop a web application in android?

2012-02-08 Thread Raji ac
you need to create a dynamic web application to act as server appln,and
manage communication between
client and server
On Wed, Feb 8, 2012 at 3:31 PM, Pradeep predeeps...@gmail.com wrote:

 I need to develop a web application and deploy it using atjeews
 server. i probably need to create a .war file to deploy it. Do any one
 have done that before?
 If possible kindly send me some code sample or website links for to
 create a simple web application in android.

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

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

[android-developers] Audio Overlay

2011-11-22 Thread AC
I'm trying to combine two audio files. I want one file to play at the
same time as another. An example would be to take lyrics and play them
over beats. It is easy to play them at the same time, but I need to
generate a MP3 that combines the two, one over the other, not one
after the other. I know tools like FFMPEG can be used for this, but is
there anything native in Android or anything in Java  compatible with
Android that could accomplish 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] ConcurrentModificationException from Handler

2011-01-17 Thread AC
I have an application with a service that downloads a set of job data
from a remote web service. It uses this data to update a static
HashMap of Job objects:

public static HashMapString, Object jobs = new HashMapString,
Object();

When it's finished, it sends a message to a handler in
MapViewActivity:

MapViewActivity.handler.sendMessage( new Message() );

to tell it redraw markers on the map based on the data in the jobs
HashMap :

public class MapViewActivity extends MapActivity {
   private static HashMapString, Object markers = new
HashMapString, Object();

public static Handler handler = new Handler() {
public void handleMessage( Message m ) {
super.handleMessage( m );
syncMarkers();
}
};

syncMarkers() reads the jobs HashMap and updates the markers HashMap
based on what it finds. The markers HashMap contains a mapping of
string identifiers to MapOverlay (which extends ItemizedOverlay)
objects.

I'm getting a java.util.ConcurrentModificationException and a force
close from within  syncMarkers() as it tries to iterate over the
markers HashMap. I can see from the backtrace that syncMarkers() is
being invoked from the handler.

I presume this is because the user interface is trying to access the
marker objects at the same time as syncMarkers(). However, I'm very
surprised that this is the case, because I thought the handler would
run in the same thread as the user interface (and not the service's
thread), and so would never conflict. Am I wrong?

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


[android-developers] Re: ConcurrentModificationException from Handler

2011-01-17 Thread AC
Perhaps I'm sending the message from the service to the activity
incorrectly, and syncMarkers() ends up getting called from the
service's thread? If so, would anyone have any advice on the correct
way to send the message?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ConcurrentModificationException from Handler

2011-01-17 Thread AC
I'm afraid that didn't help. I now have:

public class MapViewActivity extends MapActivity {
private static MapString, Object markers =
Collections.synchronizedMap( new HashMapString, Object() );

and the problem still occurs.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ConcurrentModificationException from Handler

2011-01-17 Thread AC


On Jan 17, 5:00 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 2 - As described in the link above, code that is trying to remove elements
 from a collection while iterating, for example:

 for (Item i : myHashMap.values()) {
    if (some condition) {
       myHashMap.remove(i.key);
    }

 }

 You can't do this - use iterator.remove() to remove elements while
 iterating.

That was the problem! Thank you very much!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ConcurrentModificationException from Handler

2011-01-17 Thread AC
After changing to iterator.remove() rather than removing from the Map,
the problem went away. Thank you very much!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Recommended way to update map overlay in background

2010-12-31 Thread AC
I'm working on an application with a number of activities, including a
MapViewActivity. The map has markers drawn on it as overlays. The
marker data is retrieved by regularly polling a web server, which
returns a JSON document. The data can change from time to time, and
when it does the map must be updated promptly.

What's the recommended way to poll the web server in the background
and update the map? I considered using a service, but ran into
problems with accessing the map overlays variables. The other approach
which springs to mind is to user a TimerTask (maybe calling an
AsyncTask if necessary to avoid blocking the UI thread) from the
MapViewActivity.

Another consideration is that it would be nice to continue polling
when in other activities within the same application. This way when
the user switches to the map activity, the map is already up to date.
This is not a hard requirement though.

Thoughts?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Recommended way to update map overlay in background

2010-12-31 Thread AC
On Dec 31, 12:06 pm, TreKing treking...@gmail.com wrote:
 In this case you'd probably need that Service, binding to it as necessary
 when switching to the map.

That's a good idea! I could download and store the marker data in the
service, then have the MapViewActivity bind to it when the user
switches to the map activity to access the marker 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] Exact criteria to view paid apps

2010-09-27 Thread AC
Does anyone know the exact criteria the market uses to decide which
country you're in?

Originally I had a UK SIM, credit card, billing address, and shipping
address. I could view paid apps in the market. Then I changed to a
Swiss SIM, credit card, billing address, and shipping address and lost
access to paid apps in the market. Now I have a USA SIM (T-Mobile),
USA billing address, and USA shipping address, but still the same
Swiss credit card number. I still can't view paid apps in the market.

My phone is an unlocked Samsung Galaxy S running Android 2.1.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 flickering in GLSurfaceView

2010-03-18 Thread ac
Hello,

I'm using GLSurfaceView to create a simple OpenGL drawing application.
Since the elements drawn in each frame must remain on screen in order
to be composed into the whole drawing, I don't use
gl.glClear(GL10.GL_COLOR_BUFFER_BIT) at the beginning of each frame.
But not clearing the color buffer leads to substantial flickering.

Is there any way to eliminate flickering while still not clearing the
screen at the beginning of each frame?

Thanks a lot,
ac

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


[android-developers] glBufferData crash

2010-03-17 Thread ac
Hello,

I have experienced some trouble using VBOs, since the method
glBufferData crashes when I try to copy data to the vertex buffer.
Below is the smallest snippet of code that I found to generate the
crash:

int numVert = 32;
GL11 gl11 = (GL11)gl;
testArray = new int[numVert * 3];
testBuffer = IntBuffer.wrap(testArray);
gl11.glGenBuffers(1, testID, 0);
gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, testID[0]);
final int siz = testBuffer.capacity() * Integer.SIZE;
gl11.glBufferData(GL11.GL_ARRAY_BUFFER, siz, testBuffer,
GL11.GL_STATIC_DRAW);
gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0);

testArray, testBuffer and testID are members of the class containing
this code, declared as follows:

int[] testArray;
IntBuffer testBuffer;
int[] testID = {0};

I tried this code in several OpenGL applications which don't show any
problem otherwise.

The crash occurs specifically at the glBufferData() method call. If
numVert is set to zero, then the crash doesn't occur.

Any comments will be greatly appreciated.

Thanks,
ac

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