[android-developers] sdk version

2012-04-26 Thread fachhoch
if I want to deploy my app in a real device should that device sdk
version  match with my app sdk version? Also how can I find the sdk
version of any device?

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


[android-developers] Customizing Android Battery Icon

2012-04-26 Thread Jovish P
Is it possible to customize  default Battery Icon on Android without
rooting the phone ? Any APIs are available ?
Any way to do that ?

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

[android-developers] Android application StartUp Internals

2012-04-26 Thread Mansoor
Hi all,
I am very much interested to know how an android application
starts.After much googling I understood something but not fully.

Below some of my observations:

1.When i click an application icon from launcher ,System look for
activity with intent action "main" and category "Launcher" and starts
that activity.
   *I need some more clarity regarding who launch main activity or
who
filtering main activity from others(I think package manager does).

2.Once Activity is launched there will be no windows associated with
that application until i call setContentView(layout id).

3.When i call setContentView(layout id),Activity creates a new Window
inance and this window has some default root layout to which we set
our layout .
 *I think this window have a Surface instance and is associated with
native Bitmap ?Did this surface have a Canvas wrapper over native
bitmap ?

4.Once Layout is attached to Window ,This window is added to Window
manager.

5.Window manager gives gives all window(having Surface) on screen to
Surface Flinger.

6.SurfaceFlinger based on visibility of window set pixels in
FrameBuffer and displays to screen.

I am not sure whether what i said above is right or wrong.Please
correct me if my understanding is wrong.
Also add extra processes happening whilhe application start up.

Thanks and have a Nice day :)

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

2012-04-26 Thread moktarul anam
Dear Memo, 

try to use view.setFocusable(false) and check 

Enjoy 
Moktarul Anam 


On Friday, 27 April 2012 09:16:39 UTC+5:30, Memo wrote:
>
> Hello every one, 
>
> In my program, I handle a touch event on the screen using OnTouchEvent, if 
> I handle the touch , I will do some tasks and during that, I want to 
> disable touch event handler, i.e the OnTouchEvent does not respond to the 
> touch. 
>
> Could you please help me. 
>
> Thanks all in advance. 
>
> -- 
> Mai A. Al-Ammar 
> Teacher Assistant
> Imam Mohammad bin Saud Islamic University 
> College of Computer Science
>  

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

2012-04-26 Thread moktarul anam
Dear Memo, 

try to use view.setFocusable(false) and check 

Enjoy 
Moktarul Anam 



On Friday, 27 April 2012 09:16:39 UTC+5:30, Memo wrote:
>
> Hello every one, 
>
> In my program, I handle a touch event on the screen using OnTouchEvent, if 
> I handle the touch , I will do some tasks and during that, I want to 
> disable touch event handler, i.e the OnTouchEvent does not respond to the 
> touch. 
>
> Could you please help me. 
>
> Thanks all in advance. 
>
> -- 
> Mai A. Al-Ammar 
> Teacher Assistant
> Imam Mohammad bin Saud Islamic University 
> College of Computer Science
>  

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

[android-developers] Android application StartUp Initialization

2012-04-26 Thread Mansoor
Hi all,

I am very much interested to know how an android application
starts.After much googling I understood something but not fully.
Below some of my observations:

1.When i click an application icon from launcher ,System look for
activity with intent action "main" and category "Launcher" and starts
that activity.
   *I need some more clarity regarding who launch main activity or who
filtering main activity from others(I think package manager does).
2.Once Activity is launched there will be no windows associated with
that application until i call setContentView(layout id).
3.When i call setContentView(layout id),Activity creates a new Window
inance and this window has some default root layout to which we set
our layout .
 *I think this window have a Surface instance and is associated with
native Bitmap ?Did this surface have a Canvas wrapper over native
bitmap ?
4.Once Layout is attached to Window ,This window is added to Window
manager.
5.Window manager gives gives all window(having Surface) on screen to
Surface Flinger.
6.SurfaceFlinger based on visibility of window set pixels in
FrameBuffer and displays to screen.

I am not sure whether what i said above is right or wrong.Please
correct me if my understanding is wrong.
Also add extra processes happening whilhe application start up.

Thanks and have a Nice day :)

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

2012-04-26 Thread Spiral123
I think the correct spelling is plz.

On Friday, April 27, 2012 1:02:18 AM UTC-4, android developer wrote:
>
> Hi Good morning all.
>
> Android writing to file and Upload it to server , pls help me on this 
> issue.
>
> Thanks and regards
>
>

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

Re: [android-developers] Android writing to file and Upload it to server

2012-04-26 Thread Justin Anderson
http://www.catb.org/~esr/faqs/smart-questions.html

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


On Thu, Apr 26, 2012 at 11:02 PM, android developer <
android.developer4...@gmail.com> wrote:

> Hi Good morning all.
>
> Android writing to file and Upload it to server , pls help me on this
> issue.
>
> Thanks and regards
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Android writing to file and Upload it to server

2012-04-26 Thread android developer
Hi Good morning all.

Android writing to file and Upload it to server , pls help me on this issue.

Thanks and regards

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

Re: [android-developers] no searching of sd card files

2012-04-26 Thread asheesh arya
hi sandhu,
by using this code you easily search and access  all file store in your sd
card with in your application
main.xml


http://schemas.android.com/apk/res/android";

android:orientation="vertical"

android:layout_width="fill_parent"

android:layout_height="fill_parent">









---
row.xml


http://schemas.android.com/apk/res/android";

  android:id="@+id/rowtext"

  android:layout_width="fill_parent"

 android:layout_height="25px"

 android:textSize="23sp" />

main activity
package com.test;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;

public class Test77Activity extends ListActivity {
 private List item = null;
 private List path = null;
 private String root="/sdcard";
 private TextView myPath;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
   // Intent intent=getIntent();

setContentView(R.layout.main);
myPath = (TextView)findViewById(R.id.path);
getDir(root);
}

private void getDir(String dirPath)
{
 myPath.setText("Location: " + dirPath);

 item = new ArrayList();
 path = new ArrayList();

 File f = new File(dirPath);
 File[] files = f.listFiles();

 if(!dirPath.equals(root))
 {

  item.add(root);
  path.add(root);

  item.add("../");
  path.add(f.getParent());

 }

 for(int i=0; i < files.length; i++)
 {
   File file = files[i];
   path.add(file.getPath());
   if(file.isDirectory())
item.add(file.getName() + "/");
   else
item.add(file.getName());
 }

 ArrayAdapter fileList =
  new ArrayAdapter(this, R.layout.row, item);
 setListAdapter(fileList);
}

 @Override
 protected void onListItemClick(ListView l, View v, int position, long
id) {

  File file = new File(path.get(position));

  if (file.isDirectory())
  {
   if(file.canRead())
getDir(path.get(position));
   else
   {
new AlertDialog.Builder(this)
.setIcon(R.drawable.ic_launcher)
.setTitle("[" + file.getName() + "] folder can't be read!")
.setPositiveButton("OK",
  new DialogInterface.OnClickListener() {

   public void onClick(DialogInterface dialog, int which){
// TODO Auto-generated method stub
   dialog.dismiss();
   }
  }).show();
   }
  }
  else
  {
  Intent intent = new Intent();
  intent.setAction(Intent.ACTION_VIEW);
  Uri uri = Uri.parse("file://" + file.getPath());
  String fname=file.getName();

if(fname.endsWith(".jpeg")||fname.endsWith("png")||fname.endsWith("jpg")||fname.endsWith(".gif")||fname.endsWith(".txt"))
  {
  intent.setDataAndType(uri, "image/*");
  startActivity(intent);
  }
  else if(fname.endsWith(".mp4")||fname.endsWith(".3gp"))
  {
  intent.setDataAndType(uri, "video/*");
  startActivity(intent);
  }
  else if(fname.endsWith(".mp3"))
  {
  intent.setDataAndType(uri, "audio/*");
  startActivity(intent);
  }
  else
 try {
 EditText tv = (EditText)findViewById(R.id.tin);
  StringBuilder text = new StringBuilder();

BufferedReader br = new BufferedReader(new
FileReader(file));
   String line;

while ((line = br.readLine()) != null) {
   text.append(line);
text.append('\n');

//Set the text
   tv.setText(text);

}
}//try
catch (IOException e) {
//You'll need to add proper error handling here
}//catch

  }
 }
}
--
android manifest file

http://schemas.android.

[android-developers] SDcard booting on blaze board through fastboot

2012-04-26 Thread Mamatha K
Dear All,
I am facing problem in sdcard booting on blaze board.

Blaze board also has nand flash. So when the given fastboot is
executed its going on flash memory.
But in my project we are using blaze board WITHOUT internal memory
( i.e, it has to boot from sdcard). So we need to fastboot through
sdcard.

$$
We tried sdcard fast boot,
on fastboot oem format it is giving below log at DEVICE(target board)
side

*
efi partition table:
Read not permitted as Card on SLOT-0 not Initialized
efi partition table not found
Net:   KS8851SNL
Hit any key to stop autoboot:  0
booti: cannot find 'boot' partition
Fastboot entered...
blocks 0
Write not permitted as Card on SLOT-0 not Initialized

new partition table:
Read not permitted as Card on SLOT-0 not Initialized
efi partition table not found
***


Whereas at HOST side the log after executing  fastboot oem format is
as below
**
$./fastboot oem format
...
OKAY [  0.243s]
finished. total time: 0.243s
*

So kindly help me in this how can I go for sdcard fastboot.

Thanks and Regards,
Mamatha K

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


[android-developers] OnTouchEvent disable

2012-04-26 Thread Mai Al-Ammar
Hello every one,

In my program, I handle a touch event on the screen using OnTouchEvent, if
I handle the touch , I will do some tasks and during that, I want to
disable touch event handler, i.e the OnTouchEvent does not respond to the
touch.

Could you please help me.

Thanks all in advance.

-- 
Mai A. Al-Ammar
Teacher Assistant
Imam Mohammad bin Saud Islamic University
College of Computer Science

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

2012-04-26 Thread Andrew Gregory
Each subframe (sent every six seconds) has the *GPS Time*. The GPS/UTC
offset is only sent in subframe 4 of page 18 of the almanac data, i.e. once
every 12.5 minutes.

Also, a comment on the ZDA message mentioned previously. I had tried that
as part of my project R&D and it also returns "best guess UTC", just like
RMC. i.e. if the receiver hasn't received the GPS/UTC offset, it doesn't
actually report UTC.


On 25 April 2012 19:22, StarTraX  wrote:

> I've been reading up on the GPS signal structure, and it's true that it
> takes 12 1/2 minutes for the full sequence, but... and this is a big but...
> the GPS time and GPS/UTC offset are sent with every sub frame, and they
> come by every six seconds.
> So you can forget about waiting 12 1/2 minutes. before being certain of
> the time! It's synchronized every 6 seconds. Its all well explained
> in Wikipedia http://en.wikipedia.org/wiki/GPS_signals
>

-- 
Andrew

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

[android-developers] Re: GPS Location returns zero speed always

2012-04-26 Thread David Ross
My problems is not with failure or inaccurate readings, it has to do
with why the GPS provider does not provide speed and bearing values
when it returns a new Location.

I have done a simple test and reduced the minimum time between
location updates from 1 minutes to 10s and then I consistently get
speed and bearing. What bugs me is that on the HTC Dev 1 (1.6) and the
Huawei Sonic (2.3.3) the GPS returns speed and bearing even when the
update frequency is more than a minute (expected/desired behaviour).

It sounds like a buggy GPS implementation either in the GPS chipset or
in the low level drivers.


On Apr 26, 7:05 pm, lbendlin  wrote:
> https://www.google.com/search?q=google+nexus+s+gps+issues
>
>
>
>
>
>
>
>

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

2012-04-26 Thread Kiran Rao
Thanks for the response b0b.

I realize MediaPlayer will not do the job for me - at least in 2.2. But, is 
there any framework-level requirement that is stopping me from building the 
newer media framework source and deploying it on 2.2? Perhaps this would 
make my app prohibitively large? Or performance impact? (Since 2 instance 
of media service will always be running) ??

On Thursday, 26 April 2012 16:03:31 UTC+5:30, b0b wrote:
>
> I wouldn't care about Android 2.2 at this point, as the MediaPlayer is 
> really incomplete and buggy in this version and lower.
> It is a lot better in 2.3.x and above.
>
> Most third party video players use ffmpeg as the media framework.
>
>

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

[android-developers] help to get Bussiness Calender in my App

2012-04-26 Thread vamshi ch
hi all,

 In my project i have the requirement like add or inject Bussiness
Calender.. so user can make to add appointments,reminders,notes,calls and
dairy by that calender(touch&select date) so that i have this type of
requirements...could you pls any one help me out on 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] systemUiVisibility is a global flag across apps?

2012-04-26 Thread Agus
Thanks Mark,

As soon as I throw a dialog within activity that has setSystemUiVisibility
set to HIDE_NAVIGATION,  that flag got cleared. Is that the expected
behavior?

-Agus.


On Thu, Apr 26, 2012 at 5:14 PM, Mark Murphy wrote:

> On Thu, Apr 26, 2012 at 8:07 PM, Agus  wrote:
> > I am wondering if systemUiVisibility flag set via setSystemUiVisibility
> is a
> > global flag across apps?
>
> No. You only affect your app with that flag.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Fragment.onActivityResult is not called

