[android-developers] installation problem in ics-x86

2012-03-12 Thread venky6
Hi all,

I am using ics- x86 on my custom device.
I am able to run through usb boot and can use the device.
If i try to install on device. after selecting install  android to
hard-disk and then showing partition to install.
From there keyboard and mouse are not working to select boot
partition.
Any one faced issue like this?

Thanks in Advance,
venky

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] can more than one sliding drawer be used in a LinearLayout?

2012-03-12 Thread Jim Graham
On Sat, Mar 10, 2012 at 09:52:31PM -0600, Jim Graham wrote:
 Oops...did a direct (r)eply instead of a (L)ist reply  I did say
 my brain was already shut down for the night.  grin
 
 On Sun, Mar 11, 2012 at 09:00:01AM +0530, Narendra Singh Rathore wrote:
 
  http://stackoverflow.com/questions/6404606/android-is-it-possible-to-have-multiple-slidingdrawer
 
 Thanks.  That appears to be The Answer (42 grin).  I'd already offset
 the tabs, but other than that, sounds like the OP in that one was having
 the same problem, and got it working.  I'll look into it more tomorrow.

Ok, well, as per the stackoverflow link above, I put
   android:layout_weight=1
   android:layout_height=0

in both SlidingDrawer defs.  That caused an error---can't use an integer
(0), so I made the height lines 0dp instead.

No change.  The last SlidingDrawer defined in the layout is the one that
will open, regardless of which tab is pulled down.

Any other ideas?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

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

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


[android-developers] Re: How to show a single country map rather then whole world map

2012-03-12 Thread Harpreet Singh
Because if we do a team work now then it'll help all in future. This
concept is in demand and no one is getting a perfect solution.
Thanks for your reply. :)


On Mar 9, 12:30 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Why would anyone do your work for you?







 On Friday, March 9, 2012 3:25:40 PM UTC+8, Harpreet Singh wrote:

  Here is an example on net which is showing a custom map. Plz check it
  out. Let me know if you find a way that how can we implement that in
  Android. I am also trying to figure it out.
  link:http://maps.forum.nu/gm_texas.html

  Thanks,
  Harpreet.

  On Mar 6, 4:26 pm, lbendlin l...@bendlin.us wrote:
   The Google Maps API uses map tiles., It has absolutely no idea about
   country borders.

   On Tuesday, March 6, 2012 1:15:08 AM UTC-5, Harpreet Singh wrote:
Hi Friends,

I am using Google Map Api, it showing the whole world map.
I need to display map of individual country e.g. just of Australia.
Is it possible that only map of Australia is shown and rest
neighboring countries will not be displayed.

Please help.

Thanks in advance,
Harpreet.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 show a single country map rather then whole world map

2012-03-12 Thread Harpreet Singh
Hi. I am just trying to crop the country map out of world map, or blur
everything else and just show the single country but there is no hint
regarding that.
Regarding deadline, I think I have 2 more weeks to complete this. :)


On Mar 9, 11:42 pm, Ali Chousein ali.chous...@gmail.com wrote:
  Here is an example on net which is showing a custom map. Plz check it
  out. Let me know if you find a way that how can we implement that in
  Android. I am also trying to figure it out.

 Sure. But you forgot to tell what the deadline is.

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

2012-03-12 Thread ALi
Hi, We are interested to develop CRM business app for Android, iphone
using multiplatform
But we are confused to select and finalize one platform.
Like Adobe Flex, Titanium, RhoStudio Sencha etc..
Which should we select to start working on it so its not be a problem
in future for compatibility.
Any guide, Suggestions.
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] Fill half data in Autocomplete textview

2012-03-12 Thread Jagruti Sangani
Hello,
I have use the Autocompletetextview for filter the phonenumber from
list when i press in the Autocompletetextview.My code is given
below...


 ArrayAdapterString adapter;
 AutoCompleteTextView txt;

  adapter = new
ArrayAdapterString(mContext,android.R.layout.simple_list_item_1,getModel());
txt= (AutoCompleteTextView)((Activity)
mContext).findViewById(R.id.autotxt);
txt.setThreshold(1);
txt.setAdapter(adapter);

private ListString getModel()
{
 list = new ArrayListString();

Cursor
phones=((Activity)mContext).getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null,
null,null,null);
//Cursor phones =
((Activity)mContext).getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
null,ContactsContract.CommonDataKinds.Phone.CONTACT_ID + = +
contactId,null, null);
while (phones.moveToNext())
{
String phoneNumber =
phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
String
name=phones.getString(phones.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
list.add(phoneNumber+   +name);
}
phones.close();
return list;
}







It is work finewhem i press 5 in  Autocompletetextview  then it
will show me in list like 5002 jagruti.and when i click on that item
then it will fillup in Autocompletetextview.But actually i need that
when i press the 5 then it will show me as 5002 jagruti and when i
click on that item then it will fillup the  Autocompletetextview  with
the only 5002.i dont want to fillthe  Autocompletetextview  with the
name also.so can anybody know how to extract only number and fillyp
in  Autocompletetextview .because there  is no any event for fillup
the  Autocompletetextview .

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

2012-03-12 Thread Narendra Singh Rathore
On Sun, Mar 11, 2012 at 9:44 AM, rayhan rayha...@gmail.com wrote:

 Now i am learning android developing.I want to know that where i can
 get tutorial from basic to advance level to learn android.


Refer to the book Beginning Android Application Develoopment.
Its a nice book for beginners.

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

2012-03-12 Thread Kristopher Micinski
Do subscriptions to testing services really cost more than three devices?

Wow... that's bad.

kris

On Fri, Mar 9, 2012 at 4:53 AM, Miles Egan milese...@gmail.com wrote:
 I've completed an iOS app for a client and they've asked me to do an Android
 port for them. I haven't written any real Android apps before but I've been
 hacking around on some of my own apps and studying the docs long enough to
 feel confident that I understand the APIs and conventions well enough to do
 the port. However, I'm a little concerned about testing. I don't currently
 own any Android devices at all. I'm willing to buy 2-3 devices for testing
 purposes but I don't have the budget to buy more than this or to subscribe
 to one of the online testing services.

 So before I commit to this project, I'd like to ask people with more
 experience this: are two or three different phones enough to test a
 relatively simple app before release or would I need more to represent the
 large number of different devices out there?

 --
 miles

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

2012-03-12 Thread Narendra Singh Rathore
On Sat, Mar 10, 2012 at 11:18 AM, pandey praveen@gmail.com wrote:

 Hi ,
I am new to android and I have been working as android developer
 from 4 months . I was looking for some good book on android
 application development and I am confused about which one to buy .
 Help please ..



 Refer to the book Beginning Android Application Develoopment.
 Its a nice book for learners.


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

2012-03-12 Thread Lazarus 101
you can use custom views in layout files like this:

your.package.name.YourScrollView
...
/your.package.name.YourScrollView

On Mar 12, 7:01 am, Put_tiMe putt...@gmail.com wrote:
 I might have to extend ScrollView and I would like to call it *myScrollView*
 .
 Is it possible to specify this *myScrollView* in the XML file itself?
 Or can it be done only programmatically?

 If it can be done only through code, then, can I squeeze in a layout
 specified in the XML file into *myScrollView?*
 So that *myScrollView* becomes the parent.

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

2012-03-12 Thread Giuseppe
use ODATA insteasd of PHP.

Il giorno sabato 10 marzo 2012 12:34:03 UTC+1, ramalakshmi ha scritto:

 Hi!
   I want to develop an application which connects ms sql to android 
 mobile.In this the table values of sql server should be shown in android 
 mobile.
   For this I connected the sql server though php.the php content is
?php
  header('refresh: 10; url=sample1.php');
 $con = mssql_connect('admin', 'sa', '10$million');
 if(!$con)
 {
  die('Reloding te page ,please wait' .mssql_error());
  header(Location: sample1.php);
 }
 mssql_select_db('SPI',$con)
 or die(Could not select database);
 $arr = array();
 $rs = mssql_query(SELECT Symbol, Bid, Ask FROM Data  WHERE Slno16 AND 
 Slno8 order by Slno);
 while($obj = mssql_fetch_object($rs)) {
 $arr[] = $obj;
 }
 echo '{Data:'.json_encode($arr).'}';
 ?
 the output is 

 {Data:[{Symbol:GOLD,Bid:1712.9,Ask:1713.1},{Symbol:SILVER,Bid:34.27,Ask:34.302},{Symbol:PLATINUM,Bid:1678.3,Ask:1688.3},{Symbol:CRUDE,Bid:107.33,Ask:107.45},{Symbol:DOLLAR,Bid:49.85,Ask:49.86},{Symbol:EURO,Bid:1.3121,Ask:1.3124},{Symbol:YEN,Bid:82.42,Ask:82.47}]}
   
I have wrote two files in eclipse ide.the first one is
 JSONfunctions.java 

 public class JSONfunctions {

 public static JSONObject getJSONfromURL(String url){
 InputStream is = null;
 String result = ;
 JSONObject jArray = null;
 
 //http post
 try{
 HttpClient httpclient = new DefaultHttpClient();
 HttpPost httppost = new HttpPost(url);
 HttpResponse response = httpclient.execute(httppost);
 HttpEntity entity = response.getEntity();
 is = entity.getContent();

 }catch(Exception e){
 Log.e(log_tag, Error in http connection +e.toString());
 }
 
   //convert response to string
 try{
 BufferedReader reader = new BufferedReader(new 
 InputStreamReader(is,iso-8859-1),8);
 StringBuilder sb = new StringBuilder();
 String line = null;
 while ((line = reader.readLine()) != null) {
 sb.append(line + \n);
 }
 is.close();
 result=sb.toString();
 }catch(Exception e){
 Log.e(log_tag, Error converting result +e.toString());
 }
 
 try{
 
 jArray = new JSONObject(result);
 }catch(JSONException e){
 Log.e(log_tag, Error parsing data +e.toString());
 }
 
 return jArray;
 }
 }

 the other one is
 main.java

 public class Main extends ListActivity {
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.listplaceholder);
   ArrayListHashMapString, String mylist = new 
 ArrayListHashMapString, String();
