Re: [android-developers] Dumpsys meminfo explanation...

2011-08-02 Thread Srikanth Mandalapu
Hi Kostya,
Thanks for the information...It explained the terms native and dalvik but i
am still not clear about other (every thing else) memory. What is this other
memory exactly (22082 is very high)?. Also could please elaborate more on
the following numbers and their impact on memory.

 SQL
heap:  168   memoryUsed:  168
pageCacheOverflo:   35  largestMemAlloc:   50

 DATABASES
  Pagesize   Dbsize  Lookaside  Dbname
  1024   29 72  settings.db
  1024   16 33  accounts.db

Thanks
Srikanth M.

On Mon, Aug 1, 2011 at 7:05 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 http://stackoverflow.com/**questions/2298208/how-to-**
 discover-memory-usage-of-my-**application-in-android/http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/


 01.08.2011 16:53, Srikanth пишет:

 Hi All,

 Dumpsys meminfo command gave below output for system server process.
 Can anyone explain each row and column involved in this output like
 native, dalvik, other, Objects, SQL,Databases and the significance of
 values like dbsize, pagesize, lookaside etc...

 ** MEMINFO in pid 2537 [system] **
 native   dalvikothertotal
 size: 8736 7943  N/A16679
allocated: 7013 6639  N/A13652
 free:  858 1304  N/A 2162
(Pss): 4453 94232208235958
   (shared dirty): 1340 4076 1664 7080
 (priv dirty): 4420 6656 996821044

  Objects
Views:0ViewRoots:0
  AppContexts:2   Activities:0
   Assets:9AssetManagers:9
Local Binders:  122Proxy Binders:  251
 Death Recipients:   73
  OpenSSL Sockets:0

  SQL
 heap:  168   memoryUsed:  168
 pageCacheOverflo:   35  largestMemAlloc:   50

  DATABASES
   Pagesize   Dbsize  Lookaside  Dbname
   1024   29 72  settings.db
   1024   16 33  accounts.db

 Regards
 Srikanth M.


 --
 Kostya Vasilyev

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




-- 
 Srikanth M
 Samsung India Software Operations
 Bagmane TechPark, CV Raman Nagar,
 Bangalore.
 Phone No. 09886851560

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

2011-08-02 Thread Nikolay Elenkov
On Tue, Aug 2, 2011 at 2:35 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Tue, Aug 2, 2011 at 2:04 PM, julius jul...@msa.co.nz wrote:


 Anyhow, after deliverResult I'm guessing onLoadFinished runs. At this point,
 now the Cursor is refreshed, do we just need to use notifyDatasetChanged on
 our Adapter?

 If you have a CursorAdapter, you need to call swapCursor() first.
 (*not* changeCursor()).


Actually, CursorAdapter.swapCursor() calls it internally, so just
swapCursor() is enough.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 pair Nexus S with some other Bluetooth Device using NFC

2011-08-02 Thread tarun sablok
Can anyone suggest me the possible options as how to pair a Nexus S
phone with any bluetooth device  through  NFC ie  by just  tapping the
Nexus S phone and the Bluetooth device  the Bluetooth connection
should be established .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] USB Host Mode: Multiple Interfaces, not possible to receive data at the same time?

2011-08-02 Thread AndroidYourself
I've written an app to connect  an USB Device that have 4 Interfaces
with 4 connected Endpoints:

UsbDeviceConnection usbConnection1 = usbManager.openDevice(device);
UsbInterface usbInterface1 = device.getInterface(i);
usbConnection.claimInterface(usbInterface1, true))

UsbDeviceConnection usbConnection2 = usbManager.openDevice(device);
UsbInterface usbInterface2 = device.getInterface(i);
usbConnection.claimInterface(usbInterface2, true))

.
.
.


But if I start the 4 seperate receivers at the same time (each are 4
runnables):