2012-04-26 Thread Casvah
OK! I solved my problem. Teaches me to code when tired. I was simply 
missing a .show() after my toast. :(

On Thursday, April 26, 2012 6:21:03 PM UTC-5, Casvah wrote:
>
> Ok, I'll verify I have the current version of the compatibility library. 
> If it is fixed, what would cause my fragment's onActivityResult callback 
> method to never be called?
>
> On Thursday, April 26, 2012 4:42:41 AM UTC-5, Kostya Vasilyev wrote:
>>
>> The bug is in the compatibility library, not the platform, so no firmware 
>> updates are involved.
>>
>> The native platform implementation of this is different.
>>
>> It appears fixed in the current version of the compat library (v7?), I 
>> believe it has been for a long time.
>>
>> -- K
>>
>> 26 апреля 2012 г. 6:32 пользователь Zsolt Vasvari 
>> написал:
>>
>>> Oh, I see this is from 2011, not this March.  Never mind -- the fix 
>>> should certainly be part of 3.2 and ICS.
>>>
>>>
>>> On Thursday, April 26, 2012 10:09:38 AM UTC+8, Zsolt Vasvari wrote:

 I am sure it will be fixed in whatever the next version of Android is 
 and if they back port the fix and the phones get updated (likelihood: 
 0.0001%).

 So unless you are targeting ONLY the non-yet public next version of the 
 SDK, you might as well just not even assume this fix exists and code 
 around 
 it somehow.



 On Thursday, April 26, 2012 9:24:59 AM UTC+8, Casvah wrote:
>
> Has this issue been fixed? The bug report on the issue tracker says 
> it's closed, but there are new comments from people having this issue. I 
> am 
> also having this issue. I might be doing it wrong though, since I can't 
> get 
> it to work with any request code.
>
> On Thursday, March 10, 2011 12:15:12 PM UTC-6, Dianne Hackborn wrote:
>>
>> Whoops, yeah that is a bug.  Thanks for finding it.  I'll fix it in 
>> the next update.
>>
>> On Thu, Mar 10, 2011 at 1:55 AM, Pete Doyle  wrote:
>>
>>> Ran into this issue tonight on my Droid (2.2).  I think there's an 
>>> issue in FragmentActivity.**startActivityFromFragment(...)**.
>>>
>>> YMMV, but this seems to fix it for me:
>>> https://github.com/petedoyle/**android-support-v4-googlemaps/**
>>> commit/**06307de35a9de0a89ff52bb42a358b**a6740e542c
>>>
>>> Basically there are two issues:
>>>   1) "(fragment.mIndex+1)<<16" should be in parentheses since + has 
>>> precedence over << in Java
>>>   2) requestCode*0x should be requestCode&0x.  (I think the 
>>> goal is to strip all but the first 16 bits of the request code).
>>>
>>> To understand the fix, assume you have a fragment index of 0 and a 
>>> requestCode of 1.
>>>
>>> With the current code:
>>> (fragment.mIndex+1)<<16 + (**requestCode*0x)
>>>  = (0+1)<<16 + (1*0x)
>>>  = (1)<< (16 + 0x) // since + has precedence over <<
>>>  = 1<<65551
>>>  = 32768 // according to my debugger
>>>  = 1000    // fragment index is lost, request code 
>>> changes from 1 to 32768
>>>
>>> With this change:
>>> ((fragment.mIndex+1)<<16) + (**requestCode&0x)
>>>  = ((0+1)<<16) + (1&0x)
>>>  = (1<<16) + 1
>>>  = 65536 + 1
>>>  = 65537
>>>  = 1    0001
>>>
>>> Thanks,
>>> Pete
>>>
>>> On Wed, Mar 9, 2011 at 9:20 AM, Dianne Hackborn >> > wrote:
>>>
 Does the API demo for this work wherever you are running it?  I 
 have tested it on 3.0, 2.3, and 1.6, and it works in those places, not 
 would I expect it to have any trouble elsewhere.   (How this works is 
 very 
 simple, it just masks out the top X bits of the request code to 
 determine 
 which fragment to deliver the result to.)

 Also of course if you are overriding 
 FragmentActivity.**onActivityResult(), 
 you *do* need to be sure to call the inherited version.  The behavior 
 here 
 is slightly different than the HC implementation; the activity method 
 will 
 always be called first.


 On Wed, Mar 9, 2011 at 8:14 AM, drasticp wrote:

> I have an application that targets 2.1. I'm using the Android
> Compatibility Package to migrate the code in my Activities to
> Fragments. I had an Activity which was launching a contact picker 
> as
> follows:
>
> Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,
> Contacts.CONTENT_URI);
> startActivityForResult(**contactPickerIntent, 
> CONTACT_PICKER_RESULT);
>
> The result was appropriately handled in the onActivityResult for 
> the
> Activity:
>
> @Override
> public 

Re: [android-developers] systemUiVisibility is a global flag across apps?

2012-04-26 Thread Mark Murphy
On Thu, Apr 26, 2012 at 8:07 PM, Agus  wrote:
> I am wondering if systemUiVisibility flag set via setSystemUiVisibility is a
> global flag across apps?

No. You only affect your app with that flag.

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

Android Training...At Your Office: http://commonsware.com/training

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

2012-04-26 Thread beachboy
I think the problem I was having is a known Android bug where
sometimes a Service onCreate is called but no corresponding
onStartCommand is called.
The net is if a service is killed in a low memory situation and even
though you return START_STICKY in onStartCommand only the onCreate is
called and not the onStartCommand. One suggested workaround is to do
your initialization in onCreate.

http://groups.google.com/group/android-developers/browse_thread/thread/d87fb390c13d141d/52f7154ab49f229?hl=en&q=dianne+hackborn+onstartcommand+bug#



On Apr 26, 9:34 am, Mark Murphy  wrote:
> On Thu, Apr 26, 2012 at 9:29 AM, beachboy  wrote:
> > As you can the onReceive is executing on process 2072 which is the
> > service process just fine until 20:52. At 20:52 new processes are
> > spawned and my Application onCreate is called. My service is not being
> > killed and restarted because I would seen those log messages. Neither
> > is my application starting.
>
> Your process is being shut down (e.g., you stopped your service), and
> something else (e.g., AlarmManager, app widget) is causing your
> process to be restarted every 30 minutes.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC:http://marakana.com/training/android/

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


[android-developers] systemUiVisibility is a global flag across apps?

2012-04-26 Thread Agus
Hi,

I am wondering if systemUiVisibility flag set via setSystemUiVisibility is
a global flag across apps?

-Agus.

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

2012-04-26 Thread Casvah
Ok, I'll verify I have the current version of the compatibility library. If 
it is fixed, what would cause my fragment's onActivityResult callback 
method to never be called?

On Thursday, April 26, 2012 4:42:41 AM UTC-5, Kostya Vasilyev wrote:
>
> The bug is in the compatibility library, not the platform, so no firmware 
> updates are involved.
>
> The native platform implementation of this is different.
>
> It appears fixed in the current version of the compat library (v7?), I 
> believe it has been for a long time.
>
> -- K
>
> 26 апреля 2012 г. 6:32 пользователь Zsolt Vasvari написал:
>
>> Oh, I see this is from 2011, not this March.  Never mind -- the fix 
>> should certainly be part of 3.2 and ICS.
>>
>>
>> On Thursday, April 26, 2012 10:09:38 AM UTC+8, Zsolt Vasvari wrote:
>>>
>>> I am sure it will be fixed in whatever the next version of Android is 
>>> and if they back port the fix and the phones get updated (likelihood: 
>>> 0.0001%).
>>>
>>> So unless you are targeting ONLY the non-yet public next version of the 
>>> SDK, you might as well just not even assume this fix exists and code around 
>>> it somehow.
>>>
>>>
>>>
>>> On Thursday, April 26, 2012 9:24:59 AM UTC+8, Casvah wrote:

 Has this issue been fixed? The bug report on the issue tracker says 
 it's closed, but there are new comments from people having this issue. I 
 am 
 also having this issue. I might be doing it wrong though, since I can't 
 get 
 it to work with any request code.

 On Thursday, March 10, 2011 12:15:12 PM UTC-6, Dianne Hackborn wrote:
>
> Whoops, yeah that is a bug.  Thanks for finding it.  I'll fix it in 
> the next update.
>
> On Thu, Mar 10, 2011 at 1:55 AM, Pete Doyle  wrote:
>
>> Ran into this issue tonight on my Droid (2.2).  I think there's an 
>> issue in FragmentActivity.**startActivityFromFragment(...)**.
>>
>> YMMV, but this seems to fix it for me:
>> https://github.com/petedoyle/**android-support-v4-googlemaps/**
>> commit/**06307de35a9de0a89ff52bb42a358b**a6740e542c
>>
>> Basically there are two issues:
>>   1) "(fragment.mIndex+1)<<16" should be in parentheses since + has 
>> precedence over << in Java
>>   2) requestCode*0x should be requestCode&0x.  (I think the 
>> goal is to strip all but the first 16 bits of the request code).
>>
>> To understand the fix, assume you have a fragment index of 0 and a 
>> requestCode of 1.
>>
>> With the current code:
>> (fragment.mIndex+1)<<16 + (**requestCode*0x)
>>  = (0+1)<<16 + (1*0x)
>>  = (1)<< (16 + 0x) // since + has precedence over <<
>>  = 1<<65551
>>  = 32768 // according to my debugger
>>  = 1000    // fragment index is lost, request code 
>> changes from 1 to 32768
>>
>> With this change:
>> ((fragment.mIndex+1)<<16) + (**requestCode&0x)
>>  = ((0+1)<<16) + (1&0x)
>>  = (1<<16) + 1
>>  = 65536 + 1
>>  = 65537
>>  = 1    0001
>>
>> Thanks,
>> Pete
>>
>> On Wed, Mar 9, 2011 at 9:20 AM, Dianne Hackborn 
>> wrote:
>>
>>> Does the API demo for this work wherever you are running it?  I have 
>>> tested it on 3.0, 2.3, and 1.6, and it works in those places, not would 
>>> I 
>>> expect it to have any trouble elsewhere.   (How this works is very 
>>> simple, 
>>> it just masks out the top X bits of the request code to determine which 
>>> fragment to deliver the result to.)
>>>
>>> Also of course if you are overriding 
>>> FragmentActivity.**onActivityResult(), 
>>> you *do* need to be sure to call the inherited version.  The behavior 
>>> here 
>>> is slightly different than the HC implementation; the activity method 
>>> will 
>>> always be called first.
>>>
>>>
>>> On Wed, Mar 9, 2011 at 8:14 AM, drasticp  wrote:
>>>
 I have an application that targets 2.1. I'm using the Android
 Compatibility Package to migrate the code in my Activities to
 Fragments. I had an Activity which was launching a contact picker as
 follows:

 Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,
 Contacts.CONTENT_URI);
 startActivityForResult(**contactPickerIntent, 
 CONTACT_PICKER_RESULT);

 The result was appropriately handled in the onActivityResult for the
 Activity:

 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent
 data) {
if (resultCode != Activity.RESULT_OK) return;
switch (requestCode) {
case CONTACT_PICKER_RESULT:
handleResult(data);
break;
}
 }

 Now, I've 

[android-developers] MediaPlayer Prepare failed: status=0x1

2012-04-26 Thread SH
Hi Android geeks.

I am having a practice writing a little audio player. The app connect
to http server to download mp3 files(not audio streaming). After
downloading, it player the file using mediaplayer.  But I tried to
play it, error like title happens. Below is some pieces  of my code:

public class ViewArticleActivity extends Activity {

MediaPlayer mediaPlayer;

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView (R.layout.activity_view_article);

mediaPlayer = new MediaPlayer();
}

protected void downloadAudio(String url){
HttpDownload download = new HttpDownload(this, new
HttpDownloadListener(){
ProgressDialog mProgress;
public void onStart() {
Resources res = getResources();
mProgress = 
ProgressDialog.show(ViewArticleActivity.this,
res.getString(R.string.download),
res.getString(R.string.wait_download));
}

public void onDone(String filePath) {
mProgress.dismiss();

if (filePath==null){
Log.e(TAG, "File is null");
return;
}

File f = new File(filePath);
if (!f.exists()){
Log.e(TAG, "File not found:" + 
filePath);
return;
}

try {

//DB Access code will be here

mediaPlayer.setDataSource(filePath);
mediaPlayer.prepare();  //==> Error here

} catch (Exception e) {

Toast.makeText(ViewArticleActivity.this, e.getMessage(),
Toast.LENGTH_LONG).show();
}

}

});

download.download(url, "mypackage");
}

}

I can see the audio file in the file explorer, which is normal audio
file. But when I try to play the file, the error occurs. In the API
documentation, setDataSource(String path) accepts file path of a file
as parameter. I don't know what the problem is. Please help me...

Thanks in advance.

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


[android-developers] Re: Handling remote control buttons

2012-04-26 Thread Jeremy Villalobos

Thanks, that certainly resolves hours of trying to resolve this issue.

I had used singleTask in the past, but I discovered that singleTask 
ignores incoming Intents when the application is started by other 
activities.  I have since resolve that problem by having a head-less 
activity be the designated activity to receive incoming Intents, and 
leaving the main Activity for status and to load new media from within it. 
 Because of that, I can apply your advice.  

The use of a head-less Activity for incomming Intents also resoves the 
problem of having an Intent mysteriously coming back after a screen 
rotation.  

Thanks

On Thursday, April 26, 2012 5:58:25 PM UTC-4, lbendlin wrote:
>
> set your main activity to android:launchMode="singleTask"   
> android:alwaysRetainTaskState="true"
> and all your other activities to android:noHistory="true" (if applicable)
>
> On Thursday, April 26, 2012 4:09:25 AM UTC-4, Jeremy Villalobos wrote:
>>
>> Hello:
>>
>> I followed the advice from this blog to receive the bluetooth buttons for 
>> my app:
>>
>>
>> http://android-developers.blogspot.com/2010/06/allowing-applications-to-play-nicer.html
>>
>> The buttons work on the average case.  However, if the user opens two 
>> instances of my app (one by starting the app, and another through an Intent 
>> call like open file, open attashment etc.) now I have two instances 
>> running, and they both run the button code.  I get two calls.
>>
>> I tried limiting the number of instances in the Manifest, but it does no 
>> effect ( Tried android:launchMode="singleTop" and "*singleInstance*" ).  
>>
>> What is the clean way to get this to work ?
>>
>> 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] Remove ringtones from ringtones list

2012-04-26 Thread Karim Varela
Hey Henrique,

Did you ever find a solution to this problem? We're experiencing the same 
problem in our app.

-Karim


On Monday, February 28, 2011 9:42:24 AM UTC-8, h3nr1ke wrote:
>
> Hello people... ^^V
>
> I have an app that include some sounds in the ringtones list
>
> the sounds are saved in the sdcard
>
> I caninclude.. ok ...
>
> How can I remove??
>
> If I delete the sound form the sd... they still there in the ringtones 
> list... =(
>
> does anybody know sometrhing...
>
> thanks in advance...
>
> ^^V
> -- 
> Henrique
>
> h3nr...@gmail.com
>
>  

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

[android-developers] Re: Handling remote control buttons

2012-04-26 Thread lbendlin
set your main activity to android:launchMode="singleTask"   
android:alwaysRetainTaskState="true"
and all your other activities to android:noHistory="true" (if applicable)

On Thursday, April 26, 2012 4:09:25 AM UTC-4, Jeremy Villalobos wrote:
>
> Hello:
>
> I followed the advice from this blog to receive the bluetooth buttons for 
> my app:
>
>
> http://android-developers.blogspot.com/2010/06/allowing-applications-to-play-nicer.html
>
> The buttons work on the average case.  However, if the user opens two 
> instances of my app (one by starting the app, and another through an Intent 
> call like open file, open attashment etc.) now I have two instances 
> running, and they both run the button code.  I get two calls.
>
> I tried limiting the number of instances in the Manifest, but it does no 
> effect ( Tried android:launchMode="singleTop" and "*singleInstance*" ).  
>
> What is the clean way to get this to work ?
>
> 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] Non-square pixels

2012-04-26 Thread Dianne Hackborn
No, Android fundamentally has no current support for non-square pixels.

On Wed, Apr 25, 2012 at 5:23 AM, SytheZN  wrote:

> I realise this may have been asked before, but I'm struggling to find any
> relevant information.
>
> First things first, I've got a cheapy tablet (Zenithink C7).
>
> The display resolution is 800x480 which works out to 5:3.
> The physical dimensions are 154x85.5mm which gives me an approx. physical
> aspect of 9:5.
>
> Given these variables, pixel aspect should be 27:25.
>
> If I resize an image or video to match this pixel aspect the distortion is
> not noticible.
> Unfortunately, the rest of the system (GUI .etc) all appear stretched.
>
> My query is this:
> Although the compliance specs say the pixel aspect should be 1:1, is there
> any way I can tweak the graphics
> subsystem to account for the variance in pixel aspect?
>
> I'm not overly concerned with OpenGL correction, but it'd be nice if i
> could sort out the aspect ratio system-wide.
>
> My thoughts were to perhaps give the UI subsystem a fictitious resolution
> (i.e. 864x480) to display on screen.
>
> Is this possible?
> If so, how would i go about it?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] http://developer.android.com/reference/android/view/package-summary.html

2012-04-26 Thread Justin Anderson
Umm... ok

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


On Thu, Apr 26, 2012 at 3:03 PM, heshoots67 Zuber wrote:

> http://developer.android.com/reference/android/view/package-summary.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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] http://developer.android.com/reference/android/view/package-summary.html

2012-04-26 Thread heshoots67 Zuber
http://developer.android.com/reference/android/view/package-summary.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] Freeze view during updates

2012-04-26 Thread rael_yoni
Hey, 
I've a view that gets updated in code. Is there a way in Android to freeze 
the screen so all the changes will be rendered off screen? so that the user 
will see only the end results? (and it won't flicker)

In .net there is the Suspend/Resume Layout pattern 
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.suspendlayout.aspx
 

Thanks,
Yoni

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

2012-04-26 Thread Jose_GD
Certainly this is not the right list for the question, but where to post 
questions about publishing Android apps? There was a Google group for the 
Market, but since the rebranding as Google Play I'm lost at this.

Cheers,

José




El jueves, 26 de abril de 2012 12:09:10 UTC-3, barrett escribió:
>
> that's an interesting question but I think you are posting to the wrong 
> list. This list is for developers and how to build apps, your question 
> seems more legal than technical. 
>
> I would consult with a lawyer. You will probably need to have your US 
> registered company sell apps. But, you need to ensure you are dealing with 
> taxes properly. I don't know how things work in Armenia but in Canada (i'm 
> from Canada) you would definitely have to pay income taxes on apps even if 
> you sell them through a US company (assuming the revenue actually gets to 
> you personally) and I'm pretty sure the IRS will want a cut too. 
>
>
> good luck and let us know how things go. 
>
> On Wednesday, April 25, 2012 9:40:25 PM UTC-6, Narek Gevorgyan wrote:
>>
>> Hi, 
>>
>> I am going to sign up for a developer account but I have one question, 
>> Can I sell apps from the name of my company which is registered at US 
>> Delaware state but I am an Armenian citizen and my residency is in 
>> Armenia. As I am from Armenia I can't sell paid apps, but can I do 
>> that via my US LLC, as my billing address will be at United States? 
>>
>> Thanks, 
>> Narek 
>>
>>

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

2012-04-26 Thread jadranko bodiroga
Thanks people,i succes in setting ringtone... thanks for sharing ideas

On Apr 24, 2012 8:07 PM, "Justin Anderson"  wrote:

> You may also want to use the assets folder:
>
> https://www.google.com/search?btnG=1&pws=0&q=android+move+file+from+assets+to+phone
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, Apr 24, 2012 at 11:56 AM, jadranko bodiroga <
> jadrankobodiroga1...@gmail.com> wrote:
>
>> THANKS MAN..I WILL TRY THAT TO IMPORT TO MY APP..if i manage i will share
>> code...
>>
>> On Apr 24, 2012 7:53 PM, "Kristopher Micinski" 
>> wrote:
>>
>>> Did you try googling "access file from resources android?"
>>>
>>> This comes up:
>>>
>>>
>>> http://stackoverflow.com/questions/4081763/access-resource-files-in-android
>>>
>>> kris
>>>
>>> On Tue, Apr 24, 2012 at 1:34 PM, jadranko bodiroga
>>>  wrote:
>>> > How to do that...give me some example...
>>> >
>>> > On Apr 24, 2012 6:18 PM, "Kristopher Micinski" >> >
>>> > wrote:
>>> >>
>>> >> What are you even talking about...?
>>> >>
>>> >> You can take the file out of shared resources and store it in storage,
>>> >> distributing the app with the file in resources..
>>> >>
>>> >> Kris
>>> >>
>>> >> On Tue, Apr 24, 2012 at 11:48 AM, jadranko bodiroga
>>> >>  wrote:
>>> >> > But if i whant to send my app to friend ,i have to copy him that
>>> song
>>> >> > too on
>>> >> > specific location,is it? Than i can not share my app to
>>> others,becouse
>>> >> > app
>>> >> > will not find song...that is a reason i whant to import song into my
>>> >> > activity...
>>> >> >
>>> >> > On Apr 24, 2012 5:10 PM, "Kristopher Micinski" <
>>> krismicin...@gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> So take your file, put it somewhere in storage, and then set the
>>> URI
>>> >> >> appropriately.
>>> >> >>
>>> >> >> Kris
>>> >> >>
>>> >> >> On Tue, Apr 24, 2012 at 10:40 AM, jadranko bodiroga
>>> >> >>  wrote:
>>> >> >> > Tried solutins and ideas in a link you sent...in the both
>>> solutios
>>> >> >> > thay
>>> >> >> > are
>>> >> >> > placing song on card and read it from it.but i whant to set
>>> ringtone
>>> >> >> > from
>>> >> >> > song that i inport in my activity in R.drawable.song...that
>>> solution
>>> >> >> > i
>>> >> >> > whant...did you try make app to set ringtone?
>>> >> >> >
>>> >> >> > On Apr 23, 2012 9:34 PM, "Kristopher Micinski"
>>> >> >> > 
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> How did it not solve your problem?  What did you try?
>>> >> >> >>
>>> >> >> >> Kris
>>> >> >> >>
>>> >> >> >> On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga
>>> >> >> >>  wrote:
>>> >> >> >> > sorry..still did not solve my problem.any other suggestions
>>> where
>>> >> >> >> > to
>>> >> >> >> > start...
>>> >> >> >> >
>>> >> >> >> > --
>>> >> >> >> > You received this message because you are subscribed to the
>>> Google
>>> >> >> >> > Groups "Android Developers" group.
>>> >> >> >> > To post to this group, send email to
>>> >> >> >> > android-developers@googlegroups.com
>>> >> >> >> > To unsubscribe from this group, 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
>

Re: [android-developers] Unable to relayout when dialog shown with ICS

2012-04-26 Thread Gicci
Because I need to set the size of this view to a square inside the 
scrollview. I get the width at runtime and then set the height accordingly.

By the way I have found a workaround. To have the resize-and-relayout to 
happen in 4.0.3 if there is a dialog on top of the main window, it seems 
that these operations need to be posted to the view and not directly 
executed.

On Thursday, April 26, 2012 5:02:37 PM UTC+2, MagouyaWare wrote:
>
> In my app main activity I have a View which starts with height 0, embedded 
>> in a FrameLayout > LinearLayout > ScrollView. I set the height 
>> programmatically with setLayoutParams() when I get the knowledge of its 
>> width.
>>
> Why are you doing this?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, Apr 24, 2012 at 1:55 PM, Gicci wrote:
>
>> In my app main activity I have a View which starts with height 0, 
>> embedded in a FrameLayout > LinearLayout > ScrollView. I set the height 
>> programmatically with setLayoutParams() when I get the knowledge of its 
>> width.
>
>
>

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

2012-04-26 Thread F.Stain
Up!

To show the problem, i made a small example. It's placed on github, link is 
here :
https://github.com/FrankStain/com.multicontext.test

Use 'USE_MULTICONTEXT' to determinate, single context must be used in 
application or multiple shared contexts and separate thread for data 
loading.

I hope someone will help me to understand why shared contexts are works not 
on all devices.

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

Re: [android-developers] Re: How to change default HIPRI connection expiry?

2012-04-26 Thread Robert Greenwalt
If you are making your own system image you can set the expiration timeout
(or turn it off) through config.xml settings.  If you are not making a new
system image you cannot adjust the expiration timeout.

R

On Wed, Apr 25, 2012 at 2:28 AM, Med Chakib wrote:

> Hello all,
> I'm currently working on a project that need a data connexion to be
> active while I'm connected on WIFI.
> Your solution seems to be exactly what I need. Did you find a way to
> extend the duration of your HIPRI connection ?
> Med
>
> On Mar 23, 10:01 pm, San  wrote:
> > Hey flumby,
> >
> > Did you get any solution? I am also facing the same issue...
> >
> > San
> >
> > On Mar 2, 11:08 pm, flumby  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Has anyone played with TYPE_MOBILE_HIPRI? Is there a way to set the
> > > RestoreDefaultNetworkDelay or any other way to increase the duration
> > > ofHIPRIconnection?
> >
> > > On Feb 29, 5:55 pm, flumby  wrote:
> >
> > > > In my project, I need to access an IP Address through mobile
> connection
> > > > --irrespective of whether it is connected to mobile or WIFI network.
> My
> > > > code is similar to below:
> >
> > > >connMan = (ConnectivityManager)
> > > > getSystemService(Context.CONNECTIVITY_SERVICE);
> > > >int res =
> > > > connMan.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE,
> > > > "enableHIPRI");
> >
> > > > Then when I get the notification thatHIPRIis available, I call:
> > > >boolean reqRes =
> > > > connMan.requestRouteToHost(ConnectivityManager.TYPE_MOBILE_HIPRI,
> > > > ipAddress);
> >
> > > > This is working fine. My app can connect to the URL specified in the
> > > > ipAddress. My app can send requests, and receive responses. However,
> the
> > > > connection gets disconnected after about a minute. Is there a way to
> have
> > > >HIPRIconnection for longer time?
> >
> > > > To make a short story long,  I see the following in the log:
> > > > D/ConnectivityService( 1640): ignoring as dup is found
> > > > stopUsingNetworkFeature for net 5: enableHIPRI by 9683/10033(expire -
> > > > created 60026 mSec ago)
> >
> > > > I took a look at the source and I see that in
> ConnectivityService.java, in
> > > > the implementation of requestRouteToHost method, it calls:
> >
> > > >   mHandler.sendMessageDelayed (mHandler.obtainMessage
> > > > (NetworkStateTracker.EVENT_RESTORE_DEFAULT_NETWORK, f),
> > > > getRestoreDefaultNetworkDelay());
> >
> > > > And I see that getRestoreDefaultNetworkDelay is returning 6. So,
> I know
> > > > why my app is getting disconnected after about a minute.
> > > > My question is, how can I haveHIPRIconnection for a longer period -at
> > > > least 30 minutes?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] New Android Dev Team

2012-04-26 Thread Jerrick Davis
The Private Dev Team  a prominent iOS developer team is expanding to 
android development anyone who is interested in the slightest or wants 
details email me at lamabo...@gmail.com

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

Re: [android-developers] Re: Total Available memory for Memory Management logic.

2012-04-26 Thread Dallas Gutauckis
The Android developer site also explains why SoftReference and
WeakReference are no longer a good solution. It also goes into detail on
how to developer a good solution:
http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html

"In the past, a popular memory cache implementation was a
SoftReference
 or 
WeakReference
bitmap
cache, however this is not recommended. Starting from Android 2.3 (API
Level 9) the garbage collector is more aggressive with collecting soft/weak
references which makes them fairly ineffective."

On Thu, Apr 26, 2012 at 11:49 AM, bruce  wrote:

> I found that the soft references works when you are dealing with
> smaller allocations but if you deal with images, it gc()'s the
> reference took quick for it to be useful.  There used to be some
> control around what thresholds are used but that isn't a good way to
> do it anyway.  My solution was to go ahead and implement an LRU cache
> with hashmap and software references as Daniel mentions.  Then I have
> a subset of that which are have hard references to a minimal number.
> That way, I don't get immediately gc'd and for systems that work
> better I get the benefit.  If an OutOfMemoryError occurs, I can flush
> the cache, perform a couple of gc() calls, and continue.  After doing
> some performance analysis of the rest of the code, minimizing memory
> churn, making sure bitmaps are manually recycled, reduced these errors
> greatly.  I would suggest using TraceView and MemoryAnalyzer to make
> sure you really are releasing properly and just to see how the app is
> performing in general.  You might spot some problems.
>
> On 3.0+ devices you can add to your AndroidManifest, in the
>   area: 'android:largeHeap="true"'.  This gives lots
> of room for large pics (256M I believe).  I wouldn't use it if you use
> mostly small allocations because there is a performance hit with the
> large heap.
>
> Cheers,
> Bruce
>
>
> On Apr 26, 4:01 am, Daniel Drozdzewski 
> wrote:
> > The thing is that Android OS will allocate the memory according to the
> > needs of a process (up to maximum memory allowed).
> >
> > So, if were able to establish the amount of free memory that your app
> > has available, the OS might increase this allowance as soon as you
> > allocate next bitmap, therefore the whole method makes little sense.
> >
> > Instead build a HashMap that uses soft references to build a primitive
> > cache with random eviction policy. The bitmaps will get removed as the
> > process is running low on memory. There are few good articles about
> > the usage of soft and weak references to implement primitive caches in
> > Java. This gives you a solution that will adapt to whatever memory
> > allowance is there (different per OS version) with all the memory
> > management duties shifted to the platform.
> >
> > Here is one such article:
> http://www.javaspecialists.eu/archive/Issue015.html
> >
> > Daniel
> >
> > On 25 April 2012 16:57, Anieeh  wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Hi all
> > >I am having problem with releasing memory problem, i have a
> > > Hashmap in which i am adding Bitmap object, and the no. of bitmaps are
> > > quite large. for this reason i am getting "OutOfMemoryError". So for
> > > this i have decided to release Bitmap whic is least used from
> > > Collection, on memory crunch or system getting low heap memory.
> > >  For getting current memory available i used
> > > "ActivityManager.MemoryInfo.availMem" but it gives total RAM size
> > > memory, not Available Heap memory. And i found that this memory is not
> > > getting updated on releasing  Bitmap from collection.
> >
> > > Then i have used these three method
> > > "Debug.getNativeHeapAllocatedSize()"
> > > "Debug.getNativeHeapFreeSize()"
> > > "Debug.getNativeHeapSize()"
> >
> > > but found the NativeHeapSize goes on increasing upto some certain say
> > > 16MB changing after that an "outOfMemoryError" occur. In this also i
> > > found that the NativeHeapAllocatedSize and getNativeHeapSize not
> > > decreasing on releasing  Bitmap from collection.
> >
> > > So please help me for solving the problem if anyone facing the same
> > > problem and fixed earlier it.
> >
> > > My problem is i want to calculate "Max Available application memory
> > > allocated" and "currently available memory", for such that if
> > > "currently available memory" goes beyond the Threshold memory i will
> > > release some Bitmap from the collection and GC will reclaim the memory
> > > and free it without generating error.
> >
> > > Thanks in advance
> > > Anieeh
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-

Re: [android-developers] how to lunch skype or gtalk video call from our application

2012-04-26 Thread Rajesh sah
thanks for your help.

On Thu, Apr 26, 2012 at 8:25 PM, Justin Anderson wrote:

> I don't know much about *"lunching"* skype or gtalk... but if you are
> wanting to *"launch"* them, then that is another story...
>
> http://lmgtfy.com/?q=android+launch+skype+intent
> http://lmgtfy.com/?q=android+launch+gtalk+intent
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Wed, Apr 25, 2012 at 1:36 AM, Rajesh sah  wrote:
>
>> I need help for   lunch skype or gtalk video call from our
>> application.
>>
>> thankyou for ur time and help.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Rajesh Kumar Sah
B.Tech Final Year
Department of Computer Engineering
N.I.T. Kurkshetra
Haryana, India
Contact : +919896626397

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

2012-04-26 Thread Jim Graham
On Thu, Apr 26, 2012 at 10:34:12AM -0600, Justin Anderson wrote:
> I don't think he is a developer...  I think he is just a user having a
> problem with his phone.  In which case, it is most likely a problem with
> one of the 3rd party apps he has installed.

I decided to give him the benefit of the doubt.  :-)

Later,
   --jim

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

   Saw something on TV about Psych-os.
 H, Psych OS.  Perhaps the next freeware OS   --me

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] Screen lock problem

2012-04-26 Thread Justin Anderson
And the question doesn't belong on this list...

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


On Thu, Apr 26, 2012 at 10:34 AM, Justin Anderson wrote:

> I don't think he is a developer...  I think he is just a user having a
> problem with his phone.  In which case, it is most likely a problem with
> one of the 3rd party apps he has installed.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Thu, Apr 26, 2012 at 10:27 AM, Jim Graham  wrote:
>
>> On Mon, Apr 23, 2012 at 10:17:53PM -0700, Vichu wrote:
>> > I am using Samsung Galaxy Pro B7510 with Android 2.3.6. My phone's
>> > screen lights keeps turning on frequently even if the screen is
>> > locked. It automatically switch on and off the screen lights. I tried
>> > clearing my memory. There were no notifications too. Tried switching
>> > off the phone many times. What to do..!!!
>>
>> Post the code that's giving you problems, along with any error messages,
>> logs from logcat, etc.  But first, try researching the problem with your
>> app in the developers guide and past posts in this developers list.  Your
>> description of the problems with your app make no sense at all.  Are
>> you trying to write an unlocker?  If so, be advised that "officially"
>> there is no such thing, and any attempts to write one are, by definition,
>> using unsupported methods(unofficially, I have one that works beautifully
>> on my Froyo phone, so it can be done).
>>
>> Later,
>>   --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
>>
>
>

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

2012-04-26 Thread Justin Anderson
I don't think he is a developer...  I think he is just a user having a
problem with his phone.  In which case, it is most likely a problem with
one of the 3rd party apps he has installed.

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


On Thu, Apr 26, 2012 at 10:27 AM, Jim Graham  wrote:

> On Mon, Apr 23, 2012 at 10:17:53PM -0700, Vichu wrote:
> > I am using Samsung Galaxy Pro B7510 with Android 2.3.6. My phone's
> > screen lights keeps turning on frequently even if the screen is
> > locked. It automatically switch on and off the screen lights. I tried
> > clearing my memory. There were no notifications too. Tried switching
> > off the phone many times. What to do..!!!
>
> Post the code that's giving you problems, along with any error messages,
> logs from logcat, etc.  But first, try researching the problem with your
> app in the developers guide and past posts in this developers list.  Your
> description of the problems with your app make no sense at all.  Are
> you trying to write an unlocker?  If so, be advised that "officially"
> there is no such thing, and any attempts to write one are, by definition,
> using unsupported methods(unofficially, I have one that works beautifully
> on my Froyo phone, so it can be done).
>
> Later,
>   --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
>

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

2012-04-26 Thread Jim Graham
On Mon, Apr 23, 2012 at 10:17:53PM -0700, Vichu wrote:
> I am using Samsung Galaxy Pro B7510 with Android 2.3.6. My phone's
> screen lights keeps turning on frequently even if the screen is
> locked. It automatically switch on and off the screen lights. I tried
> clearing my memory. There were no notifications too. Tried switching
> off the phone many times. What to do..!!!

Post the code that's giving you problems, along with any error messages,
logs from logcat, etc.  But first, try researching the problem with your
app in the developers guide and past posts in this developers list.  Your
description of the problems with your app make no sense at all.  Are
you trying to write an unlocker?  If so, be advised that "officially"
there is no such thing, and any attempts to write one are, by definition,
using unsupported methods(unofficially, I have one that works beautifully
on my Froyo phone, so it can be done).

Later,
   --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] Re: Total Available memory for Memory Management logic.

2012-04-26 Thread bruce
I found that the soft references works when you are dealing with
smaller allocations but if you deal with images, it gc()'s the
reference took quick for it to be useful.  There used to be some
control around what thresholds are used but that isn't a good way to
do it anyway.  My solution was to go ahead and implement an LRU cache
with hashmap and software references as Daniel mentions.  Then I have
a subset of that which are have hard references to a minimal number.
That way, I don't get immediately gc'd and for systems that work
better I get the benefit.  If an OutOfMemoryError occurs, I can flush
the cache, perform a couple of gc() calls, and continue.  After doing
some performance analysis of the rest of the code, minimizing memory
churn, making sure bitmaps are manually recycled, reduced these errors
greatly.  I would suggest using TraceView and MemoryAnalyzer to make
sure you really are releasing properly and just to see how the app is
performing in general.  You might spot some problems.

On 3.0+ devices you can add to your AndroidManifest, in the
  area: 'android:largeHeap="true"'.  This gives lots
of room for large pics (256M I believe).  I wouldn't use it if you use
mostly small allocations because there is a performance hit with the
large heap.

Cheers,
Bruce


On Apr 26, 4:01 am, Daniel Drozdzewski 
wrote:
> The thing is that Android OS will allocate the memory according to the
> needs of a process (up to maximum memory allowed).
>
> So, if were able to establish the amount of free memory that your app
> has available, the OS might increase this allowance as soon as you
> allocate next bitmap, therefore the whole method makes little sense.
>
> Instead build a HashMap that uses soft references to build a primitive
> cache with random eviction policy. The bitmaps will get removed as the
> process is running low on memory. There are few good articles about
> the usage of soft and weak references to implement primitive caches in
> Java. This gives you a solution that will adapt to whatever memory
> allowance is there (different per OS version) with all the memory
> management duties shifted to the platform.
>
> Here is one such article:http://www.javaspecialists.eu/archive/Issue015.html
>
> Daniel
>
> On 25 April 2012 16:57, Anieeh  wrote:
>
>
>
>
>
>
>
>
>
> > Hi all
> >    I am having problem with releasing memory problem, i have a
> > Hashmap in which i am adding Bitmap object, and the no. of bitmaps are
> > quite large. for this reason i am getting "OutOfMemoryError". So for
> > this i have decided to release Bitmap whic is least used from
> > Collection, on memory crunch or system getting low heap memory.
> >  For getting current memory available i used
> > "ActivityManager.MemoryInfo.availMem" but it gives total RAM size
> > memory, not Available Heap memory. And i found that this memory is not
> > getting updated on releasing  Bitmap from collection.
>
> > Then i have used these three method
> > "Debug.getNativeHeapAllocatedSize()"
> > "Debug.getNativeHeapFreeSize()"
> > "Debug.getNativeHeapSize()"
>
> > but found the NativeHeapSize goes on increasing upto some certain say
> > 16MB changing after that an "outOfMemoryError" occur. In this also i
> > found that the NativeHeapAllocatedSize and getNativeHeapSize not
> > decreasing on releasing  Bitmap from collection.
>
> > So please help me for solving the problem if anyone facing the same
> > problem and fixed earlier it.
>
> > My problem is i want to calculate "Max Available application memory
> > allocated" and "currently available memory", for such that if
> > "currently available memory" goes beyond the Threshold memory i will
> > release some Bitmap from the collection and GC will reclaim the memory
> > and free it without generating error.
>
> > Thanks in advance
> > Anieeh
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Daniel Drozdzewski

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

2012-04-26 Thread Justin Anderson
Have you tried setting an android:ellipsize attribute on the textviews?
http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize

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


On Tue, Apr 24, 2012 at 6:35 AM, Barkside  wrote:

> I'm attempting to use GridLayout so I can generate a complicated layout on
> the fly.  However text inside TextViews is not getting clipped to columns
> as I would imagine they would.  To demonstrate what I mean, below is a
> simple example.
>
> http://schemas.android.com/apk/res/android";
>> android:layout_width="match_parent"
>> android:layout_height="match_parent"
>> android:columnCount="3" >
>> > android:layout_column="0"
>> android:layout_columnSpan="1"
>> android:maxLines="1"
>> android:text="" />
>> > android:layout_column="1"
>> android:layout_columnSpan="1"
>> android:maxLines="1"
>> android:text="1" />
>> > android:layout_column="2"
>> android:layout_columnSpan="1"
>> android:maxLines="1"
>> android:text="2" />
>> 
>
>
> I would expect across a small screen the following text, where each column
> crops the content within it:  *02*
> But instead I get (where the second TextView is highlighted in blue):
> 
>
>
>
>
>
>
>
>
>
> I would have thought that since the GridLayout is match_parent (i.e. the
> screen), and columnCount is 3, all columns should squash together and fit
> on the screen.
>
> Now, I have tried various things to get the desired result, including a
> fixed layout_width of the GridLayout, clipChildren to true, a fixed
> layout_width of 0dp and layout_gravity fill_horizontal for each TextView
> (which just gives me ).  I have tried various layout_gravity
> values for the TextViews, including CLIP_HORIZONTAL.  I don't want to have
> to calculate the desired width and manually set that for each TextView.
>
> Any help out there please?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-04-26 Thread Justin Anderson
Ask facebook...

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


On Thu, Apr 26, 2012 at 6:21 AM, HariRam  wrote:

> Friends,
>
> I am new to facebook sso, i have integrated the SSO into my application
> using phonegap, this works fine in android emulator, at the same time when
> i do this application on device, am facing the error.. shows that
> invalid_token , but the same thing is working in emulator.
>
> Even i have created the keystore and mapped with facebook apps and secret
> id...
>
> Still the problem is not getting resolved...
>
> I got some information that, the facebook itself having problem in android
> SSO, is this problem still remains.
>
> Thanks in advance.
> --
> Thanks
> HariRam Lakshminarayanan
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Jframe in Android UI

2012-04-26 Thread Justin Anderson
I would start with this:
http://developer.android.com/guide/topics/fundamentals.html

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


On Wed, Apr 25, 2012 at 7:33 AM, csselo  wrote:

> Hi
>
> I am coding a board game but android is diffrent.Which class is used
> for designing a board?
>
> Thanks for all
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-04-26 Thread Justin Anderson
This should be asked on a different forum...  I believe there are android
porting and android firmware forums where you will get more help.  This
forum is for developing applications with the Android SDK.

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


On Mon, Apr 23, 2012 at 8:07 AM, caredur  wrote:

> I am working on a project that creates custom images for an Android
> device.  We edit the kernel and other os files.  Our system init calls
> init.herring.rc which is where we have our 'module' starting from.
>
> service ourapp /data/local/ourapp --daemon
> class core
> user root
> group root
> oneshot
>
> On the first boot after flashing our images onto the device 'ourapp'
> always fails due to permissions.  However, after we reboot once the
> init.herring.rc starts up 'ourapp' fine.  What could be causing this?  Why
> would a reboot be necessary for the init.rc file to start a service...
>
> 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] Generate new content i Java

2012-04-26 Thread Justin Anderson
>
> As you can see, there's an Item. Let's say we have an ArrayList or
> something with some (let's say 50) objects in, and we want to make one
> item per object in the list
>

I don't understand... Are you wanting to have a scrollable list of these
items?  If so, this is not the way you want to do this.  You would need to
move your RelativeLayout xml to a new file, and then put a listview in your
XML.  Your adapter will need to contain the data for each item.  If you do
a google search for something like "android custom listview tutorial" you
should find several examples that can help.

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


On Tue, Apr 24, 2012 at 2:56 AM, Christopher Carlsson
wrote:

> Hello!
>
> I'm working with some friends on an application, we're all beginners
> but so far it's going pretty well. Unfortunately we've hit a
> roadblock, and since our native language isn't English we don't know
> if we're searching for the right tags, because we're not finding
> anything on this subject.
>
> The following is a part of one of our xmlfiles:
>
>
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:layout_above="@+id/menu"
>android:layout_below="@id/title_bar"
>android:layout_marginTop="15dp" >
>
>
>android:id="@+id/mygames_content"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:layout_gravity="center_horizontal"
>android:layout_marginLeft="15dp"
>android:layout_marginRight="15dp"
>android:orientation="vertical" >
>
>
>android:layout_width="match_parent"
>android:layout_height="wrap_content"
>android:background="#f4f4f4"
>android:padding="10dp"
>android:layout_marginBottom="10dp" >
>
>android:id="@+id/title"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:text="Fotbolls EM 2012"
>android:textColor="#626262"
>android:textSize="17dp"
>android:textStyle="bold" />
>
>android:id="@+id/people"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:layout_below="@id/title"
>android:text="23 deltagare"
>android:textColor="#aeaeae"
>android:textSize="15dp" />
>
>android:id="@+id/rounds"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:layout_below="@id/people"
>android:text="12 omgångar spelade"
>android:textColor="#aeaeae"
>android:textSize="15dp" />
>
>android:id="@+id/time"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:layout_below="@id/rounds"
>android:text="2012-04-18 till 2012-06-18"
>android:textColor="#aeaeae"
>android:textSize="15dp" />
>
>android:src="@drawable/proceed_button"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:layout_alignParentRight="true"
>android:layout_centerVertical="true" />
>
>
>
>
>
> As you can see, there's an Item. Let's say we have an ArrayList or
> something with some (let's say 50) objects in, and we want to make one
> item per object in the list, gathering info from the object and using
> that info in the TextView's. We also want the ImageView to have an
> OnClickListener, but we think we know how to do that. How do we do
> this in Java? We can't find any tutorials or anything on it.. We'd
> greatly appreciate if you would point us in the right direction,
> whether it's a tutorial or if you could give us some "basecode" to
> work of!
>
> 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

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

[android-developers] Re: Selling paid apps at Google Play

2012-04-26 Thread barrett
that's an interesting question but I think you are posting to the wrong 
list. This list is for developers and how to build apps, your question 
seems more legal than technical. 

I would consult with a lawyer. You will probably need to have your US 
registered company sell apps. But, you need to ensure you are dealing with 
taxes properly. I don't know how things work in Armenia but in Canada (i'm 
from Canada) you would definitely have to pay income taxes on apps even if 
you sell them through a US company (assuming the revenue actually gets to 
you personally) and I'm pretty sure the IRS will want a cut too. 


good luck and let us know how things go. 

On Wednesday, April 25, 2012 9:40:25 PM UTC-6, Narek Gevorgyan wrote:
>
> Hi, 
>
> I am going to sign up for a developer account but I have one question, 
> Can I sell apps from the name of my company which is registered at US 
> Delaware state but I am an Armenian citizen and my residency is in 
> Armenia. As I am from Armenia I can't sell paid apps, but can I do 
> that via my US LLC, as my billing address will be at United States? 
>
> Thanks, 
> Narek 
>
>

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

2012-04-26 Thread Justin Anderson
http://lmgtfy.com/?q=android+fragment+example

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


On Tue, Apr 24, 2012 at 3:02 AM, Fausteric  wrote:

>
> I am searching for a fragments example for my purpose.
>
> I have made a app which has 7 pages with icons and each icon
> represents a tool.
>
> Now i want to make a special layout for Tablets.
>
> I want to place all the icons on the left side of the screen and on
> the right side i want to show the tool.
> When a icon (button) is pressed than the tool will be displayed on the
> right side.
>
> I know you can do it with fragments but i need a example of how to use
> it in my case.
>
> Can anyone help me with this?
> (I am not a very experienced android and java user.)
>
> Faust
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Unable to relayout when dialog shown with ICS

2012-04-26 Thread Justin Anderson
>
> In my app main activity I have a View which starts with height 0, embedded
> in a FrameLayout > LinearLayout > ScrollView. I set the height
> programmatically with setLayoutParams() when I get the knowledge of its
> width.
>
Why are you doing this?

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


On Tue, Apr 24, 2012 at 1:55 PM, Gicci  wrote:

> In my app main activity I have a View which starts with height 0, embedded
> in a FrameLayout > LinearLayout > ScrollView. I set the height
> programmatically with setLayoutParams() when I get the knowledge of its
> width.

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

2012-04-26 Thread Justin Anderson
Have you tried the android:layout_gravity attribute?

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


On Thu, Apr 26, 2012 at 6:59 AM, Niels Delporte wrote:

> Hi Romain Guy,
>
> I know this is a very old post, but still wanted to ask you something
> relating to this.
> You see, I want to achieve the same result but wit a TextView and another
> LinearLayout within a LinearLayout.
> I'm experiencing the same problem though.
>
>xmlns:android="http://schemas.android.com/apk/res/android";
>   android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:orientation="vertical"
>   >
> android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>  android:orientation="horizontal"
>   >
>
>   android:id="@+id/name"
>   android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>/>
>
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:orientation="horizontal"
> android:gravity="right"
> >
>
>android:layout_width="16dip"
>  android:layout_height="15dip"
>  android:src="@drawable/foo"
>  android:contentDescription="@string/accessibility_foo" />
>
>  
>
>  
>
>android:id="@+id/message"
>  android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:layout_marginTop="10dip"
>   />
>
> 
>
> Can you see why my inner LinearLayout doesn't want to anchor to the
> outmost rigt?
>
> Thank you in advance!
>
> Niels
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Unable to use ndk-gdb

2012-04-26 Thread JP
Hmm... isn't the answer in the error message? Open jni/Android.mk in
your project, jump rto line 317 and use a number to represent the API
level, methinks.
API levels here: http://developer.android.com/guide/appendix/api-levels.html



On Apr 24, 11:05 pm, Pammy  wrote:
> Hi,
>
> I am facing a problem on android native code debugging, I am new user
> to android and trying to build an application in opengles 2.0 which
> coded in C/C++.
>
> At present I am not able to use the ndk-gdb. I have made all
> prerequisite of ndk-gdb but still not able to debug the application.
> For sake of simplicity I am first trying to debug the "hello-gl2"
> which is provided in the "android-ndk-r6b" sample package.
>
> I have made the changes in the AndroidManifest.xml where I am using
> attribute android:debuggable="true" in application tag.
>
> I am rebuilding the project after cleaning up.
> The application is running well on device however when I run the debug
> command that is :-
>
> application-directory >ndk-gdb
>
> It gives me the following error:-
>
> ==
> Pammy@Pammy-VAIO /cygdrive/f/EDrive/AndroidDevelopment/android-ndk-r6b/
> samples/hello-gl2/jni
> $ ndk-gdb
> error: device offline
> /cygdrive/f/EDrive/AndroidDevelopment/android-ndk-r6b/ndk-gdb: line
> 317: return: Android.mk: numeric argument required
> ERROR: Could not find target device's supported API level!
> ndk-gdb will only work if your device is running Android 2.2 or
> higher.
> ==
>
> I am getting this error on android-ndk r6b and r7b package also.
> I am working on windows 7 and using cygwin for build.
>
> Any help will be very appreciable.
>
> Regards,
> Pammy

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

2012-04-26 Thread Justin Anderson
I don't know much about *"lunching"* skype or gtalk... but if you are
wanting to *"launch"* them, then that is another story...

http://lmgtfy.com/?q=android+launch+skype+intent
http://lmgtfy.com/?q=android+launch+gtalk+intent

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


On Wed, Apr 25, 2012 at 1:36 AM, Rajesh sah  wrote:

> I need help for   lunch skype or gtalk video call from our
> application.
>
> thankyou for ur time and help.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] no searching of sd card files

2012-04-26 Thread Justin Anderson
This group is for developing android applications...

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


On Tue, Apr 24, 2012 at 1:04 AM, dashing sandhu wrote:

> dear developer,
>  i am facing a little problem in android OS. i am using
> gingerbread OS.The problem in it is that it do not search the SD
> card's files i.e. when i search in google search bar it only shows me
> the music and the applications installed but it does not show me the
> folders in the sd card even it do not search for the images and other
> files present in sd card except music files..please if you know ho
> to do it please let me know
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 app- Requires continuous updates of current location-is not working properly

2012-04-26 Thread Kristopher Micinski
That's right...

You're out of luck for this type of accuracy, why do you need it?
Bear in mind that lots of firmware completely *flat out ignores* the
update time interval.

kris

On Thu, Apr 26, 2012 at 10:26 AM, James Black  wrote:
> I believe you will get actual updates from GPS no faster than every second.
>
> Also, are you verifying that the new position is better than the old, in
> terms of accuracy?
>
> And, GPS is not terribly accurate, probably worse than +/- 25m so it will
> jump around.
>
> On Apr 26, 2012 9:31 AM, "Maneesh Janyavula"  wrote:
>>
>> I am developing an Android app, which routes the user from current
>> location to a Parking spot(some random location) as the user moves on
>> the road. I am using GPS_PROVIDER to get the current location.
>>
>> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
>> 500,0,locationListener);
>>
>> I am placing marker on the current location by using-
>>
>> public void addMarkers()
>> {
>> //Adding Current location marker
>>    Drawable drawable_src =
>> this.getResources().getDrawable(R.drawable.mapmarker_pink);
>>    itemizedoverlay_src = new HelloItemizedOverlay(drawable_src,
>> this);
>>    GeoPoint src_point = new GeoPoint((int) (src_lat * 1E6),
>>            (int) (src_long * 1E6));
>>    overlayitem_src = new OverlayItem(src_point, "Current
>> Location",ConvertPointToLocation(src_point));
>>    itemizedoverlay_src.addOverlay(overlayitem_src);
>>    mapOverlays.add(itemizedoverlay_src);
>> }
>>
>> I am using locationManager.getLastKnownLocation to intially get the
>> location, and then later OnLocationChanged method is called, where in
>> the location is updated, the previous marker is removed and new marked
>> is added to the current location-
>>
>> private void updateMarker(GeoPoint point) {
>>
>>    //Removing previous marker
>>    itemizedoverlay_src.removeOverlay(overlayitem_src);
>>    mapOverlays.remove(itemizedoverlay_src);
>>
>>    //Adding Current location marker
>>    overlayitem_src = new OverlayItem(point, "Current
>> Location",ConvertPointToLocation(point));
>>    itemizedoverlay_src.addOverlay(overlayitem_src);
>>    mapOverlays.add(itemizedoverlay_src);
>>
>> }
>>
>> I am doing, this so that it appears as though the marker moves
>> continuously as the user's location is changed continuously. I am
>> requesting the for updates every 500ms. But when I tested the app on
>> the road network, The app turned out to be very slow, and gets hung
>> frequently. I am not sure, why this happens?? Is there something wrong
>> with my code? Is there a better efficient solution to this?
>>
>> Please help me out
>>
>> Thanks- Maneesh
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Android app- Requires continuous updates of current location-is not working properly

2012-04-26 Thread James Black
I believe you will get actual updates from GPS no faster than every second.

Also, are you verifying that the new position is better than the old, in
terms of accuracy?

And, GPS is not terribly accurate, probably worse than +/- 25m so it will
jump around.
On Apr 26, 2012 9:31 AM, "Maneesh Janyavula"  wrote:

> I am developing an Android app, which routes the user from current
> location to a Parking spot(some random location) as the user moves on
> the road. I am using GPS_PROVIDER to get the current location.
>
> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
> 500,0,locationListener);
>
> I am placing marker on the current location by using-
>
> public void addMarkers()
> {
> //Adding Current location marker
>Drawable drawable_src =
> this.getResources().getDrawable(R.drawable.mapmarker_pink);
>itemizedoverlay_src = new HelloItemizedOverlay(drawable_src,
> this);
>GeoPoint src_point = new GeoPoint((int) (src_lat * 1E6),
>(int) (src_long * 1E6));
>overlayitem_src = new OverlayItem(src_point, "Current
> Location",ConvertPointToLocation(src_point));
>itemizedoverlay_src.addOverlay(overlayitem_src);
>mapOverlays.add(itemizedoverlay_src);
> }
>
> I am using locationManager.getLastKnownLocation to intially get the
> location, and then later OnLocationChanged method is called, where in
> the location is updated, the previous marker is removed and new marked
> is added to the current location-
>
> private void updateMarker(GeoPoint point) {
>
>//Removing previous marker
>itemizedoverlay_src.removeOverlay(overlayitem_src);
>mapOverlays.remove(itemizedoverlay_src);
>
>//Adding Current location marker
>overlayitem_src = new OverlayItem(point, "Current
> Location",ConvertPointToLocation(point));
>itemizedoverlay_src.addOverlay(overlayitem_src);
>mapOverlays.add(itemizedoverlay_src);
>
> }
>
> I am doing, this so that it appears as though the marker moves
> continuously as the user's location is changed continuously. I am
> requesting the for updates every 500ms. But when I tested the app on
> the road network, The app turned out to be very slow, and gets hung
> frequently. I am not sure, why this happens?? Is there something wrong
> with my code? Is there a better efficient solution to this?
>
> Please help me out
>
> Thanks- Maneesh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Image zoom on double tap and scroll to next image if crosses view's boundary

2012-04-26 Thread Justin Anderson
http://catb.org/esr/faqs/smart-questions.html

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


On Wed, Apr 25, 2012 at 8:48 AM, raj  wrote:

> Dear All,
>
>
> Please explain me more on the following.
> I have 3 images.
> 1.on double zoom the image.
> 2. Provide scroll in the zoomed image
> 3.move to the next image once it crosses boundary
> 4.set thumnail accordingly.
>
> Thanks in advance.
>
> Raaj
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] drawable resolution problem

2012-04-26 Thread Justin Anderson
>
> As per my assumption it should pick from drawable folder.
>

As per your assumption you are wrong... :-)
http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch

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


On Thu, Apr 26, 2012 at 8:16 AM, nikki  wrote:

> As per my assumption it
> should pick from drawable folder.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Custom Header of ListView like Instagram app in android not working for ListView(child) inside ListView(parent) .

2012-04-26 Thread Ashish Tiwari


Hi friends , 

I'm implementing custom Header of ListView like Instagram app in android . 
http://prsarahevans.com/wp-content/uploads/2011/06/photo.PNG
I've implemented it successfully only for one ListView .

I've created one more ListView(child) inside the Parent ListView .when 
I'm scrolling ListView(parent) , custom header works only for some 
ListItems .
This is my sample app .  
https://bitbucket.org/ashish2py/instagramheader/get/95bb87e37693.zip

here is the java Code .http://pastebin.com/6McECQer

My requirement is >

Parent ListView contains all the " username " and child ListView contains " 
latest 3 tweets " .

~~~
username 
[  latest 3 tweets ]

username 
[  latest 3 tweets ]
-
username 
 [ latest 3 tweets ]
~~~

Thanks in advance .. 

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

Re: [android-developers] Android/JVM difference in RSA decryption

2012-04-26 Thread James Black
I just see garbage in your stack trace, but are you certain the private key
is pkcs8 encoded?

When you test on your desktop, is that on the emulator, a java program or
some other language?

Also, it may not have anything to do with the android sdk, so is probably
off-topic here.
On Apr 26, 2012 9:27 AM, "Joseph"  wrote:

> I am trying to decrypt a String, that I have encrypted elsewhere. Here
> is my code:
>
> private void test() {
>
>try {
>String
>
> stringMessage="Sf3O7Lr2+WN5szGyLejL3CjuBRZtQ72+ZBmgVTgWnatQZxUElzaBqFa1p0SVBqe9VWVxCxdEkejMVtDGEr0UJSVSK8EB/
> fPI6v8JE8dIu0JN0mMs4xlowhITy0tQR+1pcBtDFjzOl33xxQcq5JuPezxRDxFIp
> +IVkD8FdpqlttEKf2Tvqw9tqsdgiBKb5xDvKrkIDQXdLBh1gbAVZDSJYGHRkcOA8vz2ty/
> PeooKkfDK6IOn7KBwOBgSRgQr/MLBF3Xk2vRWgVGRh/fRkzu21EWo99Q5moWKxWl3HW/
> bbgTBQTb097XP3NTID9kSPhCfL0BEfBxonuNse5GBoeRnCw==";
>//Convert String back to Byte[] and decrpt
>byte[] byteMessage =
> Base64.decodeBase64(stringMessage.getBytes("UTF-8"));
>System.out.println("ENCRYPTED MESSAGE byte Length:
> "+byteMessage.length);
>
>String decryptedMsg = decryptString(byteMessage,
> loadCASPrivateKey());
>System.out.println(decryptedMsg);
>} catch (Exception e) {
>e.printStackTrace();
>return;
>}
> }
>
> private static String decryptString(byte[] message, Key privateKey)
> throws InvalidKeyException, NoSuchAlgorithmException,
> NoSuchPaddingException, IllegalBlockSizeException,
> BadPaddingException, UnsupportedEncodingException {
>Cipher cipher = Cipher.getInstance("RSA");
>cipher.init(Cipher.DECRYPT_MODE, privateKey);
>
>byte[] cipherData = cipher.doFinal(message);
>return new String(cipherData, "UTF-8");
> }
>
> private PrivateKey loadCASPrivateKey() throws IOException,
> NoSuchAlgorithmException, InvalidKeySpecException {
>InputStream is = getClass().getResourceAsStream( "/keys/app-
> private.key" );
>if (is == null) {
>System.out.println("NULL");
>}
>byte[] encodedPrivateKey = new byte[(int) 2000];
>is.read(encodedPrivateKey);
>is.close();
>
>// Generate KeyPair.
>KeyFactory keyFactory = KeyFactory.getInstance("RSA");
>
>PKCS8EncodedKeySpec privateKeySpec = new
> PKCS8EncodedKeySpec(encodedPrivateKey);
>PrivateKey privateKey =
> keyFactory.generatePrivate(privateKeySpec);
>
>return privateKey;
>
> }
> This works 100% how I would like it to under my desktop JVM, however
> when I run it in the Android emulator I get:
>
> 04-24 22:42:21.011: I/System.out(1041): ��k���_��*�ݣ���93|
> @0�̍4�y)��Q�k�;*Ae�#��A� �oiu:�W5@$�w�j��uS�R�Ocxٰ&l �w'/
> �d�8uA��ؔ�{�4$�U�0��{Ԑ��t!9��n�� ��a��'Jdt2�t�T�D��k+k�;�� GF��
> \�rڼ��>]�y+^w�<�� ��'E{�8R]�ZHyu��ζ��軟�ށ掱�{�A�#ȟ�
>
> I assume my problem is down to encoding, but I've spent all day trying
> to work out what and am really stumped.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] drawable resolution problem

2012-04-26 Thread nikki
Hi,

I am having an image in my drawable and drawable-xhdpi folder. When I
run the build on a hdpi device, it picks image from xhdpi folder. I am
not able to understand the reason behind it. As per my assumption it
should pick from drawable folder.

Please help.

Thanks

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


Re: [android-developers] Alternate resources for languages with three letter codes

2012-04-26 Thread Justin Anderson
The officially supported localizations for the Android OS can be found for
each API...  As for the latest, Android 4.0.3, you can find them here:
http://developer.android.com/sdk/android-4.0.3.html#locs

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


On Thu, Apr 26, 2012 at 5:27 AM, Yuvi  wrote:

> While trying to add localized resources for the [Sakha language][1] in
> my android app, I kept getting errored out with the following message:
>
>[aapt] invalid resource directory name: /Users/yuvipanda/code/
> WikipediaMobile/res/values-bho
>
>BUILD FAILED
>/Users/yuvipanda/adk/tools/ant/build.xml:539: The following error
> occurred while executing this line:
>/Users/yuvipanda/adk/tools/ant/build.xml:568: null returned: 1
>
> Trying to add variants for *any* three letter language code gives me
> the same error (`values-bho`, `values-kbd`, `values-sah`, etc).
>
> Is there a trick I'm missing, or does Android not support having
> localizations for languages with only 3 letter language codes?
>
> [1]: http://en.wikipedia.org/wiki/Sakha_language
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Open Source Software Links

2012-04-26 Thread David Olsson
How neat that you actually found your own homepage on the internet.

And btw, the account is suspended (try clicking on some links).

And yes, it is spam.

On Tue, Apr 24, 2012 at 7:12 AM, OSS LINKS wrote:

> Hi,
> I just found a cool website that lists a number of open source
> software.
>   http://www.osslinks.com
> Don't worry, it's not a spam.
>
> Cheers
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Global static class versus bundles

2012-04-26 Thread Streets Of Boston
Yes, sharing data by using plain 'static' or 'global' classes and members 
is possible. 
Be careful what you keep referenced in these static or global 
classes/members: don't hold on to activities and such, keeping them 
alive/references beyond the end of their lifecycle (e.g. after an 
activity's onDestroy).

But Intents, and the data in them in the form of Bundles (Extras), allows 
for inter-process, inter-app, communication. 
Also, Android can restore the Intents and the data in them when a component 
(such as an activity) is restored after it had to be killed earlier (e.g. 
in low memory situations). That's much harder to do with just plain 
'static'/'global' classes and members.


On Wednesday, April 25, 2012 8:46:24 PM UTC-4, Tina Seaburn wrote:
>
> I'm a Windows Phone 7 developer and I use C# as a language.  In your 
> tutorial examples there are Activities (looks like activities have a 
> 1:1 relationship with display pages) and they are communicating with 
> each other by passing "Bundles." 
>
> I'm used to having a Global Static Class where all of the common 
> information exists that is shared by the various activities.  Is this 
> possible in Android Java?  It seems easier than passing bundles. 
>
> Also in WP7 we have "Pivots" and "Panoramas" where a "page" may be 15 
> pages wide and the user can slide them accross.  The same Code Class 
> handles them all so all of the variables are common.  Is there any 
> such vehicle in Android? 
>
> Thanks so much for anyone that can help me with this. 
> Tina

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

2012-04-26 Thread Mark Murphy
Read up on:

-- broadcast Intents
-- services (using the command pattern or using binding with AIDL)
-- ContentProvider

These will all be covered in any decent Android book. They are also
covered (to varying degrees) in the online documentation.

On Mon, Apr 23, 2012 at 2:07 PM, Peter Nijem
 wrote:
> Hi,
> I am currently looking for a good tutorial/material that will help me
> to get to know the mechanism of communication between two apps in
> Android. Please share links If you have any.
>
> Thanks,
> Peter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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

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


Re: [android-developers] Re: BroadcastReceiver Spawning New Process onReceive

2012-04-26 Thread Mark Murphy
On Thu, Apr 26, 2012 at 9:29 AM, beachboy  wrote:
> As you can the onReceive is executing on process 2072 which is the
> service process just fine until 20:52. At 20:52 new processes are
> spawned and my Application onCreate is called. My service is not being
> killed and restarted because I would seen those log messages. Neither
> is my application starting.

Your process is being shut down (e.g., you stopped your service), and
something else (e.g., AlarmManager, app widget) is causing your
process to be restarted every 30 minutes.

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

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

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


Re: [android-developers] how to install applet by OTA On Android phone?

2012-04-26 Thread Jeffrey Chu
You need an OTA reader and a javacard tool to install applet to an SE.  To
install applet to PN65N, you also need the set of keys or public key to
generate an load/install token to get authorized to install.

Or, a simpler answer is no, you cannot do it because the keys are not
available.
On Apr 24, 2012 5:15 AM, "何斌斌"  wrote:

> HI All:
>
> Now I'm operating the SE of  PN65N chip, but I don't know how to
> install applet to SE by OTA,
>
> Can anyone help me?   Thanks very much.
>
> --
> binbin he
> Mobile: +86-18616626972
> Msn: hbbs...@hotmail.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-04-26 Thread grimripper
I've made a simple SurfaceView animation. I first draw a stroked white 
rectangle, and then on the next draw, draw a black filled rectangle to hide 
it, using the same rectangle. Then I move the rectangle object's 
coordinates a bit, redraw the white rectangle and so on. Problem is, this 
doesn't work as I'd expect it to.

1) A part of the old rectangle remains visible. At the top it's not 
connected to the newly drawn rectangle.
2) On every other step, everything moves a few pixels forward, including 
the remnants of the old rectangles.
3) On every other step, a new rectangle remnant appears, everything moves 
back to its former location, and the white lines become two pixels wide.
4) Occasionally there are extra lines outside the rectangle, which are left 
visible as the rectangle moves forward.

This effect disappears when I use a larger black rectangle to paint over 
the moving rectangle. I really don't know what's happening here...

Here's the code:
private void doDraw( Canvas canvas ) {

Paint fillBlack = new Paint();
fillBlack.setARGB( 255, 0, 0, 0 );
fillBlack.setStyle( Style.FILL );

canvas.drawRect( currentRect, fillBlack );

if (dstX > currentRect.left)
currentRect.left = Math.min( dstX, currentRect.left + 5 );

else if (dstX < currentRect.left)
currentRect.left = Math.max( dstX, currentRect.left - 5 );

else if (dstY > currentRect.top)
currentRect.top = Math.min( dstY, currentRect.top + 5 );

else if (dstY < currentRect.top)
currentRect.top = Math.max( dstY, currentRect.top - 5 );

else if (currentRect.left > 0 && currentRect.top == 0)
dstY = viewHeight - imageHeight;

else if (currentRect.left > 0 && currentRect.top > 0)
dstX = 0;

else if (currentRect.left == 0 && currentRect.top > 0)
dstY = 0;

else if (currentRect.left == 0 && currentRect.top == 0)
dstX = viewWidth - imageWidth;

currentRect.right = currentRect.left + imageWidth;
currentRect.bottom = currentRect.top + imageHeight;

Paint strokeWhite = new Paint();
strokeWhite.setARGB( 255, 255, 255, 255 );
strokeWhite.setStyle( Style.STROKE );
canvas.drawRect( currentRect, strokeWhite );
}

A frame, the next frame and a screenshot with tearing that shows how the 
image jumps forward on every other step. These are from an emulator, but 
same thing happens on a device.



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

[android-developers] Image zoom on double tap and scroll to next image if crosses view's boundary

2012-04-26 Thread raj
Dear All,


Please explain me more on the following.
I have 3 images.
1.on double zoom the image.
2. Provide scroll in the zoomed image
3.move to the next image once it crosses boundary
4.set thumnail accordingly.

Thanks in advance.

Raaj

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


[android-developers] NFC Detection

2012-04-26 Thread NontKub Klinkhajorn
I want my app can scan tag when it close.Example when i scan tag while my 
apps is cloesed when the NFC adapter detect my tag it will call my app.How 
???

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

[android-developers] The question is about CTS test

2012-04-26 Thread Bow
I am an Wondermedia engineer in Taiwan. I have a question about CTS
test need you help.

In android.app.cts.SystemFeaturesTest --- > testLocationFeatures have
to
two APK (Location services,   networkloaction.apk).

According to
http://grokbase.com/p/gg/android-platform/1248s174ca/the-question-about-
networklocation-apk, you mention "" You can dig it out from your
phone, and reverse engine is illegal."".

We want to get GOOGLE license. But we have not two legal APKs to test
zero pass of CTS test.

Would you tell me what can we do?

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


[android-developers] build my own android rom for google tv

2012-04-26 Thread אבי שרביט
i have a streamer with an android.

i want to redevelop the streamer and make it as a single app that only can 
run on the device and it will replace the android gui.

is it posible?
where can i find the android google tv source?
how can i upload the new android version to the streamer after i compiled 
it?

thanks :)

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

[android-developers] no searching of sd card files

2012-04-26 Thread dashing sandhu
dear developer,
  i am facing a little problem in android OS. i am using
gingerbread OS.The problem in it is that it do not search the SD
card's files i.e. when i search in google search bar it only shows me
the music and the applications installed but it does not show me the
folders in the sd card even it do not search for the images and other
files present in sd card except music files..please if you know ho
to do it please let me know

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

2012-04-26 Thread Michael

I have concerns of making such major changes implicitly in android.
For the developers who follow this thread they are safe, what about
the thousands of developers who wont be reading this thread? Any
possibility of making such major changes compile failures or deprecate
old api and create new api with forced selection of parallel/serial
executor.

Easier to fix failures at app compile time for all developers, not so
easy for each developer who is depending on current parallel asynctask
behavior to google search for related asynctask slowness problems and
find the cause of this six months down the road when 3.0+ is the
default android on majority of devices?

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


[android-developers] Screen lock problem

2012-04-26 Thread Vichu
I am using Samsung Galaxy Pro B7510 with Android 2.3.6. My phone's
screen lights keeps turning on frequently even if the screen is
locked. It automatically switch on and off the screen lights. I tried
clearing my memory. There were no notifications too. Tried switching
off the phone many times. What to do..!!!

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


[android-developers] NFC detection

2012-04-26 Thread Tiyanon Klinkhajorn
Hello,

I create android apps to scan NFC tag to read data in the tag but i
want to run my apps when tag has detected while my app is closed.I try
to use service but it don't work.How i can scan tag while I closed my
app ?

Thank you and sorry with my english.

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

2012-04-26 Thread SytheZN
I realise this may have been asked before, but I'm struggling to find any 
relevant information.
 
First things first, I've got a cheapy tablet (Zenithink C7).
 
The display resolution is 800x480 which works out to 5:3.
The physical dimensions are 154x85.5mm which gives me an approx. physical 
aspect of 9:5.
 
Given these variables, pixel aspect should be 27:25.
 
If I resize an image or video to match this pixel aspect the distortion is 
not noticible.
Unfortunately, the rest of the system (GUI .etc) all appear stretched.
 
My query is this:
Although the compliance specs say the pixel aspect should be 1:1, is there 
any way I can tweak the graphics
subsystem to account for the variance in pixel aspect?
 
I'm not overly concerned with OpenGL correction, but it'd be nice if i 
could sort out the aspect ratio system-wide.
 
My thoughts were to perhaps give the UI subsystem a fictitious resolution 
(i.e. 864x480) to display on screen.
 
Is this possible?
If so, how would i go about it?

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

[android-developers] Android in app , credit card save issue

2012-04-26 Thread viv dub
 

My in app was running fine (I was testing via credit card), since few hours 
before, when suddenly it started throwing following error while saving 
credit card info.

*There was an issue with our payment process [Your instrument is not valid]*

Does any one has clue, to what this actually is.
I was not able to find this error when I searched it.

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

[android-developers] Global static class versus bundles

2012-04-26 Thread Tina Seaburn
I'm a Windows Phone 7 developer and I use C# as a language.  In your
tutorial examples there are Activities (looks like activities have a
1:1 relationship with display pages) and they are communicating with
each other by passing "Bundles."

I'm used to having a Global Static Class where all of the common
information exists that is shared by the various activities.  Is this
possible in Android Java?  It seems easier than passing bundles.

Also in WP7 we have "Pivots" and "Panoramas" where a "page" may be 15
pages wide and the user can slide them accross.  The same Code Class
handles them all so all of the variables are common.  Is there any
such vehicle in Android?

Thanks so much for anyone that can help me with this.
Tina

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


[android-developers] List of cards working with Android Graphics Acceleration

2012-04-26 Thread tonetheman
Is there a list of cards that work with Android Graphics Acceleration? This 
feature looks like it is new as of  SDK Tools Revision 17 but I have not 
been able to get it work with my card.

Just hoping someone else has...

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] Alternate resources for languages with three letter codes

2012-04-26 Thread Yuvi
While trying to add localized resources for the [Sakha language][1] in
my android app, I kept getting errored out with the following message:

[aapt] invalid resource directory name: /Users/yuvipanda/code/
WikipediaMobile/res/values-bho

BUILD FAILED
/Users/yuvipanda/adk/tools/ant/build.xml:539: The following error
occurred while executing this line:
/Users/yuvipanda/adk/tools/ant/build.xml:568: null returned: 1

Trying to add variants for *any* three letter language code gives me
the same error (`values-bho`, `values-kbd`, `values-sah`, etc).

Is there a trick I'm missing, or does Android not support having
localizations for languages with only 3 letter language codes?

[1]: http://en.wikipedia.org/wiki/Sakha_language

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

2012-04-26 Thread vipin sahu
I have a csv file exported from Sqlite browser that contain a table
and i have placed it in sdcard . i wish i could import into my android
apps data base programmatically I tried a lot but failed to achieve
any help would be appreciated . I have the same tabe created in
android but I dont want to do by reading line by line content from csv
file and execute every time query to insert ... so main point is to
import it directly i dont want to read line by line and insert one by
one

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

2012-04-26 Thread Rajesh sah
I need help for   lunch skype or gtalk video call from our
application.

thankyou for ur time and help.

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


Re: [android-developers] RadioGroup OnClickListener

2012-04-26 Thread rakesh jha
Hi friends,
for the radio group you can use oncheckchangeListener  that will be
most suitable to implement.


On Tue, Apr 24, 2012 at 3:43 AM, Justin Anderson wrote:

> So how come that RadioGroup class has a setOnClickListener but not a
>> getOnClickListener?
>>
> It's not just RadioGroup... it is all Views...
>
>
> What can I use to go around this problem?
>>
> Keep a member variable around for use when you need it...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Sun, Apr 15, 2012 at 11:12 AM, Mohamed Sobhy wrote:
>
>> So how come that RadioGroup class has a setOnClickListener but not a
>> getOnClickListener?
>> What can I use to go around this problem?
>>
>> I'm using Android 2.3 API.
>>
>> Any help or comments will be appreciated.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Get Location Without Using Internet

2012-04-26 Thread Rakesh Rajput
How can i get location without using internet if that are possible in
android version 2.0.1 please give me suggestion

on this topic

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

2012-04-26 Thread Mark Murphy
On Wed, Apr 25, 2012 at 6:27 AM, fachhoch  wrote:
> I am a new bee trying writing simple applications using eclipse. I
> tried to change the sdk version using project properties android sdk
> version, but the sdk version never changes t, is this bug in
> eclipse?

There used to be an Eclipse bug that had this effect, but that was
repaired months ago. Make sure that you are on the latest Android
Developer Tools plugin and that you are running a supported version of
Eclipse.

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

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

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


[android-developers] Scale problem with canvas

2012-04-26 Thread BeEnder
hello together,

i have some bitmaps in hdpi format and i want to draw these bitmaps
with canvas.drawBitmap(bitmap, x, y, null) on my screen. this works
fine for a 800 x 480 pixel screen resolution. if i have a bigger
screen resolution (1280 x 768 pixel) or smaller screen resolution (480
× 320 pixel), the bitmaps still drew in their original size instead of
autoscale bigger or smaller.
whats the best performing solution to autoscale the bitmaps / canvas?
Should i use the 800 x 480 pixel screen resolution as 100% and
calculate the scale factor manually?


final Bitmap background = BitmapFactory.decodeResource(resources,
drawableId);

canvas.drawBitmap(background, x, y, null);



Thank you for your help..

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


[android-developers] Browsing a file

2012-04-26 Thread murali ch
Can we write code of Browsing a file from our device in android.?
Please send me replies u got.!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is there any way to simulate reverse Portrait with api level 8?

2012-04-26 Thread nguillot
Hello,

My constraints are:
* portrait orientation for my activities
* min sdk =  API level 8.

So according to 
http://developer.android.com/guide/topics/manifest/activity-element.html
I use "portrait" for "android:screenOrientation" attribute. I also
added "orientation" to "android:configChanges" attribute. But when I
rotate my tablet to 180° my activity doesn't rotate and my top will
located to the bottom. I guess I should use something like "portrait |
reversePortrait" for "android:screenOrientation" attribute. But
"reversePortrait" is not available for API level 8.

Anybody know how to proceed?

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] why I can't use nfc p2p between two android phone

2012-04-26 Thread npa...@163.com
I can't use  nfc p2p between two android phone,one is a nexus S, the
other is htc s715e,both sdk is 2.3.4. below is my code! IS anyone can
give me some help, thanks!
public class MyNFCDemoP2PActivity extends Activity {
private NfcAdapter mNfcAdapter;
private TextView mInfoText;
private TextView mInfoText1;
private NdefMessage mMessage;
String text;
private PendingIntent mPendingIntent;
private IntentFilter[] mFilters;
private String[][] mTechLists=null;
public static boolean changems=true;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mInfoText = (TextView) findViewById(R.id.textView2);
mNfcAdapter = NfcAdapter.getDefaultAdapter(this);
if (mNfcAdapter == null) {
mInfoText.setText("NFC is not available on this device.");
}else{
mInfoText.setText("I recieve message from another peer.");
}
text = ("I AM a PEER\n" +
 "Beam Time: " + System.currentTimeMillis());
 /*mMessage = new NdefMessage(
 new NdefRecord[] { createMimeRecord(
 "application/com.demo.android.nfcp2p",
text.getBytes())
   //  
,NdefRecord.createApplicationRecord("com.demo.android.nfcp2p")
 });*/
 mMessage = new NdefMessage(
 new NdefRecord[] { createMimeRecord(
 "text/plain", text.getBytes())
 });

mPendingIntent = PendingIntent.getActivity(this, 0,
new Intent(this,
getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);

// Setup an intent filter for all MIME based dispatches
IntentFilter ndef = new
IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
try {
ndef.addDataType("application/com.demo.android.nfcp2p");//
ndef.addDataType("text/plain");
} catch (MalformedMimeTypeException e) {
throw new RuntimeException("fail", e);
}
mFilters = new IntentFilter[] {
ndef,
};
// Setup a tech list for all NfcF tags
   // mTechLists = new String[][] { new String[]
{ NfcF.class.getName() } };
}
@Override
public void onResume() {
super.onResume();

mInfoText1 = (TextView) findViewById(R.id.textView3);
mInfoText1.setText("  ");
text = ("I AM a PEER\n" +
 "Beam Time: " + System.currentTimeMillis());
 /*mMessage = new NdefMessage(
 new NdefRecord[] { createMimeRecord(
 "application/com.demo.android.nfcp2p",
text.getBytes())
   //  
,NdefRecord.createApplicationRecord("com.demo.android.nfcp2p")
 });*/
 mMessage = new NdefMessage(
 new NdefRecord[] { createMimeRecord(
 "text/plain", text.getBytes())
 });
if (mNfcAdapter != null) {
enablenedf();
toast("SENT MESSATE:"+text);
String act=getIntent().getAction();
if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(act)) {
toast(new String("I GET A MESSAGE, SUCESS!"));
processIntent(getIntent());
}
}
}