JSONObject json = JSONfunctions.getJSONfromURL(
 http://192.168.100.9:8000/sample1.php;);
  try{
 JSONArray  Data = json.getJSONArray(Data);
for(int i=0;iData.length();i++){
 
 HashMapString, String map = new HashMapString, 
 String();
 JSONObject e = Data.getJSONObject(i);
 map.put(Symbol,+e.getString(Symbol));
 map.put(Bid,  + e.getString(Bid));
 map.put(Ask,  +  e.getString(Ask));
 mylist.add(map);
 }
 }catch(JSONException e){
  Log.e(log_tag, Error parsing data +e.toString());
 }
 ListAdapter adapter = new SimpleAdapter(this, mylist, 
 R.layout.main, 
   new String[] { Symbol, Bid, Ask }, 
   new int[] { R.id.item_title, R.id.item_title1, 
 R.id.item_title2});
   setListAdapter(adapter);
  final ListView lv = getListView();
 lv.setTextFilterEnabled(true);
   
 });
 }
 }
 I got the output like this

 now I want to chage the values as it work in ajax.
 that is real time streaming values of the table I want.
 can anybody help.please excuse if there are any gramatical mistakes.
   R u understand my need ?
 -- 
 ramalakshmi



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] read/write to sector of a mounted usb flash on /dev/block/sda

2012-03-12 Thread Ali
Hi all
i need to read and write in sectors of a USB flash moundet on /dev/block/sda
would you please help 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: Exception coming while shutting down android device

2012-03-12 Thread Abhishek Sharma
Hi Mark

You are right ..but I am compiling the complete android source.

This method is present in  Source/frameworks/base/core/java/com/
android/internal/app/ShutdownThread.java

I have also added user permissions for System Alert Window.

regards
Abhishek

On Mar 8, 5:23 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Mar 8, 2012 at 5:25 AM, Abhishek Sharma abhitec...@gmail.com wrote:
  I want to shutdown android device from application on pressing key.

 This is not possible from an ordinary SDK application.

  Code snippet:
  public void poweroff()
  {
    ShutdownThread.shutdown(context, true);
  }

 There is no ShutdownThread in the Android SDK.

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.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] how to disable dictionary

2012-03-12 Thread rathod kantilal
how to disable dictionary in EditText in android ?
Thanks in Advance.KLAL

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

2012-03-12 Thread Ali
Hi all
i need to know, how can i set every component right to left
for example a digitalclock! i need it to be right to left and also change 
the digits to my language! is it possible?
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: cross Multi-platform mobile app.

2012-03-12 Thread Josh Brown
In general what I and the rest of the company I work for have found is that 
those write-once-run-anywhere platforms never give you a good solution, 
and in many cases end up adding more work than they save you.  The main 
problem with them is that they are inherently limited to a lowest common 
denominator approach.  They have to support only the things that can be 
supported on all of their platforms.  Worse yet, they often fail horribly 
when it comes to scalability and things that are peculiar to a specific 
platform.

Additionally, you will never fully get the feel of a truly native app. 
 Keep in mind that the two platforms are very different even ignoring the 
different programming languages and APIs they use.  Their whole design 
language is different.  iOS tends to use tabular navigation heavily whereas 
Android uses more dashboards.  iOS tabs are typically on the bottom, 
Android's are on the top.  Horizontal swipe gestures are much more common 
on Android.  

There's a huge list of differences that transcend simply rewriting the 
code.  If you're not willing to respect those differences, write a web-app 
optimized for mobile.  It's definitely cheaper and you won't have to worry 
about conforming to any particular platform.  If you'd rather invest the 
time seeking a native solution, then go fully native and design and write 
for each platform.

On Sunday, March 11, 2012 11:34:42 PM UTC-7, ALi wrote:

 Hi, We are interested to develop CRM business app for Android, iphone 
 using multiplatform 
 But we are confused to select and finalize one platform. 
 Like Adobe Flex, Titanium, RhoStudio Sencha etc.. 
 Which should we select to start working on it so its not be a problem 
 in future for compatibility. 
 Any guide, Suggestions. 
 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: cross Multi-platform mobile app.

2012-03-12 Thread Josh Brown
You might want to take a look at 
http://www.phunware.com/uncategorized/2011/06/27/the-delusion-of-right-once-run-anywhere-mobile-apps/

On Monday, March 12, 2012 2:19:11 AM UTC-7, Josh Brown wrote:

 In general what I and the rest of the company I work for have found is 
 that those write-once-run-anywhere platforms never give you a good 
 solution, and in many cases end up adding more work than they save you. 
  The main problem with them is that they are inherently limited to a 
 lowest common denominator approach.  They have to support only the things 
 that can be supported on all of their platforms.  Worse yet, they often 
 fail horribly when it comes to scalability and things that are peculiar to 
 a specific platform.

 Additionally, you will never fully get the feel of a truly native app. 
  Keep in mind that the two platforms are very different even ignoring the 
 different programming languages and APIs they use.  Their whole design 
 language is different.  iOS tends to use tabular navigation heavily whereas 
 Android uses more dashboards.  iOS tabs are typically on the bottom, 
 Android's are on the top.  Horizontal swipe gestures are much more common 
 on Android.  

 There's a huge list of differences that transcend simply rewriting the 
 code.  If you're not willing to respect those differences, write a web-app 
 optimized for mobile.  It's definitely cheaper and you won't have to worry 
 about conforming to any particular platform.  If you'd rather invest the 
 time seeking a native solution, then go fully native and design and write 
 for each platform.

 On Sunday, March 11, 2012 11:34:42 PM UTC-7, ALi wrote:

 Hi, We are interested to develop CRM business app for Android, iphone 
 using multiplatform 
 But we are confused to select and finalize one platform. 
 Like Adobe Flex, Titanium, RhoStudio Sencha etc.. 
 Which should we select to start working on it so its not be a problem 
 in future for compatibility. 
 Any guide, Suggestions. 
 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] How to launch OnTouchListener on the elements of a ScrollView but only when the user is not Scrolling?

2012-03-12 Thread saex
 

i have a huge problem managing my horizontal scrollview. It haves inside a 
horizontal linear layout with a lot of vertical linear layouts wich haves a 
text and a image.

I want that when the user press on the vertical linearlayouts, the 
ontouchlistener must be called launching a new feature of my app.

The problem is that when the user scrolls the scrollview, the 
ontouchlistener of the verticallinearlayouts is being called, and i dont 
want that.

How can this be solved?

Thanks

My code:

final HorizontalScrollView hsv = new HorizontalScrollView(this);
RelativeLayout.LayoutParams hsvParams = new 
RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 
LayoutParams.WRAP_CONTENT);
hsvParams.addRule(RelativeLayout.BELOW,6);
hsv.setBackgroundColor(0x55383838);
hsv.setLayoutParams(hsvParams); 
hsv.setVisibility(View.GONE); //inicialmente está oculto

LinearLayout hsvll = new LinearLayout(this);  
hsvll.setOrientation(LinearLayout.HORIZONTAL);  
hsvll.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 
LayoutParams.WRAP_CONTENT));
hsvll.setPadding(0, 0, 0, 5);

createThumbnails();

List LinearLayout thumbnailLinearLayouts = new ArrayListLinearLayout(); 


for (int i=1; i=squareGLSurfaceView.pages.size();i++){ //el tope es 
=pages.size() porque hay que recordar que se ha añadido una página en blanco 
al principio, por lo que la última página será = .size(). Nos guiamos por 
pages.size en lugar de thumbnails.size() porque thumbnails.size() puede haber 
crecido para añadir una página en blanco al final, que no queremos mostrar
LinearLayout ll = new LinearLayout(this);  
ll.setOrientation(LinearLayout.VERTICAL);  
ll.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 
LayoutParams.WRAP_CONTENT)); 
ll.setPadding(10, 0, 10, 0);
thumbnailLinearLayouts.add(ll); 

TextView tv = new TextView(this);  
tv.setText(+(i));
tv.setGravity(Gravity.RIGHT);
ll.addView(tv);

ImageView iv = new ImageView(this);
iv.setImageBitmap(thumbnails.get(i));
ll.addView(iv);

hsvll.addView(ll);  
}

hsv.addView(hsvll);
rl.addView(hsv);

for (int i=0;ithumbnailLinearLayouts.size();i++){
final int auxIndex=i;
thumbnailLinearLayouts.get(i).setOnTouchListener(new OnTouchListener(){
@Override
public boolean onTouch(View v, MotionEvent event) { 
MagazineStatus.currentPage=auxIndex;
hsv.setVisibility(View.GONE);
return true;}   
});
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] opening pdf in my projects' raw folder in droidreader or any pdf reader

2012-03-12 Thread Jags
hi all,

i need to open a few pdf files in my app's res/raw folder in droidreader. i 
am able to launch droidreader now, but it says currently only file:// urls 
are supported.

now, 

1. can i represent my raw folder pdf file in file:// url ? how ?
2. can i send entire binary data into droidreader ?
3. can i copy my file in raw folder to a temp location and make a uri outa 
it and delete it after reading ?

thanks in advance
jags

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

2012-03-12 Thread Anirudh Loya
Try www.google.com

On Mon, Mar 12, 2012 at 12:55 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Sun, Mar 11, 2012 at 9:44 AM, rayhan rayha...@gmail.com wrote:

 Now i am learning android developing.I want to know that where i can
 get tutorial from basic to advance level to learn android.


 Refer to the book Beginning Android Application Develoopment.
 Its a nice book for beginners.

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




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*The lingering question - WHAT NEXT?  is the mantra of Success  -- Voice
Of Love*

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

2012-03-12 Thread chowdary nani
Hi all,


I am working on loading URL in web view in android.
i am able to load the gmail URL in web view
when i entered email and password and click login button
i need to read the response
can any one help me in handling the button clicks in HTML
Please help me in solving this .

Thanks
Naveen

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

2012-03-12 Thread vani reddy
Hi friends,

I am using Urbanairship for push notifications.

I am getting the following exception

Unable to start receiver com.testdemo.android.IntentReceiver:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK
flag. Is this really what you want?



and the below is the onReceive of IntentReceiver