@Override
public void run() {
try {
while (connectionRunning) {

buffer.clear();
receive = usbConnection.bulkTransfer(usbEndpointIN, 
buffer.array(),
buffer.array().length, 100);


...then the datas has a delay and didn't get all of the data. If I run
only one receiver all is ok.

Have anyone a solution for this problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 pair Nexus S with some other Bluetooth Device using NFC

2011-08-02 Thread Zsolt Vasvari
The same way as you can use NFC to establish a Wifi connection.

On Aug 2, 2:04 pm, tarun sablok tarun.sab...@gmail.com wrote:
 Can anyone suggest me the possible options as how to pair a Nexus S
 phone with any bluetooth device  through  NFC ie  by just  tapping the
 Nexus S phone and the Bluetooth device  the Bluetooth connection
 should be established .

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

2011-08-02 Thread Srikanth
Hi Kostya,
Thanks for the information...It explained the terms native and dalvik
but i am still not clear about other (every thing else) memory. What
is this other memory exactly (22082 is very high)?. Also could please
elaborate more on the following numbers and their impact on memory.

 SQL
heap:  168   memoryUsed:  168
pageCacheOverflo:   35  largestMemAlloc:   50

 DATABASES
  Pagesize   Dbsize  Lookaside  Dbname
  1024   29 72  settings.db
  1024   16 33  accounts.db


Thanks
Srikanth M.

On Aug 1, 6:35 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 http://stackoverflow.com/questions/2298208/how-to-discover-memory-usa...

 01.08.2011 16:53, Srikanth пишет:





  Hi All,

  Dumpsys meminfo command gave below output for system server process.
  Can anyone explain each row and column involved in this output like
  native, dalvik, other, Objects, SQL,Databases and the significance of
  values like dbsize, pagesize, lookaside etc...

  ** MEMINFO in pid 2537 [system] **
                       native   dalvik    other    total
               size:     8736     7943      N/A    16679
          allocated:     7013     6639      N/A    13652
               free:      858     1304      N/A     2162
              (Pss):     4453     9423    22082    35958
     (shared dirty):     1340     4076     1664     7080
       (priv dirty):     4420     6656     9968    21044

    Objects
              Views:        0        ViewRoots:        0
        AppContexts:        2       Activities:        0
             Assets:        9    AssetManagers:        9
      Local Binders:      122    Proxy Binders:      251
  Death Recipients:       73
    OpenSSL Sockets:        0

    SQL
               heap:      168       memoryUsed:      168
  pageCacheOverflo:       35  largestMemAlloc:       50

    DATABASES
     Pagesize   Dbsize  Lookaside  Dbname
         1024       29         72  settings.db
         1024       16         33  accounts.db

  Regards
  Srikanth M.

 --
 Kostya Vasilyev- Hide quoted text -

 - Show quoted text -

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

2011-08-02 Thread Ketan Parmar
Hello DID

I found good example of plist parser. it might be helpful

http://kpbird.blogspot.com/2011/08/android-plist-parser.html



On Jun 16, 6:10 am, DID dhaval.dynamic.meth...@gmail.com wrote:
  Hello,

         I want to use Iphone plist files in my android apps i tried so
 many task but still not found any solution if have anybody solution
 then please tell me just simple example give in example
  One plist file
 One class where the applying plist file
 and one textview or listview where the set the value of plist

 Please Help me As soon as possible i needs urgently..

 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] Google Maps API Key no map shown in app

2011-08-02 Thread Droid
I have gone through the process to get my  Android Maps API key
correctly but no map is shown in my app.

This is the case if I sign my apk or not. Does the API Key take a
while to get verified at Google or what is going wrong?

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


Re: [android-developers] Dumpsys meminfo explanation...

2011-08-02 Thread Dianne Hackborn
It is...   everything else.  By its nature, it doesn't tell you much,
because it is all the other stuff that is not classified.  This may be:

- Graphics driver allocations.
- Window surfaces
- Cursors
- Audio buffers
- Binder transaction buffers
- Large malloc heap allocations (on some versions of the platform this can
not be identified as part of the heap)
- Pages in ram (either clean or dirty) from mmapped files like shared
libraries, dalvik code, .apks, etc.

On Mon, Aug 1, 2011 at 11:01 PM, Srikanth Mandalapu
srikanth1...@gmail.comwrote:

 Hi Kostya,
 Thanks for the information...It explained the terms native and dalvik but i
 am still not clear about other (every thing else) memory. What is this other
 memory exactly (22082 is very high)?. Also could please elaborate more on
 the following numbers and their impact on memory.

  SQL
 heap:  168   memoryUsed:  168
 pageCacheOverflo:   35  largestMemAlloc:   50

  DATABASES
   Pagesize   Dbsize  Lookaside  Dbname
   1024   29 72  settings.db
   1024   16 33  accounts.db

 Thanks
 Srikanth M.

 On Mon, Aug 1, 2011 at 7:05 PM, Kostya Vasilyev kmans...@gmail.comwrote:

 http://stackoverflow.com/**questions/2298208/how-to-**
 discover-memory-usage-of-my-**application-in-android/http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/


 01.08.2011 16:53, Srikanth пишет:

 Hi All,

 Dumpsys meminfo command gave below output for system server process.
 Can anyone explain each row and column involved in this output like
 native, dalvik, other, Objects, SQL,Databases and the significance of
 values like dbsize, pagesize, lookaside etc...

 ** MEMINFO in pid 2537 [system] **
 native   dalvikothertotal
 size: 8736 7943  N/A16679
allocated: 7013 6639  N/A13652
 free:  858 1304  N/A 2162
(Pss): 4453 94232208235958
   (shared dirty): 1340 4076 1664 7080
 (priv dirty): 4420 6656 996821044

  Objects
Views:0ViewRoots:0
  AppContexts:2   Activities:0
   Assets:9AssetManagers:9
Local Binders:  122Proxy Binders:  251
 Death Recipients:   73
  OpenSSL Sockets:0

  SQL
 heap:  168   memoryUsed:  168
 pageCacheOverflo:   35  largestMemAlloc:   50

  DATABASES
   Pagesize   Dbsize  Lookaside  Dbname
   1024   29 72  settings.db
   1024   16 33  accounts.db

 Regards
 Srikanth M.


 --
 Kostya Vasilyev

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




 --
  Srikanth M
  Samsung India Software Operations
  Bagmane TechPark, CV Raman Nagar,
  Bangalore.
  Phone No. 09886851560

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




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

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

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

Re: [android-developers] Use CursorLoader for SQLiteDatabase?

2011-08-02 Thread Dianne Hackborn
Hi, please please please just take the CursorLoader implementation in the
support library and modify it to get its cursors from your SQLiteDatabase
rather than the content resolver.  Unfortunately there are a lot of tricky
things you need to do in the AsyncTaskLoader subclass to get it to work
correctly, and CursorLoader implements these correctly.  Just use its code
and replace the one line where it queries for the cursor.

On Mon, Aug 1, 2011 at 11:05 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Tue, Aug 2, 2011 at 2:35 PM, Nikolay Elenkov
 nikolay.elen...@gmail.com wrote:
  On Tue, Aug 2, 2011 at 2:04 PM, julius jul...@msa.co.nz wrote:
 
 
  Anyhow, after deliverResult I'm guessing onLoadFinished runs. At this
 point,
  now the Cursor is refreshed, do we just need to use notifyDatasetChanged
 on
  our Adapter?
 
  If you have a CursorAdapter, you need to call swapCursor() first.
  (*not* changeCursor()).
 

 Actually, CursorAdapter.swapCursor() calls it internally, so just
 swapCursor() is enough.

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




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

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

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

Re: [android-developers] Use CursorLoader for SQLiteDatabase?

2011-08-02 Thread Nikolay Elenkov
On Tue, Aug 2, 2011 at 4:31 PM, Dianne Hackborn hack...@android.com wrote:
 Hi, please please please just take the CursorLoader implementation in the
 support library and modify it to get its cursors from your SQLiteDatabase
 rather than the content resolver.  Unfortunately there are a lot of tricky
 things you need to do in the AsyncTaskLoader subclass to get it to work
 correctly, and CursorLoader implements these correctly.

Thanks. After some debugging I reached pretty much the same
conclusion. AsyncTaskLoader doesn't really allow easy extension,
unlike AsyncTask.

BTW, it would be nice if there where an onLoadStarted() in
LoaderCallbacks. Then you could have UI manipulating code close
(showing/hiding a 'loading', etc.), similar to AsyncTask.

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

2011-08-02 Thread Ali Chousein
Hahaha, TreKing, the trick you played in this thread was a good
one :D  Thumbs up :D

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

2011-08-02 Thread nageswara rao rajana
Hi,

   I developed an application and tested on samsung galaxy fit s5670,
apllication working fine.
   when i installed the same apk in HTC desire the text size is so
small.To  adjust the text
   automatically when installed on different devices,what to do?

Thanking you,
Nageswarararo.

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

2011-08-02 Thread Carlos Silva
@TreKing
You only missed one thing in that class, the method should be called print()
:P

#win anyway :)

On Tue, Aug 2, 2011 at 08:12, Ali Chousein ali.chous...@gmail.com wrote:

 Hahaha, TreKing, the trick you played in this thread was a good
 one :D  Thumbs up :D

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

2011-08-02 Thread jyothi
Dear All,

When we save an event in the Calendar and when the alert triggers, it
shows up the notification in the status bar and click on the
notification and press snooze all, at that moment it calls gettype
method in calendarprovider2.java where the sUriMatcher is returning
-1, hence goes to the default switch case and throws
illegalArgumentException saying unknown URL content because of which
it throws sometimes force close. This issue is observed in google
basecode. Can please someone help with this..


07-29 18:03:43.159  3403  3743 E DatabaseUtils: Writing exception to
parcel
07-29 18:03:43.159  3403  3743 E DatabaseUtils:
java.lang.IllegalArgumentException: Unknown URL 
content://com.android.calendar/1311943122873
07-29 18:03:43.159  3403  3743 E DatabaseUtils: at
com.android.providers.calendar.CalendarProvider2.getType(CalendarProvider2.java:
1767)
07-29 18:03:43.159  3403  3743 E DatabaseUtils: at
android.content.ContentProvider$Transport.getType(ContentProvider.java:
192)
07-29 18:03:43.159  3403  3743 E DatabaseUtils: at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
133)
07-29 18:03:43.159  3403  3743 E DatabaseUtils: at
android.os.Binder.execTransact(Binder.java:320)
07-29 18:03:43.159  3403  3743 E DatabaseUtils: at
dalvik.system.NativeStart.run(Native Method)

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

2011-08-02 Thread Karthikeyan R
Hi,

I am using MonkeyRunner from java for some of my automation.

I would like to access the UI elements on the device using
MonkeyRunner.

I can see that HierarchyViewer  does this for us but not sure how to
set the Selector in the below code snippet.

HierarchyViewer view = device.getHierarchyViewer();
By selector = null;
String viewtext = view.getText(selector);

It will be great if someone can give me some pointers on this.

Thanks
--Karthik

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

2011-08-02 Thread Karthikeyan R
Hi Nithin,

I missed your post that is the reason for delayed reply.

Please use the below snippet  (Make sure to include monkeyrunner,
ddmlib, jython, sdklib jars)


import com.android.monkeyrunner.adb.AdbBackend;
import com.android.monkeyrunner.core.IMonkeyDevice;
import com.android.monkeyrunner.core.TouchPressType;

public class sampleMonkey {

 public static void main(String[] args) {
sampleMonkey monkey=new sampleMonkey();
monkey.demo();
 }
 public void demo()
 {
AdbBackend adb = new AdbBackend();
IMonkeyDevice device = adb.waitForConnection();

// Actions should go here
device.touch(200, 200,TouchPressType.DOWN);


device.dispose();
 }
}

Thanks
--Karthik


On Jul 30, 1:53 am, Nitin Chhabra nitin.n...@gmail.com wrote:
 Hi Bill/Karthikeyan,

 Can you please help me out as well in this regard. I am able to 
 runMonkeyRunnerusing Python Scripts on Windows
 Platform. But I would like to use it in Java, as my test application
 is being
 built in Java. I am usingMonkeyRunnerto automate things only. I can
 call my Python script using Java to runMonkeyRunner, but that is not
 a clean solution!

 Karthik, can you please help me as you have mentioned that you have
 got that running. Can you please point me to some sample code as well.

 On Jun 28, 9:44 am, Karthikeyan R dba.kart...@gmail.com wrote:







  Hi Bill,

  Thank you so much for pointing me to those links.

  It helps me a lot and now I can able use monkey runner from java.

  This group is rocking . . .

  Thanks
  --Karthik

  On Jun 28, 2:19 am, Bill Napier nap...@android.com wrote:

  MonkeyRunneractually has a small example of doing this in it's own source
   code:

  http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=monkeyrunn...

   IMonkeyBackend adb = new AdbBackend();
   IMonkeyDevice device = adb.waitForConnection();

   And you can see the IMonkeyDevice source 
   here:http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=monkeyrunn...

   And see that it has a bunch of methods on it like takeSnapshot, touch,
   drag, etc.

   Hopefully that's enough to get you started.

   Bill

   On Fri, Jun 24, 2011 at 7:27 PM, Karthikeyan R 
   dba.kart...@gmail.comwrote:

Hi Bill,

Thank you so much for sharing the information.

we wanted to create a automation framework in java havingMonkeyRunner
as base.

Could you give me one small sample using java, it will be really
helpful for us.

To give you a context we wanted to automated the device as a whole
where we interact with multiple apk's  hope our choice of monkey
runner is right for that.

Thank you in advance.

Thanks
--Karthik

On Jun 24, 10:39 am, Bill Napier nap...@android.com wrote:
 If you mean from Java on the phone (like as part of an application), 
 then
 the answer is no.

 If you mean from Java on a computer, then the answer is yes.  You just
need
 to make your java project depend on theMonkeyRunner.jar and you can 
 call
 some of it's internal classes to do what you need.

 We're in the middle of changing how the code is structured to make 
 this
even
 easier, but it's not quite ready yet.

 On Wed, Jun 22, 2011 at 8:16 PM, Karthik dba.kart...@gmail.com 
 wrote:
  Hi,

  Is it possible to usemonkeyrunnerfrom java.

  If yes please let me know the approach.

  Thanks in advance

  Thanks
  --Karthik

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

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

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


Re: [android-developers] Re: Strange behavior after signing build with release keystore

2011-08-02 Thread Donal Rafferty
No, I haven't done anything with proguard at all, does it bundle
automatically with a release build though?

Shouldn't be any reflection in this particular project.

Only one activity use the MAIN and LAUNCHER intents in the manifest, however
several use the DEFAULT intend, could this cause the problem?

On Sat, Jul 30, 2011 at 8:28 AM, Doug beafd...@gmail.com wrote:

 On Jul 29, 4:06 pm, Donal Rafferty draf...@gmail.com wrote:
  Yes I think proguard is enabled, how could I check? Also what effects
 would
  disabling it have?

 Did you do any of this?

 http://developer.android.com/guide/developing/tools/proguard.html

 I don't think you would have any trouble with Proguard unless you are
 using java reflection APIs or anything that depends on a java class
 name.  Sometimes there are launch problems if you have multiple
 activities that want to handle MAIN and LAUNCHER intents without
 sorting that out properly.

 Doug

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

2011-08-02 Thread Iacopo Rozzo
Hi,
I'm developing an Android application that performs REST calls. From
what I've read and understand, I think that is a good idea to use a
Service to perform the calls.  It makes sense to use an IntentService
for this purpose, or is not well-suited because it is created and
destroyed everytime it completes its job? What is the better life-
cycle for this kind of service.

Second, I need to receive callbacks from the service, there are many
activities that use it, and is possible that the activity that
performed the call is in background when the call terminates. How can
I handle this?

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


[android-developers] Live Streaming to Android 2.1

2011-08-02 Thread deepak
I am creating an application which does live streaming to android
devices using red5. I came to  know that flash is supported only from
2.2 onwards.I need to stream it to 2.1 also. So anyone knows how i can
do live streaming to devices having android 2.1 ? This is really
important for me. 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] drag and drop in api level 3

2011-08-02 Thread ragupathi ragupathi
Hi android developers,

Im developing one app. its working fine in that app home screen have
multiple views i want switching that views user needs. like HTC mobile
home screen icons. if any one have idea share with me..

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


[android-developers] Re: Text Book for Undergraduate course in mobile apps development

2011-08-02 Thread ambi
Thanks Mark. I have got your books now.

Regards,
Ambi.

On Aug 1, 10:26 pm, Mark Murphy mmur...@commonsware.com wrote:
 My books are available for free for students and instructors of
 qualifying college and university courses:

 http://commonsware.com/blog/2010/10/01/free-android-books-university-...









 On Mon, Aug 1, 2011 at 10:40 AM, ambi ambi1...@gmail.com wrote:
  Hi,

  Text Book for Undergraduate course in mobile apps development

  Can someone please recommend some books that can be adopted as text
  books for an Undergraduate course in mobile apps development? The book
  should preferably have lots of exercise and model solutions.

  Thanks,
  Ambi.

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

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

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

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


[android-developers] Re: How to pair Nexus S with some other Bluetooth Device using NFC

2011-08-02 Thread tarun sablok
 I mean what all configuration detils do we exchange over NFC that
will be enough for setting the connection.

 Will MAC address alone will suffice or we need some other details as
well.



On Aug 2, 11:27 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 The same way as you can useNFCto establish a Wifi connection.

 On Aug 2, 2:04 pm, tarun sablok tarun.sab...@gmail.com wrote:



  Can anyone suggest me the possible options as how topairaNexusS
  phone with anybluetoothdevice through  NFCie  by just  tapping the
 NexusSphone and theBluetoothdevice theBluetoothconnection
  should be established .- Hide quoted text -

 - Show quoted text -

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

2011-08-02 Thread Daniel Drozdzewski
You do not need to use flash player...

Check the codecs supported by Red5 and codecs supported by Android
Media Player and try to find a match (I can tell you that there are 2
matches).

Daniel


