[android-developers] Re: Encoder Mp3

2011-12-12 Thread Giuseppe
Hi TreKing,
of course I tried Google, I found lame4android, tried with their app
on the market and with their source code, no one can convert WAV file
created by the Android encoder.
I tried also to find something about FFMPEG porting, but nothing!!

Any help?


On Dec 13, 12:41 am, TreKing  wrote:
> On Mon, Dec 12, 2011 at 8:41 AM, Giuseppe wrote:
>
> > I am not able to understand how to convert local audio file from 3gp to Mp3
>
> Have you tried Google?
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] LINT - Nested weights are bad for performance?

2011-12-12 Thread Zsolt Vasvari
This is a Lint warning I am getting in a bunch of files.  What does it
mean?

Here's an example:

http://schemas.android.com/apk/res/
android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical">

android:layout_weight="1"
  android:background="@color/list_background"
  android:cacheColorHint="@null"
  android:divider="@drawable/list_item_divider"
  android:scrollbars="vertical"
  android:fastScrollEnabled="true"/>



   android:layout_weight="1"
  android:gravity="center_vertical|right"
  android:text="@string/select_all"
  style="@android:style/Widget.CompoundButton"/>







I have 2 layout weights, but one is for vertical and one if for
horizontal.  How can I fix this warning, or is it completely bogus as
it doesn't take the orientation into account?

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


[android-developers] Re: Scenario where initLoader() does not call onLoadFinished()

2011-12-12 Thread kaciula
As I said, the initial bugs were fixed by revision 4 of ACL. However, there 
is still a bug present in both the ACL and Android. I've tested it with 
Android version 3.2 and 4.0. Check out the updated project at 
https://github.com/kaciula/BugRetain

I think this is a pretty important bug. The scenario is this: From activity 
A, go to activity B, switch once the orientation and go back to activity A. 
As a consequence of this bug, I can't write an app with fragments that use 
setRetainInstance and is available in both orientations. I really need a 
workaround until the Android guys fix the issue. Thoughts?

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

[android-developers] Re: ADB driver...

2011-12-12 Thread gjs
hi,

from xda forum -

1st December 2011, 12:57 AM
On Windows 7 you go to device manager and select

Updated driver > Browse my computer... > Let me select... > Show all >
Have disk

And then browse to the inf file in the android-sdk-windows\extras
\google\usb_driver folder.

It's a pain but it works perfectly.

regards

On Dec 13, 12:37 pm, sblantipodi  wrote:
> Sure but I havent finded anything.
> My android/extras/usb_drivers contains drivers but windows 7 64bit
> doesn't like it ;)
>
> what to do?
>
> On 13 Dic, 00:49, TreKing  wrote:
>
>
>
>
>
>
>
> > On Mon, Dec 12, 2011 at 5:47 PM, sblantipodi
> > wrote:
>
> > > where can I download the ADB driver for my galaxy nexus?
>
> > Did you try Googling that exactly?
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

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


[android-developers] Pinch Zoom on Two Views in Single Viewgroup android

2011-12-12 Thread julious raj
I am doing a project in which i need two imageviews in single layout
with zooming options. AFAIK android allows one view to make zoom
easily. But my problem is not like that. I have two imageviews one
over another. I've try to do it in Frame Layout. but the results are
not so good. The images are shrink when it goes out of bounds of
layout and the zooming is not so smooth. I have tried to do it with
the deprecated Absolute layout.but it doesn't work. All suggestions
are welcomed.

My Code is here:

int x = (int)event.getRawX();
 int y = (int)event.getRawY();
 ImageView view = (ImageView) v;

 switch (event.getAction() & MotionEvent.ACTION_MASK) {
  case MotionEvent.ACTION_DOWN:
 savedMatrix.set(matrix);
 start.set(event.getX(), event.getY());

 mode = DRAG;
   hoffset = x - v.getLeft();
   voffset = y - v.getTop();
 break;
  case MotionEvent.ACTION_POINTER_DOWN:
 oldDist = spacing(event);
 Log.d(TAG, "oldDist=" + oldDist);
 if (oldDist > 10f) {
savedMatrix.set(matrix);
midPoint(mid, event);
mode = ZOOM;
Log.d(TAG, "mode=ZOOM");
 }
 break;
  case MotionEvent.ACTION_UP:
// moveView(v, x - hoffset, y - voffset);
  case MotionEvent.ACTION_POINTER_UP:
 mode = NONE;

 Log.d(TAG, "mode=NONE");
 break;
  case MotionEvent.ACTION_MOVE:
 if (mode == DRAG) {
 moveView(v, x - hoffset, y - voffset);
hrecent = x;
vrecent = y;
 }
 else if (mode == ZOOM) {


newDist = spacing(event);
if (newDist > 10f) {

   matrix.set(savedMatrix);

   float scale = newDist / oldDist;
 matrix.postScale(ScaleFactorForZoom, ScaleFactorForZoom,
mid.x, mid.y);



   float delta =10.0f+ (newDist -oldDist)/oldDist;
   // view.setImageMatrix(matrix);
 float newHeight;
 float newWidth;


newHeight=(float) ((delta)+view.getHeight());
newWidth=(float) ((delta)+view.getWidth());

oldDist = newDist;



 zoomView(view, newWidth, newHeight);

}
 }
 break;
  }



  return true;
}





The MoveView Function is :

 public void moveView(View v, int x, int y)
   {
 ViewGroup.LayoutParams params = v.getLayoutParams();
 if (params instanceof FrameLayout.LayoutParams)
 {
   FrameLayout.LayoutParams par =
(FrameLayout.LayoutParams)params;
  View parent = (View)(v.getParent());
   x = Math.min(x, parent.getWidth());
   x = Math.max(x, 0);
   y = Math.min(y, parent.getHeight());
   y = Math.max(y, 0);


  par.leftMargin=x;
  par.topMargin=y;
   v.setLayoutParams(par);
   }
   }



The Zoom Function is here  :

public void zoomView(View v, float width, float height)
   {
   ViewGroup.LayoutParams params = v.getLayoutParams();
   if (params instanceof FrameLayout.LayoutParams)
   {
   FrameLayout.LayoutParams par =
(FrameLayout.LayoutParams)params;
   par.width = (int)width;
   par.height = (int)height;

   v.setLayoutParams(par);


   }
   }

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

2011-12-12 Thread giles ian
Thanks All for your suggestions and help

On Fri, Dec 9, 2011 at 9:10 PM, Erwann Abalea  wrote:

>
> Le vendredi 9 décembre 2011 15:24:55 UTC+1, lbendlin a écrit :
>
>> There are a couple of technical difficulties. First of all the phone is
>> likely too heavy for the AC. Then, even if we assume the AC's excrements
>> are toxic - how does it target exactly the SD card? And the request says
>> "wipe", not "soil" anyhow.
>>
>
> You're right, if the intention were to let the AC carry the phone.
> I was thinking about sending AC to the phone holder (localization if left
> as an exercise for the reader), after a previous training for it to be able
> to compose the necessary operations with its beak.
> I hadn't thought about using the AC's excrement for the job. Maybe a v2
> feature?
>
> Seriously, Giles, you can't have a perfect solution. If there's no SIM
> card, no network coverage, no internet, then you have no hope. It's sad,
> but you must face it with dignity and go on.
>
> --
> Erwann.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: How can I cache Google Maps tiles using Android SDK?

2011-12-12 Thread Kristopher Micinski
On Tue, Dec 13, 2011 at 1:01 AM, Spiral123  wrote:
> actually no it wasn't the way I was thinking of.
>

But that would probably be the easiest way to capture the buffer.
It's in your address space, there's nothing stopping you from grabbing
the data, it's just against the terms of the contract you agree to to
store it.  (Yes, I know you understand this, Spiral, that was aimed at
reinforcing that there's nothing technically challenging about
this...)

kris

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


[android-developers] Re: How can i implement Feature Like “Precache Map Area” as like Google Map

2011-12-12 Thread Spiral123
we have already answered this question in your other thread.

On Dec 13, 12:22 am, Saurabh Patel  wrote:
> Can I Implement Feature Like `"Cache Google Map Tile" or "Precache Map
> Area"` which is in Google Maps?
>
> In Latest Google Maps Update, There is a option like `"Precache Map Area"`
> So i want to implement this Feature in My Own Application and on My Own
> Device. So can i Do this Using Google Android Open Source Code which is
> available on android Developer Website??
>
> Basically want to see google map in offline mode, means i want to get Map
> from Cache Map Tile when GPRS or Wifi is not there.
>
> So can i save this google map tile to cache and use this map in future.??
> Please Suggest me the way so if possible than i will proceed for next.
>
> Thanks
>
> Sameer Patel

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

