[android-developers] Re: Animations in the list view

2013-01-17 Thread skink


On 12 Sty, 19:40, Ansh yourans...@gmail.com wrote:
 Hi guys

 I am new to animation in android.I am trying to translate  childitem/ of a
 listview.First child view should translate from middle to top of the list
 and the list should also slide down during the translate animation and make
 the space of the view being translated.Please help me guys as it has eaten
 up my mind for  past 3days.

 i am trying to achieve exactly the same in this 
 video.http://youtu.be/xPLhfEJuz4k

here you have sample code to start with:

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;

public class AnimatedListActivity extends Activity implements
OnItemClickListener, OnClickListener, Runnable {
private final static String TAG = AnimatedListActivity;
private ArrayAdapterString mAdapter;
private int mInsertPosition;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.lv);
ListView lv = (ListView) findViewById(R.id.lv);
lv.setClipChildren(false);
lv.setOnItemClickListener(this);
lv.setDivider(null);
mAdapter = new ArrayAdapterString(this,
android.R.layout.simple_list_item_1);
mAdapter.add(10);
mAdapter.add(20);
mAdapter.add(30);
mAdapter.add(40);
mAdapter.add(50);
mAdapter.add(60);
mAdapter.add(70);
mAdapter.add(80);
mAdapter.add(90);
lv.setAdapter(mAdapter);
}

@Override
public void onItemClick(AdapterView? parent, View view, int
position, long id) {
AlertDialog.Builder b = new AlertDialog.Builder(this);
b.setPositiveButton(android.R.string.ok, this);
b.setTitle(Enter Integer);
EditText et = new EditText(this);
et.setId(99);
b.setView(et);
b.show();
}

@Override
public void onClick(DialogInterface dialog, int which) {
AlertDialog d = (AlertDialog) dialog;
EditText et = (EditText) d.findViewById(99);
String newItem = et.getText().toString();

ListView lv = (ListView) findViewById(R.id.lv);
int cnt = mAdapter.getCount();
for (int i = 0; i  cnt; i++) {
String item = mAdapter.getItem(i);
if (newItem.compareTo(item)  0) {
mAdapter.insert(newItem, i);
mInsertPosition = i;
lv.setSelection(i);
lv.post(this);
break;
}
}
}

@Override
public void run() {
ListView lv = (ListView) findViewById(R.id.lv);
// here animations start
int first = lv.getFirstVisiblePosition();
int last = lv.getLastVisiblePosition();
for (int k = 0; k  last - first + 1; k++) {
View child = lv.getChildAt(k);
int pos = lv.getPositionForView(child);
Animation animation = null;
if (pos == mInsertPosition) {
// instead of alpha animation you can make your
// new inserted item move here
animation = new AlphaAnimation(0, 1);
} else
if (pos  mInsertPosition) {
animation = new TranslateAnimation(
Animation.ABSOLUTE, 0, 
Animation.ABSOLUTE, 0,
Animation.RELATIVE_TO_SELF, -1, 
Animation.RELATIVE_TO_SELF, 0);
}
if (animation != null) {
animation.setDuration(750);
child.startAnimation(animation);
}
}
}
}


pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from 

[android-developers] Http Response body

2013-01-17 Thread a
Hi,

I am using 
link 
http://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
 
to create HTTP server in Android. However in my response I always 
get HTTP/1.1 200 OK in the body(though the header has the status code 404 
in it). Please refer to the attached screenshot.  Is it due to the 
DefaultResponseFactory() defined in the HttpService?  


To set the response:

HttpResponse getResponse = new BasicHttpResponse(HttpVersion.HTTP_1_1, 404, 
Not Found);
String sb = The requested resource  + target +  could not be found due 
to mismatch!! ; 
getResponse.setStatusCode(HttpStatus.SC_NOT_FOUND);
getResponse.setEntity(new StringEntity(sb.toString() +  Status Code: 
+getResponse.getStatusLine() +,UTF-8)); 




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

[android-developers] Re: Http Response body

2013-01-17 Thread skink


a wrote:
 Hi,

 I am using
 link 
 http://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
 to create HTTP server in Android. However in my response I always
 get HTTP/1.1 200 OK in the body(though the header has the status code 404
 in it).

i see:

Status Code;HTTP/1.1 404

in your body, what you see in blue is somethig else, no idea what

pskink

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


[android-developers] Re: Http Response body

2013-01-17 Thread a
Thanks for the reply. Ya I m able to see the status and print the status 
code in Poster. I am using the same code as in the link, not sure 
why HTTP/1.1 200 OK comes even if I dont set the entity in response. I 
think it is due to the HttpService constructor, DefaultResponsefactory

httpService = new HttpService(httpproc,new 
DefaultConnectionReuseStrategy(), new DefaultHttpResponseFactory());
httpService.setHandlerResolver(reqistry); 
httpService.setParams(this.params);

Any idea of what value should be set in this?


Thanks!

On Thursday, January 17, 2013 12:24:47 PM UTC+2, skink wrote:



 a wrote: 
  Hi, 
  
  I am using 
  link 
 http://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
  
  to create HTTP server in Android. However in my response I always 
  get HTTP/1.1 200 OK in the body(though the header has the status code 
 404 
  in it). 

 i see: 

 Status Code;HTTP/1.1 404 

 in your body, what you see in blue is somethig else, no idea what 

 pskink 


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

[android-developers] Re: Http Response body

2013-01-17 Thread a
Is the content-type header mandatory? Should it be set to text/plain?

On Thursday, January 17, 2013 12:37:16 PM UTC+2, a wrote:

 Thanks for the reply. Ya I m able to see the status and print the status 
 code in Poster. I am using the same code as in the link, not sure 
 why HTTP/1.1 200 OK comes even if I dont set the entity in response. I 
 think it is due to the HttpService constructor, DefaultResponsefactory

 httpService = new HttpService(httpproc,new 
 DefaultConnectionReuseStrategy(), new DefaultHttpResponseFactory());
 httpService.setHandlerResolver(reqistry); 
 httpService.setParams(this.params);

 Any idea of what value should be set in this?


 Thanks!

 On Thursday, January 17, 2013 12:24:47 PM UTC+2, skink wrote:



 a wrote: 
  Hi, 
  
  I am using 
  link 
 http://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
  
  to create HTTP server in Android. However in my response I always 
  get HTTP/1.1 200 OK in the body(though the header has the status code 
 404 
  in it). 

 i see: 

 Status Code;HTTP/1.1 404 

 in your body, what you see in blue is somethig else, no idea what 

 pskink 



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

[android-developers] Re: Http Response body

2013-01-17 Thread skink


a wrote:
 Thanks for the reply. Ya I m able to see the status and print the status
 code in Poster. I am using the same code as in the link, not sure
 why HTTP/1.1 200 OK comes even if I dont set the entity in response. I
 think it is due to the HttpService constructor, DefaultResponsefactory

 httpService = new HttpService(httpproc,new
 DefaultConnectionReuseStrategy(), new DefaultHttpResponseFactory());
 httpService.setHandlerResolver(reqistry);
 httpService.setParams(this.params);

 Any idea of what value should be set in this?


 Thanks!