@Override
public void onReceive(Context arg0, Intent aIntent) {
String action = aIntent.getAction();
if (action.equals(PushManager.ACTION_NOTIFICATION_OPENED)) {
// user opened the notification so we launch the 
application

// This intent is what will be used to launch the 
activity in our
// application
Intent lLaunch = new Intent(Intent.ACTION_MAIN);

// Main.class can be substituted any activity in your 
android
// project that you wish
// to be launched when the user selects the 
notification from the
// Notifications drop down

lLaunch.setClass(UAirship.shared().getApplicationContext(),
HomeScreen.class);


lLaunch.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);

// copy the intent data from the incoming intent to the 
intent
// that we are going to launch

//  copyIntentData(aIntent, lLaunch);


UAirship.shared().getApplicationContext().startActivity(lLaunch);

} else if (action.equals(PushManager.ACTION_PUSH_RECEIVED)) {
// push notification received, perhaps store it in a db


}


}


-- 
Regards,
Vani Reddy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When using surfaceview, images are not visible but they are drawing on view in android

2012-03-12 Thread satyanarayana
Hi all I am drawing some bitmaps in canvas in which my class is
extended by view and then everything is working fine but I found that
the efficiency is lacking in this. So i have searched for other
alternatives and found that we need to extend class to surfaceview
inorder to increase efficiency. So at present I am drawing bitmaps
using surfaceview. But here is the problem, when I changed and run the
program I am unable to see the bitmaps but the onDraw() is called. I
have done some searching in this but couldnt found anything. Can you
please let me know eventhough the images are being draw on to the
view, why the images are not being displayed???


Note: I have done as an application then the images are visible but
when i ported the code to frameworks this situation raises.I am
implementing this on LockScreen



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: cross Multi-platform mobile app.

2012-03-12 Thread Anirudh Loya
Well said Josh !

On Mon, Mar 12, 2012 at 2:49 PM, Josh Brown keyboa...@gmail.com wrote:

 You might want to take a look at
 http://www.phunware.com/uncategorized/2011/06/27/the-delusion-of-right-once-run-anywhere-mobile-apps/


 On Monday, March 12, 2012 2:19:11 AM UTC-7, Josh Brown wrote:

 In general what I and the rest of the company I work for have found is
 that those write-once-run-anywhere platforms never give you a good
 solution, and in many cases end up adding more work than they save you.
  The main problem with them is that they are inherently limited to a
 lowest common denominator approach.  They have to support only the things
 that can be supported on all of their platforms.  Worse yet, they often
 fail horribly when it comes to scalability and things that are peculiar to
 a specific platform.

 Additionally, you will never fully get the feel of a truly native app.
  Keep in mind that the two platforms are very different even ignoring the
 different programming languages and APIs they use.  Their whole design
 language is different.  iOS tends to use tabular navigation heavily whereas
 Android uses more dashboards.  iOS tabs are typically on the bottom,
 Android's are on the top.  Horizontal swipe gestures are much more common
 on Android.

 There's a huge list of differences that transcend simply rewriting the
 code.  If you're not willing to respect those differences, write a web-app
 optimized for mobile.  It's definitely cheaper and you won't have to worry
 about conforming to any particular platform.  If you'd rather invest the
 time seeking a native solution, then go fully native and design and write
 for each platform.

 On Sunday, March 11, 2012 11:34:42 PM UTC-7, ALi wrote:

 Hi, We are interested to develop CRM business app for Android, iphone
 using multiplatform
 But we are confused to select and finalize one platform.
 Like Adobe Flex, Titanium, RhoStudio Sencha etc..
 Which should we select to start working on it so its not be a problem
 in future for compatibility.
 Any guide, Suggestions.
 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




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*The lingering question - WHAT NEXT?  is the mantra of Success  -- Voice
Of Love*

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

2012-03-12 Thread vani reddy
Hi friends,

I am using Urbanairship for push notifications.

I am getting the following exception

Unable to start receiver com.testdemo.android.IntentReceiver:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK
flag. Is this really what you want?



and the below is the onReceive of IntentReceiver


@Override
public void onReceive(Context arg0, Intent aIntent) {
String action = aIntent.getAction();
if (action.equals(PushManager.ACTION_NOTIFICATION_OPENED)) {
// user opened the notification so we launch the 
application

// This intent is what will be used to launch the 
activity in our
// application
Intent lLaunch = new Intent(Intent.ACTION_MAIN);

// Main.class can be substituted any activity in your 
android
// project that you wish
// to be launched when the user selects the 
notification from the
// Notifications drop down

lLaunch.setClass(UAirship.shared().getApplicationContext(),
HomeScreen.class);


lLaunch.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);

// copy the intent data from the incoming intent to the 
intent
// that we are going to launch

//  copyIntentData(aIntent, lLaunch);


UAirship.shared().getApplicationContext().startActivity(lLaunch);

} else if (action.equals(PushManager.ACTION_PUSH_RECEIVED)) {
// push notification received, perhaps store it in a db


}


}


Please reply 


-- 




-- 
Regards,
Vani Reddy

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

2012-03-12 Thread Put_tiMe
Given that I can scan an APK file, is there anyway I can get to know if it 
uses ads or not.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 compile linePhone(an open source SIP phone) in emulator?

2012-03-12 Thread Juned Khan
hi developers,
 i want to do analysis on linePhone application which is 
open source. for that purpose i have downloaded the source code from this 
link from http://www.linphone.org but while running that project i am 
facing a some problem which is related to sdk and versions. is there any 
one who knows that how to compile that project?  thanks in advance

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

[android-developers] Lock-unlock device during audio recording

2012-03-12 Thread rachana govilkar
Hello all,
I am developing an application inside which i need to record audio.
I implemented code and it is working fine until my tester filed a bug
for me.
Tester scenario was:
1.open application.
2.start recording audio.
3.lock device.
4.unlock device.
5.recording continues.
here if device is locked, after unlocking i want to stop recording and
take it to earlier activity.
But i am not able to do it.
Is there any event need to be handled for this?
Like in video recording i had to handle SurfaceDestroyed().
Let me know if anyone knows.
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] Robotium horizontalscroll using solo

2012-03-12 Thread Uday Gokhale
Hi All,

I have 2 galary views in my app. I want to scroll right on 2nd galary view.

here is my code but its not working..

ArrayListView views = solo.getCurrentViews();

*for* (*int* i=0;iviews.size();i++) {

View vi = views.get(i);

*if* (vi.getId() == R.id.*gallery1*)

solo.scrollToSide(22);

solo.clickOnView(vi);

}
even,

solo.scrollToSide(solo.RIGHT);

is also not working.

Is der any one who knows about this.



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] Wich is the best way to destroy a GLSurfaceview and free all the memory?

2012-03-12 Thread saex
 

I have a GLSurfaceView with four polygons with textures.

I need to destroy the GLSurfaceview and recreate a new GLSurfaceView with 
new parameters when the user press a button.

I tryed with myGLSurfaceView = null and initializing again myGLSurfaceView 
with the new paramters, but it is giving me VM budget bitmnap exception. I 
dont understand why, because i am doing recicle() on all the bitmaps i use.

So, i think that i need to destroy all the polygons of my glsurfaceview and 
my glsurfaceview before tho recreating a new glsurfaceview.

Wich is the correct way to achieve this?

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

2012-03-12 Thread chowdary nani
hi all,
Currently i working on webviews
ie,
i am able to load the urls
in webpage when i  click on button in web page i need to know which button
is clicked
here i need to know which button is clicked in html page and need to to
some task

please any one help me.


Thanks
Naveen.

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

2012-03-12 Thread Live Happy
i have integrate face book in my android  application but it there a way to
get the online friends and also can i write a message to the inbox not to
the wall of friends ?
 thx  om advance

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

[android-developers] Re: Android Game Programming help

2012-03-12 Thread Peter Webb
100% agree.
 
Actually writing the nuts and bolts of a real time game on Android has very 
little to do with Android. You will need to know how to use the classes 
associated with I/O, like how to write an Bitmap to the display or handle 
touch events. This stuff is pretty simple, with plenty of on-line code 
snippets. The difficult/complex things like collision detection and 
implementing a physics engine all have to be written from the ground up, 
and will not contain anything specific to Android.
 
What I found hard was getting the initial game framework setup. A real time 
game needs a couple of different threads, and when someone presses the HOME 
key the threads needed to be halted/suspended properly. It also needs to 
supply real-time environments for the real time game itself with the CPU 
rendering its little heart out, and environments like Help Screens where it 
can render once and wait for a user input.
 
Writing this stuff properly requires a knowledge of the Android 
architecture and considerable experience in setting up game environments. 
What you want to do instead is take a game which already works, hollow it 
out, and insert your own game logic. The game demos in the SDK don't 
provide this; Lunar Lander (for example) will crash if you leave it at the 
wrong point and try to switch back to it. If these guys couldn't get it 
right, mere mortals have no chnace.
 
This is why I also recommend Zechner's book. It builds two games from 
scratch - one using 2D graphics libraries, the other 3D - and they 
demonstrably work properly. And the programs are designed to allow easy 
substitution of some other game logic. He does a piss-poor job of 
explaining the Android architecture, but if you use his programs as a start 
point you don't need to know very much about it at all (a thoroughly good 
thing; its quite complicated). He does briefly discuss some specific game 
programming concepts like collision detection, but you will find more 
comprehensive resources on the web. What he does do very well is give you a 
fully working game with help screens, menus, persistent data and all the 
rest of it ready to modify to your needs, and this will save you a huge 
amount of work. 
 
Peter Webb
 

On Sunday, March 11, 2012 9:55:04 PM UTC+11, Oli Wright wrote:

 I had replied but it didn't submit for some reason.  Oh well.  It boiled 
 down to:
 1. What Kris said
 2. Read Mario Zechner's book Beginning Android Games
 3. Until you've done (2) I don't buy Most of the links given by the group 
 are links and sources i've gone through before.  If you still don't 
 understand, read it again.


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

[android-developers] How to use 'IActivityWatcher'?

2012-03-12 Thread Put_tiMe
How do I register for an 'IActivityWatcher' callback?
 
 

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

2012-03-12 Thread Mark Murphy
On Mon, Mar 12, 2012 at 4:44 AM, Abhishek Sharma abhitec...@gmail.com wrote:
 You are right ..but I am compiling the complete android source.

Then you are on the wrong list. This list is for building apps with
the Android SDK. Visit http://source.android.com for source related
topics, including relevant Google Groups.