2011-12-12 Thread Spiral123
actually no it wasn't the way I was thinking of.

On Dec 13, 12:40 am, Kristopher Micinski 
wrote:
> > Although it is technically possible you should not save google map
> > tiles to cache and use for the future.  It is explicitly forbidden by
> > Google - and they own/license the data.
>
> But if you absolutely want to steal the data, the way you were
> thinking of doing it is reflecting the maps library?
>
> kris

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


Re: [android-developers] Re: How can I cache Google Maps tiles using Android SDK?

2011-12-12 Thread Kristopher Micinski
> Although it is technically possible you should not save google map
> tiles to cache and use for the future.  It is explicitly forbidden by
> Google - and they own/license the data.

But if you absolutely want to steal the data, the way you were
thinking of doing it is reflecting the maps library?

kris

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


[android-developers] Re: How can I cache Google Maps tiles using Android SDK?

2011-12-12 Thread Spiral123
I understand your question.  And it has been answered already, but
I'll give it one more try.

Although it is technically possible you should not save google map
tiles to cache and use for the future.  It is explicitly forbidden by
Google - and they own/license the data.

You will need to use open source map data to meet your goal.  You can
either download the raw geo data and build your own tile server or you
can use one of the existing free tile servers.  Be careful how many
zoom levels you will support as you are going to need an awful lot of
tiles.

I suggest you follow the links that have already been given in the
thread and research OSM and mobile altas creator.


On Dec 12, 11:15 pm, Saurabh Patel  wrote:
> Hi Thanks For Update
>
> We Can Implement Feature Like "Cache Google Map Tile" which is in Google
> Maps.
>
> I want to see google map in offline mode, means i want to get Map from
> Cache Map Tile when GPRS or Wifi is not there.
>
> So can i save this google map tile to cache and use in future.??
>
> Please Suggest me the way so if possible than i will proceed for next.
>
> Thanks
>
> Saurabh Patel
>
> On 13 December 2011 03:56, Spiral123  wrote:
>
>
>
>
>
>
>
> > No it is not a good way.  As I said in my original response Google Map
> > Tile information is copyright .  It is possible to request the tiles
> > directly from their tile servers but I wouldn't recommend it and I
> > wouldn't tell anyone how to do it.  If they catch you trying to do it
> > I would at least expect them to stop your access and they could
> > possibly even pull your app from the market on the grounds of
> > copyright infringement.
>
> > As the other poster says, there are other open sourced options to get
> > map data.
>
> > On Dec 12, 5:07 am, Saurabh Patel  wrote:
> > > Hi
>
> > > Here We can read Files of wifi.cache and cell.cache for Loading google
> > map
> > > in Offline mode.?
>
> > > Please suggest me idea, i think one way for this May be If my device has
> > > root access than i can access files
> > > from /data/data/com.google.android.location/files and use this lat long
> > for
> > > load the map in Offline mode.
>
> > > Its Good Way?
>
> > > Thanks
>
> > > Saurabh Patel
>
> > > On 11 December 2011 10:54, Spiral123  wrote:
>
> > > > If you are talking about the offline storage of Google Map tiles in
> > > > your own app then I can think of a possible approach - but I wouldn't
> > > > even bother.  It's not a service that Google provide and their data is
> > > > copyrighted.  Just think about how many tiles you will have to pull
> > > > down for all the zoom levels - it gets to a pretty big number very
> > > > quickly for a relatively small area.  There are not that many Google
> > > > tile servers to rotate the requests between...so even if you get away
> > > > with it for a while I'm sure you will get spotted quickly and your
> > > > requests refused.
>
> > > > If you want to get into offline Maps then OSM (http://
> > > >www.openstreetmap.org/) is probably your best bet.  There are a number
> > > > of tile providers you can pick from - although not many will give you
> > > > tiles without payment for a commercial application.  If you are
> > > > covering a limited Geographical area then you would probably be better
> > > > off extracting the Geo information from somewhere like
> > > >http://planet.openstreetmap.org/
> > > > and building and hosting your own tile server.
>
> > > > It's not a trivial proposition.
>
> > > > On Dec 10, 2:19 am, Alexey Zakharov 
> > > > wrote:
> > > > > I want to implement "Download map area"<
> > > >http://googleblog.blogspot.com/2011/07/download-map-area-added-to-lab..
> > .>feature
> > > > like official Google Map application. Is it possible or not?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: RenderScript invokeRoot

2011-12-12 Thread Kloze
I've found it is pointer to rsdScriptInvokeRoot

On 12月9日, 下午10時21分, Kloze  wrote:
> hello everyone,
>
> i'm master student and i'm studying the RS code. When i try to
> construct a framework of RS, i found a function invokeRoot which is
> mHal.funcs.script.invoke. However i can't find the function body and
> so that i have no idea what will this function do. Is anyone has good
> ideal could help me ?
>
> Best Regard
>
> Kloze

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


[android-developers] How can i implement Feature Like “Precache Map Area” as like Google Map

2011-12-12 Thread Saurabh Patel
Can I Implement Feature Like `"Cache Google Map Tile" or "Precache Map
Area"` which is in Google Maps?

In Latest Google Maps Update, There is a option like `"Precache Map Area"`
So i want to implement this Feature in My Own Application and on My Own
Device. So can i Do this Using Google Android Open Source Code which is
available on android Developer Website??

Basically want to see google map in offline mode, means i want to get Map
from Cache Map Tile when GPRS or Wifi is not there.

So can i save this google map tile to cache and use this map in future.??
Please Suggest me the way so if possible than i will proceed for next.

Thanks

Sameer Patel

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

2011-12-12 Thread rachana govilkar
Thank you srihari.i will definitely try this.
and TreKing i previously did go through the link you have given but i
thought u could write/ create a file into that internal storage
area
i didn't know that you can create folder inside that area
i am very much new to this
hope you understand
but thanks by d way


On Dec 13, 4:41 am, TreKing  wrote:
> On Mon, Dec 12, 2011 at 4:47 AM, rachana govilkar <
>
> rachana.govil...@gmail.com> wrote:
> > Can anybody help??
>
> http://developer.android.com/guide/topics/data/data-storage.html
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] how to use android libraries in java project

2011-12-12 Thread Kristopher Micinski
You can just include it as a jar,

doesn't this wok for you?

What are android libraries in this context, an Android library project?

You are aware of the  tag?

kris

On Mon, Dec 12, 2011 at 11:44 PM, Ketan  wrote:
> Hello, I want to include android libraries in my java project.
> Actually i need to run android code in java enviorment , obv this
> android code would not contain any GUI based action, it will simply
> use android's predefined libraries ,,, please suggest me how android's
> libraries can be included in java project. Thanks in Advance !
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] how to use android libraries in java project

2011-12-12 Thread Ketan
Hello, I want to include android libraries in my java project.
Actually i need to run android code in java enviorment , obv this
android code would not contain any GUI based action, it will simply
use android's predefined libraries ,,, please suggest me how android's
libraries can be included in java project. Thanks in Advance !

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


[android-developers] Re: Problems with the new Lint functionality

2011-12-12 Thread Zsolt Vasvari
Actually, I am not sure if it's ignored, or badly presented or what,
but the change doesn't seem to work reliably.

On Dec 13, 12:16 pm, Zsolt Vasvari  wrote:
> It has the potential to catch a bunch of errors, but it (almost) broke
> my build.
>
> One of the checks is a hard-error for missing translations.  That's
> all fine and dandy, but in my case, the missing translations are on
> purpose.  I have the following:
>
> - I have my base English strings in values, no qualifiers.  These
> strings use the British spellings.
> - I override some of those strings to provide a US spelling in values-
> en-rUS.
>
> I am getting Lint hard errors on missing strings in en-rUS.  Editing
> the project properties or the global properties and turing of the
> check DOES NOT WORK on Windows.  The change is simply ignored.
>
> I managed to turn off the check by using the toolbar on the Lint
> window, but this is far from obvious.

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

2011-12-12 Thread Zsolt Vasvari
It has the potential to catch a bunch of errors, but it (almost) broke
my build.

One of the checks is a hard-error for missing translations.  That's
all fine and dandy, but in my case, the missing translations are on
purpose.  I have the following:

- I have my base English strings in values, no qualifiers.  These
strings use the British spellings.
- I override some of those strings to provide a US spelling in values-
en-rUS.

I am getting Lint hard errors on missing strings in en-rUS.  Editing
the project properties or the global properties and turing of the
check DOES NOT WORK on Windows.  The change is simply ignored.

I managed to turn off the check by using the toolbar on the Lint
window, but this is far from obvious.

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