did you try to use wireshark to see whats on the wire?

if not, do it

pskink

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


[android-developers] Re: Http Response body

2013-01-17 Thread skink


a wrote:
 Is the content-type header mandatory? Should it be set to text/plain?




http://www.w3.org/Protocols/rfc2616/rfc2616.html

pskink

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


[android-developers] What is Fragments?

2013-01-17 Thread sree android
What is Fragments,why we are using it.When we are working 16th API it is
mandatory or not  to extends FragmentsActivity.

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

2013-01-17 Thread MobileVisuals
I have made a music visualizer with the standard classes, but I don't know 
how to connect it to the music players. How do I connect the music 
visualizer to the common music players like Spotify and Winamp, so I can 
visualize the music, which comes from these players?

As it is now, I can only visualize the music from a MP3 file, which is 
included in the Eclipse project.

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

[android-developers] Re: Animations in the list view

2013-01-17 Thread Ansh
Hats off to you man ...you are a life saver.

Although the animation with this code is not smoother like the one in the 
video but its as smooth as it can be and its good in terms of lines of code 
and other unnecessary stuffs i used to achieve. check this out and provide 
me your feedback
http://youtu.be/BrIJ-1HblIY

On Thursday, 17 January 2013 13:59:16 UTC+5:30, skink wrote:



 On 12 Sty, 19:40, Ansh yourans...@gmail.com wrote: 
  Hi guys 
  
  I am new to animation in android.I am trying to translate  childitem/ of 
 a 
  listview.First child view should translate from middle to top of the 
 list 
  and the list should also slide down during the translate animation and 
 make 
  the space of the view being translated.Please help me guys as it has 
 eaten 
  up my mind for  past 3days. 
  
  i am trying to achieve exactly the same in this video.
 http://youtu.be/xPLhfEJuz4k 

 here you have sample code to start with: 

 import android.app.Activity; 
 import android.app.AlertDialog; 
 import android.content.DialogInterface; 
 import android.content.DialogInterface.OnClickListener; 
 import android.os.Bundle; 
 import android.view.View; 
 import android.view.animation.AlphaAnimation; 
 import android.view.animation.Animation; 
 import android.view.animation.TranslateAnimation; 
 import android.widget.AdapterView; 
 import android.widget.AdapterView.OnItemClickListener; 
 import android.widget.ArrayAdapter; 
 import android.widget.EditText; 
 import android.widget.ListView; 

 public class AnimatedListActivity extends Activity implements 
 OnItemClickListener, OnClickListener, Runnable { 
 private final static String TAG = AnimatedListActivity; 
 private ArrayAdapterString mAdapter; 
 private int mInsertPosition; 

 @Override 
 protected void onCreate(Bundle savedInstanceState) { 
 super.onCreate(savedInstanceState); 
 setContentView(R.layout.lv); 
 ListView lv = (ListView) findViewById(R.id.lv); 
 lv.setClipChildren(false); 
 lv.setOnItemClickListener(this); 
 lv.setDivider(null); 
 mAdapter = new ArrayAdapterString(this, 
 android.R.layout.simple_list_item_1); 
 mAdapter.add(10); 
 mAdapter.add(20); 
 mAdapter.add(30); 
 mAdapter.add(40); 
 mAdapter.add(50); 
 mAdapter.add(60); 
 mAdapter.add(70); 
 mAdapter.add(80); 
 mAdapter.add(90); 
 lv.setAdapter(mAdapter); 
 } 

 @Override 
 public void onItemClick(AdapterView? parent, View view, int 
 position, long id) { 
 AlertDialog.Builder b = new AlertDialog.Builder(this); 
 b.setPositiveButton(android.R.string.ok, this); 
 b.setTitle(Enter Integer); 
 EditText et = new EditText(this); 
 et.setId(99); 
 b.setView(et); 
 b.show(); 
 } 

 @Override 
 public void onClick(DialogInterface dialog, int which) { 
 AlertDialog d = (AlertDialog) dialog; 
 EditText et = (EditText) d.findViewById(99); 
 String newItem = et.getText().toString(); 

 ListView lv = (ListView) findViewById(R.id.lv); 
 int cnt = mAdapter.getCount(); 
 for (int i = 0; i  cnt; i++) { 
 String item = mAdapter.getItem(i); 
 if (newItem.compareTo(item)  0) { 
 mAdapter.insert(newItem, i); 
 mInsertPosition = i; 
 lv.setSelection(i); 
 lv.post(this); 
 break; 
 } 
 } 
 } 

 @Override 
 public void run() { 
 ListView lv = (ListView) findViewById(R.id.lv); 
 // here animations start 
 int first = lv.getFirstVisiblePosition(); 
 int last = lv.getLastVisiblePosition(); 
 for (int k = 0; k  last - first + 1; k++) { 
 View child = lv.getChildAt(k); 
 int pos = lv.getPositionForView(child); 
 Animation animation = null; 
 if (pos == mInsertPosition) { 
 // instead of alpha animation you can make 
 your 
 // new inserted item move here 
 animation = new AlphaAnimation(0, 1); 
 } else 
 if (pos  mInsertPosition) { 
 animation = new TranslateAnimation( 
 Animation.ABSOLUTE, 0, 
 

[android-developers] Re: What is Fragments?

2013-01-17 Thread skink


sree android wrote:
 What is Fragments,why we are using it.When we are working 16th API it is
 mandatory or not  to extends FragmentsActivity.


http://developer.android.com/guide/components/fragments.html

pskink

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


[android-developers] Google map with airballoon image...

2013-01-17 Thread tom
Hi,

 I have created google map using android and set zoom control also..
 Now i try to create a air balloons on top of the countries but i don't 
have any idea. 
 So if you know please share with me...

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: Google map with airballoon image...

2013-01-17 Thread skink


tom wrote:
 Hi,

  I have created google map using android and set zoom control also..
  Now i try to create a air balloons on top of the countries but i don't
 have any idea.
  So if you know please share with me...

 Thanks,



http://https://developers.google.com/maps/documentation/android/v1/reference/com/google/android/maps/Overlay

pskink

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


[android-developers] Re: Animations in the list view

2013-01-17 Thread skink


Ansh wrote:
 Hats off to you man ...you are a life saver.

 Although the animation with this code is not smoother like the one in the
 video but its as smooth as it can be and its good in terms of lines of code
 and other unnecessary stuffs i used to achieve. check this out and provide
 me your feedback
 http://youtu.be/BrIJ-1HblIY


is it done based of my code?

how did you animate item which is added to the list? is it a popup
window or some child of a frame layout?

pskink

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


[android-developers] Widevine Adaptive Streaming

2013-01-17 Thread Larry Meadors
I'm using the built-in DRM support for widevine video playback, and
the video quality seems really poor.

The same video played on an ios device or using their web player seems
fine, but on android it's super blocky.

Is anyone here familiar with this problem?

Larry


PS: Yes, I know it's not EXCLUSIVELY android development. But it is
exclusively an android (and widevine) issue.

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

2013-01-17 Thread Ansh
Yes i took help from your code.The popup which is floating upwards is a 
layout of the same type as the layout being used for the ListView.

On Thursday, 17 January 2013 18:00:22 UTC+5:30, skink wrote:



 Ansh wrote: 
  Hats off to you man ...you are a life saver. 
  
  Although the animation with this code is not smoother like the one in 
 the 
  video but its as smooth as it can be and its good in terms of lines of 
 code 
  and other unnecessary stuffs i used to achieve. check this out and 
 provide 
  me your feedback 
  http://youtu.be/BrIJ-1HblIY 
  

 is it done based of my code? 

 how did you animate item which is added to the list? is it a popup 
 window or some child of a frame layout? 

 pskink 


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

[android-developers] Re: Animations in the list view

2013-01-17 Thread skink


Ansh wrote:
 Yes i took help from your code.The popup which is floating upwards is a
 layout of the same type as the layout being used for the ListView.



share a code snippet then...

pskink

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


[android-developers] Re: SyncAdapter and multiple threads?

2013-01-17 Thread Ondrej
onPerformSync is running only one in time for given account from my 
observations, you can take a look at syncmanager in Android source if you 
want 100% answer
as soon as you return from onPerformSync next call can be done

On Wednesday, January 16, 2013 4:11:52 PM UTC+1, saladbowl wrote:

 I have created a SyncAdapter class which inherits from 
 AbstractThreadedSyncAdapter and runs in its own Service.

 I was wondering if the SyncManager only allows one synchronisation to be 
 undertaken at a time (i.e via a called to my SyncAdapter's onPerformSync()) 
 or do I need to explicitly make sure my SyncAdapter's onPerformSync() that 
 my data is not corrupted if I two synchronisations happen at the same time?.

 Thanks 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] install trail application in android ..

2013-01-17 Thread Ananda Krishna
hi,
Is there a method where i can install a trial application in android only 
once..
And is there a method where we can store the app details in either 
internal/external storage while uninstalling the application.
Or can we store the app details in android registry if it is present.
Regards,
AnandaKrishna S

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

[android-developers] How to make visible only half potion of video on screen

2013-01-17 Thread yashika
Hi,
Is it possible to make only  half portion of screen visible while video is 
running over it?

Plz help me How
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: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread mbarbiero


Em quarta-feira, 16 de janeiro de 2013 10h06min13s UTC-2, Nikolay Elenkov 
escreveu:


 On Jan 16, 2013 9:01 PM, mbarbiero marco.b...@gmail.com javascript: 
 wrote:
 
  Nikolay...
 
  One more question: If the private key used to sign is incorrect, the 
 command  $ openssl rsautl -verify -in s2.bin -pubin -inkey pub1.pem  -raw 
 -hexdump result in error or in incorrect message?
 

 It will result in garbage, not properly structured data.

  I need confirm if used privatekey is correct.
 

 It seems it is correct.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread mbarbiero
Hi...
I tested the canonical form and Sha1 hash code using a .net code to confirm 
the values. A strig format of signedInfo is OK.
Considering that PrivateKey is OK too, my suspects are, now, the byte code 
send to sign and the convertion to base64 of the results. Maybe 
little-endian x big-endian can explain this!

CODE .NET:
XmlDsigC14NTransform t = new XmlDsigC14NTransform();
t.LoadInput(myDoc);
Stream s = (Stream)t.GetOutput(typeof(Stream));
SHA1 sha1 = SHA1.Create();

byte[] hash = sha1.ComputeHash(s);

Best regards
mBarbiero


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

2013-01-17 Thread dashman

Thanks for the responses.

It's a relatively simple database application - so it should fit fine.

I downloaded the windows command line program and created a database and
then copied it to the device emulator - and worked fine.

i was also able to read from the dafault database folder 
(e.g./data/data/package/databases/).

but i don't see any problems with reading from SD card either.


For others, trying to create a database outside the device and then reading 
the database on
the  device - the COLLATORS flag is required.

SQLiteDatabase db = SQLiteDatabase.openDatabase(dbfile, null,  
SQLiteDatabase.OPEN_READONLY|SQLiteDatabase.NO_LOCALIZED_COLLATORS );


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

2013-01-17 Thread Streets Of Boston
The answer is right here in the documentation:

https://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html#onPerformSync(android.accounts.Account,
 
android.os.Bundle, java.lang.String, android.content.ContentProviderClient, 
android.content.SyncResult)
*... invocations of this method are guaranteed to be serialized.*

and when calling a startSync while another onPerformSync is still busy:

https://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html
*...If a sync operation is already in progress when a startSync() request 
is received then an error will be returned to the new request and the 
existing request will be allowed to continue*



On Wednesday, January 16, 2013 10:11:52 AM UTC-5, saladbowl wrote:

 I have created a SyncAdapter class which inherits from 
 AbstractThreadedSyncAdapter and runs in its own Service.

 I was wondering if the SyncManager only allows one synchronisation to be 
 undertaken at a time (i.e via a called to my SyncAdapter's onPerformSync()) 
 or do I need to explicitly make sure my SyncAdapter's onPerformSync() that 
 my data is not corrupted if I two synchronisations happen at the same time?.

 Thanks 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: SyncAdapter and multiple threads?

2013-01-17 Thread Streets Of Boston
The answer is right here in the documentation:

https://developer.android.com/reference/android/content/
AbstractThreadedSyncAdapter.html#onPerformSync(android.accounts.Account, 
android.os.Bundle, java.lang.String, android.content.ContentProviderClient, 
android.content.SyncResult)
*... invocations of this method are guaranteed to be serialized.*

and when calling a startSync while another onPerformSync is still busy:

https://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html
*...If a sync operation is already in progress when a startSync() request 
is received then an error will be returned to the new request and the 
existing request will be allowed to continue*

On Wednesday, January 16, 2013 10:11:52 AM UTC-5, saladbowl wrote:

 I have created a SyncAdapter class which inherits from 
 AbstractThreadedSyncAdapter and runs in its own Service.

 I was wondering if the SyncManager only allows one synchronisation to be 
 undertaken at a time (i.e via a called to my SyncAdapter's onPerformSync()) 
 or do I need to explicitly make sure my SyncAdapter's onPerformSync() that 
 my data is not corrupted if I two synchronisations happen at the same time?.

 Thanks 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: SyncAdapter and multiple threads?

2013-01-17 Thread saladbowl
Thanks so much for the responses - much appreciated.

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

2013-01-17 Thread gloesch
Thanks! Yeah, I agree that AQuery doesn't seem near as powerful as jQuery. 
I do know that this library uses reflection in certain instances, 
particularly for callbacks in network calls. This doesn't seem to cause 
issues though I just started using it.

I liked in particular the lack of boilerplate code for asynchronous calls 
(http://code.google.com/p/android-query/wiki/AsyncAPI). It seems like a 
really nice wrapper to what I'd assume to be AsyncTask. 

Anyone else have thoughts on this library?

On Wednesday, January 16, 2013 10:15:08 PM UTC-5, Kristopher Micinski wrote:

 It looks perhaps useful because it has lightweight options which allow 
 you to prototype things quickly, but it's not really the same kind of 
 killer JQuery is.  JQuery is really nice because: 
   - JQuery gives you (essentially) one way to do things, if you want 
 something else you get a plugin. 
   - JQuery wins in part because of the more exotic features of 
 JavaScript: prototypical inheritance, duck typing, method chaining, 
 and specifiers just seem to reduce syntax and make things more 
 succinct in JavaScript. 
   - An explicit goal of JQuery is to hide you from browser specific 
 configuration hell.  Android doesn't have (nearly as much of) this. 

 I'd say in general that Android apps (versus JavaScript apps) feel 
 closer to the older production style, where you write more code but 
 get to specify things more.  I don't think this library is bad, it 
 seems nice to prototype things with, but Android doesn't have the hell 
 that JS has to begin with: so I don't think it would take over the 
 (Android) world like JQuery with JS. 

 For example: 

 aq.id(R.id.button).text(Click Me).clicked(this, 
 buttonClicked); 

 While this is slightly slicker syntax, the code to do this wouldn't be 
 too bad to begin with.  By the way, that last method better not be 
 using reflection: JavaScript JITs can handle that, but I don't believe 
 that Android's does.  (I was going to look into it, but didn't really 
 have the time..) 

 kris 


 On Wed, Jan 16, 2013 at 6:01 PM, gloesch glo...@taximagic.comjavascript: 
 wrote: 
  I'm curious to know if there's a general consensus about the Android 
 Query 
  (AQuery) library, particularly for async calls. Has anyone out there 
 used it 
  in a production environment? 
  
  http://code.google.com/p/android-query/wiki/API 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 


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

Re: [android-developers] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread Nikolay Elenkov
On Thu, Jan 17, 2013 at 11:11 PM, mbarbiero marco.barbi...@gmail.com wrote:
 Hi...
 I tested the canonical form and Sha1 hash code using a .net code to confirm
 the values. A strig format of signedInfo is OK.

Not too clear what you are saying here. Is the SHA1 of the canonical form of
the two SignedInfo's the same in both Java and C#? XML you posted above
suggests otherwise.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] help me to link up all of my activities

2013-01-17 Thread Prabu Siabuabu
hi everyone! i was wonder is it possible to make an app like this? - 
http://i1193.photobucket.com/albums/aa344/hiatus1/wireframe_zps9e434b1b.jpg and 
if yes, how can i do that?? i'm stuck on to link up all of my activites to 
main activities.. anyone here can help me please?? thanks in advance.


Regards, 

Prabu

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

2013-01-17 Thread Ansh
sure dude ,i ll share the link of my blog once i finish with this 

On Thursday, 17 January 2013 18:26:46 UTC+5:30, skink wrote:



 Ansh wrote: 
  Yes i took help from your code.The popup which is floating upwards is a 
  layout of the same type as the layout being used for the ListView. 
  
  

 share a code snippet then... 

 pskink 


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

Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-17 Thread Tobias Lindberg
Hehe, yeah.

2013/1/17 b0b pujos.mich...@gmail.com



 On Wednesday, 16 January 2013 10:43:37 UTC+1, Kostya Vasilyev wrote:

 Heh. Looks like it *is* intentional.

 https://android.googlesource.**com/platform/frameworks/base/+**
 /refs/heads/master/services/**java/com/android/server/**
 NotificationManagerService.**javahttps://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java


 That change is really stupid. Another incentive to replace Toast with a
 custom implementation whose behaviour will not change over time.

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


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

2013-01-17 Thread Kristopher Micinski
On Thu, Jan 17, 2013 at 10:19 AM, gloesch gloe...@taximagic.com wrote:
 Thanks! Yeah, I agree that AQuery doesn't seem near as powerful as jQuery. I
 do know that this library uses reflection in certain instances, particularly
 for callbacks in network calls. This doesn't seem to cause issues though
 I just started using it.


It won't hurt you until you use it a little more.  Reflective code
runs pretty slow compared to statically compiled code.

 I liked in particular the lack of boilerplate code for asynchronous calls
 (http://code.google.com/p/android-query/wiki/AsyncAPI). It seems like a
 really nice wrapper to what I'd assume to be AsyncTask.

Probably, or another kind of thread pool based facility.  FYI there
are good frontends to AsyncTask, and I'm not sure how much control
this really gives you over AsyncTask's parameters.  (Since Java uses
templates for parametric polymorphism versus being a duck typed
language, you're not going to get the succinctness of JQuery with a
Java library, because you'd have to infer type parameters to the
template..)

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread mbarbiero
Hi Nikolay...

In the XMLs that I post the DigestValue (SHA1) is the same of the 
DigestValue of canonicalized .net.

I will try to create a program in Java pure to test if problem is in 
Android implementation. What you think about?

Em quinta-feira, 17 de janeiro de 2013 13h25min25s UTC-2, Nikolay Elenkov 
escreveu:

 On Thu, Jan 17, 2013 at 11:11 PM, mbarbiero 
 marco.b...@gmail.comjavascript: 
 wrote: 
  Hi... 
  I tested the canonical form and Sha1 hash code using a .net code to 
 confirm 
  the values. A strig format of signedInfo is OK. 

 Not too clear what you are saying here. Is the SHA1 of the canonical form 
 of 
 the two SignedInfo's the same in both Java and C#? XML you posted above 
 suggests otherwise. 


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

2013-01-17 Thread Kristopher Micinski
I think people overemphasize this: SQLite will work for most
applications, unless you're running a production quality service where
you're already hiring a database administrator.  For anything which
will be running purely on the phone, SQLite is a perfectly good
option, I've *never* seen a need for someone to go out to one of the
other database engines when they're writing just an app.  (Maybe this
would make sense if you considered a webservice that interfaced to an
app.)

kris

On Wed, Jan 16, 2013 at 10:30 PM, Todd Grigsby tgrigsby...@gmail.com wrote:
 Before you adopt SQLite, I recommend you research its limitations.

 On Jan 16, 2013 6:53 PM, dashman erjdri...@gmail.com wrote:

 I'm at the initial stages of writing an app which will need a database.

 1. can android databases be created on windows - i.e. populated.

 2. where are these files stored on the device.

 3. can an app read multiple database files - e.g. all database files
 stored in a specific folder.

 4. is there an app out there (in the store) that'll allow users to edit
 any standard database file.

 why?

 the database will be used by the app as read-only, but i'd like users to
 create their own database (preferably on windows and/or edit on the
 device).

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread Kostya Vasilyev
Windows (dot net) and Unix (android) default to different ways to represent
line breaks.

Are line breaks in the xml you're signing encoded the same way on both
sides?
 17.01.2013 20:24 пользователь mbarbiero marco.barbi...@gmail.com
написал:

 Hi Nikolay...

 In the XMLs that I post the DigestValue (SHA1) is the same of the
 DigestValue of canonicalized .net.

 I will try to create a program in Java pure to test if problem is in
 Android implementation. What you think about?

 Em quinta-feira, 17 de janeiro de 2013 13h25min25s UTC-2, Nikolay Elenkov
 escreveu:

 On Thu, Jan 17, 2013 at 11:11 PM, mbarbiero marco.b...@gmail.com
 wrote:
  Hi...
  I tested the canonical form and Sha1 hash code using a .net code to
 confirm
  the values. A strig format of signedInfo is OK.

 Not too clear what you are saying here. Is the SHA1 of the canonical form
 of
 the two SignedInfo's the same in both Java and C#? XML you posted above
 suggests otherwise.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Launching play store for specific product

2013-01-17 Thread JPS
Hi

I'm trying to launch the Google/Android Play Story using an intent 
(com.android.vending). I would like Play store to display the page specific 
to an app. I've searched on ways to do this but could not find anything.
I assume some parameters need to be added to the intent.
I Know this can be done via the web browser but I cannot use the browser in 
this case.

Thanks in advance for all you help.

JPS

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread mbarbiero
Hi..

The text that I sign is too sample: 
txt Id=txtcontentabc/content/txt
Without tabs, cr or especial chars.

mBarbiero

Em quinta-feira, 17 de janeiro de 2013 15h19min06s UTC-2, Kostya Vasilyev 
escreveu:

 Windows (dot net) and Unix (android) default to different ways to 
 represent line breaks. 

 Are line breaks in the xml you're signing encoded the same way on both 
 sides?
  17.01.2013 20:24 пользователь mbarbiero 
 marco.b...@gmail.comjavascript: 
 написал:

 Hi Nikolay...

 In the XMLs that I post the DigestValue (SHA1) is the same of the 
 DigestValue of canonicalized .net.

 I will try to create a program in Java pure to test if problem is in 
 Android implementation. What you think about?

 Em quinta-feira, 17 de janeiro de 2013 13h25min25s UTC-2, Nikolay Elenkov 
 escreveu:

 On Thu, Jan 17, 2013 at 11:11 PM, mbarbiero marco.b...@gmail.com 
 wrote: 
  Hi... 
  I tested the canonical form and Sha1 hash code using a .net code to 
 confirm 
  the values. A strig format of signedInfo is OK. 

 Not too clear what you are saying here. Is the SHA1 of the canonical 
 form of 
 the two SignedInfo's the same in both Java and C#? XML you posted 
 above 
 suggests otherwise. 




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Launching play store for specific product

2013-01-17 Thread Harri Smått
Hi,

This should be possible using Intent.ACTION_VIEW with market:// protocol. See 
this SO question for example;

http://stackoverflow.com/questions/10922762/open-link-of-google-play-store-in-mobile-version-android

--
H

On Jan 17, 2013, at 7:44 PM, JPS jp_sem...@hotmail.com wrote:

 Hi
 
 I'm trying to launch the Google/Android Play Story using an intent 
 (com.android.vending). I would like Play store to display the page specific 
 to an app. I've searched on ways to do this but could not find anything.
 I assume some parameters need to be added to the intent.
 I Know this can be done via the web browser but I cannot use the browser in 
 this case.
 
 Thanks in advance for all you help.
 
 JPS
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] How to use Android HorizontalScrollView to move image one by one

2013-01-17 Thread lionel Lioninho
I want to create an image slider using the HorizontalScrollView. Indeed, 
the slider will display one image at the time and I want to be able to use 
the fling gesture to navigate left and right in the slider. Any Idea to 
which methods to override in the HorizontalScrollView to achieve this. 
Thanks a lot. Best

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

2013-01-17 Thread Harri Smått
Hi,

There's a free application called Android UI Patterns on Play Market you can 
use to try out many of the open source UI implementations for Android. In your 
case ViewPager  Tabbar is maybe the most interesting part of the application 
in which you can find horizontal scrolling implementations.

https://play.google.com/store/apps/details?id=com.groidify.uipatterns

AFAIK it's not exactly trivial to implement this yourself at first but taking a 
look on these open source projects most definitely helps.

--
H

On Jan 17, 2013, at 8:06 PM, lionel Lioninho lionel.firstdevelo...@gmail.com 
wrote:

 I want to create an image slider using the HorizontalScrollView. Indeed, the 
 slider will display one image at the time and I want to be able to use the 
 fling gesture to navigate left and right in the slider. Any Idea to which 
 methods to override in the HorizontalScrollView to achieve this. Thanks a 
 lot. Best
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Launching play store for specific product

2013-01-17 Thread JPS


 Hi Harri and thanks for the reply


This is what I'm currently doing but this causes a dialog to pop-up asking 
if this action should be done using the browser or playstore. This is not 
acceptable in this situation. This is why I want to launch the 
com.android.vending activity directly.

JPS

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MIT GSS-API Library with CyaSSL Available for Android

2013-01-17 Thread Chris C.
Hi,

Last November we announced the availability of MIT GSS-API and CyaSSL 
embedded SSL libraries for Android NDK applications (previous post: 
https://groups.google.com/forum/?fromgroups=#!topic/android-developers/_oxE0RpAShU).
 
 This project included a port of the MIT Kerberos libraries to Android as 
well as the development of a Java (org.ietf.jgss) GSS-API interface to 
those native libraries.

Have you tried the new GSS-API package for Android?  If so, we'd be 
interested to hear your feedback and initial thoughts.  You can reach us 
directly at i...@yassl.com or through the MIT krbdev mailing list.

Thanks,
Chris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Launching play store for specific product

2013-01-17 Thread Mark Murphy
On Thu, Jan 17, 2013 at 1:26 PM, JPS jp_sem...@hotmail.com wrote:
 This is what I'm currently doing but this causes a dialog to pop-up asking
 if this action should be done using the browser or playstore.

The AOSP Browser app does not respond to market:// Uri values, at
least in current versions of Android. You can see its manifest here:

https://github.com/android/platform_packages_apps_browser/blob/master/AndroidManifest.xml

I am not aware that the AOSP Browser app has ever supported the
market:// Uri value.

There may be other apps, though, that support market:// Uri values.

 This is not acceptable in this situation.

Yes, it is. It is not your device. It is the user's device. The user
can, if the user wishes, indicate in the chooser a default app, so
they do not have to be bothered by the chooser anymore for this
specific sort of request. But if the user wishes to have other apps
around that respond to market:// requests, that is the user's choice,
and the user can use those apps. The choice is the user's, not yours.

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


[android-developers] intel-accelerated emulator + maps API with SDK v21

2013-01-17 Thread Sean Felipe Wolfe
Hey y'all

I need to use the maps API target and I really do like the
Intel-accelerated emulators. I have been using this hack to create a
system.img file with the maps api loaded:

http://38911bytes.blogspot.com/2012/03/how-to-use-google-maps-api-in-android.html

However with v21 of the sdk tools, this workaround seems to be broken.
I'm able to create the emulator, but it doesn't start. After saying
haxm enabled it sticks on a blank screen and doesn't proceed. Not even
an android splash screen.

Is anybody using the intel accelerated emulator with the maps api
loaded, with SDK 21? If so how did you get it working??

Thanks :)



-- 
A musician must make music, an artist must paint, a poet must write,
if he is to be ultimately at peace with himself.
- Abraham Maslow

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: intel-accelerated emulator + maps API with SDK v21

2013-01-17 Thread lbendlin
This is for map api v1, right?  As I understand it map api v2 is not 
supported on the emulator.

On Thursday, January 17, 2013 1:55:06 PM UTC-5, seansf wrote:

 Hey y'all 

 I need to use the maps API target and I really do like the 
 Intel-accelerated emulators. I have been using this hack to create a 
 system.img file with the maps api loaded: 


 http://38911bytes.blogspot.com/2012/03/how-to-use-google-maps-api-in-android.html
  

 However with v21 of the sdk tools, this workaround seems to be broken. 
 I'm able to create the emulator, but it doesn't start. After saying 
 haxm enabled it sticks on a blank screen and doesn't proceed. Not even 
 an android splash screen. 

 Is anybody using the intel accelerated emulator with the maps api 
 loaded, with SDK 21? If so how did you get it working?? 

 Thanks :) 



 -- 
 A musician must make music, an artist must paint, a poet must write, 
 if he is to be ultimately at peace with himself. 
 - Abraham Maslow 


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

2013-01-17 Thread TreKing
On Thu, Jan 17, 2013 at 7:49 AM, Ananda Krishna 
anandakrishna15.1...@gmail.com wrote:

 Is there a method where i can install a trial application in android only
 once..
 And is there a method where we can store the app details in either
 internal/external storage while uninstalling the application.
 Or can we store the app details in android registry if it is present.


No.

-
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

[android-developers] Re: How to implement a selection mechanism for translated and rotated objects on a canvas?

2013-01-17 Thread strangeoptics
Yes that's the way. I tried it out and it works.
I found also a project that has a working implementation of the inverse 
Matrix and pre-transformations.
http://publicobject.googlecode.com/svn-history/r19/whisky/src/com/publicobject/whisky/Element.java
It is a good starting point to implement my own scene graph lib.

thx 

On Wednesday, January 16, 2013 11:46:12 PM UTC+1, bob wrote:

 Every object should have its own Matrix.


 Then take the inverse of that Matrix and multiply it by the screen 
 coordinate.  The result will be a point that can be compared with the 
 coordinates of the pre-transformed object.





 On Wednesday, January 16, 2013 3:07:21 PM UTC-6, strangeoptics wrote:

 Hi,

 I would like to draw some objects onto a canvas that are translated and 
 rotated.
 When I tap on the screen I need to translate the screen coordinates into 
 the drawing space of the objects to find out if they are selected.

 What is the best way to accomplish this?
 1) Is there a 2D Scene Grap API available?
 2) Do I can store the Matrix for every Object and reverse it? The 
 canvas.getMatrix() method is deprecated!
 3) Is there another alternative?

 thx



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

2013-01-17 Thread TreKing
On Thu, Jan 17, 2013 at 9:27 AM, Prabu Siabuabu prabud...@gmail.com wrote:

 i'm stuck on to link up all of my activites to main activities.. anyone
 here can help me please?? thanks in advance.


Have you read through the docs? Starting Activities from other Activities
(and other components) is one of the core principles in Android development
and is covered quite thoroughly.

-
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

[android-developers] Application.onCreate Method Randomly Called?

2013-01-17 Thread Jake Colman

My application extends the Application class so that I can initialize
ACRA in the onCreateMethod.  My application consists primarily of a
widget that monitors something and sends a notification when a condition
exists.  If the application or widget is installed and that condition
already exists at the time of installation, the notification is
triggered.

I've started getting reports that the notification will trigger at
random even after it has already triggered correctly.  I had the user
send me my Debug Log with an email telling me when the notification was
triggered.  Based on the timestamps the notification was triggered
because Application.onCreate was invoked.  Why would
Application.onCreate be invoked by Android after the application and
widget were already installed and without the user doing anything? 

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Application.onCreate Method Randomly Called?

2013-01-17 Thread Mark Murphy
I assume widget means app widget.

In that case, is your app widget being updated, via
android:updatePeriodMillis or AlarmManager?

if the answer is yes, then your process is being terminated in
between updates, then recreated on the next update, triggering a new
Application object and onCreate(). This is perfectly normal and
generally beneficial to the user.

On Thu, Jan 17, 2013 at 3:40 PM, Jake Colman col...@ppllc.com wrote:

 My application extends the Application class so that I can initialize
 ACRA in the onCreateMethod.  My application consists primarily of a
 widget that monitors something and sends a notification when a condition
 exists.  If the application or widget is installed and that condition
 already exists at the time of installation, the notification is
 triggered.

 I've started getting reports that the notification will trigger at
 random even after it has already triggered correctly.  I had the user
 send me my Debug Log with an email telling me when the notification was
 triggered.  Based on the timestamps the notification was triggered
 because Application.onCreate was invoked.  Why would
 Application.onCreate be invoked by Android after the application and
 widget were already installed and without the user doing anything?

 --
 Jake Colman -- Android Tinkerer

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



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

_The Busy Coder's Guide to Android Development_ Version 4.5 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


Re: [android-developers] Application.onCreate Method Randomly Called?

2013-01-17 Thread TreKing
On Thu, Jan 17, 2013 at 2:40 PM, Jake Colman col...@ppllc.com wrote:

  If the application or widget is installed and that condition
 already exists at the time of installation, the notification is
 triggered.


That doesn't make sense. You can't do anything when your *application* is
first installed.


 Why would
 Application.onCreate be invoked by Android after the application and
 widget were already installed and without the user doing anything?


That would indicate your process was killed and restarted. If the widget
was the only thing you have running, then either it or perhaps the home
screen it was running on were killed. Not likely, but possible.

Why do this check in onCreate? Why not do it strictly when the widget is
installed?

-
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: intel-accelerated emulator + maps API with SDK v21

2013-01-17 Thread Sean Felipe Wolfe
yes, the original maps api v2.

On Thu, Jan 17, 2013 at 12:02 PM, lbendlin l...@bendlin.us wrote:
 This is for map api v1, right?  As I understand it map api v2 is not
 supported on the emulator.


 On Thursday, January 17, 2013 1:55:06 PM UTC-5, seansf wrote:

 Hey y'all

 I need to use the maps API target and I really do like the
 Intel-accelerated emulators. I have been using this hack to create a
 system.img file with the maps api loaded:


 http://38911bytes.blogspot.com/2012/03/how-to-use-google-maps-api-in-android.html

 However with v21 of the sdk tools, this workaround seems to be broken.
 I'm able to create the emulator, but it doesn't start. After saying
 haxm enabled it sticks on a blank screen and doesn't proceed. Not even
 an android splash screen.

 Is anybody using the intel accelerated emulator with the maps api
 loaded, with SDK 21? If so how did you get it working??

 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


Re: [android-developers] Re: intel-accelerated emulator + maps API with SDK v21

2013-01-17 Thread Sean Felipe Wolfe
s**t I mean v1.

On Thu, Jan 17, 2013 at 1:40 PM, Sean Felipe Wolfe ether@gmail.com wrote:
 yes, the original maps api v2.

 On Thu, Jan 17, 2013 at 12:02 PM, lbendlin l...@bendlin.us wrote:
 This is for map api v1, right?  As I understand it map api v2 is not
 supported on the emulator.


 On Thursday, January 17, 2013 1:55:06 PM UTC-5, seansf wrote:

 Hey y'all

 I need to use the maps API target and I really do like the
 Intel-accelerated emulators. I have been using this hack to create a
 system.img file with the maps api loaded:


 http://38911bytes.blogspot.com/2012/03/how-to-use-google-maps-api-in-android.html

 However with v21 of the sdk tools, this workaround seems to be broken.
 I'm able to create the emulator, but it doesn't start. After saying
 haxm enabled it sticks on a blank screen and doesn't proceed. Not even
 an android splash screen.

 Is anybody using the intel accelerated emulator with the maps api
 loaded, with SDK 21? If so how did you get it working??

 Thanks :)






-- 
A musician must make music, an artist must paint, a poet must write,
if he is to be ultimately at peace with himself.
- Abraham Maslow

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

2013-01-17 Thread bob
 

It is not mandatory to extend FragmentsActivity for API 16+.  

On Thursday, January 17, 2013 5:25:08 AM UTC-6, sree wrote:

 What is Fragments,why we are using it.When we are working 16th API it is 
 mandatory or not  to extends FragmentsActivity.



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

2013-01-17 Thread Jake Colman

Mark,

Yes, I meant an app widget and, yes, the app widget is being updated
via android:updatePeriodMillis and the AlarmManager.  The onCreate
method is NOT being called following an APPWIDGET_UPDATE since I see
those happening elsewhere in my debug log.  The AlarmManager is managing
several alarms, one of which is every 60 seconds (we've discussed this
in a different thread and I will reengineer this in my next release).
Since the alarm is triggering so often, it sounds unlikely that the
widget was swapped out of memory since it was quiescent and then
recreated on account of the alarm having triggered.  Having said that,
the timestamps for both events (onCreate and the alarm) are identical.

...Jake


 MM == Mark Murphy mmur...@commonsware.com writes:

   MM I assume widget means app widget.
   MM In that case, is your app widget being updated, via
   MM android:updatePeriodMillis or AlarmManager?

   MM if the answer is yes, then your process is being terminated in
   MM between updates, then recreated on the next update, triggering a new
   MM Application object and onCreate(). This is perfectly normal and
   MM generally beneficial to the user.

   MM On Thu, Jan 17, 2013 at 3:40 PM, Jake Colman col...@ppllc.com wrote:

My application extends the Application class so that I can initialize
ACRA in the onCreateMethod.  My application consists primarily of a
widget that monitors something and sends a notification when a condition
exists.  If the application or widget is installed and that condition
already exists at the time of installation, the notification is
triggered.

I've started getting reports that the notification will trigger at
random even after it has already triggered correctly.  I had the user
send me my Debug Log with an email telling me when the notification was
triggered.  Based on the timestamps the notification was triggered
because Application.onCreate was invoked.  Why would
Application.onCreate be invoked by Android after the application and
widget were already installed and without the user doing anything?

--
Jake Colman -- Android Tinkerer

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

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

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

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

-- 
Jake Colman -- Android Tinkerer

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

2013-01-17 Thread bob
You probably want to focus on the *startActivityForResult* method:

public void startActivityForResult (Intent intent, int requestCode, Bundle 
options)
Added in API level 16
Launch an activity for which you would like a result when it finished. When 
this activity exits, your onActivityResult() method will be called with the 
given requestCode. Using a negative requestCode is the same as calling 
startActivity(Intent) (the activity is not launched as a sub-activity).
Note that this method should only be used with Intent protocols that are 
defined to return a result. In other protocols (such asACTION_MAIN or 
ACTION_VIEW), you may not get the result when you expect. For example, if 
the activity you are launching uses the singleTask launch mode, it will not 
run in your task and thus you will immediately receive a cancel result.
As a special case, if you call startActivityForResult() with a requestCode 
= 0 during the initial onCreate(Bundle savedInstanceState)/onResume() of 
your activity, then your window will not be displayed until a result is 
returned back from the started activity. This is to avoid visible 
flickering when redirecting to another activity.
This method throws ActivityNotFoundException if there was no Activity found 
to run the given Intent.
Parameters
intent
The intent to start.
requestCode
If = 0, this code will be returned in onActivityResult() when the activity 
exits.
options
Additional options for how the Activity should be started. See 
Context.startActivity(Intent, Bundle) for more details.
Throws

android.content.ActivityNotFoundException
See Also
startActivity(Intent)


On Thursday, January 17, 2013 9:27:56 AM UTC-6, Prabu Siabuabu wrote:

 hi everyone! i was wonder is it possible to make an app like this? - 
 http://i1193.photobucket.com/albums/aa344/hiatus1/wireframe_zps9e434b1b.jpg 
 and 
 if yes, how can i do that?? i'm stuck on to link up all of my activites to 
 main activities.. anyone here can help me please?? thanks in advance.


 Regards, 

 Prabu


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

2013-01-17 Thread Jake Colman
 T == TreKing  treking...@gmail.com writes:

   T On Thu, Jan 17, 2013 at 2:40 PM, Jake Colman col...@ppllc.com
   T wrote:

If the application or widget is installed and that condition
already exists at the time of installation, the notification is
triggered.


   T That doesn't make sense. You can't do anything when your
   T *application* is first installed.

First, please forgive (and correct) any incorrect usage of Android
terms.

In my Application class all I do is override onCreate so that I can
initialize ACRA.  Any work is being done by the widget's broadcast
receiver and by an associated service class.  When the application is
created, it has no shared preferences with pre-existing values.  So when
the associated service is started it assumes that it has to trigger a
notification.  It knows if a notification has been triggered already so
it doesn't do it again.  When the application is recreated I assume that
it loses the previous incarnations shared preferences and, therefore,
the service doesn't know that it already triggered.  Hence, the false
trigger when the application is recreated.

Why would Application.onCreate be invoked by Android after the
application and widget were already installed and without the user
doing anything?


   T That would indicate your process was killed and restarted. If the
   T widget was the only thing you have running, then either it or
   T perhaps the home screen it was running on were killed. Not likely,
   T but possible.

I don't see any reason why I should have been killed.  I checked with my
user and they are not using a task killer.

   T Why do this check in onCreate? Why not do it strictly when the
   T widget is installed?

Which check?  Did my earlier paragraph explain what I think is
happening?

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Free weekly webinars fon Groovy and Grails and HTML5 from JPassion.com

2013-01-17 Thread Sang Shin


JPassion.com (Used to be JavaPassion.com) is starting again free weekly 
live webinars

from March 1st, 2013 on the 2 new courses - Groovy and Grails and HTML5.

  Free Groovy and Grails 12-week Weekly webinars
   Every Friday 10:00AM-11:AM EST New York time (from March 1st, 2013)
https://www3.gotomeeting.com/register/271741030 (for registration)

  Free HTML5 10-week Weekly webinars
   Every Friday 11:30AM-12:30PM EST New York time (from March 1st, 2013)
https://www3.gotomeeting.com/register/708745278 (for registration)

Please let others know about this (through tweeter, facebook, Google+).
Thanks much in advance.

--
---
 Sang Shin, sangshinpass...@gmail.com
  Founder and Chief Instructor of JPassion.com (JavaPassion.com)
 http://www.linkedin.com/in/javapassion (Linkedin)
  http://twitter.com/javapassion (Tweeter)
Life is worth living... with Passion!

Free 12-week Webinar series onGroovy and Grails starts from March 1st
 Free 10-week Webinar series on HTML5 starts from March 1st
 http://jpassion.com/webinars
--

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

2013-01-17 Thread bob
 

Interesting demo.


Nice page curl, by the way.



On Thursday, January 17, 2013 12:16:32 PM UTC-6, Harri Smått wrote:

 Hi, 

 There's a free application called Android UI Patterns on Play Market you 
 can use to try out many of the open source UI implementations for Android. 
 In your case ViewPager  Tabbar is maybe the most interesting part of the 
 application in which you can find horizontal scrolling implementations. 

 https://play.google.com/store/apps/details?id=com.groidify.uipatterns 

 AFAIK it's not exactly trivial to implement this yourself at first but 
 taking a look on these open source projects most definitely helps. 

 -- 
 H 

 On Jan 17, 2013, at 8:06 PM, lionel Lioninho 
 lionel.fir...@gmail.comjavascript: 
 wrote: 

  I want to create an image slider using the HorizontalScrollView. Indeed, 
 the slider will display one image at the time and I want to be able to use 
 the fling gesture to navigate left and right in the slider. Any Idea to 
 which methods to override in the HorizontalScrollView to achieve this. 
 Thanks a lot. Best 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 



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

Re: [android-developers] Re: Application.onCreate Method Randomly Called?

2013-01-17 Thread Mark Murphy
On Thu, Jan 17, 2013 at 5:07 PM, Jake Colman col...@ppllc.com wrote:
 Yes, I meant an app widget and, yes, the app widget is being updated
 via android:updatePeriodMillis and the AlarmManager.  The onCreate
 method is NOT being called following an APPWIDGET_UPDATE since I see
 those happening elsewhere in my debug log.

That will depend upon whether or not your process was terminated
between updates. Sometimes it will, sometimes it will not.

 Since the alarm is triggering so often, it sounds unlikely that the
 widget was swapped out of memory since it was quiescent and then
 recreated on account of the alarm having triggered.  Having said that,
 the timestamps for both events (onCreate and the alarm) are identical.

Are you messing around with android:process attributes in the
manifest? If so, each process gets its own Application instance. Also,
if so, please reconsider.

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


[android-developers] Re: Widevine Adaptive Streaming

2013-01-17 Thread Larry Meadors
Crap, this appears to vary by device.

On a Samsung Galaxy Tab 8.9, it's perfect. This is running 3.2.

On a Nexus 7, it's crap. This is running 4.1.2.

On a Samsung Galaxy S2 Skyrocket running 4.0.4, it's hit and miss.

Larry


On Thu, Jan 17, 2013 at 5:37 AM, Larry Meadors larry.mead...@gmail.com wrote:
 I'm using the built-in DRM support for widevine video playback, and
 the video quality seems really poor.

 The same video played on an ios device or using their web player seems
 fine, but on android it's super blocky.

 Is anyone here familiar with this problem?

 Larry


 PS: Yes, I know it's not EXCLUSIVELY android development. But it is
 exclusively an android (and widevine) issue.

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

2013-01-17 Thread TreKing
On Thu, Jan 17, 2013 at 4:14 PM, Jake Colman col...@ppllc.com wrote:

 When the application is recreated I assume that
 it loses the previous incarnations shared preferences and, therefore,
 the service doesn't know that it already triggered.  Hence, the false
 trigger when the application is recreated.


SharedPreferences are persisted if you commit them so any prefs you set in
one call to Application.onCreate() should be available in the next call and
throughout the rest of the app.


T That would indicate your process was killed and restarted. If the
T widget was the only thing you have running, then either it or
T perhaps the home screen it was running on were killed. Not likely,
T but possible.

 I don't see any reason why I should have been killed.  I checked with my
 user and they are not using a task killer.


The HomeScreen could crash and have to restart, among other unlikely but
possible scenarios.


T Why do this check in onCreate? Why not do it strictly when the
T widget is installed?

 Which check?  Did my earlier paragraph explain what I think is happening?


Your check for whether the notification should be triggered. I thought you
were doing it in Application.onCreate, but I might have misunderstood.

-
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: BouncyCastle signature value does not match with dotNET signature value.

2013-01-17 Thread Nikolay Elenkov
On Fri, Jan 18, 2013 at 1:22 AM, mbarbiero marco.barbi...@gmail.com wrote:
 Hi Nikolay...

 In the XMLs that I post the DigestValue (SHA1) is the same of the
 DigestValue of canonicalized .net.

I thing you might be missing the point that what gets hashed and ultimately
signed is the whole SignedInfo/ element. You need to get the canonical
form of that in both platforms and calculate the hash.


 I will try to create a program in Java pure to test if problem is in Android
 implementation. What you think about?


Everything so far points that way, so you should definitely do it and compare
intermediate results with .NET.

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

2013-01-17 Thread Jake Colman
 T == TreKing  treking...@gmail.com writes:

   T On Thu, Jan 17, 2013 at 4:14 PM, Jake Colman col...@ppllc.com wrote:

When the application is recreated I assume that it loses the
previous incarnations shared preferences and, therefore, the
service doesn't know that it already triggered.  Hence, the false
trigger when the application is recreated.


   T SharedPreferences are persisted if you commit them so any prefs
   T you set in one call to Application.onCreate() should be available
   T in the next call and throughout the rest of the app.

I am using PreferenceManager.getDefaultSharedPreference.  I am
committing my preferences when my Service (not the widget receiver but
the Service that is started by the widget receiver) is destroyed and I
read the preferences when the Service is created.  One of the saved
pieces of data stores whether the notification had already been
triggered.  Since the getDefaultSharedPreference method takes a context,
is it possible that when the Application is recreated there is a new
context so my saved preferences are lost?  That would explain why the
notification is re-triggered when the Application is created a second
time.

-- 
Jake Colman -- Android Tinkerer

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

2013-01-17 Thread sree android
thank you

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

[android-developers] Re: Problems of dynamic loading downloaded precompiled renderscript source files

2013-01-17 Thread Stephen Hines
Unfortunately there is no way to dynamically download, compile, and execute 
Renderscript bitcode in Android. Even with a small fix I made to the 
reflected ScriptC constructors (allowing you to eliminate the res/raw + 
filename, and only pass the first argument), you still need to have the 
bitcode files in the raw resources for the apk.

Steve

On Wednesday, January 9, 2013 3:32:20 PM UTC-8, wave wrote:

 I have a problem on dynamic loading pre-compiled renderscript source 
 files (.bc, Script_.java) which are downloaded from web. I want to 
 load pre-compiled renderscript source files (.bc, Script_.java)  at 
 runtime by dynamic class loading. However,ScriptC(RenderScript rs, 
 Resources resources, int resourceID), the constructor of ScriptC requires a 
 resource ID. As the renderscript source files are downloaded, there are no 
 ways to provide resource ID to constructor. Is there any other solutions I 
 could find to solve this problem? 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