-- 
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 3.7 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] Handling Redirects in Android WebView

2012-03-12 Thread Mark Murphy
Redirects are handled via a WebViewClient and
shouldOverrideUrlLoading(), as are clicks on ordinary links.

On Sun, Mar 11, 2012 at 3:54 AM, Rao nidleks...@gmail.com wrote:
 Hi,

 I am developing a android application, Within the application I am
 trying to Load a URL using WEBVIEW. Afer i submit the data in the
 opened webpage, it gets redirected to some other URL. My requirement
 is to get the complete Redirected URL within my android application.

 I didnt see any events/ API methods which can be used to notify URL
 Redirect.

 Are there any way to listen for URL redirects within my application
 and then retrieve the URL.

 Thanks
 Rao

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 3.7 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] Re: How to show a single country map rather then whole world map

2012-03-12 Thread James Black
Why not do your own map. Look at open streets for ideas on how to do it.
On Mar 12, 2012 2:34 AM, Harpreet Singh harry...@gmail.com wrote:

 Hi. I am just trying to crop the country map out of world map, or blur
 everything else and just show the single country but there is no hint
 regarding that.
 Regarding deadline, I think I have 2 more weeks to complete this. :)


 On Mar 9, 11:42 pm, Ali Chousein ali.chous...@gmail.com wrote:
   Here is an example on net which is showing a custom map. Plz check it
   out. Let me know if you find a way that how can we implement that in
   Android. I am also trying to figure it out.
 
  Sure. But you forgot to tell what the deadline is.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] (UPDATE) can more than one sliding drawer be used in a LinearLayout?

2012-03-12 Thread Jim Graham
On Mon, Mar 12, 2012 at 01:24:40AM -0500, Jim Graham wrote:
 On Sat, Mar 10, 2012 at 09:52:31PM -0600, Jim Graham wrote:
  On Sun, Mar 11, 2012 at 09:00:01AM +0530, Narendra Singh Rathore wrote:
   http://stackoverflow.com/questions/6404606/android-is-it-possible-to-have-multiple-slidingdrawer

 Ok, well, as per the stackoverflow link above, I put
android:layout_weight=1
android:layout_height=0
 
 in both SlidingDrawer defs.  That caused an error---can't use an integer
 (0), so I made the height lines 0dp instead.
 
 No change.  The last SlidingDrawer defined in the layout is the one that
 will open, regardless of which tab is pulled down.

UPDATE:  I'm not sure at this point if I updated the apk I was loading
the demo from in the previous post---now, if the height is set to 0dp,
you get what you'd expect:  the tab buttons aren't even displayed.  So I
set that to wrap_content for both SlidingDrawer defs.  The last one
displayed is the ONLY one that will load.

I see why, though:

Here's what the two tabs looks like (roughly):


[]and []

and here's how they look together on the screen:

_[][]

Even with weight set to 1 for both, the two tabs still overlap, where the
last one loaded is on top.  Its empty space is being pulled up, even when
I try to use the first one (tab 2's transparent empty space is still on
top of tab 1's button).

I've tried playing around with the weights (set one to 0, set both to 0,
etc.) with no difference in the result.  I tried removing all but the
button itself (i.e., just [] instead of []), but
then, neither of them showed up at all.

Any suggestions?

Thanks,
   --jim

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

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

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


[android-developers] Universal set up to Android Games

2012-03-12 Thread Ahmad Kaddoura
I forgot where I found the details, but i was wondering if anyone knows the 
basic set-up to Android games.

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

2012-03-12 Thread Ralph Bergmann | the4thFloor.eu
Am 12.03.12 11:55, schrieb Live Happy:
 i have integrate face book in my android  application but it there a way
 to get the online friends and also can i write a message to the inbox
 not to the wall of friends ?

is a little bit off-topic

http://qpleple.com/fetch-online-friends-list-with-facebook-graph-api/

https://developers.facebook.com/docs/reference/api/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] Path to screenshot

2012-03-12 Thread scame
Hello.

Is there a way to find out the path used by android to save
screenshots? Can i get the path from a code?

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

2012-03-12 Thread Oli Wright
Start a new project and implement your game logic ...

Seriously, be less vague.  Are you talking about using a particular 
framework?  OpenGL based game or not?

On Monday, March 12, 2012 12:33:56 PM UTC, Ahmad Kaddoura wrote:

 I forgot where I found the details, but i was wondering if anyone knows 
 the basic set-up to Android games.

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

2012-03-12 Thread Oli Wright
Spot on.  Games can generally get away with having the same interface on 
every platform as it's forgiveable for a game to have an entirely custom 
interface.  With apps I get very frustrated as a user when the decision has 
been taken to create a consistent interface for their app across platforms 
rather than just keeping consistent functionality and making sure the 
interface matches the platform.

On Monday, March 12, 2012 9:19:11 AM UTC, Josh Brown wrote:

 Additionally, you will never fully get the feel of a truly native app. 
  Keep in mind that the two platforms are very different even ignoring the 
 different programming languages and APIs they use.  Their whole design 
 language is different.  iOS tends to use tabular navigation heavily whereas 
 Android uses more dashboards.  iOS tabs are typically on the bottom, 
 Android's are on the top.  Horizontal swipe gestures are much more common 
 on Android.  



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

[android-developers] Allow only single application to run on Android device

2012-03-12 Thread Archana

Hi,
Is it possible to run single application in android and restricting
all other.
For ex. I have application with name  xyz so is it possible to run
this alone and block all other apps
like -third party apps, youtube, maps etc.

I saw this this to be achieved in Iphone by doing some Iphone utility
configuration.
But do we have something similar to this.?

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


Re: [android-developers] Re: Help me on selecting a name to a game..

2012-03-12 Thread Fred Rischter
Hum..

I checked and realy its accessible.. maybe it is your network, proxy or 
something, or not? Please check it, or your google login on google docs, 
but anyway i think its not needed..

Just need to click, select the boxes and confirm :)

https://docs.google.com/spreadsheet/viewform?formkey=dFdFYXJkZVZFblo0eFNldU94Sk56RVE6MQ#gid=0
 

Thanks,
Fred

Em sábado, 10 de março de 2012 01h00min24s UTC-3, Alex J. Lee escreveu:

 I just got an error that cannot find a spread sheet...

 2012. 3. 10. 오후 12:49 Spiral123 cumis...@gmail.com 작성:

  Whale Wars
  
  
  On Mar 6, 9:01 pm, Fred fredrisch...@gmail.com wrote:
  Hi Everybody,
  
  I'm developing a android game and i'm urgently needing to define a
  name to this game.. can you help on choosing the name?
  
  If you have 1 minute to check it up, please just choose the wanted
  names here:
  
  https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk.
 ..
  
  Thanks a lot,
  Fred
  
  -- 
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Allow only single application to run on Android device

2012-03-12 Thread Mark Murphy
On Mon, Mar 12, 2012 at 9:26 AM, Archana archana.14n...@gmail.com wrote:
 Is it possible to run single application in android and restricting
 all other.

You are welcome to make your app a home screen, and thereby attempt to
limit users, but anyone with a brain bigger than a walnut will reboot
the phone in safe mode and remove your app if they so choose. The only
way to prevent that is to build your own firmware, where your app *is*
the home screen.

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

_Android Programming Tutorials_ Version 4.1 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] problem in executing Runtime.getRuntime().exec()

2012-03-12 Thread Ali
Hi all
i have an application which needs to clear the buffer
i do this way
but it gives error

Process p = Runtime.getRuntime().exec(su);
p = Runtime.getRuntime().exec(sync);
p = Runtime.getRuntime().exec(echo 3  
/proc/sys/vm/drop_caches);

error:

Error running exec(). Command: [echo, 3, , /proc/sys/vm/drop_caches] 
Working Directory: null Environment: null

please help 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] Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-12 Thread Remote Red
The tablet Acer Iconica A100 returns for
Environment.getExternalStorageDirectory()

/mnt/sdcard

Actually that is intern memory as the microSD card is mounted as

/mnt/external_sd

I would like my app to find the microSD card.

What are my options?

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

2012-03-12 Thread bob
Anyone know if there is a way for a VideoView to play a video that has
been loaded entirely into memory?

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] [Android - developers] Exponential Smoothing on Latitude and Langitude

2012-03-12 Thread agung wiguna johan
Can somebody help me ?
I don't have idea what filtering that i can use to clean noise from
latitude and longitude


On Sun, Mar 11, 2012 at 3:46 PM, concave agung.wiguna.jo...@gmail.comwrote:

 Hi guys, i've a little problem here.
 I'm working with gps data, getting values every second and displaying
 current position on a map.
 The problem is that sometimes (specially when im using the app on
 indoor and not make a move) the values vary a lot, making the current
 position to change.
 I was wondering about some easy enough method to avoid this.
  As a first idea, I thought about discarding values with accuracy
 beyond certain threshold, and use Exponential filtering as i use on my
 Bearing. But i get up on Antartica. Here's the code that i used to get
 the location and filtering it with exponential :

 public void onLocationChanged(Location newLocation) {
   // Get previous Location, needed to get
 the Bearing Value
if(currentPosition != null)
{
prevLocation =
 currentPosition;
pLat = (int)
 (prevLocation.getLatitude() *1E6);
pLongi = (int)
 (prevLocation.getLongitude()*1E6);

}
currentPosition = new Location
 (newLocation);
int lat = (int)
 (currentPosition.getLatitude()*1E6);
int longi = (int)
 (currentPosition.getLongitude()*1E6);

//Smoothing Latitude,Longitude
if(lat != 0  longi != 0){
coor[0] = lat;
coor[1] = longi;
if (smoothingCoor == null){
smoothingCoor = coor;
}
for (i=0;
 icoor.length;i++){
smoothingCoor[i] =
 smoothingCoor [i] +alpha * (coor[i] -
 smoothingCoor[i]);
}
smoothLat = (int)
 (smoothingCoor [0] * 1E6);
smoothLongi = (int)
 (smoothingCoor [1] * 1E6);


  currentPosition.setLatitude(smoothLat);

  currentPosition.setLongitude(smoothLongi);
}

// Get Bearing Value
if(prevLocation != null  currentPosition
 != null){

bearing =
 prevLocation.bearingTo(currentPosition);

//Smoothing bearing value with exponential
if (smoothingBearing == 0) {
smoothingBearing = bearing;
} else {
smoothingBearing = smoothingBearing +alpha
 * (bearing -
 smoothingBearing);
}

}

 Hope you can understand my explanataion, and i provide enough
 information
 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-12 Thread Mark Murphy
On Mon, Mar 12, 2012 at 9:46 AM, Remote Red rremm...@gmail.com wrote:
 The tablet Acer Iconica A100 returns for
 Environment.getExternalStorageDirectory()

 /mnt/sdcard

 Actually that is intern memory

Correct, but that is the portion of on-board flash that Acer
designated as external storage.

 as the microSD card is mounted as

 /mnt/external_sd

 I would like my app to find the microSD card.

 What are my options?

There is nothing in the Android SDK to help you. You will need to come
up with your own algorithms and rules (e.g., if android.os.Build
indicates that this is this specific Acer, then attempt to use a
hardwired /mnt/external_sd).

Bear in mind that your app may not have rights to write to this mount point.

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

_Android Programming Tutorials_ Version 4.1 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] Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-12 Thread Nikolay Elenkov
On Mar 12, 2012 10:47 PM, Remote Red rremm...@gmail.com wrote:

 The tablet Acer Iconica A100 returns for
 Environment.getExternalStorageDirectory()

 /mnt/sdcard

 Actually that is intern memory as the microSD card is mounted as

 /mnt/external_sd

 I would like my app to find the microSD card.

 What are my options?