2011-12-12 Thread Saurabh Patel
Hi Thanks For Update

We Can Implement Feature Like "Cache Google Map Tile" which is in Google
Maps.

I want to see google map in offline mode, means i want to get Map from
Cache Map Tile when GPRS or Wifi is not there.

So can i save this google map tile to cache and use in future.??

Please Suggest me the way so if possible than i will proceed for next.

Thanks

Saurabh Patel

On 13 December 2011 03:56, Spiral123  wrote:

> No it is not a good way.  As I said in my original response Google Map
> Tile information is copyright .  It is possible to request the tiles
> directly from their tile servers but I wouldn't recommend it and I
> wouldn't tell anyone how to do it.  If they catch you trying to do it
> I would at least expect them to stop your access and they could
> possibly even pull your app from the market on the grounds of
> copyright infringement.
>
> As the other poster says, there are other open sourced options to get
> map data.
>
> On Dec 12, 5:07 am, Saurabh Patel  wrote:
> > Hi
> >
> > Here We can read Files of wifi.cache and cell.cache for Loading google
> map
> > in Offline mode.?
> >
> > Please suggest me idea, i think one way for this May be If my device has
> > root access than i can access files
> > from /data/data/com.google.android.location/files and use this lat long
> for
> > load the map in Offline mode.
> >
> > Its Good Way?
> >
> > Thanks
> >
> > Saurabh Patel
> >
> > On 11 December 2011 10:54, Spiral123  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > If you are talking about the offline storage of Google Map tiles in
> > > your own app then I can think of a possible approach - but I wouldn't
> > > even bother.  It's not a service that Google provide and their data is
> > > copyrighted.  Just think about how many tiles you will have to pull
> > > down for all the zoom levels - it gets to a pretty big number very
> > > quickly for a relatively small area.  There are not that many Google
> > > tile servers to rotate the requests between...so even if you get away
> > > with it for a while I'm sure you will get spotted quickly and your
> > > requests refused.
> >
> > > If you want to get into offline Maps then OSM (http://
> > >www.openstreetmap.org/) is probably your best bet.  There are a number
> > > of tile providers you can pick from - although not many will give you
> > > tiles without payment for a commercial application.  If you are
> > > covering a limited Geographical area then you would probably be better
> > > off extracting the Geo information from somewhere like
> > >http://planet.openstreetmap.org/
> > > and building and hosting your own tile server.
> >
> > > It's not a trivial proposition.
> >
> > > On Dec 10, 2:19 am, Alexey Zakharov 
> > > wrote:
> > > > I want to implement "Download map area"<
> > >http://googleblog.blogspot.com/2011/07/download-map-area-added-to-lab..
> .>feature
> > > like official Google Map application. Is it possible or not?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] How to create a daynamic View with Button and text field from external XML source

2011-12-12 Thread TreKing
On Sat, Dec 10, 2011 at 9:44 AM, roey fizichky wrote:

> i don"t know how to do this, can you please help?


Write code that downloads your XML, parses it, and creates the layout based
on what it finds.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] License test response

2011-12-12 Thread Stefan Alder
What is the license response received for apps distributed outside of the
market, but with a copy unpublished in the market and the active email not
a test account?

I would hope its supposed to be 'unlicensed' but for some reason were
getting licensed.

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

2011-12-12 Thread Mark Murphy
On Mon, Dec 12, 2011 at 12:53 PM, Julian  wrote:
> I think using the following technique, however, there is no better
> layout to use than AbsoluteLayout.

The typically given solution for replacing AbsoluteLayout is to create
your own custom layout manager.

> My tags' coordinates are defined
> in percentages rather than pixels.  At runtime, I get the width and
> height of the image I'm overlaying, and calculate the pixel
> coordinates of the tags.  The tags are then added to the
> AbsoluteLayout using the calculated coordinates.  If the image expands
> or shrinks on different sized screens, it won't matter because the
> coordinates of the tags will scale along with it.

This definitely sounds like you should create your own custom layout manager.

> To avoid getting the rug pulled out from under me if AbsoluteLayout is
> ever all of a sudden removed from the SDK, I ended up using a
> FrameLayout and setting top and left margins (the exact same effect)
> to position the tags.

You are welcome to do what you want, but it would be more elegant to
create your own custom layout manager.

-- 
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] Honeycomb screen rotation: hook to full completion

2011-12-12 Thread JP
Hi all,
I am trying to find a hook on the SDK level that allows me to capture
the full completion of a screen rotation in Honeycomb, say the
Motorola Xoom.
I can capture the initiation of the rotation with
public void onConfigurationChanged(Configuration newConfig) (when
android:configChanges="orientation" is set accordingly), but all other
Overrides and hooks I've tried (in views, Display, e.g. onRotation())
call back prior to the full completion of the screen rotation.

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

2011-12-12 Thread sblantipodi
Sure but I havent finded anything.
My android/extras/usb_drivers contains drivers but windows 7 64bit
doesn't like it ;)

what to do?

On 13 Dic, 00:49, TreKing  wrote:
> On Mon, Dec 12, 2011 at 5:47 PM, sblantipodi
> wrote:
>
> > where can I download the ADB driver for my galaxy nexus?
>
> Did you try Googling that exactly?
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: unable to download sdks

2011-12-12 Thread topazmax
after trying a hundred different things - i finally discovered that
even though i was logged in as "Administrator" with full access
rights,
my "USER" profile did not not have the same access - once i set full
access there - everything works...
thats windows security for you - do it in umpteen different places if
you want it to work!!

HOWTO in Win7:
open explorer to your system drive (probably C: on yours too)
right click Program Files (x86)\Android
click Properties from this menu
click the security tab in the resulting window
click "select your user identification from the list" then click the
edit button
   note:  (make sure - you may have to do this again in the next
window)
finally - in the Allow column Check the FULL checkbox
and if the  checkbox appears in the bottom
left corner, Check it too
now - make sure you click OK (or APPLY) to actually make the changes

On Dec 8, 4:38 pm, topazmax  wrote:
> i was able todownloadthesdksby running installer_r15-windows.exe,
> after it finishes, it runs the sdk manager.
> but still cant do it any other way!
> is it possible the ADT tools didn't install properly?
> and if so how do i uninstall to try again?

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


Re: [android-developers] Re: How can I test SQLite

2011-12-12 Thread old new
adb shell
cd /data/data/your package name/databases
sqlite3 **.db

select * from your_table;
insert   update delete ..

2011/12/13 martypantsROK 

> use an external tool such as SQLite Data Browser or SQLiteSpy.  You
> can pull your db off the emulator
> and do whatever you want with it. You'll need a rooted phone to pull
> it off a real device
>
> On Dec 13, 9:13 am, SH  wrote:
> > Hi all.
> >
> > I am working with an Android app using SQLite. I want to see inside of
> > database and write an unit test to check CRUD works well. But I can't
> > find the db file the app is using. So please let me know how I can
> > find the .db file and make a unit test. 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 unsubscribe from this group, 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 can I test SQLite

2011-12-12 Thread martypantsROK
use an external tool such as SQLite Data Browser or SQLiteSpy.  You
can pull your db off the emulator
and do whatever you want with it. You'll need a rooted phone to pull
it off a real device

On Dec 13, 9:13 am, SH  wrote:
> Hi all.
>
> I am working with an Android app using SQLite. I want to see inside of
> database and write an unit test to check CRUD works well. But I can't
> find the db file the app is using. So please let me know how I can
> find the .db file and make a unit test. 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: xlargeScreens ?

2011-12-12 Thread martypantsROK
seems to be an Eclipse problem. Build target is set to 11 but it
doesn't recognize it.
Got all the latest updates...any other wise info?


On Dec 12, 8:59 pm, Mark Murphy  wrote:
> On Mon, Dec 12, 2011 at 6:07 AM, martypantsROK  wrote:
> > I'm getting an error on compile:
>
> >       error: No resource identifier found for attribute
> > 'xlargeScreens' in package 'android'
>
> > I'm trying to use API 11, andxlargeScreenswas to have been setup in
> > 9+.
>
> > So what have I done wrong to cause this not to be recognized?
>
> Double-check your project's build target. Having a build target below
> API Level 9 is the only thing that I have seen that causes this error.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.2
> Available!

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


Re: [android-developers] ListView entries question: dynamically changing to EditText

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 7:41 AM, John Goche wrote:

> Is it possible to code a ListView in such a way that when a user
> clicks on one of its TextView entries it turns into an EditText which
> allows the user to enter text?
>

Yes, it is possible. The adapter merely has to know what type of view it's
returning, which would be part of it's logic which you would update on
clicking the text view.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Alternative (offline) implementation of Geocoder backend service

2011-12-12 Thread TreKing
Replying back to the whole list.