On 2 August 2011 10:44, deepak emailmedee...@gmail.com wrote:
 I am creating an application which does live streaming to android
 devices using red5. I came to  know that flash is supported only from
 2.2 onwards.I need to stream it to 2.1 also. So anyone knows how i can
 do live streaming to devices having android 2.1 ? This is really
 important for me. 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



-- 
Daniel Drozdzewski

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


Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2011-08-02 Thread Ash McConnell
Odd that File.setReadable doesn't seem to be available on my JDK 
installation (the latest version of 1.6)

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

2011-08-02 Thread rishabh agrawal
Hey My name is Rishabh Agrawal.Please suggest me how to remove the
aatribute which show in my mobile screen when i am access through
Ksoap2.
I have mention tutorial below where given how to remove it.But i cant
remove attribute.Please suggest.

http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data

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


Re: [android-developers] Should i use multiple BroadCastReciever?

2011-08-02 Thread Robinns
Dear,

I am pasting my code here.

---
public class Inbox extends ActivityGroup {
private ArrayListInboxEmailDAO inboxEmails = new
ArrayListInboxEmailDAO();
 private ListView listView;
private ArrayListView trackViews;
private InboxAdapter inboxAdapter;
 private String previewEmailFrom = ;
private String previewEmailSubject = ;
 private int previewEmailId;
private TextView smsMessage;

@Override
 public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
 requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.inbox);
 Bundle bundle = new Bundle();
bundle = getIntent().getExtras();
boolean isRecieved = false;

if (bundle != null) {
isRecieved = bundle.getBoolean(smsRecievedForInbox);

}

trackViews = new ArrayListView();
 smsMessage = (TextView) findViewById(R.id.smsMessage);
listView = (ListView) findViewById(R.id.inboxEmailList);

if (isRecieved) {
smsMessage.setWidth(-5);
smsMessage.setHeight(-5);

}
inboxEmails = InboxEmailDAO.parseContentForInboxEmails();
 inboxAdapter = new InboxAdapter(getApplicationContext(), inboxEmails);
listView.setAdapter(inboxAdapter);
 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
((InboxAdapter) inboxAdapter).notifyDataSetChanged();
 trackViews.add(listView);
listView.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView? adapterView, View view,
 int position, long id) {
Intent intent = new Intent(getApplicationContext(),
 EmailPreview.class);
previewEmailId = inboxEmails.get(position).getId();
 previewEmailFrom = inboxEmails.get(position).getFrom();
previewEmailSubject = inboxEmails.get(position).getSubject();
 holdData(previewEmailId, previewEmailFrom, previewEmailSubject);

Bundle bundle = new Bundle();
 bundle.putInt(emailId, previewEmailId);
bundle.putString(from, previewEmailFrom);
 bundle.putString(subject, previewEmailSubject);
bundle.putInt(TAB_INDEX, 1);
 intent.putExtras(bundle);

InboxAdapter.setInboxViewMode(2);
 View emailView = getLocalActivityManager().startActivity(
EmailPreview,
 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();
 Toast.makeText(getApplicationContext(),
Sending to Preview:  + previewEmailId,
 Toast.LENGTH_LONG).show();
trackViews.add(emailView);
replaceView(emailView);

}
});
}
 @Override
public void onStart(){
 super.onStart();
IntentFilter filter = new IntentFilter(SMSInfo.SMS_FOR_INBOX);
 registerReceiver(new SMSRecieverForInbox(), filter);
}
@Override
 public void onStop(){
super.onStop();
unregisterReceiver(new SMSRecieverForInbox());
 }
  @Override
public void onBackPressed() {

}

@Override
public boolean onPrepareOptionsMenu(Menu menu) {
 menu.clear();
MenuInflater inflater = getMenuInflater();
int mode = InboxAdapter.getInboxViewMode();
 if (mode == 1) {
inflater.inflate(R.menu.inbox_menu_after_edit, menu);
 } else if (mode == -1) {
menu.clear();
inflater.inflate(R.menu.inbox_menu, menu);
 } else {
menu.clear();
inflater.inflate(R.menu.inbox_email_preview_menu, menu);
 }
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {

switch (item.getItemId()) {
case R.id.inboxEdit:
if (listView.getCount()  0) {
 Toast.makeText(getApplicationContext(), No emails to edit.,
Toast.LENGTH_LONG).show();
 break;
}
if (InboxAdapter.getInboxViewMode() == -1) {
 listView.setAdapter(new InboxAdapter(getApplicationContext(),
inboxEmails));
 InboxAdapter.setInboxViewMode(1);
}
break;
 case R.id.inboxRefresh:
sendSmsToRetrieveEmail(inbox);
break;
 case R.id.inboxNext:
 break;
 case R.id.inboxPrevious:
 break;
 case R.id.inbox_menu_after_edit_delete:

deleteAfterEditEmailList();
 break;
case R.id.inbox_menu_after_edit_cancel:
clearCheckedItems();
 break;
case R.id.email_preview_menu_delete:

break;

case R.id.email_preview_menu_reply:
 break;
 default:
break;
}

return false;
}

private void clearCheckedItems() {
 for (int i = 0; i  this.inboxAdapter.getCount(); i++) {
LinearLayout linearyLay = (LinearLayout) this.listView
 .getChildAt(i);
CheckBox checkBox = (CheckBox) linearyLay
.findViewById(R.id.inboxCheckBoxId);
 if (checkBox.isChecked()) {
checkBox.setChecked(false);
}
 }
((InboxAdapter) inboxAdapter).notifyDataSetChanged();
}

private void deleteAfterEditEmailList() {
Toast.makeText(getBaseContext(), I am checking, Toast.LENGTH_SHORT)
 .show();
SparseBooleanArray booleanArray = listView.getCheckedItemPositions();
 for (int i = 0; i  listView.getCount(); i++) {
if (booleanArray.get(i))
 Toast.makeText(getBaseContext(),  the selected index is  + i,
Toast.LENGTH_SHORT).show();
 }
}




public void replaceView(View view) {
 setContentView(view);

}

private void holdData(int emailId, String from, String sub) {
 this.previewEmailId = emailId;
this.previewEmailFrom = from;
this.previewEmailSubject = sub;

}

private void sendSmsToRetrieveEmail(String inbox) {
 PendingIntent sentIntent = PendingIntent.getBroadcast(this, 0,new
Intent(SMSInfo.SENT), 0);

[android-developers] Re: Expandable ListView : A special scenario

2011-08-02 Thread Mansoor


Hi Treking thank you very much for the best solution. It worked :)

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

2011-08-02 Thread deepak
Ok red5 supports codecs supported by android media player.But red5
uses RTMP and i think android does not support RTMP streams. Sorry if
i am wrong on this. I am new to streaming.

On Aug 2, 3:10 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
wrote:
 You do not need to use flash player...

 Check the codecs supported by Red5 and codecs supported by Android
 Media Player and try to find a match (I can tell you that there are 2
 matches).

 Daniel

 On 2 August 2011 10:44, deepak emailmedee...@gmail.com wrote:

  I am creating an application which does live streaming to android
  devices using red5. I came to  know that flash is supported only from
  2.2 onwards.I need to stream it to 2.1 also. So anyone knows how i can
  do live streaming to devices having android 2.1 ? This is really
  important for me. 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

 --
 Daniel Drozdzewski

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


Re: [android-developers] How to include Button in Context Menu

2011-08-02 Thread Abhishek Kumar Gupta
Actually I want to close the conext-menu by clicking on the Cancel button,
which I want to place at the bottom of the context-menu.

On Sun, Jul 31, 2011 at 9:51 AM, TreKing treking...@gmail.com wrote:

 On Sat, Jul 30, 2011 at 5:04 AM, Abhishek Kumar Gupta 
 akgaec2...@gmail.com wrote:

 Thanks for reply, then I have to use Alert Dialog with customized List
 Adapter only. Is there any other alternative?


 Alternative for what? You didn't really explain what you're trying to do.
 OK / Cancel in a context menu doesn't really make sense.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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

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

2011-08-02 Thread Daniel Drozdzewski
On 2 August 2011 11:30, deepak emailmedee...@gmail.com wrote:
 Ok red5 supports codecs supported by android media player.But red5
 uses RTMP and i think android does not support RTMP streams. Sorry if
 i am wrong on this. I am new to streaming.

http://www.smaxe.com/juvclient.jsf




 On Aug 2, 3:10 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
 wrote:
 You do not need to use flash player...

 Check the codecs supported by Red5 and codecs supported by Android
 Media Player and try to find a match (I can tell you that there are 2
 matches).

 Daniel

 On 2 August 2011 10:44, deepak emailmedee...@gmail.com wrote:

  I am creating an application which does live streaming to android
  devices using red5. I came to  know that flash is supported only from
  2.2 onwards.I need to stream it to 2.1 also. So anyone knows how i can
  do live streaming to devices having android 2.1 ? This is really
  important for me. 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

 --
 Daniel Drozdzewski

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



-- 
Daniel Drozdzewski

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


Re: [android-developers] Re: Strange behavior after signing build with release keystore

2011-08-02 Thread Donal Rafferty
Also it doesn't look like Proguard is enabled

On Tue, Aug 2, 2011 at 10:07 AM, Donal Rafferty draf...@gmail.com wrote:

 No, I haven't done anything with proguard at all, does it bundle
 automatically with a release build though?

 Shouldn't be any reflection in this particular project.

 Only one activity use the MAIN and LAUNCHER intents in the manifest,
 however several use the DEFAULT intend, could this cause the problem?


 On Sat, Jul 30, 2011 at 8:28 AM, Doug beafd...@gmail.com wrote:

 On Jul 29, 4:06 pm, Donal Rafferty draf...@gmail.com wrote:
  Yes I think proguard is enabled, how could I check? Also what effects
 would
  disabling it have?

 Did you do any of this?

 http://developer.android.com/guide/developing/tools/proguard.html

 I don't think you would have any trouble with Proguard unless you are
 using java reflection APIs or anything that depends on a java class
 name.  Sometimes there are launch problems if you have multiple
 activities that want to handle MAIN and LAUNCHER intents without
 sorting that out properly.

 Doug

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

2011-08-02 Thread ודים רוזנטל
I found many samples how to send mail with a ready file on the disc.
I can create FileOutputStream, save stream in a file and send a file.
Before sending application'll read file's content from disc.
I want to send directly FileOtputStream without writing and reading file.

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

2011-08-02 Thread deepak
Can you help me with this? How can i use this?This is also using RTMP
right??

On Aug 2, 3:38 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
wrote:
 On 2 August 2011 11:30, deepak emailmedee...@gmail.com wrote:

  Ok red5 supports codecs supported by android media player.But red5
  uses RTMP and i think android does not support RTMP streams. Sorry if
  i am wrong on this. I am new to streaming.

 http://www.smaxe.com/juvclient.jsf











  On Aug 2, 3:10 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
  wrote:
  You do not need to use flash player...

  Check the codecs supported by Red5 and codecs supported by Android
  Media Player and try to find a match (I can tell you that there are 2
  matches).

  Daniel

  On 2 August 2011 10:44, deepak emailmedee...@gmail.com wrote:

   I am creating an application which does live streaming to android
   devices using red5. I came to  know that flash is supported only from
   2.2 onwards.I need to stream it to 2.1 also. So anyone knows how i can
   do live streaming to devices having android 2.1 ? This is really
   important for me. 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

  --
  Daniel Drozdzewski

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

 --
 Daniel Drozdzewski

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


[android-developers] Re: How to create Curve layout in Android?

2011-08-02 Thread shubh
thanks Mark, can u show me way to start it.


On Jul 30, 5:16 pm, Mark Murphy mmur...@commonsware.com wrote:
 You will have to write your own layout manager for that.



 On Sat, Jul 30, 2011 at 8:08 AM,shubhshubhampatn...@gmail.com wrote:
  At place of use Vertical or Horizontal layout , how can design
  Circular layout.

  I want to create an circle layout where I can place some menu option
  inside that layout.

  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

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

 Android 3.1 Programming Books:http://commonsware.com/books

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

2011-08-02 Thread Mark Murphy
On Tue, Aug 2, 2011 at 6:34 AM, Abhishek Kumar Gupta
akgaec2...@gmail.com wrote:
 Actually I want to close the conext-menu by clicking on the Cancel button,
 which I want to place at the bottom of the context-menu.

Users can press the BACK button to close the context menu, in all
apps, on all devices.

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

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

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


Re: [android-developers] Re: Live Streaming to Android 2.1

2011-08-02 Thread Daniel Drozdzewski
On 2 August 2011 12:09, deepak emailmedee...@gmail.com wrote:
 Can you help me with this? How can i use this?This is also using RTMP
 right??

You are on your own journey of discovery here, I am afraid.
Can you write programs in Java using 3rd party libraries?

Yes = good. No = time to learn.

If you can, then write one, marrying it with Android SDK and that's it.

You can ask specific question to specific groups of people. Find Red5
user group and JUV RTMP user group and ask them.

This groups is about Android SDK and RTMP streaming is off topic, unfortunately.

Best of luck,

Daniel

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

2011-08-02 Thread Sivaprakash
Hi

I have a back ground service which is responsible for reading content from
the mobile (on-demand) and send to Server through web service. When ever I
call the service by default it is hitting onStart and from there I am
creating separate thread to handle each request because the service might
get multiple request at a same time. Is it a right approach or any hiccups?

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

2011-08-02 Thread deepak
Thanks Daniel. I will try it out.

On Aug 2, 4:18 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
wrote:
 On 2 August 2011 12:09, deepak emailmedee...@gmail.com wrote:

  Can you help me with this? How can i use this?This is also using RTMP
  right??

 You are on your own journey of discovery here, I am afraid.
 Can you write programs in Java using 3rd party libraries?

 Yes = good. No = time to learn.

 If you can, then write one, marrying it with Android SDK and that's it.

 You can ask specific question to specific groups of people. Find Red5
 user group and JUV RTMP user group and ask them.

 This groups is about Android SDK and RTMP streaming is off topic, 
 unfortunately.

 Best of luck,

 Daniel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: need theme name for the normal preferences screen(s)

2011-08-02 Thread Jim Graham
Never mind...found a typo that caused everything to go wrong without
causing an error message from Eclipse.  But then, I'm learning not to
trust Eclipse as much as it would like me to  I typed

   android:theme=@android:style/Theme.Light.WallpaperSettings

when trying to restore the standard but unreadable theme, and I
ended up with this in my AndroidManifest file:

   android:theme=@android:style/Theme.Light.WallpaperSettings

Note how Eclipse wants to double the quotes on both sides

Great job, Eclipse

Later,
   --jim

-- 
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: need theme name for the normal preferences screen(s)

2011-08-02 Thread Nikolay Elenkov
On Tue, Aug 2, 2011 at 8:50 PM, Jim Graham spooky1...@gmail.com wrote:

   android:theme=@android:style/Theme.Light.WallpaperSettings

 Note how Eclipse wants to double the quotes on both sides


Go to Preferences-Java-Editor-Typing and uncheck
all the 'automatically close' items to keep your sanity.

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

2011-08-02 Thread Christine
http://developer.android.com/guide/topics/fundamentals/services.html
http://developer.android.com/guide/developing/tools/aidl.html

There is an example of a service in the api demos.

On Aug 2, 1:34 pm, Sivaprakash sivaprakashshanmu...@gmail.com wrote:
 Hi

 I have a back ground service which is responsible for reading content from
 the mobile (on-demand) and send to Server through web service. When ever I
 call the service by default it is hitting onStart and from there I am
 creating separate thread to handle each request because the service might
 get multiple request at a same time. Is it a right approach or any hiccups?

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


Re: [android-developers] Install .apk without User action

2011-08-02 Thread Mark Murphy
On Tue, Aug 2, 2011 at 1:17 AM, Jim Graham spooky1...@gmail.com wrote:
 Ummm, right.  No.  First, I'm almost 100% certain that that's impossible,

Yes, fortunately, this is impossible.

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

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

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


Re: [android-developers] regarding display text

2011-08-02 Thread arun kumar
add this code in your manifest file
 supports-screens android:smallScreens=true
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true /



You can specify your width using a dimension resource
(res/values/dimens.xml) and have a different value for landscape
(res/values-land/dimens.xml). Or, have a different layout for
landscape (res/layout-land/whatever.xml). There are other possible
solutions.

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

2011-08-02 Thread TreKing
On Tue, Aug 2, 2011 at 5:34 AM, Abhishek Kumar Gupta
akgaec2...@gmail.comwrote:

 Actually I want to close the conext-menu by clicking on the Cancel
 button, which I want to place at the bottom of the context-menu.


This doesn't really make much sense, Mark explained why, but if you really
want to do this, for whatever reason, you can just stick a dummy Cancel
entry in the context menu. It closes automatically on clicking any entry.
Just don't do anything with it.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: need theme name for the normal preferences screen(s)

2011-08-02 Thread Jim Graham
On Tue, Aug 02, 2011 at 08:54:21PM +0900, Nikolay Elenkov wrote:
 On Tue, Aug 2, 2011 at 8:50 PM, Jim Graham spooky1...@gmail.com wrote:
 
  ?? android:theme=@android:style/Theme.Light.WallpaperSettings
 
  Note how Eclipse wants to double the quotes on both sides
 
 
 Go to Preferences-Java-Editor-Typing and uncheck
 all the 'automatically close' items to keep your sanity.

Oh, thank you!!!  Yes, that will definitely help me keep my
sanity (if you really want to call it that grin).
That has caused me SO MANY errors in the past, it's not
even funny.  I'm used to vi (well, vim, actually).  If I
don't have an abbrev listed for it, or a mapping, I expect
to get what I type.  :-)