Parse /proc/mounts and find the sd card. There is no 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-developers@googlegroups.com
To unsubscribe from this group, 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: Can someone recommend several image recognition Android applications to me ?

2012-03-12 Thread Oli Wright
This is an off topic question for this group.

A quick answer would be to point you towards the third hit in a Google 
search for Android image recognition, which is Google Goggles.

On Monday, March 12, 2012 1:59:36 PM UTC, hongjuan zhang wrote:

 Can someone recommend several image recognition Android applications to me 
 ?

 Hello everyone

  I need to find some image recognition Android applications .But it’s 
 not easy to know which Android application belongs to such kind. Could 
 anyone please recommend some such kind of applications to me .I appreciate 
 it very much!

 Thanks a lot!

  

 *Hongjuan Zhang,*

 Chinese Academy of Sciences



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

2012-03-12 Thread Aman
I am trying to query for the playlists created by Google Play Music app 
but haven't been able to do so. I created a playlist using locally stored 
content. I used the following code to query:

Cursor c = managedQuery(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI,
   new String[] 
{MediaStore.Audio.Playlists._ID,
 
MediaStore.Audio.Playlists.NAME
}, null, null, null);

This works fine for Winamp but not for Google Play Music. In fact, Winamp 
doesn't display the playlists created with Google Play Music. However, 
Google Play Music displays the playlists created with Winamp. My guess is 
that Google Play Music is using its own database to store the playlists 
where as other players use Content Provider with uri 
MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI to store their playlists. 
Is there a way to get playlists created with Google Play Music?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: opening pdf in my projects' raw folder in droidreader or any pdf reader

2012-03-12 Thread Nadeem Hasan
#3 is the best option. Every time you need to show the file, check if it 
exists on the SD card, if it does just send the path to the reader other 
wise copy it first.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: opening pdf in my projects' raw folder in droidreader or any pdf reader

2012-03-12 Thread Nadeem Hasan
Needless to say #1 and #2 are not even possible.

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

2012-03-12 Thread muhammad.ume...@hotmail.com
Hi,
   I am creating an app to share my pc desktop on my android
mobile. Now i am receiving the images from my pc on my mobile, but not
the control of my mouse, Please can anyone tell me how to get the
control of my mouse to handle my pc through my mobile.


Thanks and Regards,

umer

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

2012-03-12 Thread Ahmad Kaddoura
Okay fine.  For an Android game i would need a main class file which would 
include the onCreate, onStart, onStop,onResume, onPause, and onDestroy. 
 Then i would also have the Game class which would be the essence of the 
game.  What would be in the Game class? Then there would be another class 
that would depict the system time, and then there would be another class 
with all the variables. Am i missing anymore classes that would be 
important?  Are there any mistakes.  

Many Thanks 
Ahmad 

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

Re: [android-developers] [Android - developers] Exponential Smoothing on Latitude and Langitude

2012-03-12 Thread Ralph Bergmann | the4thFloor.eu
Am 12.03.12 14:50, schrieb agung wiguna johan:
 Can somebody help me ?
 I don't have idea what filtering that i can use to clean noise from
 latitude and longitude

I had the same problem. I've filtered the data as follows.

1) max. accuracy
2) max. speed from one point to the next point
3) Kalman filter



Ralph

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


Re: [android-developers] Re: Can someone recommend several image recognition Android applications to me ?

2012-03-12 Thread Anirudh Loya
you mean Augmented Reality Apps?

What Exactly you need in image recogniztion ?

On Mon, Mar 12, 2012 at 7:53 PM, Oli Wright oli.wri...@gmail.com wrote:

 This is an off topic question for this group.

 A quick answer would be to point you towards the third hit in a Google
 search for Android image recognition, which is Google Goggles.

 On Monday, March 12, 2012 1:59:36 PM UTC, hongjuan zhang wrote:

 Can someone recommend several image recognition Android applications to
 me ?

 Hello everyone

  I need to find some image recognition Android applications .But
 it’s not easy to know which Android application belongs to such kind. Could
 anyone please recommend some such kind of applications to me .I appreciate
 it very much!

 Thanks a lot!



 *Hongjuan Zhang,*

 Chinese Academy of Sciences

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




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*The lingering question - WHAT NEXT?  is the mantra of Success  -- Voice
Of Love*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Trying to publish the game in China-MOTODev requires using Amobee

2012-03-12 Thread Fred Rischter
Hi Everybody,

Trying to publish the game in China by MOTODev requires using Amobee. I 
tryed to publish some days ago and after the review process I got answer 
that advertisement are not allowed (i'm using airpush and admob), they say 
i need to remove it and to use their parthner Amobee, so my app can be 
aproved.

Does somebody have experience or review or have some opinion about Amobee? 
I'm going to decide if i'll start trying to use it or not. How big is the 
user number in china acessing motodev? Would it be profitable?

Regards,
Fred


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

2012-03-12 Thread Justin Anderson
I would seriously recommend reading this before posting additional
questions on here:
http://catb.org/esr/faqs/smart-questions.html

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


On Mon, Mar 12, 2012 at 9:22 AM, Ahmad Kaddoura kaddoura.ah...@gmail.comwrote:

 Okay fine.  For an Android game i would need a main class file which would
 include the onCreate, onStart, onStop,onResume, onPause, and onDestroy.
  Then i would also have the Game class which would be the essence of the
 game.  What would be in the Game class? Then there would be another class
 that would depict the system time, and then there would be another class
 with all the variables. Am i missing anymore classes that would be
 important?  Are there any mistakes.

 Many Thanks
 Ahmad

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


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

[android-developers] Re: Wich is the best way to destroy a GLSurfaceview and free all the memory?

2012-03-12 Thread Fred Rischter
Hi,

This problem about VM bugdet is probably not related to the GLSurface 
itself but to the Bitmap objects you're holding, ensure you'll never keep 
Bitmap references on any object. Just load it, create the texture, keep the 
texture ID's on hand and make =null in all your Bitmap references or you'll 
get this VM budget error soon, I'm saying it by my experience having the 
same issue, as I stopped to keep these references I got able to load lots 
of Mbs of bitmaps without problem.

About recreating the GLSurface, does you really need to do it? I think this 
is not recommended, at least I don't recommend it. I think its preferable 
to you lean your vertex buffers, so on, and draw the other thing on the 
same surface, controlling the content you're drawing. The games that I'm 
developing have lot of screens with lots of polygons on buffers and I never 
recreate the GLSurface, I consider it's stability like sacred, not a thing 
to be over created every time.

Please report here if you problem got fixed.

Download my games: 
https://play.google.com/store/apps/details?id=com.fredrischter.memorygamememes.free

Please help on selecting name of my new game :) 
https://docs.google.com/spreadsheet/viewform?formkey=dFdFYXJkZVZFblo0eFNldU94Sk56RVE6MQ#gid=0

Regards,
Fred


Em segunda-feira, 12 de março de 2012 07h41min27s UTC-3, saex escreveu:

 I have a GLSurfaceView with four polygons with textures.

 I need to destroy the GLSurfaceview and recreate a new GLSurfaceView with 
 new parameters when the user press a button.

 I tryed with myGLSurfaceView = null and initializing again myGLSurfaceView 
 with the new paramters, but it is giving me VM budget bitmnap exception. I 
 dont understand why, because i am doing recicle() on all the bitmaps i use.

 So, i think that i need to destroy all the polygons of my glsurfaceview 
 and my glsurfaceview before tho recreating a new glsurfaceview.

 Wich is the correct way to achieve this?

 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: Ad framework.

2012-03-12 Thread Fred Rischter

Yes there is a way: if the app is free it uses ads. If the app is paid, it 
doesn't uses ads :)


Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe escreveu:

 Given that I can scan an APK file, is there anyway I can get to know if it 
 uses ads or not.

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

2012-03-12 Thread Justin Anderson
As far as I can tell from the docs, it is not possible... Looks like you
have two options: setVideoPath() and setVideoURI().

http://developer.android.com/reference/android/widget/VideoView.html#setVideoPath%28java.lang.String%29
http://developer.android.com/reference/android/widget/VideoView.html#setVideoURI%28android.net.Uri%29

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


On Mon, Mar 12, 2012 at 7:46 AM, bob b...@coolfone.comze.com wrote:

 Anyone know if there is a way for a VideoView to play a video that has
 been loaded entirely into memory?

 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Ad framework.

2012-03-12 Thread Justin Anderson
* Yes there is a way: if the app is free it uses ads. If the app is paid,
it doesn't uses ads :)*

Umm... no.  I have a free app that doesn't use ads.

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


On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter fredrisch...@gmail.comwrote:


 Yes there is a way: if the app is free it uses ads. If the app is paid, it
 doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe escreveu:

 Given that I can scan an APK file, is there anyway I can get to know if
 it uses ads or not.

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


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