On Mon, Dec 12, 2011 at 6:06 PM, Chris Ostler wrote:

> On Dec 12, 4:37 pm, TreKing  wrote:
> > On Mon, Dec 12, 2011 at 2:07 PM, Chris Ostler  >wrote:
> >
> > > I'm interested in building an alternative backend service for use by
> the
> > > android.location.Geocoder class.
> >
> > Are you talking about updating the existing Geocoder class? Because you
> > should consult the platform or porting group for that.
>
> As per the documentation, the Geocoder class requires a separate
> backend service that actually does the geocoding.  I'm wanting to put
> together an implementation of this service *different* than the one
> provided in the Maps API package.
>

It's not in the Maps API package - that's a separate library - Geocoder is
in the core platform.

"The Geocoder query methods will return an empty list if there no backend
service *in the platform*. Use the isPresent() method to determine whether
a Geocoder implementation exists."

That to me sounds like you'd have to modify the firmware.


> My goal is to allow existing apps that currently use the Geocoder
> to function correctly when no network access is available (which
> is required by the Maps API provided service).
>

Geocoder is not required by the Maps API.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] How can I test SQLite

2011-12-12 Thread SH
Hi all.

I am working with an Android app using SQLite. I want to see inside of
database and write an unit test to check CRUD works well. But I can't
find the db file the app is using. So please let me know how I can
find the .db file and make a unit test. Thanks in advance.

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


[android-developers] Re: Android SDK is the must buggy SDK in the entire mobile ecosystem.

2011-12-12 Thread sblantipodi
Same problem with the latest update, quite ridiculous.

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

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 1:35 AM, tahir ashraf
wrote:

> Please guide me in the right direction what should I do?


Read the documentation, for starters.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] ADB driver...

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 5:47 PM, sblantipodi
wrote:

> where can I download the ADB driver for my galaxy nexus?


Did you try Googling that exactly?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] ADB driver...

2011-12-12 Thread sblantipodi
Hi,
where can I download the ADB driver for my galaxy nexus?

I want to download official driver and not drivers downloaded from
some strange hosting.

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] Loading listview with dynamic images AND text from http

2011-12-12 Thread TreKing
On Sun, Dec 11, 2011 at 7:32 PM, jeremy  wrote:

> Any solutions for this lazy loading or are there any other ways I
> could do it? I need to display everything (images + text) from the
> web.
>

There are plenty of solutions, the real question is what will work for your
app, which only you know.
The basic idea is:
- Determine when new data needs to load.
- Starting loading new data, show progress.
- When new data is ready, update UI.

If you want something more specific, get something working and ask a more
specific question.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Clean files from Temp file

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 4:47 AM, rachana govilkar <
rachana.govil...@gmail.com> wrote:

> Can anybody help??


http://developer.android.com/guide/topics/data/data-storage.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Encoder Mp3

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 8:41 AM, Giuseppe wrote:

> I am not able to understand how to convert local audio file from 3gp to Mp3


Have you tried Google?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Generate keypress when moving phone

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 4:01 PM, Charly Pierre wrote:

> My program detect the movement and print a message (when i replace
> SimulationKey.PressTheKeyRIGHT(); by a message), but crash when call
> the function to do a keypress
>
> Any idea ?
>

Debug your app. At least post a stacktrace if you expect help with "a
crash".

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Alternative (offline) implementation of Geocoder backend service

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 2:07 PM, Chris Ostler wrote:

> I'm interested in building an alternative backend service for use by the
> android.location.Geocoder class.
>

Are you talking about updating the existing Geocoder class? Because you
should consult the platform or porting group for that.

Otherwise, the logic required to do Geocoding is not exactly
Android-specific. If you're looking for a supplement to add to your code to
do this work, Googling "Geocoder algorithm" or some-such would be a start.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] I want to get contact name by received phone number when i click on the notification ((please i need help))

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 10:50 AM, Bisher Rasheed wrote:

> i Tried to put the code of getContactDisplayNameByNumber(String
> number) inside normal activity with button and ((without))
> notification and it's worked nicly idon't know where is the problem
> please help
> me the code like that
>

You should clarify, as your question is not very clear.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Toast messages very small on Galaxy Nexus for Launcher2 fork

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 10:35 AM, David Strickland
wrote:

> However, the unmodified Launcher2 displays normal sized Toast messages.
>
> Any tips where to look that I may have messed up?
>

If you're modifying the source, try one of the groups dedicated to that -
you'll likely get better help than here from people dealing strictly with
the SDK.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] uploading and downloading files from email

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 4:45 PM, John Goche wrote:

> Sorry if I have not been clear but I need to allow the user to attach a
> file from an email application in a web browser.
> Maybe I can save the file from my app to external storage (SD card or
> such) and have the user open it from there in a web browser session?
>

I'm still not following. Can you elaborate on the exact use case?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Toast messages very small on Galaxy Nexus for Launcher2 fork

2011-12-12 Thread David Strickland
Hi all,

I cloned the Launcher2 project from source.android.com (master
branch), made some modifications (keeping the attribution, of course),
built it, and installed on a Galaxy Nexus device.

For an unknown reason the Toast messages displayed by my launcher are
extremely small. I assume this is due to the density of the Galaxy
Nexus. However, the unmodified Launcher2 displays normal sized Toast
messages.

Any tips where to look that I may have messed up?

-David

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


[android-developers] Problem connecting Android-tablet to safe school-network

2011-12-12 Thread Birgit Lachner
Hi ...

I'm not sure if this is a forum for android-core-developers ... if not
may be so read this or others can tell me where to post this again.

I want to use my Acer Iconia with Android 3.2 in our school-net that
is well protected with WPA2-EAP. I'm able to connect to the WLAN, but
when I was at home, using our private WLAN the first trial back at
school teh first attempt is not successful. The WLAN-Managers shows
that it tries to connect, then it fails, scans again for WLANs, tries
to connect and so on. The only possibility to connect again is to stop
this procedure and enter all the informations again ... which costs a
lot of time.

One of my pupils told my that he has the same problems with his
smartphone (a HTC as far as I know).

I was searching for reasons and help. One possible solution might be
to "root" the tablet and use a WLAN-Manager. But that is not what I
want to do!

So ... it seems to me, that it is a problem in Android!!

Any ideas ...

Regards from Germany ... Birgit

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] I want to get contact name by received phone number when i click on the notification ((please i need help))

2011-12-12 Thread Bisher Rasheed
Hello guys iam facing problem in android programming i want to make
program that receives messages in a broadcast and display
notifications on the notification bar and when i press on the
notification i want to display an activity includes alert dialog
contains the Contact Name

i Tried to put the code of getContactDisplayNameByNumber(String
number) inside normal activity with button and ((without))
notification and it's worked nicly idon't know where is the problem
please help
me the code like that



public class SMSReceiver extends BroadcastReceiver
{


@Override
public void onReceive(Context context, Intent intent)


{
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String txtMessage = "";

final NotificationManager mNotificationManager;
if (bundle != null)
{
String PhoneNo = "";

//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get("pdus");
msgs = new SmsMessage[pdus.length];

for (int i=0; i 0) {
contactLookup.moveToNext();
name =
contactLookup.getString(contactLookup.getColumnIndex(ContactsContract.Data.DISPLAY_NAME));
//String contactId =
contactLookup.getString(contactLookup.getColumnIndex(BaseColumns._ID));

}
else{
name=number;
}
}
catch (Exception e) {
  Toast.makeText(this, e.getMessage(),
Toast.LENGTH_SHORT);
}

return name;
}
}

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

2011-12-12 Thread dajaz27
I would like to build an app that will screencast via wifi or give me
remote control over the android app via wifi?

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