public void enablenedf(){
mNfcAdapter.enableForegroundNdefPush(MyNFCDemoP2PActivity.this,
mMessage);
mNfcAdapter.enableForegroundDispatch(this, mPendingIntent,
mFilters,
   mTechLists);
}


@Override
public void onNewIntent(Intent intent){ //this is first then
onresume
// onResume gets called after this to handle the intent
setIntent(intent);
}

/**
 * Parses the NDEF Message from the intent and prints to the
TextView
 */
void processIntent(Intent intent) {
changems=false;
mInfoText1 = (TextView) findViewById(R.id.textView3);
mInfoText1.setText("  ");
Parcelable[] rawMsgs = intent.getParcelableArrayExtra(
NfcAdapter.EXTRA_NDEF_MESSAGES);
// only one message sent during the beam
NdefMessage msg = (NdefMessage) rawMsgs[0];
// record 0 contains the MIME type, record 1 is the AAR, if
present
String text_recieve=new String(msg.getRecords()
[0].getPayload());
mInfoText1.setText(text_recieve);
toast(text_recieve);
}
@Override
public void onPause() {
super.onPause();
if (mNfcAdapter != null) {
disablenedf();
}
}

public void disablenedf(){
mNfcAdapter.disableForegroundNdefPush(this);
mNfcAdapter.disableForegroundDispatch(this);
   }