[android-developers] Re: lights out mode PLUS menu soft key?

2012-03-12 Thread Harshad
I hit the same problem with my app.

Why is the menu button hidden in the higher Android versions? If the Home 
and Back buttons are going to be there, why not also keep the menu button 
in the status bar? Is the menu system deprecated? I don't want to create a 
separate UI for this when there is already space at the bottom for such 
options. Moreover the Menu thing is an established paradigm for years; why 
should users and developers change the paradigm for no apparent reason.

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

Re: [android-developers] problem in executing Runtime.getRuntime().exec()

2012-03-12 Thread Justin Anderson
On a rooted device, that might work...  On all others you are not going
to be able to do anything like that.

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


On Mon, Mar 12, 2012 at 7:37 AM, Ali alimooghash...@gmail.com wrote:

 Hi all
 i have an application which needs to clear the buffer
 i do this way
 but it gives error

 Process p = Runtime.getRuntime().exec(su);
 p = Runtime.getRuntime().exec(sync);
 p = Runtime.getRuntime().exec(echo 3 
 /proc/sys/vm/drop_caches);

 error:

 Error running exec(). Command: [echo, 3, , /proc/sys/vm/drop_caches]
 Working Directory: null Environment: null

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

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

2012-03-12 Thread Fred Rischter
Hum, you have how much free apps that don't use ads?

2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter fredrisch...@gmail.comwrote:


 Yes there is a way: if the app is free it uses ads. If the app is paid,
 it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to know if
 it uses ads or not.

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

2012-03-12 Thread Justin Anderson
I have 1 free app... and it doesn't use ads.  I'm just saying that just
because an app is free doesn't mean that it uses ads.

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


On Mon, Mar 12, 2012 at 10:27 AM, Fred Rischter fredrisch...@gmail.comwrote:

 Hum, you have how much free apps that don't use ads?


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter 
 fredrisch...@gmail.comwrote:


 Yes there is a way: if the app is free it uses ads. If the app is paid,
 it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to know if
 it uses ads or not.

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


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

2012-03-12 Thread Fred Rischter
I have zero free apps without ads, and almost 30 or 40 with ads.

Right you have 1 free app without ads. Do you have how much free apps
with adds?



2012/3/12 Justin Anderson magouyaw...@gmail.com

 I have 1 free app... and it doesn't use ads.  I'm just saying that just
 because an app is free doesn't mean that it uses ads.


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


 On Mon, Mar 12, 2012 at 10:27 AM, Fred Rischter fredrisch...@gmail.comwrote:

 Hum, you have how much free apps that don't use ads?


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter 
 fredrisch...@gmail.comwrote:


 Yes there is a way: if the app is free it uses ads. If the app is paid,
 it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to know
 if it uses ads or not.

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


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


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

[android-developers] Re: Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-12 Thread b0b


On Monday, 12 March 2012 14:46:00 UTC+1, Remote Red wrote:

 The tablet Acer Iconica A100 returns for 
 Environment.getExternalStorageDirectory() 

 /mnt/sdcard 

 Actually that is intern memory as the microSD card is mounted as 



In Google-speak,  External Storage refer to a storage medium that can be 
accessed externally (from a PC or MAc for example). 
Most of the time it refers to the *internal* SD Card.

As other have said, their is no API to access other storage (microSD, other 
USB storage, ...)

 


 /mnt/external_sd 

 I would like my app to find the microSD card. 

 What are my options? 


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

2012-03-12 Thread deepu
source code for the db register on ,and retrival of data from phpadmin 
online

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

2012-03-12 Thread Archana
Thanks for the reply. But my requiremnet is different. I want to
implement the functionality that if my application is installed on
the device than it is restricted to open youtube or facebook.

On Mar 12, 5:29 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Mar 12, 2012 at 9:26 AM, Archana archana.14n...@gmail.com wrote:
  Is it possible to run single application in android and restricting
  all other.

 You are welcome to make your app a home screen, and thereby attempt to
 limit users, but anyone with a brain bigger than a walnut will reboot
 the phone in safe mode and remove your app if they so choose. The only
 way to prevent that is to build your own firmware, where your app *is*
 the home screen.

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

 _Android Programming Tutorials_ Version 4.1 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] Re: Allow only single application to run on Android device

2012-03-12 Thread Kristopher Micinski
On Mon, Mar 12, 2012 at 1:01 PM, Archana archana.14n...@gmail.com wrote:
 Thanks for the reply. But my requiremnet is different. I want to
 implement the functionality that if my application is installed on
 the device than it is restricted to open youtube or facebook.


Your requirement is not different, you didn't read Mark's response
correctly.  On standard Android, there is no way to do this: you can't
restrict the device by installing an app.  Your app has no way to
control apps outside of the app you write.

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] Path to screenshot

2012-03-12 Thread Justin Anderson
IF (and this is often a big if) you can guarantee that your screen capture
was the last item added to the MediaStore, you can run a query for it...  I
have some sample code here that does this, but it is in C# (Mono for
Android) so you are going to have to port it to Java but it should be
pretty simple:

private string GetLastImagePath()
{
Android.Net.Uri resultUri = GetLastImageUri();

ContentResolver resolver = Context.ContentResolver;

string[] fields = {
MediaStore.Images.ImageColumns.Id,
MediaStore.Images.ImageColumns.Data
};

ICursor imgCursor = MediaStore.Images.Media.Query(resolver,
resultUri, fields, null, null);
if (imgCursor == null || imgCursor.Count = 0)
return;

imgCursor.MoveToFirst();
string filename =
imgCursor.GetString(imgCursor.GetColumnIndex(MediaStore.Images.ImageColumns.Data));

//Some applications return the file name with a protocol
prepended, so we need to check for that and strip it
Android.Net.Uri fileUri = Android.Net.Uri.Parse(filename);
if (fileUri.Scheme != null)
{
filename = fileUri.SchemeSpecificPart; //Remove the
scheme, e.g. http:
filename = filename.Remove(0, 2); //Remove the two
forward slashes after the scheme
}

return filename;
}

private Android.Net.Uri GetLastImageUri()
{
Android.Net.Uri resultUri = null;

Android.Net.Uri locUri =
MediaStore.Images.Media.ExternalContentUri;
string[] fields = { MediaStore.Images.ImageColumns.Id };
string sort = MediaStore.Images.ImageColumns.DateTaken + 
DESC;

ICursor imgCursor = Context.ContentResolver.Query(locUri,
fields, null, null, sort);
if (imgCursor != null)
{
if (imgCursor.Count  0)
{
imgCursor.MoveToFirst();
long id = imgCursor.GetLong(imgCursor.GetColumnIndex(
MediaStore.Images.ImageColumns.Id));
resultUri = ContentUris.WithAppendedId(locUri, id);
}

imgCursor.Close();
}

return resultUri;
}

Hope that helps some, though I'm not sure it answers your question
completely... I saw your stackoverflow post about this and there isn't
really a clear cut way to get the info you are looking for.

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


On Mon, Mar 12, 2012 at 6:42 AM, scame radegas...@gmail.com wrote:

 Hello.

 Is there a way to find out the path used by android to save
 screenshots? Can i get the path from a code?

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

2012-03-12 Thread Justin Anderson
First, read this: http://catb.org/esr/faqs/smart-questions.html
Then, ask again...

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


On Mon, Mar 12, 2012 at 10:55 AM, deepu deepuhidee...@gmail.com wrote:

 source code for the db register on ,and retrival of data from phpadmin
 online

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

2012-03-12 Thread ashish keshri
You are using any web service for that? means if you are using web
services, then you simply hit that service using child thread get value
and dynamically display in your Android  view? You simply need to call some
methods!! is it ur solution? am i right?

On Sat, Mar 10, 2012 at 12:38 PM, ramalakshmi krishna.veni...@gmail.comwrote:

 I am sending my project screen.These are te values of bullion market
 rates.actually my pp file can cange te values dynamically using ajax.but in
 android the values will be changed when i reloading te project.how can i
 achieve this.(I mean real time steaming values i want)
   are you unserstand my problem ?

 --
 ramalakshmi

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

2012-03-12 Thread Justin Anderson
That is not the point... The OP is asking if there is a way to scan an APK
and determine if it has ads or not.  Your answer is just not correct.  It
doesn't matter how many free apps either of us have with ads or not.  That
is completely irrelevant.  Your answer is not correct because there are
free apps out there that do not have ads.  Mine is one of them.  There are
others as well.

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


On Mon, Mar 12, 2012 at 10:40 AM, Fred Rischter fredrisch...@gmail.comwrote:

 I have zero free apps without ads, and almost 30 or 40 with ads.

 Right you have 1 free app without ads. Do you have how much free apps
 with adds?




 2012/3/12 Justin Anderson magouyaw...@gmail.com

 I have 1 free app... and it doesn't use ads.  I'm just saying that just
 because an app is free doesn't mean that it uses ads.


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


 On Mon, Mar 12, 2012 at 10:27 AM, Fred Rischter 
 fredrisch...@gmail.comwrote:

 Hum, you have how much free apps that don't use ads?


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter fredrisch...@gmail.com
  wrote:


 Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to know
 if it uses ads or not.

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


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

2012-03-12 Thread Justin Anderson
* Right you have 1 free app without ads. Do you have how much free apps
with adds?*

And as I said... I have 1 free app.  It doesn't have ads.  I don't have ANY
other free apps.

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


On Mon, Mar 12, 2012 at 11:36 AM, Justin Anderson magouyaw...@gmail.comwrote:

 That is not the point... The OP is asking if there is a way to scan an APK
 and determine if it has ads or not.  Your answer is just not correct.  It
 doesn't matter how many free apps either of us have with ads or not.  That
 is completely irrelevant.  Your answer is not correct because there are
 free apps out there that do not have ads.  Mine is one of them.  There are
 others as well.


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


 On Mon, Mar 12, 2012 at 10:40 AM, Fred Rischter fredrisch...@gmail.comwrote:

 I have zero free apps without ads, and almost 30 or 40 with ads.

 Right you have 1 free app without ads. Do you have how much free apps
 with adds?




 2012/3/12 Justin Anderson magouyaw...@gmail.com

 I have 1 free app... and it doesn't use ads.  I'm just saying that just
 because an app is free doesn't mean that it uses ads.


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


 On Mon, Mar 12, 2012 at 10:27 AM, Fred Rischter 
 fredrisch...@gmail.comwrote:

 Hum, you have how much free apps that don't use ads?


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter 
 fredrisch...@gmail.com wrote:


 Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to know
 if it uses ads or not.

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


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