2011-12-12 Thread John Giotta
The company I work for uses PointSec(http://www.pointsec.org/) to secure 
harddrives and I know that copying to a flash drive would lead to an 
encrypted drive, but will PointSec encrypt my Android device during 
development?

I don't wish to deploy APKs to my device if I risk encrypting 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] Alternative (offline) implementation of Geocoder backend service

2011-12-12 Thread Chris Ostler
I'm interested in building an alternative backend service for use by
the android.location.Geocoder class.  I'd like to support doing some
basic offline geocoding (probably using OpenStreetMap data) when the
network is not available, but fall back to the default implementation
otherwise.

I found that there have been a couple of other posts to the list with
similar questions, but no definitive response [1][2].

Is it possible to write an alternative backend service?  Is there any
documentation describing what is necessary to do so?

[1] 
http://groups.google.com/group/android-developers/browse_thread/thread/966029db4b97f102
[2] 
http://groups.google.com/group/android-developers/browse_thread/thread/220e1ba6095fb55a

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

2011-12-12 Thread Carl Nagle
I do not seem to have a valid activity manager available from the
interactive shell. My app has been built, installs, and runs in the
emulator.  But when I drop into an interactive shell with 'adb - e
shell' or 'adb shell' any attempt to execute the activity manager (am)
does nothing.  The '/system/bin/am' app simply echoes the command it
received.  Even just typing 'am[enter]'--which should simply give the
Help--does nothing but echo the command back.  There is no activity in
logcat when I execute any 'am' command.  Other commands--notably 'pm'
in the same /system/bin directory work just fine and as-expected from
this interactive shell.

Any help, info, or ideas would be greatly appreciated.

I have installed the r15 SDK for windows (installer_r15-windows.exe)
and have created an emulator AVD for 2.3.3.  It is rather frustrating
seeing a billion examples of using 'am' from the interactive shell but
finding the command does not work AT ALL in mine.

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

2011-12-12 Thread
When I change the locale from English to Espanol, issue with uppercase/
lower case for month and am/pm. ---  Dec 11, 2011, 11:54 PM  to dic 11
2011, 11:54 p.m.

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

2011-12-12 Thread Charly Pierre
Hello all,

I want to generate a presskey when i move my phone.

i try with that but it doesn't work => crash

x = values[SensorManager.DATA_X] * 9;
if (x >=45 ) {
 SimulationKey.PressTheKeyRIGHT();
}

// in Simulation class
public static void pressTheKeyRIGHT() {
 Instrumentation i = new Instrumentation();
 i.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_LEFT);
}

My program detect the movement and print a message (when i replace
SimulationKey.PressTheKeyRIGHT(); by a message), but crash when call
the function to do a keypress

Any idea ?

Thx :)

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


Re: [android-developers] Porting Application

2011-12-12 Thread Miguel Morales
3D image galleries?  I don't think those are standard in iOS are they?
 IIRC, the iOS default gallery is very similar to the Android gallery.
If you want to make 3d gallery for Android you'll probably have to find an
opensource implementation or program your own.

On Mon, Dec 12, 2011 at 12:52 AM, Moeen Zamani
wrote:

> *Hey There :)*
> *
> *
> *I am porting an application from iPhone to Android, and i made some UIs
> in iPhone app, that i cant figure it out that how can i make*
> *corresponding UI to android, such as 3D image galleries. ( I don't
> intend to use cross-platform development environments. )*
> *
> *
> *I would appreciate your consultancy guys :)*
> *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




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

2011-12-12 Thread John Goche
On Mon, Dec 12, 2011 at 10:37 PM, TreKing  wrote:

> On Mon, Dec 12, 2011 at 12:21 PM, John Goche 
> wrote:
>
>> I would like to know whether it is possible to invoke a web browser
>> in such a way so as to pass it an attachment and then also in another
>> application open a web browser and download an attachment to an
>> android application so that the application can read the attachment?
>>
>
> That doesn't make a ton of sense: browsers don't take "attachments".
> Besides that, uou have no control over what browser the user is using or
> what intents it responds to.
>
> In your app you can certainly point to any server and upload / download
> what you need, assuming you have appropriate permission.
>

Hi TreKing,

Sorry if I have not been clear but I need to allow the user to attach a
file from an email application in a web browser.
Maybe I can save the file from my app to external storage (SD card or such)
and have the user open it from there in a web browser session?

Thanks,

John Goche

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

2011-12-12 Thread Spiral123
No it is not a good way.  As I said in my original response Google Map
Tile information is copyright .  It is possible to request the tiles
directly from their tile servers but I wouldn't recommend it and I
wouldn't tell anyone how to do it.  If they catch you trying to do it
I would at least expect them to stop your access and they could
possibly even pull your app from the market on the grounds of
copyright infringement.

As the other poster says, there are other open sourced options to get
map data.

On Dec 12, 5:07 am, Saurabh Patel  wrote:
> Hi
>
> Here We can read Files of wifi.cache and cell.cache for Loading google map
> in Offline mode.?
>
> Please suggest me idea, i think one way for this May be If my device has
> root access than i can access files
> from /data/data/com.google.android.location/files and use this lat long for
> load the map in Offline mode.
>
> Its Good Way?
>
> Thanks
>
> Saurabh Patel
>
> On 11 December 2011 10:54, Spiral123  wrote:
>
>
>
>
>
>
>
> > If you are talking about the offline storage of Google Map tiles in
> > your own app then I can think of a possible approach - but I wouldn't
> > even bother.  It's not a service that Google provide and their data is
> > copyrighted.  Just think about how many tiles you will have to pull
> > down for all the zoom levels - it gets to a pretty big number very
> > quickly for a relatively small area.  There are not that many Google
> > tile servers to rotate the requests between...so even if you get away
> > with it for a while I'm sure you will get spotted quickly and your
> > requests refused.
>
> > If you want to get into offline Maps then OSM (http://
> >www.openstreetmap.org/) is probably your best bet.  There are a number
> > of tile providers you can pick from - although not many will give you
> > tiles without payment for a commercial application.  If you are
> > covering a limited Geographical area then you would probably be better
> > off extracting the Geo information from somewhere like
> >http://planet.openstreetmap.org/
> > and building and hosting your own tile server.
>
> > It's not a trivial proposition.
>
> > On Dec 10, 2:19 am, Alexey Zakharov 
> > wrote:
> > > I want to implement "Download map area"<
> >http://googleblog.blogspot.com/2011/07/download-map-area-added-to-lab...>feature
> > like official Google Map application. Is it possible or not?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] uploading and downloading files from email

2011-12-12 Thread TreKing
On Mon, Dec 12, 2011 at 12:21 PM, John Goche wrote:

> I would like to know whether it is possible to invoke a web browser
> in such a way so as to pass it an attachment and then also in another
> application open a web browser and download an attachment to an
> android application so that the application can read the attachment?
>

That doesn't make a ton of sense: browsers don't take "attachments".
Besides that, uou have no control over what browser the user is using or
what intents it responds to.

In your app you can certainly point to any server and upload / download
what you need, assuming you have appropriate permission.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] EOFException on Galaxy Nexus

2011-12-12 Thread freezy
Hi everyone,

I have an app that connects to a HTTP service using an URLConnection. The
app is in the market over a year now and works quite well, however recently
problems with Galaxy Nexus users came up:

When getting the input stream from the URLConnection using
getInputStream(), an EOFException is thrown. I really wonder why this is,
because at this point, only the headers are being read from the stream. The
code of the line where it crashes can be seen here[1].

First I thought this may be an ICS problem, so I installed a early build on
my Nexus S, but no reproduction there. Then I got access to a Galaxy Nexus
and it crashed the same way as the bug reports I've received, which makes
me think that it's probably not a case of a single phone acting weird.

The stack trace of the crash can be seen here[2] (also, the message of the
exception is null, hence the NPE). It's really quite bothersome, the app
has 100k+ installations and the problem does only seem to occur on the
Galaxy Nexus.

Any suggestions, hints or comments would be really appreciated.

Cheers,


   -freezy.



[1]
https://github.com/freezy/android-xbmcremote/blob/master/src/org/xbmc/httpapi/Connection.java#L278
[2] http://code.google.com/p/android-xbmcremote/issues/detail?id=581

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 monkey feature ? : adb shell monkey -p com.asus.davinci.medianote -v 500 --hprof

2011-12-12 Thread Diego Torres Milano
See my answer at 
http://stackoverflow.com/questions/8351329/android-monkey-not-generating-hprof-dump/8433740#8433740
AFAIU, --hprof should be removed from monkey.

On Dec 5, 11:43 pm, MobileScorpio  wrote:
> Dear Android Developers,
>
> About Android Monkey 
> Feature:http://developer.android.com/guide/developing/tools/monkey.html
> ...
> Command Options Reference
> The table below lists all options you can include on the Monkey
> command line.
> Category        Option  Description
> ...
> Debugging --hprof      If set, this option will generate profiling
> reports immediately before and after the Monkey event sequence. This
> will generate large
>                                (~5Mb) files in data/misc, so use with
> care. See Traceview for more information on trace files.
>
> When I type "adb shell monkey -p com.asus.davinci.medianote -v 500 --
> hprof" in Android 3.2 (Honeycomb), there is no any new file in  data/
> misc.
> But I configure the system root authority  and data/misc is world-
> writable by default.
>
> Is this feature "monkey --hprof" disabled ? If not,  what possible
> configuration problems ocurr ?
>
> BR,
> Benjamin
--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

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

2011-12-12 Thread Romain Guy
It generates utterly broken UIs on display of various sizes and densities.

On Mon, Dec 12, 2011 at 11:33 AM, Julian wrote:

> Also, there are many different parts of the SDK that CAN be misused:
> nesting too many LinearLayouts together, running blocking operations
> on the UI thread, loading large bitmaps into memory, etc.  What makes
> AbsoluteLayout different in particular?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.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: Valid use case for AbsoluteLayout?

2011-12-12 Thread Julian
Also, there are many different parts of the SDK that CAN be misused:
nesting too many LinearLayouts together, running blocking operations
on the UI thread, loading large bitmaps into memory, etc.  What makes
AbsoluteLayout different in particular?

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

2011-12-12 Thread Julian
> Because too many developers would misuse it if it wasn't. Instead of using
> a FrameLayout just make a copy of AbsoluteLayout in your application.

Does that mean it WILL be removed from the SDK at some point then?

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

2011-12-12 Thread John Goche
Hello,

I would like to know whether it is possible to invoke a web browser
in such a way so as to pass it an attachment and then also in another
application open a web browser and download an attachment to an
android application so that the application can read the attachment?

Thanks,

John Goche

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

2011-12-12 Thread Romain Guy
>
> So my question is this: if there is a case where AbsoluteLayout is the
> best tool to use, why is it deprecated?
>

Because too many developers would misuse it if it wasn't. Instead of using
a FrameLayout just make a copy of AbsoluteLayout in your application.

-- 
Romain Guy
Android framework engineer
romain...@android.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] Valid use case for AbsoluteLayout?

2011-12-12 Thread Julian
I'm building an app that includes photo tagging.  In order to display
the tags on a tagged photo, I was looking for a layout that could
absolute position the tags over the image and allow them to be
clickable, etc.

Naturally, my first instinct was to look at AbsoluteLayout (I'm trying
to absolute position something, this just seems logical).  I
discovered that it was deprecated and came across all of these
StackOverflow answers and Android mailing list threads describing why
AbsoluteLayout is evil and how I'm a naughty child for wanting to use
it.  The argument boiled down to this: multiple screen sizes in
Android would make it so your layout would be difficult to maintain
and look like crap on different phones.  I would agree with that
assessment for most cases, and I can see how people may misuse an
AbsoluteLayout.

I think using the following technique, however, there is no better
layout to use than AbsoluteLayout.  My tags' coordinates are defined
in percentages rather than pixels.  At runtime, I get the width and
height of the image I'm overlaying, and calculate the pixel
coordinates of the tags.  The tags are then added to the
AbsoluteLayout using the calculated coordinates.  If the image expands
or shrinks on different sized screens, it won't matter because the
coordinates of the tags will scale along with it.

To avoid getting the rug pulled out from under me if AbsoluteLayout is
ever all of a sudden removed from the SDK, I ended up using a
FrameLayout and setting top and left margins (the exact same effect)
to position the tags.

So my question is this: if there is a case where AbsoluteLayout is the
best tool to use, why is it deprecated?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problems reading a huge file of 12 MB (java.lang.OutOfMemoryError)

2011-12-12 Thread Kristopher Micinski
On Mon, Dec 12, 2011 at 11:44 AM, saex  wrote:
> i need to open a file of 12 Megabytes, but actually i'm doing it
> creating a buffer of 12834566-byte, because the size of the file is
> 12MB
>
> Then, i supose i have to read with blocks of 1024 Kbytes instead of
> one block of 12 Mbytes, with a for, but i don't know how to do it, i
> need a little help with it.
>
> This is my actual code:
>
> File f = new File(getCacheDir()+"/berlin.mp3");
>        if (!f.exists()) try {
>          InputStream is = getAssets().open("berlin.mp3");
>          int size = is.available();
>          byte[] buffer = new byte[size];
>          is.read(buffer);
>          is.close();
>          FileOutputStream fos = new FileOutputStream(f);
>          fos.write(buffer);
>          fos.close();
>        } catch (Exception e) { throw new RuntimeException(e); }
>
> Please, can someone tell me what i have to thangue in this code to
> read blocks of 1024 Kbytes instead of one block of 12 Mbytes?
>
> THanks!
>
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/InputStream.html#read(byte[],
int, int)

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


[android-developers] Re: Problems reading a huge file of 12 MB (java.lang.OutOfMemoryError)

2011-12-12 Thread skink


saex wrote:
> i need to open a file of 12 Megabytes, but actually i'm doing it
> creating a buffer of 12834566-byte, because the size of the file is
> 12MB
>
> Then, i supose i have to read with blocks of 1024 Kbytes instead of
> one block of 12 Mbytes, with a for, but i don't know how to do it, i
> need a little help with it.
>
> This is my actual code:
>
> File f = new File(getCacheDir()+"/berlin.mp3");
> if (!f.exists()) try {
>   InputStream is = getAssets().open("berlin.mp3");
>   int size = is.available();
>   byte[] buffer = new byte[size];
>   is.read(buffer);
>   is.close();
>   FileOutputStream fos = new FileOutputStream(f);
>   fos.write(buffer);
>   fos.close();
> } catch (Exception e) { throw new RuntimeException(e); }
>
> Please, can someone tell me what i have to thangue in this code to
> read blocks of 1024 Kbytes instead of one block of 12 Mbytes?
>
> THanks!

if you just want to copy a file try:

google("Java how to copy file")

pskink

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


[android-developers] Re: LiveWallpaper fps boost only when sliding screen

2011-12-12 Thread ruspa
i forgot to mention that my livewallpaper is not opengl but canvas

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

2011-12-12 Thread Dan
I just moved from Contact _ID to LOOKUP_KEY after reading the Android
document which says consider using LOOKUP_KEY instead of row ID. But
on one phone, many contacts have the same lookup_key. It is so
terrible.

I am wondering is this situation normal? And how does it happen? What
I can do for this situation? It seems to me that both ID and
LOOKUP_KEY are unreliable.

Any help will be highly 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


[android-developers] Problems reading a huge file of 12 MB (java.lang.OutOfMemoryError)

2011-12-12 Thread saex
i need to open a file of 12 Megabytes, but actually i'm doing it
creating a buffer of 12834566-byte, because the size of the file is
12MB

Then, i supose i have to read with blocks of 1024 Kbytes instead of
one block of 12 Mbytes, with a for, but i don't know how to do it, i
need a little help with it.

This is my actual code:

File f = new File(getCacheDir()+"/berlin.mp3");
if (!f.exists()) try {
  InputStream is = getAssets().open("berlin.mp3");
  int size = is.available();
  byte[] buffer = new byte[size];
  is.read(buffer);
  is.close();
  FileOutputStream fos = new FileOutputStream(f);
  fos.write(buffer);
  fos.close();
} catch (Exception e) { throw new RuntimeException(e); }

Please, can someone tell me what i have to thangue in this code to
read blocks of 1024 Kbytes instead of one block of 12 Mbytes?

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] Send data from Google Night Sky to Arduino

2011-12-12 Thread Kristopher Micinski
On Sat, Dec 10, 2011 at 2:15 PM, gvi7  wrote:
> Hello,
>
> My name is Grozea Ion and I'm building a Pan&Tilt head for a digital
> camera. Right now I'm using two quadrature optical encoders from a PS2
> mouse to get the position of the head with a resolution of 0.05deg.
> The pan head will move 360deg in H plane and 180 in V plane and will
> be used mostly for panoramic photos but i also want to use it for
> night sky photography (star trails, ISS and other objects tracking).
>
> This device is controlled by an Arduino board made by me (ATMega 328
> chip) + a TouchShield Slide
> - here is the arduino + TSS
> http://www.grozeaion.com/electronics/high-speed-photography/125-gvi-dslr-rc-with-touch-shield-slide.html
> - here is the CAD for the Pan & Tilt head - second part of the movie
> http://www.grozeaion.com/electronics/high-speed-photography.html
>
> So far almost everything is working except the amount of floating math
> that ATMega 328 chip is capable.
>
> In order to resolve this problem i was thinking that by using a tablet
> or a phone with GPS+Compas+accelerometer and having on it Google Night
> Sky, i can send to Arduino by USB or Bluetooth only the values needed
> to position the head (horizontal angle and vertical angle), this way i
> will have fast floating math and also a database with objects in the
> sky.
> Now, is possible to make a Android application that will access the
> Night Sky (or directly make Night Sky) and send these values to
> Arduino?
>
> PS: I've just started to play and learn Android SDK under Eclipse, but
> i'm a fast learner.
> I also want to port the remote control presented in the movie to
> Android.

For hardware: I think SparkFun has some kits that let you do BT
reliably with Android devices.

For Skymap, that's a separate app, not related to Android per se, and
you're free to find it and build it independently, as for the Android
framework, there's nothing in it specifically that will let you get
values from Skymap and send them to other apps.