In fact, even when working with Eclipse, I normally (unless
it's a minor tweak) just do everything in vim, and then refresh
Eclipse.  Personal preference, and all that.

Thanks,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

Seen in alt.sysadmin.recovery:  Priceless; that's better than telling
him to use the Read Manual command with the Real Fast option.

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

2011-08-02 Thread TreKing
On Tue, Aug 2, 2011 at 2:11 AM, Droid rod...@gmail.com wrote:

 This is the case if I sign my apk or not. Does the API Key take a while to
 get verified at Google or what is going wrong?


No. You probably missed a step somewhere. Do it over, slowly and carefully,
following the steps on the Maps Key signup page. Do the debug key first to
make sure that works first, then try your release key.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Webview sliding issue

2011-08-02 Thread pankaj pandey
Hi,
I have implemented the webview in my android application.
The issue is: when I start typing on edittext of webivew, the web page slide
down and hides under the soft keyboard and user cann't see what he/she
typing.
Would request you to please provide any solution.


Thanking you...
Regards,
Pankaj Pandey

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Issues with CheckBox setting checBox ID in a ListView

2011-08-02 Thread RobinDroid
Dear All,

I have a ListView in one of my Tab:
Initially the Tab has empty ListView.
In the Tab there is a menu with menu item such as EDIT,REFRESH.
Firstly, Refresh is clicked and an sms is sent and via
broadcastreciever i recieved the sms in the format: 1\nApple\ Sweet
Apple\n2\nMango\nSweet Mango (id\n\fruitname\fruitcategory);
I somehow parse this data and set it into the model class and added to
an ArrayList.
Then i used a BaseAdapter for the ListView where the checkbox is
hidden initially.
The listview appears. Now when EDIT is clicked i need to show the
checkbox and the listview has a checkbox.


My Problem lies here:
On my baseAdapter on getView method i did this:
viewHolder.checkBox.setId(fruitsList.get(position).getId()); // getId
is frm the model class

When edit is clicked, my menu changes to Delete and cancel.
I am not being able to retrieve the id which i set in the checkBox?

Is this not possible?

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


[android-developers] Re: Should i use multiple BroadCastReciever?

2011-08-02 Thread RobinDroid
I solved it.
Thank you for your replies.

On Aug 2, 3:20 pm, Robinns librain.ro...@gmail.com wrote:
 Dear,

 I am pasting my code here.

 ---
 public class Inbox extends ActivityGroup {
 private ArrayListInboxEmailDAO inboxEmails = new
 ArrayListInboxEmailDAO();
  private ListView listView;
 private ArrayListView trackViews;
 private InboxAdapter inboxAdapter;
  private String previewEmailFrom = ;
 private String previewEmailSubject = ;
  private int previewEmailId;
 private TextView smsMessage;

 @Override
  public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
 setContentView(R.layout.inbox);
  Bundle bundle = new Bundle();
 bundle = getIntent().getExtras();
 boolean isRecieved = false;

 if (bundle != null) {
 isRecieved = bundle.getBoolean(smsRecievedForInbox);

 }

 trackViews = new ArrayListView();
  smsMessage = (TextView) findViewById(R.id.smsMessage);
 listView = (ListView) findViewById(R.id.inboxEmailList);

 if (isRecieved) {
 smsMessage.setWidth(-5);
 smsMessage.setHeight(-5);

 }

 inboxEmails = InboxEmailDAO.parseContentForInboxEmails();
  inboxAdapter = new InboxAdapter(getApplicationContext(), inboxEmails);
 listView.setAdapter(inboxAdapter);
  listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
 ((InboxAdapter) inboxAdapter).notifyDataSetChanged();
  trackViews.add(listView);
 listView.setOnItemClickListener(new OnItemClickListener() {

 @Override
 public void onItemClick(AdapterView? adapterView, View view,
  int position, long id) {
 Intent intent = new Intent(getApplicationContext(),
  EmailPreview.class);
 previewEmailId = inboxEmails.get(position).getId();
  previewEmailFrom = inboxEmails.get(position).getFrom();
 previewEmailSubject = inboxEmails.get(position).getSubject();
  holdData(previewEmailId, previewEmailFrom, previewEmailSubject);

 Bundle bundle = new Bundle();
  bundle.putInt(emailId, previewEmailId);
 bundle.putString(from, previewEmailFrom);
  bundle.putString(subject, previewEmailSubject);
 bundle.putInt(TAB_INDEX, 1);
  intent.putExtras(bundle);

 InboxAdapter.setInboxViewMode(2);
  View emailView = getLocalActivityManager().startActivity(
 EmailPreview,
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
 .getDecorView();
  Toast.makeText(getApplicationContext(),
 Sending to Preview:  + previewEmailId,
  Toast.LENGTH_LONG).show();
 trackViews.add(emailView);
 replaceView(emailView);

 }
 });
 }

  @Override
 public void onStart(){
  super.onStart();
 IntentFilter filter = new IntentFilter(SMSInfo.SMS_FOR_INBOX);
  registerReceiver(new SMSRecieverForInbox(), filter);}

 @Override
  public void onStop(){
 super.onStop();
 unregisterReceiver(new SMSRecieverForInbox());
  }
   @Override
 public void onBackPressed() {

 }

 @Override
 public boolean onPrepareOptionsMenu(Menu menu) {
  menu.clear();
 MenuInflater inflater = getMenuInflater();
 int mode = InboxAdapter.getInboxViewMode();
  if (mode == 1) {
 inflater.inflate(R.menu.inbox_menu_after_edit, menu);
  } else if (mode == -1) {
 menu.clear();
 inflater.inflate(R.menu.inbox_menu, menu);
  } else {
 menu.clear();
 inflater.inflate(R.menu.inbox_email_preview_menu, menu);
  }
 return true;

 }

 @Override
 public boolean onOptionsItemSelected(MenuItem item) {

 switch (item.getItemId()) {
 case R.id.inboxEdit:
 if (listView.getCount()  0) {
  Toast.makeText(getApplicationContext(), No emails to edit.,
 Toast.LENGTH_LONG).show();
  break;}

 if (InboxAdapter.getInboxViewMode() == -1) {
  listView.setAdapter(new InboxAdapter(getApplicationContext(),
 inboxEmails));
  InboxAdapter.setInboxViewMode(1);}

 break;
  case R.id.inboxRefresh:
 sendSmsToRetrieveEmail(inbox);
 break;
  case R.id.inboxNext:
  break;
  case R.id.inboxPrevious:
  break;
  case R.id.inbox_menu_after_edit_delete:

 deleteAfterEditEmailList();
  break;
 case R.id.inbox_menu_after_edit_cancel:
 clearCheckedItems();
  break;
 case R.id.email_preview_menu_delete:

 break;

 case R.id.email_preview_menu_reply:
  break;
  default:
 break;

 }

 return false;

 }

 private void clearCheckedItems() {
  for (int i = 0; i  this.inboxAdapter.getCount(); i++) {
 LinearLayout linearyLay = (LinearLayout) this.listView
  .getChildAt(i);
 CheckBox checkBox = (CheckBox) linearyLay
 .findViewById(R.id.inboxCheckBoxId);
  if (checkBox.isChecked()) {
 checkBox.setChecked(false);}

  }
 ((InboxAdapter) inboxAdapter).notifyDataSetChanged();

 }

 private void deleteAfterEditEmailList() {
 Toast.makeText(getBaseContext(), I am checking, Toast.LENGTH_SHORT)
  .show();
 SparseBooleanArray booleanArray = listView.getCheckedItemPositions();
  for (int i = 0; i  listView.getCount(); i++) {
 if (booleanArray.get(i))
  Toast.makeText(getBaseContext(),  the selected index is  + i,
 Toast.LENGTH_SHORT).show();
  }

 }

 public void replaceView(View view) {
  setContentView(view);

 }

 private void holdData(int emailId, String from, 

[android-developers] Re: Issues with CheckBox setting checBox ID in a ListView

2011-08-02 Thread RobinDroid
Actually my listview is as:
After refresh is clicked and the checkbox is invisible
-
Fruit Name: Apple
Type: Sweet Apple
-
Fruit Name: Mango
Type: Sweet Mango



EDIT  |  Refresh
--

When EDIT is clicked
I need to have check box so that i can delete them if i dont want
them:

---
[] Fruit Name: Apple
   Type: Sweet Apple
--
[] Fruit Name: Mango
   Type: Sweet Mango
--


DELETE  | CANCEL
--


I need to know the id's of the check box so that when i click delete i
can send an id separated with comma's via sms and notify my adapter
that some items has been deleted.

Any helps or way of doing this could help me solve my problem.

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

2011-08-02 Thread jpmobjoe
Hi,

I have an ASUS Transformer tablet running on Android.

I installed Python for Android application. There are two modes;
i) Shell
ii)Interpreter

I am trying to invoke a typical python command in Shell option but it
gives me python not found message.


Ultimately I want to install pytest package on Android using command
based python setup.py install. Is that possible?


Please advise what mistakes or steps I have missed out. Thanks.


Jo

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

2011-08-02 Thread Tshuks
I'm baffled at how long its taking the Android community to cash in on
the considerable amount of net income that music production
enthusiasts such as myself would bring if only the apps were half as
enticing as on the iOS, sorry to bash. I'm a solid Android phone user
but iOS devs put the stuff that's out on the market with the exception
of Caustic to shame.

Anyone working on anything serious in the near future?

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


[android-developers] How to make an ordinary view to have rounded corners in code without xml

2011-08-02 Thread Chris Zeng
Is there any way to make an ordinary view to have rounded corners in code 
completely without xml? Overriding onDraw is not the way I'm looking 
for,either. I have read the posts: How to make an ImageView to have rounded 
cornershttp://stackoverflow.com/questions/2459916/how-to-make-an-imageview-to-have-rounded-corners
 and Android: ListView with rounded 
cornershttp://stackoverflow.com/questions/1683185/android-listview-with-rounded-corners,
 
but they are not I'm looking for.

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

2011-08-02 Thread David P
Hey Nick,

Could you please provide a code example of how to signal an event when
a tag is lost? Thanks in advance.

Best Regards,
David

On Jun 9, 10:18 am, Nick Pelly npe...@google.com wrote:
 As per other responses, you currently need to poll isConnected() on a
 connected technology object.

 This is not ideal, and we are considering an intent or callback in a future
 API version.

 Cheers,
 Nick







 On Wed, Jun 1, 2011 at 8:47 PM, Dean Brotzel dean.brot...@gmail.com wrote:
  Is it possible to receive a message/intent from Android for when a tag is
  removed from the smart phone's influence (much like when a tag is brought
  into to the smart phone's influence) ?

  I noticed from logcat the following log message:  D/NativeNfcTag( 3625):
  Tag lost, restarting polling loop, when I remove the NFC tag.  Is there
  a programmatic way to catch this event?  I've looked through the API and
  don't anything obvious.  I'm using the Nexus S,  android 2.3.4.

  I hope I don't have to implement my own detection/presence polling.

  Thanks,
  Dean

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

2011-08-02 Thread Sahi
Hi,
I want to develop an application for android that will make a call,
Actually, I want to do this for learning the basics, of android call
making, and want to extend my project later. Please give a any clue,
for this application.

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

2011-08-02 Thread Bala
Hi,

I was struggling for last three weeks to find out the way on how to
add new mime type in the android-2.2 DownloadProvider. Please provide
me some pointers on how to achieve this?.

Thanks,

Bala

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

2011-08-02 Thread raksa chao
Hi all!
  Can you help to develop with this class how can i use it? Bec i
want to make P2P from Google Nexus S with ACR122U-A2NR to exchange
data.

Thank you in advance.
Raksa

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

2011-08-02 Thread eradicus
I'm experiencing this problem. I have attached a content observer for
the events URI.

On Jun 10, 8:44 am, Roger roger.cam...@gmail.com wrote:
 I haven't found any solution for this problem in the bunch of
 questions and reference I've searched.

 So here is.

 I'm trying to query the data from the CallLog and insert in DB. For
 that, I've created a COntentObserver as inner class in a Service, and
 inside onChange() method, I call my method that goes to the specified
 URI and query the data that has changed.

 But, lets say, I received a call, so the observer was notified. So, my
 method goes to the call log content provider, query and insert, but it
 is inserting two, three times the same register.

 And the funny is that I have another service implemented identically
 like this one, but, it doesnt happen.

 Here is the code of my service.

 public class RatedCallsService extends Service

 private Handler handler = new Handler();
     private SQLiteDatabase db;
     private OpenHelper helper;
     private String theDate;
     private String theMonth_;
     private String theYear_;
     private String theDay_;
     public static boolean servReg = false;

     class RatedCallsContentObserver extends ContentObserver {

             public RatedCallsContentObserver(Handler h) {

                 super(h);
                 //helper = new OpenHelper(getApplicationContext());
                 //db = helper.getWritableDatabase();

             }

             @Override
             public boolean deliverSelfNotifications() {

                 return true;

             }

             @Override
             public void onChange(boolean selfChange) {

                 super.onChange(selfChange);
                 Log.i(LOG_TAG, Inside on Change. selfChange  +
 selfChange);
                 searchInsert();
             }
         }

         @Override
         public IBinder onBind(Intent arg0) {

             return null;

         }

         @Override

         public void onCreate() {
             servReg = true;
             db = DataHandlerDB.createDB(this);
             registerContentObserver();

         }

         @Override
         public void onDestroy() {

             super.onDestroy();
             db.close();

 this.getApplicationContext().getContentResolver().unregisterContentObserver 
 (new
 RatedCallsContentObserver(handler));

         }

         private void searchInsert() {

                     Cursor cursor = getContentResolver().query(
             android.provider.CallLog.Calls.CONTENT_URI, null, null,
 null,
             android.provider.CallLog.Calls.DATE +  DESC );

     if (cursor.moveToFirst()) {

         int numberColumnId = cursor
                 .getColumnIndex(android.provider.CallLog.Calls.NUMBER);
         int durationId = cursor
                 .getColumnIndex(android.provider.CallLog.Calls.DURATION);
         int contactNameId = cursor
                 .getColumnIndex(android.provider.CallLog.Calls.CACHED_NAME);
         int numTypeId = cursor
                 
 .getColumnIndex(android.provider.CallLog.Calls.CACHED_NUMBER_TYPE);
         int callTypeId = cursor
                 .getColumnIndex(android.provider.CallLog.Calls.TYPE);

         Date dt = new Date();
         int hours = dt.getHours();
         int minutes = dt.getMinutes();
         int seconds = dt.getSeconds();
         String currTime = hours + : + minutes + : + seconds;

         SimpleDateFormat dateFormat = new SimpleDateFormat(M/d/
 );

         Date date = new Date();

         cursor.moveToFirst();

         String contactNumber = cursor.getString(numberColumnId);
         String contactName = (null ==
 cursor.getString(contactNameId) ? 
                 : cursor.getString(contactNameId));
         String duration = cursor.getString(durationId);
         String numType = cursor.getString(numTypeId);
         String callType = cursor.getString(callTypeId);

         seconds = Integer.parseInt(duration);

         theDate = dateFormat.format(date);

         if (theDate.length() == 9) {

             theMonth_ = theDate.substring(0, 1);
             theDay_ = theDate.substring(2, 4);
             theYear_ = theDate.substring(5, 9);

         } else if (theDate.length() == 10) {

             theMonth_ = theDate.substring(0, 2);
             theDay_ = theDate.substring(3, 4);
             theYear_ = theDate.substring(6, 10);

         } else if (theDate.length() == 8) {

             theMonth_ = theDate.substring(0, 1);
             theDay_ = theDate.substring(2, 3);
             theYear_ = theDate.substring(4, 8);

         }

         ContentValues values = new ContentValues();
         ContentValues values2 = new ContentValues();

         values.put(contact_id, 1);
         values.put(contact_name, contactName);
         values.put(number_type, numType);
         values.put(contact_number, contactNumber);
         values.put(duration, Utilities.convertTime(seconds));
         values.put(date, 

[android-developers] DBUS in Android

2011-08-02 Thread Anil
Hi All,

I am new to the dbus, i want to access the system daemons using
android dbus.

I am getting /dbus/dbus.h: No such file or directory,  when i am
giving the dbus.h path in LOCAL_C_INCLUDES (under gingerbread/external/
dbus/). Please let me know how to solve this problem and how to use
Android DBUS Libraries in Android.mk.

I tried pkg-config --cflags --libs dbus-1 woking fine in ubuntu
linux.

Thanks for your support.


Regards,
Anil Kumar Maguluri

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] my app didn't show in motorola milestone phones

2011-08-02 Thread Eyal Berman
i donw know why,

samsung galaxy i9000 can download it but i cant see it in my motorola 
milestone

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

2011-08-02 Thread brahadeesh
hi. I am trying to make an app where I get and store the location of
the user along with some other info entered by the user.
My code is as follows:

package com.DuckTag;

import android.app.Activity;
import android.os.Bundle;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;


public class DuckTagActivity extends Activity implements
LocationListener{
/** Called when the activity is first created. */
private String type = Type;
private String cname = cname;
private String snameFirst = snameFirst;
private String snameLast = snameLast;
private String color = color;
private float weight = 0;
private String location =  ;
private EditText DuckType;
private EditText CommonName;
private EditText ScientificName;
private EditText Color;
private EditText Weight;
private EditText MyLocation;
private Button Locate;
private LocationManager locationManager;
private String bestProvider;
private static String tag = dmotion;

private OnClickListener locateListener = new OnClickListener() {
public void onClick(View v) {
try {
Log.e(tag,tag button clicked);

// Store user inputs in class fields
type = DuckType.getText().toString();
cname = CommonName.getText().toString();
snameFirst = ScientificName.getText().toString();
snameLast = 
snameFirst.substring(snameFirst.lastIndexOf(
));
snameFirst = snameFirst.substring(0,snameFirst.indexOf(
));
color = Color.getText().toString();
weight =
Float.valueOf((Weight.getText().toString()).trim()).floatValue();
Locate.setOnClickListener(locateListener);
Log.e(tag,inputs converted to text);

//Get user's location
locationManager = (LocationManager)
getSystemService(LOCATION_SERVICE);
Criteria criteria = new Criteria();
bestProvider = locationManager.getBestProvider(criteria,
false);
Log.e(tag,bestProvider);
Location currentLocation =
locationManager.getLastKnownLocation(bestProvider);
if(currentLocation != null) {
Toast.makeText(getApplicationContext(), 
not null,
Toast.LENGTH_LONG);
location = 
Double.toString(currentLocation.getLatitude()) +   +
Double.toString(currentLocation.getLongitude());
Toast.makeText(getApplicationContext(), 
location,
Toast.LENGTH_LONG);
MyLocation.setText(location);
}
else {
Toast.makeText(getApplicationContext(), 
null,
Toast.LENGTH_LONG);
Log.e(tag,currentLocation is null);
}
} catch (Exception e) {
Log.e(tag,e.getMessage());
}
}

};

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.e(tag, activity created);
try {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

DuckType = (EditText) findViewById(R.id.DuckType);
CommonName = (EditText) findViewById(R.id.CommonName);
ScientificName = (EditText) findViewById(R.id.Scientificame);
Color = (EditText) findViewById(R.id.Color);
Weight = (EditText) findViewById(R.id.Weight);
MyLocation = (EditText) findViewById(R.id.MyLocation);
Locate = (Button) findViewById(R.id.Locate);
Locate.setOnClickListener(locateListener);
Log.e(tag,xml objects assigned);

/*
 * type = DuckType.getText().toString();
 * cname = CommonName.getText().toString();
 * snameFirst = ScientificName.getText().toString();
 * Log.e(tag,Integer.toString(snameFirst.lastIndexOf( )));
 * snameLast = snameFirst.substring(snameFirst.lastIndexOf(
));
 * Log.e(tag,1);
 * snameFirst = snameFirst.substring(1,snameFirst.indexOf(
));
 * Log.e(tag,2);
 

[android-developers] XML attributes about childViews

2011-08-02 Thread Dinko Chong
Sorry for my poor English , here's the problem



I extented  a  mView  from  ImageView

and I overrode its onDraw()  method , cuz I wanna draw some thing
spicial on the basic pictures

we all know that ImageView has a XML attribute -- android:src

now here's the thing , if I used android:src=URI in my XML file
under  mView . how can I get the URI  I passed in


or how can I deside what and how to draw using the source but not only
draw it on the screen like ImageView always did

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

2011-08-02 Thread Raj
Hello,
I want to copy a video from sdcard to internal memory and play it. I was 
successful in copying the video to internal memory since the file size for 
both source and destination are same. But when I try to play the video from 
the internal memory it doesn't play it.
If I copy the video to sdcard at some other location the video gets copied  
plays successfully with the same code.

Please help.

Here's the code - 

String actualPath = /sdcard/DCIM/Camera/sample.3gp;
File source = new File(actualPath);
File destination = new File(getFilesDir(),sample.3gp);

try {
destination.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}

copyFile(source, destination);  //Function to copy the file

if(destination.exists())
{
getWindow().setFormat(PixelFormat.TRANSLUCENT); 
videoHolder = new VideoView(this); 
videoHolder.setMediaController(new MediaController(this)); 
setContentView(videoHolder);

if(destination.exists())
{
videoHolder.setVideoURI(Uri.fromFile(destination));
videoHolder.requestFocus();
videoHolder.start();
}
else{
alertbox.setMessage(Sorry, no such video found!);
alertbox.show();
}
}
else
Toast.makeText(this, Video does not exist, Toast.LENGTH_LONG).show();

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

2011-08-02 Thread Android Noob
I'm relatively new to android and I'm having trouble trying to save
the state of Fragments as I switch from one page to the next using the
FragmentStatePageAdapter.

I have a ViewPager in an activity with five fragments in it and a
HashMapInteger, Fragment that's used to cache fragments.  In
fragment 0, I have a login screen that displays an Avatar and the user
name when the user is successfully logged in.  When I flip to fragment
2, I see that fragment 0 gets destroyed (and fragment 3 gets
instantiated).  When I flip back to fragment 1, fragment 0 gets
loaded, but a new instance of it gets created instead of restoring the
previous state so my login screen is back to the state it was before
the user successfully logged in.

My question is, how do i switch back and forth with this caching
scheme while still maintaining fragment state?  I just can't seem to
get it right.

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

2011-08-02 Thread hachi
Hi,

I am using an EditText view in a scenario in which it would be very
convenient to change the layout of the default android keyboard
(specifically bring a special character to the initial view among
alphabets so the user does not have to do two taps to get it). I know
I could design a custom keyboard to do that, but is there a way to do
this swap to the default keyboard without tooo much trouble.

Hachi

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

2011-08-02 Thread CCN CCN
Hi Karthikeyan
I'm also trying to use monkeyrunner of Java, but running your example
I get an error:

12:29:20 E/adb: Failed to get the adb version: Cannot run program
adb: error=2, No such file or directory

Meaning the error is understandable, but I do not how to fix it znab.

I tried to fix the problem by connecting ddmlib in draft form and
directly in the code to set the path to the ADB but to no avail. The
application just freezes.

p.s. I'm sorry I do not know much English

On Aug 2, 11:34 am, Karthikeyan R dba.kart...@gmail.com wrote:
 Hi Nithin,

 I missed your post that is the reason for delayed reply.

 Please use the below snippet  (Make sure to include monkeyrunner,
 ddmlib, jython, sdklib jars)

 import com.android.monkeyrunner.adb.AdbBackend;
 import com.android.monkeyrunner.core.IMonkeyDevice;
 import com.android.monkeyrunner.core.TouchPressType;

 public class sampleMonkey {

  public static void main(String[] args) {
     sampleMonkey monkey=new sampleMonkey();
     monkey.demo();
  }
  public void demo()
  {
     AdbBackend adb = new AdbBackend();
     IMonkeyDevice device = adb.waitForConnection();

     // Actions should go here
     device.touch(200, 200,TouchPressType.DOWN);

     device.dispose();
  }

 }

 Thanks
 --Karthik

 On Jul 30, 1:53 am, Nitin Chhabra nitin.n...@gmail.com wrote:







  Hi Bill/Karthikeyan,

  Can you please help me out as well in this regard. I am able to 
  runMonkeyRunnerusing Python Scripts on Windows
  Platform. But I would like to use it in Java, as my test application
  is being
  built in Java. I am usingMonkeyRunnerto automate things only. I can
  call my Python script using Java to runMonkeyRunner, but that is not
  a clean solution!

  Karthik, can you please help me as you have mentioned that you have
  got that running. Can you please point me to some sample code as well.

  On Jun 28, 9:44 am, Karthikeyan R dba.kart...@gmail.com wrote:

   Hi Bill,

   Thank you so much for pointing me to those links.

   It helps me a lot and now I can able use monkey runner from java.

   This group is rocking . . .

   Thanks
   --Karthik

   On Jun 28, 2:19 am, Bill Napier nap...@android.com wrote:

   MonkeyRunneractually has a small example of doing this in it's own source
code:

   http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=monkeyrunn...

IMonkeyBackend adb = new AdbBackend();
IMonkeyDevice device = adb.waitForConnection();

And you can see the IMonkeyDevice source 
here:http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=monkeyrunn...

And see that it has a bunch of methods on it like takeSnapshot, 
touch,
drag, etc.

Hopefully that's enough to get you started.

Bill

On Fri, Jun 24, 2011 at 7:27 PM, Karthikeyan R 
dba.kart...@gmail.comwrote:

 Hi Bill,

 Thank you so much for sharing the information.

 we wanted to create a automation framework in java havingMonkeyRunner
 as base.

 Could you give me one small sample using java, it will be really
 helpful for us.

 To give you a context we wanted to automated the device as a whole
 where we interact with multiple apk's  hope our choice of monkey
 runner is right for that.

 Thank you in advance.

 Thanks
 --Karthik

 On Jun 24, 10:39 am, Bill Napier nap...@android.com wrote:
  If you mean from Java on the phone (like as part of an 
  application), then
  the answer is no.

  If you mean from Java on a computer, then the answer is yes.  You 
  just
 need
  to make your java project depend on theMonkeyRunner.jar and you can 
  call
  some of it's internal classes to do what you need.

  We're in the middle of changing how the code is structured to make 
  this
 even
  easier, but it's not quite ready yet.

  On Wed, Jun 22, 2011 at 8:16 PM, Karthik dba.kart...@gmail.com 
  wrote:
   Hi,

   Is it possible to usemonkeyrunnerfrom java.

   If yes please let me know the approach.

   Thanks in advance

   Thanks
   --Karthik

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

[android-developers] Activity Starter Help

2011-08-02 Thread Gustav Axmyren
Hi
I am developing a flashlight app to android and need the activity
starter class and package and so on.
For HTC Desire or just plane 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] Log statements in License Verification Library (LVL)

2011-08-02 Thread scto
I try to implement License Verification Library (LVL) to a new app.
When preparing for publishing to Market, I try to disable all Log
statement in the source.  However, I find that there are lots of Log
statements in LVL source.  This is a problem because I cannot remove
them if I want to keep the future update.  It is also not practical to
do so because there are too many of them.

I think I have missed something because the LVL is so generally used
and none report that their devices are full of Log logs.  Would anyone
give a me clue on this?

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


[android-developers] bicycling layer

2011-08-02 Thread katy
Hi All!
I love the Google Maps bicycling layer (those dark green lines) and
I've seen documentation that you can turn it on/off with the
javascript API.  Does anyone know if there is a plan to eventually add
that feature to the android MapView class, and when that might
happen?  Right now it looks like you can do satellite, street view,
and traffic, but no biking.  If the biking layer is already available
somehow and I'm just missing it, I'd love to know that too.

Thanks!
Katy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 a dmain and a port for accessing to Android Maps API(NativeAPI(Mapview))

2011-08-02 Thread mm
I'm having a trouble with finding proper domain and a port of google
server i should use for, when i use Android Maps API.
I checked out Google Maps API Premier, and I suppose to use the
servers written below.
If it's wrong, it would be greatful to tell me right ones, or tell me
the way i could find out.

 ●access domains and ports of Google Maps API Premier
  ・Google Maps API (v2 and v3) over HTTP
http://maps.google.com
http://maps.gstatic.com
http://maps.googleapis.com
http://csi.gstatic.com

Appreciate your help,

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


[android-developers] Re: how to use setPreviewCallbackWithBuffer() for real-time camera processing

2011-08-02 Thread Zohob
I am experiencing the same problem: the callback is only called once.
Did you find a solution for this?

My current hypothesis is that it is the emulator's fault but I
couldn't try it with a real phone yet.

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


[android-developers] Question about linux binary porting issue for USB based product on android device in host mode

2011-08-02 Thread Rtiger
Hi

I'm considering attaching an USB based image sensor device on android
device.

But the image sensor device has some issue.
It does not have a frimware in machine.
It need to download it's firmware from outside, operating system file
storage.
So I use UDEV and fxload for frimware downloading in general linux
environment.

This is my question.

If I have the source code, is it possible that porting the fxload to
specific android device like Samsung Galaxy Tab?
If I success the fxload porting, can I run the fxload when I want?

Please give me an answer..
I want to know the possibility of development.

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] MediaRecorder save issue with recording video phone volume key crash phone

2011-08-02 Thread esse
I have thrashed about in code for several days trying to figure out a
difficult to find bug. Primary issue is that when you make multiple
video recordings at some point if you press the phones volume keys the
phone will crash. This seems to be linked to an error from LogCat
ERROR/AudioTrack(4280): AudioFlinger could not create track, status:
-12

The System: Samsung Galaxy S running Android 2.2 (maybe it is a phone
thing?)

Code example: I have written simple and more complex video recorders
and I always get this problem. I based my simple example on this
(http://www.integratingstuff.com/2010/10/18/writing-code-that-captures-
videos-on-android/#comment-67). I also wrote an app based off how the
Android Camera code does things...

My code works, in that it records videos with sound even after the
shutter button sound stops. Basically as long as I don't press the
phone volume key after the shutter button sound stops everything
works. I have tried everything I can think of and nothing has worked,
lots of thrashing in the code. If you have a simple example that works
please share...I am at a lost.

If I don't call MediaRecorder.start() otherwise set everything up
there is no problem. Also, I have cut out recording video and record
only audio and there is no problem. So this issue seems to be specific
to video recording. NOTE: that I have downloaded a couple video
recorder programs off of the Android market and they also have this
problem, so I am not alone.

Sample Code: (this code will create the problem, again I have written,
rewritten similar code and tried many things to no avail. The attached
code is just one incarnation)
Note: Manifest setup with all correct permissions ...
  CODE  +++
package edu.video.play;

import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

import android.app.Activity;
import android.hardware.Camera;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class ExampleVideoRecorderActivity extends Activity implements
SurfaceHolder.Callback,
MediaRecorder.OnErrorListener {

private static final String TAG = CAMERA_TUTORIAL;

private SurfaceView surfaceView;
private SurfaceHolder surfaceHolder;
private Camera camera;
private boolean previewRunning;
private Button mStart;
private Button mStop;
private Button mDebug_button;

 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 requestWindowFeature(Window.FEATURE_NO_TITLE);
 
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

 setContentView(R.layout.main);
 surfaceView = (SurfaceView)
findViewById(R.id.camera_preview);
 surfaceHolder = surfaceView.getHolder();
 surfaceHolder.addCallback(this);
 
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
 surfaceHolder.setFixedSize(640, 480);

 mStart = (Button)findViewById(R.id.start_recording);
 mStop = (Button)findViewById(R.id.stop_recording);
 //mDebug_button =
(Button)findViewById(R.id.debug_button);

 mStart.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
startRecording();
//RecordVideo rv = new RecordVideo();
//rv.execute(start recording);
}
 });

 mStop.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
stopRecording();
}
 });
 }

 @Override
public void surfaceCreated(SurfaceHolder holder) {
camera = Camera.open();
if (camera != null){
Camera.Parameters params = camera.getParameters();
camera.setParameters(params);
}
else {
Toast.makeText(getApplicationContext(), Camera not 
available!,
Toast.LENGTH_LONG).show();
finish();
}
surfaceHolder = holder;
surfaceHolder.setFixedSize(640, 480);
}

@Override
public void surfaceChanged(SurfaceHolder holder, int format, int
width, int height) {
if (previewRunning){
camera.stopPreview();
}

[android-developers] need help

2011-08-02 Thread Dev_red
Hi,


  i am having one download button in main form which is located above
to tabhost. so the download button visible to all tabs. while click on
download button the server datas are copied into my local sqllite.

 now i want to load these data into my spinner dropdown of my
FirstTab. so the spinner dropdown should automatically get update
while click on download button.. tis is possible? any idea?

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

2011-08-02 Thread luck
Hi,

If we have 4 activities
A, B, C, D
And A launches B, B launches C, C launches D and D launches B
A-B-C-D-B
If B is SingleTask then A-B will be there means all the activities
which are above will be deleted.
For FLAG_ACTIVITY_CLEAR_TOP case only D will be deleted and the
activities will be B-C-A.

On Jun 9, 3:16 pm, Mansoor mansoor@wipro.com wrote:
 Hi all,

 I am bit confused after reading documentation about
 FLAG_ACTIVITY_CLEAR_TOP and  singleTask launchMode

 In documentation it given as :
 {
 FLAG_ACTIVITY_CLEAR_TOP
     If the activity being started is already running in the current
 task, then instead of launching a new instance of that activity, all
 of the other activities on top of it are destroyed and this intent is
 delivered to the resumed instance of the activity (now on top),
 through onNewIntent()).

     There is no value for the launchMode attribute that produces this
 behavior.

 }

 But i  experimented  FLAG_ACTIVITY_CLEAR_TOP behaviour using
 singleTask launchMode and i got exactly same . I created 3 activies
 Activity_A,Activity_B and Activity_C. In manifest file i set
 android:launchMode=singleTask for activity B. Each activity have a
 button to launch next activity ie Activity_A launches Activity_B

 launches Activity_C launches Activity_B.

 so this is the order in which i launch activity ABCB.

 In case of FLAG_ACTIVITY_CLEAR_TOP:
 I did ABC then as per documentation i started Activity_B from
 Activity C using intent with flag FLAG_ACTIVITY_CLEAR_TOP so Activity
 C is destroyed and back stack contains AB .

 In case of singleTask launchMode in Activity_B:

 i followed same procedure as ABCB above instead of
 FLAG_ACTIVITY_CLEAR_TOP flag i used singletask launch mode . finally
 the back stack contains AB .

 So what is difference between both ?In documentation it says   There
 is no value for the launchMode attribute that produces this behavior
 as of FLAG_ACTIVITY_CLEAR_TOP but I got same behaviour with
 singleTask launchMode ..

 Please clear my understanding 

 Thanks and regards
 Mansoor V.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] Dynamic Tab Difficulties

2011-08-02 Thread Paul English
I'm trying to dynamically create tabs and a tabHost based on XML that
I receive from an API.

The XML basically defines the UI and how the layout should be setup.
Here's an example XML snippet: https://gist.github.com/1119132

Traversing the XML and building most of the views is all working
decent at the moment, however when dealing with dynamic tab generation
I'm running into some issues that I can't quite seem to figure out.

Here's two snippets of part of the code that should be building the
tab interface: https://gist.github.com/1119143

With this code I end up getting a NullPointerException on
TabHost.addTab(), https://gist.github.com/1119148

Has anyone worked with dynamic tab building, and could maybe lend a
hand at deciphering this error or finding an appropriate route to
building tabs like this?

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


[android-developers] Regarding NFC Demo

2011-08-02 Thread suneel


   Hi,

  I used sample NFC Demo, in my Eclipse IDE, To know about how NFC
will work, I copied each and every file of the NFC Demo and i also
added Google packages which are required to run the NFC Demo. I run
the NFC demo Application in Eclipse run as Andriod Application, I took
the .avk file which as generated by the Andriod Application and Paste
in the Google Samsung Mobile and i installed that Application in the
mobile. But the result is non. It is not working in the mobile that
mobile support NFC application it has the reader. Please suggest me
how to work in the Google Samsung mobile.

thanks
suneel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Publish .APK on a website, not in Android Market?

2011-08-02 Thread Molly_G
I need to limit the audience of an Android app I'm working on. Is it
possible to publish the .apk on my password-secured mobile website for
users to download directly?

Also, what's the process like on the users' side? Do they need to go
through a Download Manager, etc. to get the app?

Any examples and info would be much appreciated.

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


[android-developers] In-App Billing broken in 3.0.27

2011-08-02 Thread Randall
Hello,

I started noticing strange behavior in my own app, so I tried the
Dungeons sample app and I'm seeing the same behavior there:

1. Purchase managed product
2. Observe that the order is in the un-actionable Cancelled state in
the Checkout console (details follow)

Jul 29 8:09 AM  Order cancelled Google cancelled this order.
Reason: Took too long to deliver
Jul 29 8:08 AM  Order received  You received a new order. Google
has sent the customer an order confirmation email.

3. Attempting to re-purchase yields this error: You already have a
pending order for this item.

Is anyone else seeing this behavior?  Things have been so quiet, I
wonder if anyone is even using in-app billing through Google.

Thanks,
Randall

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

2011-08-02 Thread SUDAM swain
Hi,
  I want dynamic font size in android application. for
different resolution it will atomotic re-size. please help me.

-- 


Thanks and Regards
Sudam Swain

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

2011-08-02 Thread nicoletto
Hi there,
I've spent days already trying to sort out this topic. Basically I'm
recording audio in PCM and when the user clicks on Play I want to
play the recorded audio but applying some effect.
Basically, prior to do
   track.write(data, 0, maxlength);
I want to apply some kind of transformation to the data array which
is going to be pushed to the Audio h/w.
Do you know if there's any example of any kind of sound effect applied
in this context?
Do you know any easy to use C/C++ library to be integrated using NDK
(if he previous question doesn't have any answer)??
Thank you for your help.

Any answer will be welcomed.. even if it's I don't know :)

Nico

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

2011-08-02 Thread zahiritpro
@TreKing:Can i get the source code of any good gallery application so
that i can add few features and submit as a mini project...

On Jul 30, 1:45 am, TreKing treking...@gmail.com wrote:
 On Wed, Jul 27, 2011 at 2:29 PM, zahiritpro zahirit...@gmail.com wrote:
  How to develop an application that would modify the existing gallery of the
  installed device by adding some additional toolsPlease let me know as
  soon as possible.

 What kind of answer are you expecting?

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Re: adb serving a limited number of devices attached to PC via USB

2011-08-02 Thread Matthias Braun
I am also interested in the maximum number of devices adb can serve. Is 
there a maximum number at all?

Best regards,
Matthias

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

2011-08-02 Thread tgr


I'm trying to set the maximum time to lock with 
DevicePolicyManager.setMaximumTimeToLock(), but this seems to have no 
effect. Admin-mode is enabled and lockNow() works without a problem. Is 
there anything else which needs to be done to use setMaximumTimeToLock() ?

I want to set the time to lock based on my location. I.e. when at home I 
want to lock the screen after 60 min, at work after 20 min, so I don't have 
to type my password so often in a trusted environment.

tgr

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

2011-08-02 Thread TreKing
On Mon, Aug 1, 2011 at 8:53 AM, zahiritpro zahirit...@gmail.com wrote:

 @TreKing:Can i get the source code of any good gallery application so that
 i can add few features and submit as a mini project...


IDK - look at the Android source, assuming the default image viewer app is
in there, or Google around for open source Android gallery or something.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Verification for vibration on devices using API Level within range 4-13

2011-08-02 Thread bbbreimmm
Hi!

I'm currently working on an Android port of an iOS game for the studio
I'm am working at. I am trying to incorporate the in-game vibration
function we have inside the original project and I am kind of running
into a wall with that right now. In our main menu screen we have an
option for the user to turn on and off the vibration as he pleases. If
the device cannot support that feature, we simply put an unavailable
tag right next to it instead of the selection button. We want the
application's minSdkVersion to be 4. Searching around the google group
and Stack Overflow, I have found that prior to Honeycomb all devices
should be equipped with this feature. On the other hand, for devices
with API Level 11 and up I need to verify that the device the
application is currently running on actually has a vibrator. I began
writing this little code snippet:

public boolean CanVibrate()
{
int mCurrentApiVersion = android.os.Build.VERSION.SDK_INT;

if (mCurrentApiVersion = 11 /
*android.os.Build.VERSION_CODES.HONEYCOMB*/)
{
return mVibrator.hasVibrator();
}
else
{
return true;
}
}

Since the hasVibrator() function didn't exist before HoneyComb, I fear
the game will crash at runtime or will not boot at all on older
versions... I have no idea how this verification can be made and work
on all those very different devices. Any clue how this could be
solved?

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] hi how to attach a file in own gmail function

2011-08-02 Thread aparna rani
hii i am implement the one gmail function for sending file
public void addAttachment(String filename) throws Exception {
 BodyPart messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(filename);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(filename);
_multipart.addBodyPart(messageBodyPart);

BodyPart messageBodyPart2 = new MimeBodyPart();
messageBodyPart2.setText(subject);

_multipart.addBodyPart(messageBodyPart2);
}
public synchronized void sendMail(String subject, String body, String
sender, String recipients) throws Exception {
try{
MimeMessage message = new MimeMessage(session);
DataHandler handler = new DataHandler(new
ByteArrayDataSource(body.getBytes(), text/csv));
addAttachment(/sdcard/BarcodeScanner/Purchase/indela.csv);
message.setSender(new InternetAddress(sender));
message.setSubject(subject);
message.setContent(_multipart);
message.setDataHandler(handler);
message.setContent(_multipart);
if (recipients.indexOf(',')  0)
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(recipients));
else
message.setRecipient(Message.RecipientType.TO, new
InternetAddress(recipients));
Transport.send(message);
}catch(Exception e){

}
}

with out attachment its working fine.
with attachment it take file. that file name is noname.
in side file content is this is body
please help me what is wrong in my project.
this project i am testing in samsung galaxy fit s5670.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Publish .APK on a website, not in Android Market?

2011-08-02 Thread Nick Risaro
On Mon, Aug 1, 2011 at 8:15 PM, Molly_G mollygar...@gmail.com wrote:

 I need to limit the audience of an Android app I'm working on. Is it
 possible to publish the .apk on my password-secured mobile website for
 users to download directly?

 Yes


 Also, what's the process like on the users' side? Do they need to go
 through a Download Manager, etc. to get the app?

 The user navigates to your website, enters user/pass, and downloads the
apk, then he installs the apk (some browsers start the install after
downloading) .

Any examples and info would be much appreciated.

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

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

2011-08-02 Thread mrqzzz
Hi.
I have red this : http://chillingeffects.org/N/60788 but I am
wondering if there is a clear limit beyond wich an app containing
music for ringtones infranges the RIAA rules.
I searched a lot but was unable to find this information clearly
written.

Can anyone point me (and others having the same question) to the right
direction ?

For ex: if i publish an app capable of playing and/or setting as
ringtone a piece of old movies or TV series soundtracks, am I
infranging the law ?

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

2011-08-02 Thread guruk
Hi there,

my app My Days does include Widgets. Now after an update (did not changed 
anything in the WidgetCode)
Just compiled with the new 2.2 sdk rather before the 1.6 sdk

I get complains from Users with Wildfire s, that the widgets do not work at 
a all after the update?

What could that be... what is again so special on just that device?

Thx
chris

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

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2011-08-02 Thread Ash McConnell
It's because Android implemented Java.io.File and didn't include 
File.setReadable until API 9 (I am using API 8)

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

[android-developers] Advanced Android training

2011-08-02 Thread darrinps
Can anyone recommend an advanced Android training course, preferably
in the Dallas or DC area but on-line instructor led is fine, that they
have attended?

 Not a whole lot out there from what I can see.

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

2011-08-02 Thread Jim Graham
On Tue, Aug 02, 2011 at 06:39:07AM -0700, mrqzzz wrote:

 I am
 wondering if there is a clear limit beyond wich an app containing
 music for ringtones infranges the RIAA rules.

First, I am NOT a lawyer (thank God!), and this is second-hand
information, so you should confirm it.

However, while I was going through cancer the first time around (it may
be back...still waiting to get tested), and it tried and tried to kill
me, each time (obviously) without success, I wanted to use one line from
Rooster (Ain't found a way to kill me yet)  So I asked them
(official contact, not the band) for permission to use that one line.
The response was that, if I was using 10 seconds or less of anyone's
work, I didn't even have to ask.  Anything beyond that, I needed to get
permission to use it.

Hope this helps.

Later,
   --jim

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

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

2011-08-02 Thread TreKing
On Tue, Aug 2, 2011 at 8:10 AM, katy katy.e...@gmail.com wrote:

 Does anyone know if there is a plan to eventually add that feature to the
 android MapView class, and when that might happen?


No idea, but don't hold your breath - the maps api has not been updated in
years now.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

RE: [android-developers] Where are the music production apps?

2011-08-02 Thread bmjg
DSP (digital signal processing) needs to be real-time, i.e. perform without
any noticeable lag. Android does not deliver that level of performance yet.
If I remember correct someone from the Android team commented at the last
Google IO conferences that they are working on that though. So let's hope
things get better in Android 4.

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

2011-08-02 Thread bmjg
Google I/O 2011: Fireside chat with the Android developers
https://catch.com/m/BhcQ7/CYqbSKBVqx_

Q: Audio latency being addressed? 

A: Yes it's a big problem, hope to address in ICS. It's a complex problem.
Most latency introduced in drivers and so on below Android. CDD Gingerbread
had some 'should hit x latency goal' items.

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

2011-08-02 Thread kypriakos

Well that's what I was actually aiming at and I think we agree -
OnNewIntent is afterall a method in the Activity called by the
underlying
framework on each launching - makes sense! Thanks NE

On Aug 1, 9:56 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, Aug 2, 2011 at 4:18 AM, kypriakos demet...@ece.neu.edu wrote:

  You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP
  flag. Then when you call startActivity() again, a new instance
  won't be created, the intent will be delivered to onNewIntent().

  So if I still have a handle to the intent when I relaunch it as you
  describe above, would I still be able to call methods on it.

 You can make a new intent every time, and change the data/extras
 as needed. Then in your Activity's onNewInent() you look at each
 received intent's contents and decide what to do.  Calling methods
 on an Intent doesn't communicate with the Activitiy, you need to
 deliver the intent.

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

2011-08-02 Thread kypriakos

Actually one more question - since I want the Activity to keep alive
with the camera preview on, would the subsequent Intent launching
(and calls to OnNewIntent) allow me to control the open preview. I
think
yes since the Activity (unless I call finish()) should still be active
right?

On Aug 1, 9:56 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, Aug 2, 2011 at 4:18 AM, kypriakos demet...@ece.neu.edu wrote:

  You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP
  flag. Then when you call startActivity() again, a new instance
  won't be created, the intent will be delivered to onNewIntent().

  So if I still have a handle to the intent when I relaunch it as you
  describe above, would I still be able to call methods on it.

 You can make a new intent every time, and change the data/extras
 as needed. Then in your Activity's onNewInent() you look at each
 received intent's contents and decide what to do.  Calling methods
 on an Intent doesn't communicate with the Activitiy, you need to
 deliver the intent.

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

2011-08-02 Thread Nikolay Elenkov
On Tue, Aug 2, 2011 at 11:29 PM, kypriakos demet...@ece.neu.edu wrote:

 Actually one more question - since I want the Activity to keep alive
 with the camera preview on, would the subsequent Intent launching
 (and calls to OnNewIntent) allow me to control the open preview. I
 think
 yes since the Activity (unless I call finish()) should still be active
 right?


As long as you don't start another activity, your preview activity
should stay in the foreground. How well that will work with
controlling the actual preview, I don't know. Try it out.

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