2012-03-12 Thread Justin Anderson
As far as I know that is not part of the public Android SDK...

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


On Mon, Mar 12, 2012 at 5:11 AM, Put_tiMe putt...@gmail.com wrote:

 How do I register for an 'IActivityWatcher' callback?



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

2012-03-12 Thread Kristopher Micinski
You'll want to use an AsyncTask for this...

kris

On Mon, Mar 12, 2012 at 1:35 PM, ashish keshri ashishkcusa...@gmail.com wrote:
 You are using any web service for that? means if you are using web services,
 then you simply hit that service using child thread get value
 and dynamically display in your Android  view? You simply need to call some
 methods!! is it ur solution? am i right?

 On Sat, Mar 10, 2012 at 12:38 PM, ramalakshmi krishna.veni...@gmail.com
 wrote:

 I am sending my project screen.These are te values of bullion market
 rates.actually my pp file can cange te values dynamically using ajax.but in
 android the values will be changed when i reloading te project.how can i
 achieve this.(I mean real time steaming values i want)
   are you unserstand my problem ?

 --
 ramalakshmi

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

2012-03-12 Thread Fred Rischter
Right, about detecting the ads on the apps, there are some applications to
detect it but i don't trust them in all... The easier way is avoiding free
apps that install ads most of times.

2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Right you have 1 free app without ads. Do you have how much free apps
 with adds?*

 And as I said... I have 1 free app.  It doesn't have ads.  I don't have
 ANY other free apps.


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


 On Mon, Mar 12, 2012 at 11:36 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 That is not the point... The OP is asking if there is a way to scan an
 APK and determine if it has ads or not.  Your answer is just not correct.
 It doesn't matter how many free apps either of us have with ads or not.
 That is completely irrelevant.  Your answer is not correct because there
 are free apps out there that do not have ads.  Mine is one of them.  There
 are others as well.


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


 On Mon, Mar 12, 2012 at 10:40 AM, Fred Rischter 
 fredrisch...@gmail.comwrote:

 I have zero free apps without ads, and almost 30 or 40 with ads.

 Right you have 1 free app without ads. Do you have how much free apps
 with adds?




 2012/3/12 Justin Anderson magouyaw...@gmail.com

 I have 1 free app... and it doesn't use ads.  I'm just saying that just
 because an app is free doesn't mean that it uses ads.


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


 On Mon, Mar 12, 2012 at 10:27 AM, Fred Rischter fredrisch...@gmail.com
  wrote:

 Hum, you have how much free apps that don't use ads?


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter 
 fredrisch...@gmail.com wrote:


 Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to
 know if it uses ads or not.

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


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


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

Re: [android-developers] Fwd: Urbanship airship problem

2012-03-12 Thread Justin Anderson
   1. Try adding the FLAG_ACTIVITY_NEW_TASK flag to your intent as the
   error suggested.
   2. Try contacting Urban Airship if you have more problems.

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


On Mon, Mar 12, 2012 at 3:57 AM, vani reddy vani.reddy.bl...@gmail.comwrote:





 Hi friends,

 I am using Urbanairship for push notifications.

 I am getting the following exception

 Unable to start receiver com.testdemo.android.IntentReceiver: 
 android.util.AndroidRuntimeException: Calling startActivity() from outside of 
 an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really 
 what you want?



 and the below is the onReceive of IntentReceiver


   @Override
   public void onReceive(Context arg0, Intent aIntent) {
   String action = aIntent.getAction();
   if (action.equals(PushManager.ACTION_NOTIFICATION_OPENED)) {
   // user opened the notification so we launch the 
 application

   // This intent is what will be used to launch the 
 activity in our
   // application
   Intent lLaunch = new Intent(Intent.ACTION_MAIN);

   // Main.class can be substituted any activity in your 
 android
   // project that you wish
   // to be launched when the user selects the 
 notification from the
   // Notifications drop down
   
 lLaunch.setClass(UAirship.shared().getApplicationContext(),
   HomeScreen.class);
   
   
 lLaunch.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);

   // copy the intent data from the incoming intent to the 
 intent
   // that we are going to launch
   
 //copyIntentData(aIntent, lLaunch);

   
 UAirship.shared().getApplicationContext().startActivity(lLaunch);

   } else if (action.equals(PushManager.ACTION_PUSH_RECEIVED)) {
   // push notification received, perhaps store it in a db

   
   }
   
   
   }


 Please reply 


 --




 --
 Regards,
 Vani Reddy

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

2012-03-12 Thread Justin Anderson
Step 1: Read this: http://catb.org/esr/faqs/smart-questions.html
Step 2: Ask a smarter question...

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


On Mon, Mar 12, 2012 at 3:09 AM, Ali alimooghash...@gmail.com wrote:

 Hi all
 i need to know, how can i set every component right to left
 for example a digitalclock! i need it to be right to left and also change
 the digits to my language! is it possible?
 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Ad framework.

2012-03-12 Thread Justin Anderson
 *Right, about detecting the ads on the apps, there are some applications
to detect it but i don't trust them in all... The easier way is avoiding
free apps that install ads most of times.*

Wow... the OP is asking HOW to detect that, probably because he is making
an app that will tell you which apps you have installed have ads.  If you
are going to be answering questions on here... I would at least try to
understand the question first.

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


On Mon, Mar 12, 2012 at 11:41 AM, Fred Rischter fredrisch...@gmail.comwrote:

 Right, about detecting the ads on the apps, there are some applications to
 detect it but i don't trust them in all... The easier way is avoiding free
 apps that install ads most of times.


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Right you have 1 free app without ads. Do you have how much free apps
 with adds?*

 And as I said... I have 1 free app.  It doesn't have ads.  I don't have
 ANY other free apps.


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


 On Mon, Mar 12, 2012 at 11:36 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 That is not the point... The OP is asking if there is a way to scan an
 APK and determine if it has ads or not.  Your answer is just not correct.
 It doesn't matter how many free apps either of us have with ads or not.
 That is completely irrelevant.  Your answer is not correct because there
 are free apps out there that do not have ads.  Mine is one of them.  There
 are others as well.


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


 On Mon, Mar 12, 2012 at 10:40 AM, Fred Rischter 
 fredrisch...@gmail.comwrote:

 I have zero free apps without ads, and almost 30 or 40 with ads.

 Right you have 1 free app without ads. Do you have how much free apps
 with adds?




 2012/3/12 Justin Anderson magouyaw...@gmail.com

 I have 1 free app... and it doesn't use ads.  I'm just saying that
 just because an app is free doesn't mean that it uses ads.


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


 On Mon, Mar 12, 2012 at 10:27 AM, Fred Rischter 
 fredrisch...@gmail.com wrote:

 Hum, you have how much free apps that don't use ads?


 2012/3/12 Justin Anderson magouyaw...@gmail.com

 * Yes there is a way: if the app is free it uses ads. If the app
 is paid, it doesn't uses ads :)*

 Umm... no.  I have a free app that doesn't use ads.

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



 On Mon, Mar 12, 2012 at 10:18 AM, Fred Rischter 
 fredrisch...@gmail.com wrote:


 Yes there is a way: if the app is free it uses ads. If the app is
 paid, it doesn't uses ads :)


 Em segunda-feira, 12 de março de 2012 06h57min48s UTC-3, Put_tiMe
 escreveu:

 Given that I can scan an APK file, is there anyway I can get to
 know if it uses ads or not.

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


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

[android-developers] Augen Gentouch78

2012-03-12 Thread Jerrick Davis
have a augen gentouch78 and cannot find the drivers for it it is on the tuz 
screen and wont leave can you people please help me?

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

Re: [android-developers] Re: Ad framework.

2012-03-12 Thread Nadeem Hasan
Why are you answering if you don't have an answer?

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

[android-developers] Re: Augen Gentouch78

2012-03-12 Thread Jerrick Davis
pleasse please help me

On Monday, March 12, 2012 11:50:34 AM UTC-6, Jerrick Davis wrote:

 have a augen gentouch78 and cannot find the drivers for it it is on the 
 tuz screen and wont leave can you people please help me?

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

Re: [android-developers] Re: Ad framework.

2012-03-12 Thread Fred Rischter
Because I wanted to :)

Do you accept only decisive direct solving-your-problem answers?



2012/3/12 Nadeem Hasan nha...@nadmm.com

 Why are you answering if you don't have an answer?

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


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

2012-03-12 Thread tatebn
I've stopped the crashing by making sure notifyDataSetChanged is
called in a handler on the main thread.  But the current web view
doesn't go away.  Other pages show up as their supposed to, but the
current one is never replaced.