kris

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


[android-developers] Re: LinearLayout creates automatic FrameLayout

2011-12-12 Thread meshgraphics
Ok, I see it better now with HierarchyViewer.

It looks like myActivity.setContentView(myLinear) loads into id/
content (FrameLayout), as opposed to
myButton.getRootView which is giving me the view.Window.



On Dec 12, 9:18 am, Mark Murphy  wrote:
> On Sun, Dec 11, 2011 at 9:32 PM, meshgraphics  wrote:
> > LinearLayout creates automatic FrameLayout
>
> No, it does not. If I had to guess, the FrameLayout you are thinking
> of is the Activity-supplied container for your content view.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.2
> Available!

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


[android-developers] play skyrim? here is info on an app I wrote using sqlite and xslt

2011-12-12 Thread John Davis
http://netskink.blogspot.com/2011/12/skyrim-alchemy-lab-using-xslt-xml-and.html

-- 
John F. Davis

独树一帜

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

2011-12-12 Thread RLScott
Could you please summarize the current state of audio latency and
which applications are hurt by the current latency?

On Dec 11, 5:48 pm, Bh1  wrote:
> Hi,
>
> Recently there have been discussion on the andraudio list about the
> perplexing lack of progress for low latency audio on the android
> platform over the past three years.
>
> We have kicked around a few possible options like reworking and
> testing the stack on CM7/9, modifying TinyALSA to allow an API for low
> latency, adding JACK support or lobbying the developers of the
> existing audio stack to sort this problem out. Others have suggested
> that the real solution is to fix AudioFlinger and AudioHAL layers and
> get that merged upstream.
>
> However the real question is after three years of constant development
> why has audio latency got worse across the board instead of better? Is
> it even worth anyones time to try to get something better in place as
> there appears to be an agenda to make sure that android is not
> suitable for pro audio requirements.
>
> Without any information from the people who are responsible for the
> current state of the audio stack we are all just guessing as to how we
> can fix this problem or if it is even possible or desired by the
> Google team.
>
> --
> Patrick Shirkey
> Boost Hardware Ltd

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

2011-12-12 Thread skink


saex wrote:
> 0 down vote favorite
> share [fb] share [tw]
>
>
> I'm trying to display locally stored maps with a api to show maps.
>
> I need to know the string path to a map file stored on drawable
> folder, because i'm using a map api that needs to receive a string
> path, and my maps must be stored drawable folder (assets folder can't
> be used for this because the maps are higher than 1MB)
>
> This is the code i'm trying, but this code is incorrect because the
> map is not being displayed:
>
> MapView mapView = new MapView(this);
> mapView.setClickable(true);
> mapView.setBuiltInZoomControls(true);
> String mapName="bremen";
> String fileName = "android.resource://" +
> this.getPackageName() + "/drawable/"+mapName;
> //mapView.setMapFile("/sdcard/path/to/mapfile.map");
> mapView.setMapFile(fileName);
> setContentView(mapView);
>
> Wich is the correct string path file to the file bremen.map stored on
> my drawable folder?
>
> Thanks

you need to copy your file (bremen.map) to sdcard and use the full
path when calling setMapFile()

pskink

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


[android-developers] How to get the android String PATH to a file on drawable folder?

2011-12-12 Thread saex
0 down vote favorite
share [fb] share [tw]


I'm trying to display locally stored maps with a api to show maps.

I need to know the string path to a map file stored on drawable
folder, because i'm using a map api that needs to receive a string
path, and my maps must be stored drawable folder (assets folder can't
be used for this because the maps are higher than 1MB)

This is the code i'm trying, but this code is incorrect because the
map is not being displayed:

MapView mapView = new MapView(this);
mapView.setClickable(true);
mapView.setBuiltInZoomControls(true);
String mapName="bremen";
String fileName = "android.resource://" +
this.getPackageName() + "/drawable/"+mapName;
//mapView.setMapFile("/sdcard/path/to/mapfile.map");
mapView.setMapFile(fileName);
setContentView(mapView);

Wich is the correct string path file to the file bremen.map stored on
my drawable folder?

Thanks

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


[android-developers] Re: help:how to play custom encode mp3 file

2011-12-12 Thread Giuseppe
can you supply the code you are using to encode in Mp3?

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

2011-12-12 Thread Giuseppe
I am not able to understand how to convert local audio file from 3gp to Mp3.
On the market there are many apps that do it, but I am unable to find how !!

please help.

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

[android-developers] Re: Clean files from Temp file

2011-12-12 Thread srihari babu
Environment.getExternalStorageDirectory();
will give u SDcard path.
Regards,
Sri

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ADT 15.0.1 and library dependencies problems (Conversion to Dalvik format failed with error 1)

2011-12-12 Thread Viktor Bresan
My project structure is the following:

Java project JP

Android library AL1
- depends on project JP

Android library AL2
- depends on project JP

Android project AP
- references 3 other external libraries (acra, flurry and paypal)
- references Android libraries AL1 and AL2

When I try to build AP I receive the following message:
Conversion to Dalvik format failed with error 1

Console log reports that a class from JP is already added.
Unfortunately, neither of AL1 and AL2 can not be built without it. And
obviously, both of them can not depend on it at the same time.

Everything worked perfectly fine with old ADT. I wish I never made
this update.

Please help, I would like to continue with my work!

Viktor.


PS: Yes, I have manually deleted references to AL1 and AL2 source code
from the AP. I have cleaned and rebuild everything dozens of times
this 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


Re: [android-developers] python language

2011-12-12 Thread Mark Murphy
On Sat, Dec 10, 2011 at 4:39 PM, pacopyc  wrote:
> hi, I'm a python developer. why is not possible to develop python
> application for market?

Because Python does not generate Java bytecode for use with the
Android toolchain.

> can google substitute java with python in the
> future?

Conceivably, yes. It would not seem especially likely.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.2
Available!

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


Re: [android-developers] LinearLayout creates automatic FrameLayout

2011-12-12 Thread Mark Murphy
On Sun, Dec 11, 2011 at 9:32 PM, meshgraphics  wrote:
> LinearLayout creates automatic FrameLayout

No, it does not. If I had to guess, the FrameLayout you are thinking
of is the Activity-supplied container for your content view.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.2
Available!

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


Re: [android-developers] About Spare Parts and Internal Apis?

2011-12-12 Thread Mark Murphy
On Sun, Dec 11, 2011 at 11:45 AM, eminugur kenar
 wrote:
> I have read something on the google mail groups , we should not use
> the internal classes/apis in our apps such as telephony.
> Is it true ?

Correct. Classes and methods that are not part of the Android SDK may
not work on all devices, on all previous versions of Android, or on
any given future version of Android.

> ActivityManagerNative is a Internal api ?

Yes.

> At last what are the internal apis/clases?

Anything that is not documented in the Android SDK.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.2
Available!

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


[android-developers] Porting Application

2011-12-12 Thread Moeen Zamani
*Hey There :)*
*
*
*I am porting an application from iPhone to Android, and i made some UIs in 
iPhone app, that i cant figure it out that how can i make*
*corresponding UI to android, such as 3D image galleries. ( I don't intend 
to use cross-platform development environments. )*
*
*
*I would appreciate your consultancy guys :)*
*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] Curl Effect for Ebook like Iphone

2011-12-12 Thread Dien Trinh
Hi,
firstly, forgive me for my bad English. I am developing an App for
reading ebook and using Curl effect of harism and  I want when the
user switches curled page to left or to right a continue picture will
display on left or right side instead of current picture. Example, on
the screen are displaying picture 1 on left and picture 2 on right.
When I switches curled page to left the screen will display picture 3
and picture 4 instead of pic 2 and pic 3. Can any one help me solve
the problem or directions? Here is the link of my source code.
http://www.4shared.com/file/vyLa1szE/curlEffectAdroid.html?
Thanks and Best 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] how can I enable the STT application during call

2011-12-12 Thread Satvik Jagannath
Almost all applications are paused when you are on a call... I don't think
enabling STT app is possible...
On Dec 12, 2011 7:30 PM, "fatma mohammed"  wrote:

> how can I enable the my own STT application during call,  all the
> speech  speech recognition application that I tested  is not work
> during call , please hlep
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] GUI problems! Very Crazy!

2011-12-12 Thread Mika
folks, I and my team are developing an application and we are finding
the following problem:
during testing the application on the smartphone, the visual
components such as buttons, text boxes, dialog boxes, are rising to a
higher resolution than the one defined for it, making it impossible to
read the entire contents of the dialog box for example .
Does anyone know why this is happening?

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

2011-12-12 Thread meshgraphics
LinearLayout creates automatic FrameLayout