/**
 * Creates a custom MIME type encapsulated in an NDEF record
 */
public NdefRecord createMimeRecord(String mimeType, byt

[android-developers] Android app- Requires continuous updates of current location-is not working properly

2012-04-26 Thread Maneesh Janyavula
I am developing an Android app, which routes the user from current
location to a Parking spot(some random location) as the user moves on
the road. I am using GPS_PROVIDER to get the current location.

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
500,0,locationListener);

I am placing marker on the current location by using-

public void addMarkers()
{
//Adding Current location marker
Drawable drawable_src =
this.getResources().getDrawable(R.drawable.mapmarker_pink);
itemizedoverlay_src = new HelloItemizedOverlay(drawable_src,
this);
GeoPoint src_point = new GeoPoint((int) (src_lat * 1E6),
(int) (src_long * 1E6));
overlayitem_src = new OverlayItem(src_point, "Current
Location",ConvertPointToLocation(src_point));
itemizedoverlay_src.addOverlay(overlayitem_src);
mapOverlays.add(itemizedoverlay_src);
}

I am using locationManager.getLastKnownLocation to intially get the
location, and then later OnLocationChanged method is called, where in
the location is updated, the previous marker is removed and new marked
is added to the current location-

private void updateMarker(GeoPoint point) {

//Removing previous marker
itemizedoverlay_src.removeOverlay(overlayitem_src);
mapOverlays.remove(itemizedoverlay_src);

//Adding Current location marker
overlayitem_src = new OverlayItem(point, "Current
Location",ConvertPointToLocation(point));
itemizedoverlay_src.addOverlay(overlayitem_src);
mapOverlays.add(itemizedoverlay_src);

}

I am doing, this so that it appears as though the marker moves
continuously as the user's location is changed continuously. I am
requesting the for updates every 500ms. But when I tested the app on
the road network, The app turned out to be very slow, and gets hung
frequently. I am not sure, why this happens?? Is there something wrong
with my code? Is there a better efficient solution to this?

Please help me out

Thanks- Maneesh

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

2012-04-26 Thread Sarvesh Syal
 am developing an application where I need to start the default music
app and play all the songs. I have tried a number of codes but nothing
seems to work.

 Intent LaunchIntent =
getPackageManager().getLaunchIntentForPackage("com.android.music.MediaPlaybackActivityStarter");
startActivity( LaunchIntent );

and

Intent intent = new Intent();
  ComponentName comp = new ComponentName("com.android.music",
"com.android.music.MediaPlaybackActivity");
  intent.setComponent(comp);
  intent.setAction(Intent.ACTION_RUN);
  startActivity(intent);


just starts the music player, but do not play anything. And

Intent i = new Intent(Intent.ACTION_VIEW);
  Uri u =
Uri.withAppendedPath(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
"1");
  startActivity(i);

Plays just the first song.

I need to play all the songs. Somewhat like when you press the headset
button, and the music starts playing by default from last saved state,
but through code.

Please help.

Thanks in advance.

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


Re: [android-developers] [android developers] how to use a viewpager in a fragment?

2012-04-26 Thread Naveen Gunda
*what kind of problems u have got*
*
*
*Regards,*
*
*
*Naveen.G*
*
*
*91-9700637375*

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

2012-04-26 Thread Naveen Gunda
>
> russel send to me project archive naveengun...@gmail.com
>

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

Re: [android-developers] Issues to add native service to ICS

2012-04-26 Thread Zhentao Qu
hi,

don't too care about this you could comment it
or add a else condition because it's a origin google setting,
but odm will develop some new so or apk will not to add to a list that
android origin variable setting


On Wed, Apr 25, 2012 at 3:37 AM, fan zhang  wrote:

> Hi:
>
>
>
>
>
> I need to add a new native server and a native service moduel to Android
> ICS.
>
>
>
> I got the following issues to compile modules
>
>
>
> build/core/base_rules.mk:80: *
> build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS
> in its
> build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a
> module:
> build/core/base_rules.mk:83: *
> build/core/base_rules.mk:84: * optional, debug, eng, tests, samples
> build/core/base_rules.mk:85: *
> build/core/base_rules.mk:86: * If the module is expected to be in all
> builds
> build/core/base_rules.mk:87: * of a product, then it should use the
> build/core/base_rules.mk:88: * "optional" tag:
> build/core/base_rules.mk:89: *
> build/core/base_rules.mk:90: *Add "LOCAL_MODULE_TAGS := optional" in
> the
> build/core/base_rules.mk:91: *Android.mk for the affected module, and
> add
> build/core/base_rules.mk:92: *the LOCAL_MODULE value for that
> component
> build/core/base_rules.mk:93: *into the PRODUCT_PACKAGES section of
> product
> build/core/base_rules.mk:94: *makefile(s) where it's necessary, if
> build/core/base_rules.mk:95: *appropriate.
> build/core/base_rules.mk:96: *
> build/core/base_rules.mk:97: * If the component should be in EVERY build
> of ALL
> build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value
> to the
> build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of
> build/core/base_rules.mk:100: * build/target/product/core.mk
> build/core/base_rules.mk:101: *
> build/core/base_rules.mk:102: *** user tag detected on new module - user
> tags are only supported on legacy modules.  Stop.
>
>
>
>
>
>
> Actually, I already added LOCAL_MODULE_TAGS := optional to the makefiles
> for native server and native service.
>
>
>
>
>
>
>
> Those modules worked fine for Android 2.3.
>
>
>
>
>
> 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

[android-developers] Unable to use ndk-gdb

2012-04-26 Thread Pammy
Hi,

I am facing a problem on android native code debugging, I am new user
to android and trying to build an application in opengles 2.0 which
coded in C/C++.

At present I am not able to use the ndk-gdb. I have made all
prerequisite of ndk-gdb but still not able to debug the application.
For sake of simplicity I am first trying to debug the "hello-gl2"
which is provided in the "android-ndk-r6b" sample package.

I have made the changes in the AndroidManifest.xml where I am using
attribute android:debuggable="true" in application tag.

I am rebuilding the project after cleaning up.
The application is running well on device however when I run the debug
command that is :-

application-directory >ndk-gdb

It gives me the following error:-

==
Pammy@Pammy-VAIO /cygdrive/f/EDrive/AndroidDevelopment/android-ndk-r6b/
samples/hello-gl2/jni
$ ndk-gdb
error: device offline
/cygdrive/f/EDrive/AndroidDevelopment/android-ndk-r6b/ndk-gdb: line
317: return: Android.mk: numeric argument required
ERROR: Could not find target device's supported API level!
ndk-gdb will only work if your device is running Android 2.2 or
higher.
==

I am getting this error on android-ndk r6b and r7b package also.
I am working on windows 7 and using cygwin for build.

Any help will be very appreciable.

Regards,
Pammy

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

2012-04-26 Thread Med Chakib
Hello all,
I'm currently working on a project that need a data connexion to be
active while I'm connected on WIFI.
Your solution seems to be exactly what I need. Did you find a way to
extend the duration of your HIPRI connection ?
Med

On Mar 23, 10:01 pm, San  wrote:
> Hey flumby,
>
> Did you get any solution? I am also facing the same issue...
>
> San
>
> On Mar 2, 11:08 pm, flumby  wrote:
>
>
>
>
>
>
>
> > Has anyone played with TYPE_MOBILE_HIPRI? Is there a way to set the
> > RestoreDefaultNetworkDelay or any other way to increase the duration
> > ofHIPRIconnection?
>
> > On Feb 29, 5:55 pm, flumby  wrote:
>
> > > In my project, I need to access an IP Address through mobile connection
> > > --irrespective of whether it is connected to mobile or WIFI network. My
> > > code is similar to below:
>
> > >                connMan = (ConnectivityManager)
> > > getSystemService(Context.CONNECTIVITY_SERVICE);
> > >                int res =
> > > connMan.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE,
> > > "enableHIPRI");
>
> > > Then when I get the notification thatHIPRIis available, I call:
> > >                boolean reqRes =
> > > connMan.requestRouteToHost(ConnectivityManager.TYPE_MOBILE_HIPRI,
> > > ipAddress);
>
> > > This is working fine. My app can connect to the URL specified in the
> > > ipAddress. My app can send requests, and receive responses. However, the
> > > connection gets disconnected after about a minute. Is there a way to have
> > >HIPRIconnection for longer time?
>
> > > To make a short story long,  I see the following in the log:
> > > D/ConnectivityService( 1640): ignoring as dup is found
> > > stopUsingNetworkFeature for net 5: enableHIPRI by 9683/10033(expire -
> > > created 60026 mSec ago)
>
> > > I took a look at the source and I see that in ConnectivityService.java, in
> > > the implementation of requestRouteToHost method, it calls:
>
> > >       mHandler.sendMessageDelayed (mHandler.obtainMessage
> > > (NetworkStateTracker.EVENT_RESTORE_DEFAULT_NETWORK, f),
> > > getRestoreDefaultNetworkDelay());
>
> > > And I see that getRestoreDefaultNetworkDelay is returning 6. So, I 
> > > know
> > > why my app is getting disconnected after about a minute.
> > > My question is, how can I haveHIPRIconnection for a longer period -at
> > > least 30 minutes?

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

2012-04-26 Thread pnemonic
in RelativeLayout.java we find

private void applyHorizontalSizeRules(LayoutParams childParams, int
myWidth) {
...
if (0 != rules[ALIGN_PARENT_RIGHT]) {
if (myWidth >= 0) {
childParams.mRight = myWidth - mPaddingRight -
childParams.rightMargin;
} else {
// FIXME uh oh...
}
}
}

I guess they still haven't fixed the FIXME yet.

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

2012-04-26 Thread Narek Gevorgyan
Hi,

I am going to sign up for a developer account but I have one question,
Can I sell apps from the name of my company which is registered at US
Delaware state but I am an Armenian citizen and my residency is in
Armenia. As I am from Armenia I can't sell paid apps, but can I do
that via my US LLC, as my billing address will be at United States?

Thanks,
Narek

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