On Mar 9, 5:07 pm, tatebn brandonnt...@gmail.com wrote:
 I'm using a ViewPager with the android support library to load static
 html pages into webviews
 and flip through them similar to a magazine app.

 I can load the initial page fine, which is using loadContentId().
 When the user clicks on a link I'm calling the same loadContentId()
 method.
 When I call this, 1 of 2 things happens.

 Either nothing happens at all.  The method runs and my log statements
 print, but the views
 do not redraw/change.  Or, the app crashes with the Only the original
 thread that created a view hierarchy
 can touch its views. error.

 I can not seem to find a way to do this without the app crashing.  How
 do I reset the adapter on this ViewPager and
 show new views?  I've tried invalidating the view pager.  I've tried
 invalidating the view pager.  I've tried using notifyDataSetChanged()
 in various places.  I've tried using a handler to remove the webView
 from the view pager.

 Here is the pertinent code.

  /**
      * Loads the internalContentPager with the swipe navigation set
 for the given content id.
      * @param contentId
      */
     public void loadContentId(String contentId){
         //this.internalContentAdapter.loadContentWithId(contentId);
         this.currentContentId = contentId;

         Log.i(TAG, in load content id  + contentId);

         //this.internalContentPager.removeAllViews();

         if(this.internalContentAdapter == null){
                 InternalContentAdapter adapter = new InternalContentAdapter();
                 adapter.loadContentWithId(contentId);
                 this.internalContentAdapter = adapter;

 this.internalContentPager.setAdapter(this.internalContentAdapter);
         }
         else{
                 this.internalContentAdapter.loadContentWithId(contentId);
                 //
 this.internalContentAdapter.startUpdate(this.internalContentPager);
                 //this.internalContentAdapter.notifyDataSetChanged();
         }

         this.navigationStack.push(contentId);

     }

  /**
      * Pager Adapter to handle internal web view pages.  This drives
 the swipe navigation for the internal content.
      *
      * @author btate
      *
      */
     private class InternalContentAdapter extends PagerAdapter{

                 /** The content objects represented by this pager. */
                 private ListContent contents;

                 /** The starting position. */
                 private int startPosition = 0;

                 /** The starting content id. */
                 private String startContentId = null;

                 /** Flag for whether or not to set the starting position. */
                 private boolean setPrimary = true;

                 @Override
                 public int getCount() {
                         // Send back the contents size
                         return this.contents.size();
                 }

             /**
              * Create the page for the given position.  The adapter is
 responsible
              * for adding the view to the container given here, although it
 only
              * must ensure this is done by the time it returns from
              * {@link #finishUpdate()}.
              *
              * @param container The containing View in which the page will be
 shown.
              * @param position The page position to be instantiated.
              * @return Returns an Object representing the new page.  This
 does not
              * need to be a View, but can be some other container of the
 page.
              */
                 @Override
                 public Object instantiateItem(ViewGroup container, int 
 position) {

                         // Load up the page
                 InternalWebView page = new InternalWebView(ctx, repo);

 page.loadInternalPage(this.contents.get(position).getContentId());
                 page.setInternalWebViewListener(getListener());

                 //this.parentActivity.registerForContextMenu(page);

                 // Need to add this without the position
                 container.addView(page);

                 // I would like this to work, but it doesn't
                 if(this.startPosition == position){
                         Log.i(TAG, setting primary item with position  + 
 position);
                         this.setPrimaryItem(internalContentPager, position, 
 page);
                 }

                         return page;
                 }

             /**
              * Remove a page for the given position.  The adapter is
 responsible
              * for removing the view from its container, although it only
 must ensure
              * this is done by the time it returns from {@link
 #finishUpdate()}.
  

[android-developers] Re: Changing view pager view set causes app to crash.

2012-03-12 Thread tatebn
Added this to the view pager adapter.  Good to go now.

public int getItemPosition(Object object) {
return POSITION_NONE;
}

On Mar 12, 2:00 pm, tatebn brandonnt...@gmail.com wrote:
 I've stopped the crashing by making sure notifyDataSetChanged is
 called in a handler on the main thread.  But the current web view
 doesn't go away.  Other pages show up as their supposed to, but the
 current one is never replaced.

 On Mar 9, 5:07 pm, tatebn brandonnt...@gmail.com wrote:







  I'm using a ViewPager with the android support library to load static
  html pages into webviews
  and flip through them similar to a magazine app.

  I can load the initial page fine, which is using loadContentId().
  When the user clicks on a link I'm calling the same loadContentId()
  method.
  When I call this, 1 of 2 things happens.

  Either nothing happens at all.  The method runs and my log statements
  print, but the views
  do not redraw/change.  Or, the app crashes with the Only the original
  thread that created a view hierarchy
  can touch its views. error.

  I can not seem to find a way to do this without the app crashing.  How
  do I reset the adapter on this ViewPager and
  show new views?  I've tried invalidating the view pager.  I've tried
  invalidating the view pager.  I've tried using notifyDataSetChanged()
  in various places.  I've tried using a handler to remove the webView
  from the view pager.

  Here is the pertinent code.

   /**
       * Loads the internalContentPager with the swipe navigation set
  for the given content id.
       * @param contentId
       */
      public void loadContentId(String contentId){
          //this.internalContentAdapter.loadContentWithId(contentId);
          this.currentContentId = contentId;

          Log.i(TAG, in load content id  + contentId);

          //this.internalContentPager.removeAllViews();

          if(this.internalContentAdapter == null){
                  InternalContentAdapter adapter = new 
  InternalContentAdapter();
                  adapter.loadContentWithId(contentId);
                  this.internalContentAdapter = adapter;

  this.internalContentPager.setAdapter(this.internalContentAdapter);
          }
          else{
                  this.internalContentAdapter.loadContentWithId(contentId);
                  //
  this.internalContentAdapter.startUpdate(this.internalContentPager);
                  //this.internalContentAdapter.notifyDataSetChanged();
          }

          this.navigationStack.push(contentId);

      }

   /**
       * Pager Adapter to handle internal web view pages.  This drives
  the swipe navigation for the internal content.
       *
       * @author btate
       *
       */
      private class InternalContentAdapter extends PagerAdapter{

                  /** The content objects represented by this pager. */
                  private ListContent contents;

                  /** The starting position. */
                  private int startPosition = 0;

                  /** The starting content id. */
                  private String startContentId = null;

                  /** Flag for whether or not to set the starting position. */
                  private boolean setPrimary = true;

                  @Override
                  public int getCount() {
                          // Send back the contents size
                          return this.contents.size();
                  }

              /**
               * Create the page for the given position.  The adapter is
  responsible
               * for adding the view to the container given here, although it
  only
               * must ensure this is done by the time it returns from
               * {@link #finishUpdate()}.
               *
               * @param container The containing View in which the page will 
  be
  shown.
               * @param position The page position to be instantiated.
               * @return Returns an Object representing the new page.  This
  does not
               * need to be a View, but can be some other container of the
  page.
               */
                  @Override
                  public Object instantiateItem(ViewGroup container, int 
  position) {

                          // Load up the page
                  InternalWebView page = new InternalWebView(ctx, repo);

  page.loadInternalPage(this.contents.get(position).getContentId());
                  page.setInternalWebViewListener(getListener());

                  //this.parentActivity.registerForContextMenu(page);

                  // Need to add this without the position
                  container.addView(page);

                  // I would like this to work, but it doesn't
                  if(this.startPosition == position){
                          Log.i(TAG, setting primary item with position  + 
  position);
                          this.setPrimaryItem(internalContentPager, position, 
  page);
                  }

                          

Re: [android-developers] Re: Universal set up to Android Games

2012-03-12 Thread Jim Graham
On Mon, Mar 12, 2012 at 10:11:09AM -0600, Justin Anderson wrote:
 I would seriously recommend reading this before posting additional
 questions on here:
 http://catb.org/esr/faqs/smart-questions.html

And then read Beginning Android Games.

Later,
   --jim

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

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

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

2012-03-12 Thread hooman os
Maybe start recording in onResume() and stop recording in onPause()
On 12 Mar 2012 10:11, rachana govilkar rachana.govil...@gmail.com wrote:

 Hello all,
 I am developing an application inside which i need to record audio.
 I implemented code and it is working fine until my tester filed a bug
 for me.
 Tester scenario was:
 1.open application.
 2.start recording audio.
 3.lock device.
 4.unlock device.
 5.recording continues.
 here if device is locked, after unlocking i want to stop recording and
 take it to earlier activity.
 But i am not able to do it.
 Is there any event need to be handled for this?
 Like in video recording i had to handle SurfaceDestroyed().
 Let me know if anyone knows.
 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Ad framework.

2012-03-12 Thread Justin Anderson
People ask questions on here because they are looking for help...  Your
answer was not help in any way shape or form.

I have been accused of this in the past, but I have only answered with
sarcastic or otherwise non-helpful posts for questions that are not well
thought out...  This question was perfectly reasonable.  I don't have an
answer for it, but your answer was, simply put, wrong.
*
 Do you accept only decisive direct solving-your-problem answers? *
No, but I would expect answers to be correct.  Yours was not.


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


On Mon, Mar 12, 2012 at 11:58 AM, Fred Rischter fredrisch...@gmail.comwrote:

 Because I wanted to :)

 Do you accept only decisive direct solving-your-problem answers?



 2012/3/12 Nadeem Hasan nha...@nadmm.com

 Why are you answering if you don't have an answer?

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


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

2012-03-12 Thread Justin Anderson
1. What is the tuz screen?
2. This question should probably be asked elsewhere since this forum is for
developing android SDK apps.

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


On Mon, Mar 12, 2012 at 11:53 AM, Jerrick Davis lamabo...@gmail.com wrote:

 pleasse please help me


 On Monday, March 12, 2012 11:50:34 AM UTC-6, Jerrick Davis wrote:

 have a augen gentouch78 and cannot find the drivers for it it is on the
 tuz screen and wont leave can you people please help me?

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


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

2012-03-12 Thread bob
Why is there no static function like Activity.getCurrentActivity()?

Right now, I am saving the Activity in a static variable in onCreate
so I can access it easily later on.  I suspect there must be a better
way.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-12 Thread Jim Graham
On Mon, Mar 12, 2012 at 09:51:24AM -0700, b0b wrote:

 In Google-speak,  External Storage refer to a storage medium that can be 
 accessed externally (from a PC or MAc for example). 
 Most of the time it refers to the *internal* SD Card.

Or, put another way, first, you have the internal external storage, and
then you MIGHT have external external storage.  Oh, and the names used
on different devices vary  Fun, huh?  :-)

Later,
   --jim

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

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

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

2012-03-12 Thread Mark Murphy
On Mon, Mar 12, 2012 at 2:39 PM, bob b...@coolfone.comze.com wrote:
 Why is there no static function like Activity.getCurrentActivity()?

Because the current activity (which I presume you are defining as
the activity in the foreground) may not be in your app.

 Right now, I am saving the Activity in a static variable in onCreate
 so I can access it easily later on.  I suspect there must be a better
 way.

Delete all that code, to get rid of your memory leak you introduced.
Then, solve whatever problem you think you are solving some other way.

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

_Android Programming Tutorials_ Version 4.1 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] getCurrentActivity()

2012-03-12 Thread Carlos Silva
this on a class that extends Activity isn't simple enough?

On Mon, Mar 12, 2012 at 17:39, bob b...@coolfone.comze.com wrote:

 Why is there no static function like Activity.getCurrentActivity()?

 Right now, I am saving the Activity in a static variable in onCreate
 so I can access it easily later on.  I suspect there must be a better
 way.

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

  1   2   >