Just curious if this is the default behaviour.  Just fired up
HierarchyViewer for the first time. Nice!

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

2011-12-12 Thread Bin Liu
aha
在 2011-12-10 上午5:27,"Raymond C. Rodgers" 写道:
>
> On 12/9/2011 2:35 PM, TreKing wrote:
>
>> On Fri, Dec 9, 2011 at 11:34 AM, sblantipodi <
perini.dav...@dpsoftware.org > wrote:
>>
>>Should I really buy my own apps?
>>
>>
>> Is that rhetorical? You can't do this anyway.
>>
>>
> Actually, I needed to do that very thing some months ago and succeeded
like buying any other app. In my case either my LVL code wasn't right or
something else was going wrong, and my app was ignoring the Market setting
to respond as authorized for my email address. I bought my own app to get
my app to work properly, just pushing the APK to the device wasn't enough.
>
> Raymond
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] python language

2011-12-12 Thread pacopyc
hi, I'm a python developer. why is not possible to develop python
application for market? can google substitute java with python in the
future? I don't understand ... python is a great language . better
than java  in google works very experts of python  von rossum,
martelli  what's the problem? somebody knows what google thinks
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 project

2011-12-12 Thread Garima Mishra
i am workng on an android project based on automatic call
declination...i just wanted to know hw can i connect two emulators..as
bluetooth does not work in emulators..

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

2011-12-12 Thread eminugur kenar
I want to add apps usage statistic feature to my android
application.So that i am looking spare parts code cuz it does what i
want.And i got it how it works.But there is a question in my mind
Spare part is using following classes;

android.app.ActivityManagerNative;
android.os.ServiceManager;
android.view.IWindowManager;

and these are not included in default android sdk , there are in
android source code tree.

my-dir/frameworks/base/core/java/android/app/
ActivityManagerNative.java

Is there any restriction by google to use these classes in my
application ?
note:I will publish my app on market.

I have read something on the google mail groups , we should not use
the internal classes/apis in our apps such as telephony.
Is it true ?
ActivityManagerNative is a Internal api ?
At last what are the internal apis/clases?

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

2011-12-12 Thread paulo...@yahoo.com


Sent from my Nokia phone
-Original Message-
From: Ratheesh Valamchuzhy
Sent:  12/12/2011 1:00:13 pm
Subject:  Re: [android-developers] Re: How can i Assign a id to view 
Programmatically?

 TextView valueTV = new TextView(this);
valueTV.setText("hallo hallo");
valueTV.setId(5);
valueTV.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

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

2011-12-12 Thread Onaih Emmanuel
Thanks

On Sat, Dec 10, 2011 at 10:40 AM, Ken Yang  wrote:

> Hi!! Dear All,
>
> I have an app that contains many Activity. (ex: i got 10 Activity
> which be named a1,a2,a3,a10)
>
> and all of the Activity(a1,a2,a3a10) have background like this.
> http://schemas.android.com/apk/res/
> android"
>android:background="@drawable/bg_normal">
> 
>
> and
> a1 will redirect to a2,
> a2 to a3,
> a3 to a4,
> .
>
> then..the problem is happened
> 【OutofMemoryError: bitmap size exceeds VM budget (Android)】
>
> I think the problem is background..
> I know how to unbindDrawable or recycle a bitmap,
> but how to release the memory after I change activity
> 【startActivity(aX,aY)】.
>
>
> I have tried to 【view.getBackground().setCallback(null)】 at onPause().
> but the heap is still not released...
>
>
>
> Does anyone know how to solve this problem?
> or have a better suggestion?
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Edit device owner information programmatically

2011-12-12 Thread j4velin
As since Honeycomb there is a device owner information field, I would
like to know if that's programmatically accessible somehow

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

2011-12-12 Thread gvi70000
Hello,

My name is Grozea Ion and I'm building a Pan&Tilt head for a digital
camera. Right now I'm using two quadrature optical encoders from a PS2
mouse to get the position of the head with a resolution of 0.05deg.
The pan head will move 360deg in H plane and 180 in V plane and will
be used mostly for panoramic photos but i also want to use it for
night sky photography (star trails, ISS and other objects tracking).

This device is controlled by an Arduino board made by me (ATMega 328
chip) + a TouchShield Slide
- here is the arduino + TSS
http://www.grozeaion.com/electronics/high-speed-photography/125-gvi-dslr-rc-with-touch-shield-slide.html
- here is the CAD for the Pan & Tilt head - second part of the movie
http://www.grozeaion.com/electronics/high-speed-photography.html

So far almost everything is working except the amount of floating math
that ATMega 328 chip is capable.

In order to resolve this problem i was thinking that by using a tablet
or a phone with GPS+Compas+accelerometer and having on it Google Night
Sky, i can send to Arduino by USB or Bluetooth only the values needed
to position the head (horizontal angle and vertical angle), this way i
will have fast floating math and also a database with objects in the
sky.
Now, is possible to make a Android application that will access the
Night Sky (or directly make Night Sky) and send these values to
Arduino?

PS: I've just started to play and learn Android SDK under Eclipse, but
i'm a fast learner.
I also want to port the remote control presented in the movie to
Android.

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


[android-developers] how can I enable the STT application during call

2011-12-12 Thread fatma mohammed
how can I enable the my own STT application during call,  all the
speech  speech recognition application that I tested  is not work
during call , please hlep

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

2011-12-12 Thread j4velin
"Purchasing your own applicationsPlease note that it is against Google
Checkout's policies to purchase your own application. You will receive
an error message when you try to purchase your own application."
https://support.google.com/androidmarket/developer/bin/answer.py?&&answer=141659

On Dec 9, 10:10 pm, sblantipodi  wrote:
> When I search for my apps on the market, the market says that my apps
> costs 3€,
> I click on the 3€ button and than it says that I can't buy the
> software but it doesn't let me
> install it.
>
> Why I can't install my own apps from the market?
> Please help.
>
> Thanks.
>
> On 9 Dic, 21:44, sblantipodi  wrote:
>
>
>
>
>
>
>
> > No, really.
> > I'm trying to buy my apps and it ask me for money.
>
> > What is the problem?
>
> > On 9 Dic, 20:35, TreKing  wrote:
>
> > > On Fri, Dec 9, 2011 at 11:34 AM, sblantipodi
> > > wrote:
>
> > > > Should I really buy my own apps?
>
> > > Is that rhetorical? You can't do this anyway.
>
> > > ---
> > >  --
> > > TreKing  - Chicago
> > > transit tracking app for Android-powered devices

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


[android-developers] Re: How can I cache Google Maps tiles using Android SDK?

2011-12-12 Thread courdi95
you can use the osmdroid class to display tils provided by mobile
atlas creator

On 11 déc, 06:24, Spiral123  wrote:
> If you are talking about the offline storage of Google Map tiles in
> your own app then I can think of a possible approach - but I wouldn't
> even bother.  It's not a service that Google provide and their data is
> copyrighted.  Just think about how many tiles you will have to pull
> down for all the zoom levels - it gets to a pretty big number very
> quickly for a relatively small area.  There are not that many Google
> tile servers to rotate the requests between...so even if you get away
> with it for a while I'm sure you will get spotted quickly and your
> requests refused.
>
> If you want to get into offline Maps then OSM (http://www.openstreetmap.org/) 
> is probably your best bet.  There are a number
> of tile providers you can pick from - although not many will give you
> tiles without payment for a commercial application.  If you are
> covering a limited Geographical area then you would probably be better
> off extracting the Geo information from somewhere 
> likehttp://planet.openstreetmap.org/
> and building and hosting your own tile server.
>
> It's not a trivial proposition.
>
> On Dec 10, 2:19 am, Alexey Zakharov 
> wrote:
>
>
>
> > I want to implement "Download map 
> > area"feature
> >  like official Google Map application. Is it possible or not?

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


[android-developers] Actual video fps counter

2011-12-12 Thread kumara Perera
I am very new to Android platform. I want to count actual video fps
when video is being recorded; not from camera preview.

I studied how to write a program to see the video preview and record
the video. But I don't get any clue to calculate video fps. Please
help me in this 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


[android-developers] import error com.google cannot be resolved

2011-12-12 Thread Naitmeir
I'm trying to run the nfc demo sample from Android SDK in eclipse with
the import error com.google cannot be resolved. I have the package
Android 2.3.3 (API 10) complete installed, including the "Google API"
and also the package of tools under linux 64

I followed these steps:

1 New Android project
2 Create project from existing sample
3 Build target selected: Android 2.3.3 API level 10
4 NFC demo selected
5 Finish
Changing project properties target to Google APIs don't fix the issue.

What's wrong?

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


  1   2   >