[android-developers] Using AOA 2.0 HID support, can accessory device send the multi touch events and gestures to android device?

2012-08-22 Thread Prabudas


Hi, Using AOA 2.0 HID support, can accessory device send the multi touch 
events and gestures to android device? Thanks. 

Regards,

Prabudas S.

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

Re: [android-developers] Advertisement in Android application

2012-08-22 Thread Rocky
Budget is not required, if you wanted to put some ads in your apps,

go with Admob

On Wed, Aug 22, 2012 at 10:04 AM, Krishna Mahadik krishna.maha...@gmail.com
 wrote:

 Hi Guys,

 I want to put advertisement space in an Android application. I don't
 budget for buying any licencing. Any leads for the same.

 Thanks  Regards,
 Krishna V. Mahadik

 --
 --
 . \\\///
 .   /\
 .   | \\   // |
 . ( | (.) (.) |)
 --o00o--(_)--o00o-

 Yesterday is not ours to recover, but
 tomorrow is ours to win or to lose.

 ---ooo0---
 .   (   )   0ooo
 .\ (  (   )
 . \_) ) /
 .(_/

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

[android-developers] Dynamically displaying images

2012-08-22 Thread Ambika Kulkarni
Dear Android Folks,

I want to display an imnage dynamically. The problem statement is as below.

I am displaying the order details. With this i am displaying the order 
status. So the order status will be (New, Pending, Completed). Right now i 
am displaying the status with text, such as


Something like this. I want to display an image, something like a small 
FALG instead of that test. 

I have 3 images
New - new.jpeg
Process - process.jpeg
Completed-completed.jpeg

I have stored these images in layouts/drawable folder of my project.
Status are different from one to other oders. When my activity is loaded i 
want to display an images instead of these TEXT.

I hope you have understood my prob statement.

Can someone come forward and suggest me with some code.

Thanks for your patience and support
Warm REgards
Ambika

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

[android-developers] error in new activity

2012-08-22 Thread Ehsan Sadeghi
I create an activity Hoghoughi but when i try to start it an error raise : 

08-22 05:50:08.890: E/AndroidRuntime(608): FATAL EXCEPTION: main
08-22 05:50:08.890: E/AndroidRuntime(608): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Hoghoughi}: 
java.lang.NullPointerException
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.os.Handler.dispatchMessage(Handler.java:99)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.os.Looper.loop(Looper.java:137)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.ActivityThread.main(ActivityThread.java:4745)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
java.lang.reflect.Method.invokeNative(Native Method)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
java.lang.reflect.Method.invoke(Method.java:511)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
dalvik.system.NativeStart.main(Native Method)
08-22 05:50:08.890: E/AndroidRuntime(608): Caused by: 
java.lang.NullPointerException
08-22 05:50:08.890: E/AndroidRuntime(608): at 
ir.smspeik.sms.Hoghoughi.onCreate(Hoghoughi.java:23)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.Activity.performCreate(Activity.java:5008)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
08-22 05:50:08.890: E/AndroidRuntime(608): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)

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

[android-developers] background intent

2012-08-22 Thread Ehsan Sadeghi
How can I run an activity in background and minimized it until invoke that?

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

Re: [android-developers] background intent

2012-08-22 Thread Dianne Hackborn
Activities don't run in the background.  That is what services (and/or
broadcast receivers) are for.

On Tue, Aug 21, 2012 at 11:19 PM, Ehsan Sadeghi esade...@gmail.com wrote:

 How can I run an activity in background and minimized it until invoke that?

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




-- 
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] background intent

2012-08-22 Thread Asheesh Arya
use service instead of activity!! and invoke your service using broad cast
receiver like using phone state(offhook)

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

2012-08-22 Thread Rahul Kaushik
Detail

I am able to insert an item in android calendar, to avoid the duplicate
entries am saving the event id of item in shared prefrences as an array(A).

Problem
when i insert, new item in Android calendar, saved array(A) should also add
the new item event id of a new item.How to do the same?

Also,

1.is there any limit in shared prefernce to save the array ??
2.is there any other way to check duplicate entries before adding them in
android calendar, i don't want to use database.

Please suggest

Thanks
RK

On Mon, Aug 20, 2012 at 10:51 PM, Adel Nizamutdinov stiggp...@gmail.comwrote:

 use database


 On Monday, 20 August 2012 17:26:55 UTC+4, rahul kaushik wrote:

 i want to add dynamic array ion shared prefrence
 please suggest

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Getting started with Android. Love the overall system architecture and SDK except for one thing...

2012-08-22 Thread Dianne Hackborn
I'm curious about this:

On Sun, Aug 19, 2012 at 9:17 AM, rmz76 jeremy.de...@gmail.com wrote:

 I'll give an example of such a feature: Horizontal view swiping. From the
 official Android Play store to the CNN App, this is probably the most
 common navigation we're seeing for dealing with menus on Android. It's
 beautiful, it's also a pain in ass to implement. After much searching I
 found an article on this on the official site


 http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html


 I can open the source example and understand what's going on but my
 question is why does it take pages and pages of foundation code to
 implement something that should be core?


There is literally 15 lines of code in that article, with another 3 lines
of XML.  Is that really pages and pages of foundation code?  The code is
implementing a FragmentPagerAdapter subclass with two methods, one to
report how many pages there are, and the second to generate the pages.  I'm
not sure how this could be simpler...?

It is true that for each page you do need to implement a Fragment subclass
that contains your UI, so there is a little more code for that.  But it's
not huge.  And if you really don't want to use fragments, that document
also shows that you can actually pretty easily implement a custom
PagerAdapter that generates raw views for the pages.

There must be something I am missing here...?


 View transitions are another good example. Let's say I want my view to
 fade in or out or that I want it to rotate in 3D (just do a simple flip or
 slide in and out). I don't understand why the developer has to go so low
 level to accomplish these sort of task. I'm hoping perhaps I missed
 something and that there are wrappers for common transforms, etc...


Fwiw view transitions are a lot easier starting with 3.0's new animation
framework.

-- 
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] How to get battery usage from cpu usage in android

2012-08-22 Thread Dianne Hackborn
There isn't an API to retrieve this.  The computation done for the battery
stats UI is a complicated approximation (taking into account CPU stepping
etc to some degree) that is very much an approximation.  It is not accurate
enough that I would want it available through an API.

On Tue, Aug 21, 2012 at 8:53 PM, thejaswi s thejasw...@gmail.com wrote:

  A bove link suggested by  Asheesh arya  saying about present technology ,
 plugged, scale, health, voltage, level, temperature, status . but not
 about how much battery is consuming to process cpu cycles. So please tel me
 how cpu usage related with battery usage using a equation.


 On Tue, Aug 21, 2012 at 5:09 PM, Asheesh Arya asheesharya...@gmail.comwrote:

 just go through this link might be you get some idea
 http://www.krvarma.com/2010/07/getting-battery-information-in-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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: openRawResource: does compressed files in APK get uncompressed completely?

2012-08-22 Thread Dianne Hackborn
The 1MB limit was for reading any compressed file.  There is really no
distinction between assets and resources in this regard.  That said, you
can pre-compress your data and store it with say a .zip extension (so there
is no attempt to try to compress it again), and then de-compress the data
yourself when reading it.

On Tue, Aug 21, 2012 at 3:56 PM, Tamás Kovács
falcon.firebre...@gmail.comwrote:

 Thanks, Dianne.

 Was the 1MB limitation removed in case of *assets* as well, or only
 for *resources*?

 On Aug 22, 12:28 am, Dianne Hackborn hack...@android.com wrote:
  Prior to I think Gingerbread, it would entirely uncompress in memory
 with a
  limit on the amount of memory it would use (I think 1MB) above which the
  open would fail.  On current versions of the platform it uncompression is
  streamed as you read it with no limit on size.
 
  On Tue, Aug 21, 2012 at 1:25 PM, Tamás Kovács
  falcon.firebre...@gmail.comwrote:
 
 
 
 
 
 
 
 
 
   Hello,
 
   I have a custom file format in res/raw, which means it will get
   compressed in APK.
 
   Question:
 
   Assume my application is installed on the device. When I open a file
   via openRawResource(), does it completely uncompress the file in the
   memory?
 
   E.g. if it's a 3MB file, will it uncompress it in memory? If I only
   need 10KB data from a certain offset (and I reach it via
   BufferedInputStream.skip), will it still consume 3MB when
   openRawResource() is called?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, 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




-- 
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] Syncing Database

2012-08-22 Thread gjs
Hi,

Simply create a hash of each table row then compare the hash values between 
the two phones, if the hash is different or missing one or both of the two 
rows needs updating. Insert or delete missing rows is easy - maybe, but 
trouble is which row(s) / column(s) to update (?) maybe you can work this 
out based on consistent timestamps between the two phones. Otherwise you 
could work this out by having audit tables that log changes for each row  
column of your real tables. Exchanging the data is the easy part either by 
bluetooth or wifi as suggested.

Regards

On Wednesday, August 22, 2012 8:01:56 AM UTC+10, TreKing wrote:

 On Tue, Aug 21, 2012 at 9:12 AM, Arijit Das das.ar...@gmail.comjavascript:
  wrote:

 Yes, the question is how to do the sync between two android phones?


 That's a loaded question. What specifically do you need help with?


 -
 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] related to Socket Connection (Bluetooth)

2012-08-22 Thread surabhi jain
hi all

I want to learn socket connection(Bluetooth) in android.
so if you have any document or link please send me.

Thanks
Surabhi Jain

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

2012-08-22 Thread Ehsan Sadeghi
I have this 
public class ReceiveSms extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent)
{
//---get the SMS message passed in---
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str = ;
if (bundle != null)
{
//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get(pdus);
msgs = new SmsMessage[pdus.length];
for (int i=0; imsgs.length; i++){
msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
str += SMS from  + msgs[i].getOriginatingAddress();
str +=  :;
str += msgs[i].getMessageBody().toString();
str += \n;
}
//---display the new SMS message---
Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
//---launch the MainActivity---
Intent mainActivityIntent = new Intent(context, MainActivity.class);
mainActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(mainActivityIntent);
//---send a broadcast to update the SMS received in the activity---
Intent broadcastIntent = new Intent();
broadcastIntent.setAction(SMS_RECEIVED_ACTION);
broadcastIntent.putExtra(sms, str);
context.sendBroadcast(broadcastIntent);
}
}
}

but when application killed no sms is shown , but when application is 
running or is in background sms is shown.


در چهارشنبه 22 اوت 2012، ساعت 6:19:43 (UTC)، Ehsan Sadeghi نوشته:

 How can I run an activity in background and minimized it until invoke that?


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

[android-developers] How to get every time new/refreshed Current Location

2012-08-22 Thread Rajan
Hi,

i want to find the user's current location through GPS only.

but, my problem is : i don't want to use getLastKnownLocation() method.

b'cos some times when i am not able to get the current location at that 
time it will gives me a previous location detail, that is not acceptable 
for my app.

that is why, i want accurate  refreshed location detail every time (means, 
@ App start time, @ App resume time, @ restart time etc.)

how it is 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

Re: [android-developers] related to Socket Connection (Bluetooth)

2012-08-22 Thread Asheesh Arya
just go through these link
http://www.instructables.com/id/Android-talks-to-Arduino/step4/Change-Android-Bluetooth-Chat-sample-App/
http://jayxie.com/mirrors/android-sdk/resources/samples/BluetoothChat/index.html

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

[android-developers] Re: related to Socket Connection (Bluetooth)

2012-08-22 Thread Rajan
hope this will help you...

http://manojprasaddevelopers.blogspot.in/2012/02/bluetooth-data-transfer-example.html
 

www.cs.umd.edu/class/fall2010/CMSC498G/.../*Bluetooth*.pptx (For Concepts)

On Wednesday, 22 August 2012 12:38:16 UTC+5:30, surabhi jain wrote:

 hi all

 I want to learn socket connection(Bluetooth) in android.
 so if you have any document or link please send me.

 Thanks 
 Surabhi Jain


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Abnormal tip sorry,process com.google.process.gapps has stopped popup very often.

2012-08-22 Thread Maheswar Martha
Hi Robert,
 
Thanks for the reply.
 
No, we have not flashed a different version or replaced with older version 
of GAPPS. 
To confirm this we erased all the data by factory reset and then loaded the 
fresh software(APPS and MODEM builds).
But, still the problem is reproducible. The bug report is attached here.
 
I searched the android frameworks code for this sorry... message, but not 
found source location.
Do you have any idea about the source code from where we do pop up this 
sorry,process 
com.google.process.gapps has stopped message?
 
The real problem we are facing no crash logs when the message popup. Do you 
suggest any method to debug this kind of problems?
 
If you need any information , please let me know.
We will be waiting for your response.
 
Thanks,
Maheswar Martha
 

On Thursday, August 16, 2012 9:28:13 PM UTC+5:30, Robert Greenwalt wrote:

 Have you done anything to the device like flash a different version or 
 accept an OTA update?

 This often happens when you go backwards to a previous version because we 
 support database upgrades but not downgrades.

 A good idea in these cases is to use adb to capture a bugreport and see 
 what crashed.


 On Tue, Aug 14, 2012 at 5:52 AM, Maheswar Martha 
 martham...@gmail.comjavascript:
  wrote:

 Hi,
  
 Below abnormal tip is popping up while performing sync of gmail/google+.
  
 sorry,process com.google.process.gapps has stopped  ( See the attached 
 image)
  
 Problem reproduction procedure:
  
 sorry,process com.google.process.gapps has stopped
  

 We didn’t get any crash logs like tombstones or traces.txt. 

 The only traces observed in logcat(find the logcat log in the attachment):
 **

 ** **

 I/ActivityManager(  260): Process com.google.process.gapps (pid 609) has 
 died.

 ** **

 I/ActivityManager(  260): Kill com.google.android.youtube (pid 3167): 
 provider com.google.android.gsf.settings.GoogleSettingsProvider in dying 
 process com.google.process.gapps

  

 1. What could be reason for the problem?

 2. Do we have any fixes for this issue? If yes, can you provide the fix 
 details.

 3. any workaround?

  

 Thanks in advance.

  

 /Maheswar Martha

  

  

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




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

Debug logs:
[dumpsys: 0.3s elapsed]


== Running Application Services

-- APP SERVICES (dumpsys activity service all) --
SERVICE com.android.music/.MediaPlaybackService 418291f0 pid=925
  Client:
0 items in queue, currently at index -1
Currently loaded:
null
null
null
null
playing: false
actual: false
shuffle mode: 0

SERVICE com.google.android.location/.internal.server.NetworkLocationService 416b
8bc0 pid=(not running)

SERVICE com.android.smspush/.WapPushManager 417f2710 pid=718
  Client:
nothing to dump

SERVICE com.google.android.apps.maps/com.google.googlenav.appwidget.friends.Frie
ndsAppWidgetUpdateService 424a6da8 pid=1648
  Client:
nothing to dump

SERVICE com.android.contacts/.loadSim.LoadGroupService 41869608 pid=688
  Client:
nothing to dump

SERVICE com.zte.mobile.Mushroom3D/.Mushroom3D 418b7c00 pid=485
  Client:
State of wallpaper com.zte.mobile.Mushroom3D.Mushroom3D@413f1fe0:
  Engine com.zte.mobile.Mushroom3D.m@413f3c00:
mInitializing=false mDestroyed=false
mVisible=false mScreenOn=true mReportedVisible=false
mCreated=true mSurfaceCreated=true mIsCreating=false mDrawingAllowed=tru
e
mWidth=-1 mCurWidth=480 mHeight=-1 mCurHeight=800
mType=-1 mWindowFlags=16 mCurWindowFlags=16
 mWindowPrivateFlags=4 mCurWindowPrivateFlags=4
mVisibleInsets=[0,0][0,0] mWinFrame=[0,0][480,800] mContentInsets=[0,0][
0,0]
mConfiguration={1.0 0mcc0mnc en_US layoutdir=0 sw320dp w320dp h508dp nrm
l long port finger -keyb/v/h -nav/h s.4}
mLayout=WM.LayoutParams{(0,0)(fillxfill) gr=#33 ty=2013 fl=#318 pfl=0x4
fmt=2 wanim=0x10301e5}
mPendingXOffset=0.5 mPendingXOffset=0.5
mPendingXOffsetStep=0.1667 mPendingXOffsetStep=0.1667
mOffsetMessageEnqueued=false mPendingSync=false

SERVICE 

[android-developers] Wrong fragment onContextItemSelected

2012-08-22 Thread Michael Leung
Hi all,
  I got the problem for onContextItemSelected. I had 3 ListFragments. I
used Context Menu in the second Fragment. But onContextItemSelected in
first fragment is called.
Anyone has solution?

-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

[android-developers] Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-22 Thread B.Arunkumar
Hi,

 We have an app which is compiled for arm-v7 neon with appropriate
definitions in Application.mk and Android.mk. Is there any way to
prevent installation  on Non Neon devices with an appropriate message
Cannot install. Currently when I install the application by either
debug or run mode, the application installs on the device but when
opened. it crashes with an
ExceptionInInitializer error.

Thank you,
B.Arunkumar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-22 Thread B.Arunkumar
Hi,

   What about upload to the Google PlayStore? If we compile the app
for armv7 neon support, is it that Google PlayStore will automatically
restrict the app from being seen on non-neon devices?

Thank you,
B.Arunkumar

On Aug 22, 1:54 pm, B.Arunkumar awsnetworkrecor...@gmail.com
wrote:
 Hi,

      We have an app which is compiled for arm-v7 neon with appropriate
 definitions in Application.mk and Android.mk. Is there any way to
 prevent installation  on Non Neon devices with an appropriate message
 Cannot install. Currently when I install the application by either
 debug or run mode, the application installs on the device but when
 opened. it crashes with an
 ExceptionInInitializer error.

 Thank you,
 B.Arunkumar

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


[android-developers] Inflate DialogFragment in layout xml

2012-08-22 Thread naixx


I'm trying to inflate DialogFragment through xml like this.

fragment
android:id=@+id/my_id
android:layout_width=fill_parent
android:layout_height=fill_parent
class=com.example.MyDialogFragment 
/fragment

But when activity starts, an empty dialog frame is shown. When embedding 
fragment from the code - everything is fine (add or replace work good). But 
is it possible to do this from layout xml?

This is duplicate for 
http://stackoverflow.com/questions/12058766/dialogfragment-in-layout-xml

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

2012-08-22 Thread thejaswi s
Even I am looking for an approximate value of battery usage. is there any
method to do that.

On Wed, Aug 22, 2012 at 12:11 PM, Dianne Hackborn hack...@android.comwrote:

 There isn't an API to retrieve this.  The computation done for the battery
 stats UI is a complicated approximation (taking into account CPU stepping
 etc to some degree) that is very much an approximation.  It is not accurate
 enough that I would want it available through an API.


 On Tue, Aug 21, 2012 at 8:53 PM, thejaswi s thejasw...@gmail.com wrote:

  A bove link suggested by  Asheesh arya  saying about present technology
 ,plugged, scale, health, voltage, level, temperature, status . but not
 about how much battery is consuming to process cpu cycles. So please tel me
 how cpu usage related with battery usage using a equation.


 On Tue, Aug 21, 2012 at 5:09 PM, Asheesh Arya 
 asheesharya...@gmail.comwrote:

 just go through this link might be you get some idea
 http://www.krvarma.com/2010/07/getting-battery-information-in-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


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


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

2012-08-22 Thread Kristopher Micinski
That's a: no.

kris

On Wed, Aug 22, 2012 at 5:13 AM, thejaswi s thejasw...@gmail.com wrote:
 Even I am looking for an approximate value of battery usage. is there any
 method to do that.


 On Wed, Aug 22, 2012 at 12:11 PM, Dianne Hackborn hack...@android.com
 wrote:

 There isn't an API to retrieve this.  The computation done for the battery
 stats UI is a complicated approximation (taking into account CPU stepping
 etc to some degree) that is very much an approximation.  It is not accurate
 enough that I would want it available through an API.


 On Tue, Aug 21, 2012 at 8:53 PM, thejaswi s thejasw...@gmail.com wrote:

  A bove link suggested by  Asheesh arya  saying about present technology
 ,plugged, scale, health, voltage, level, temperature, status . but not about
 how much battery is consuming to process cpu cycles. So please tel me how
 cpu usage related with battery usage using a equation.


 On Tue, Aug 21, 2012 at 5:09 PM, Asheesh Arya asheesharya...@gmail.com
 wrote:

 just go through this link might be you get some idea
 http://www.krvarma.com/2010/07/getting-battery-information-in-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


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


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

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


[android-developers] Re: Android HTTP Server problem HEAD method

2012-08-22 Thread Jose Luis Larraz
I find one solution, implement my own ResponseContent with support for 
Users Content-Length
thats the code

public class MyCustomResponseContent implements HttpResponseInterceptor 
{

private final boolean overwrite;

/**
* Default constructor. The codeContent-Length/code or 
codeTransfer-  Encoding/code
* will cause the interceptor to throw {@link ProtocolException} if 
already present in the
* response message.
*/

public MyCustomResponseContent() 
{
this(false);
}

/**
* Constructor that can be used to fine-tune behavior of this 
interceptor.
*
* @param overwrite If set to codetrue/code the 
codeContent-Length/code and
* codeTransfer-Encoding/code headers will be created or updated if 
already present.
* If set to codefalse/code the codeContent-Length/code and
* codeTransfer-Encoding/code headers will cause the interceptor to 
throw
* {@link ProtocolException} if already present in the response message.
*
* @since 4.2
*/

public MyCustomResponseContent(boolean overwrite) 
{
super();
this.overwrite = overwrite;
}

/**
* Processes the response (possibly updating or inserting) 
Content-Length and Transfer-Encoding headers.
* @param response The HttpResponse to modify.
* @param context Unused.
* @throws ProtocolException If either the Content-Length or 
Transfer-Encoding headers are found.
* @throws IllegalArgumentException If the response is null.
*/

public void process(final HttpResponse response, final HttpContext 
context)throws HttpException, IOException 
   {
 if (response == null) 
 {
 throw new IllegalArgumentException(HTTP response may not be 
null);
 }
 if (this.overwrite) 
 {
 response.removeHeaders(HTTP.TRANSFER_ENCODING);
 response.removeHeaders(HTTP.CONTENT_LEN);
 }
 else 
 {
 if (response.containsHeader(HTTP.TRANSFER_ENCODING)) 
 {
 throw new ProtocolException(Transfer-encoding header 
already present);
 }
 /*
 if (response.containsHeader(HTTP.CONTENT_LEN)) 
 {
 throw new ProtocolException(Content-Length header already 
present);
 }
 */
 }
 ProtocolVersion ver = 
response.getStatusLine().getProtocolVersion();
 HttpEntity entity = response.getEntity();
 if (entity != null) 
 {
 long len = entity.getContentLength();
 if (entity.isChunked()  
!ver.lessEquals(HttpVersion.HTTP_1_0)) 
 {
 response.addHeader(HTTP.TRANSFER_ENCODING, 
HTTP.CHUNK_CODING);
 }
 else if (len = 0) 
 {
 response.addHeader(HTTP.CONTENT_LEN, 
Long.toString(entity.getContentLength()));
 }
 // Specify a content type if known
 if (entity.getContentType() != null  
!response.containsHeader(HTTP.CONTENT_TYPE )) 
 {
 response.addHeader(entity.getContentType());
 }
 // Specify a content encoding if known
 if (entity.getContentEncoding() != null  
!response.containsHeader(HTTP.CONTENT_ENCODING)) 
 {
 response.addHeader(entity.getContentEncoding());
 }
 }
 else if (!response.containsHeader(HTTP.CONTENT_LEN)) 
 {
 int status = response.getStatusLine().getStatusCode();
 if (status != HttpStatus.SC_NO_CONTENT  status != 
HttpStatus.SC_NOT_MODIFIED  status != HttpStatus.SC_RESET_CONTENT) 
 {
 response.addHeader(HTTP.CONTENT_LEN, 0);
 }
 } 
   }

}


El martes, 21 de agosto de 2012 12:31:32 UTC+2, Jose Luis Larraz escribió:

 Hello i had the next problem, i want to answer to a Head request with a 
 Content-Length. 

 I put an example

 HEAD /external/images/media/21.jpg HTTP/1.0

 getcontentFeatures.dlna.org: 1

 Host: 192.168.1.130:57645

 HTTP/1.1 200 OK

 Date: Tue, 21 Aug 2012 10:24:59 GMT

 Cache-Control: no-cache

 transferMode.dlna.org: Streaming

 contentFeatures.dlna.org: 
 DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=01;DLNA.ORG_CI=0

 Content-Type: image/jpeg

 Last-Modified: Sat, 25 Feb 2012 15:11:58 GMT

 Content-Length: 60909

 Accept-Ranges: bytes
 

 The problem comes when i try to put Content-Length: 60909, I always get 
 this exception Content-Length header already present.

 This is my code

 public void handle(HttpRequest request,
HttpResponse response,
HttpContext context) throws HttpException, 
 IOException 
 {
 String method = 
 request.getRequestLine().getMethod().toUpperCase(Locale.ENGLISH);

 if(method.equals(HEAD))
 {
 MimeType mimeType = 

Re: [android-developers] how to make updates to my app at store and alert users about new updates?

2012-08-22 Thread Hady Abd alkhalik


بتاريخ الجمعة، 17 أغسطس، 2012 UTC+2 10:14:15 ص، كتب TreKing:

 On Thu, Aug 16, 2012 at 2:18 AM, Hady Abd alkhalik 
 ibnser...@gmail.comjavascript:
  wrote:

 how can i  add any updates to my published application at google play and 
 inform mobiles which installed before my app about new updates?


 To make an update, read the documentation on the matter.
 To notify your users, post an update. If they have the option enabled on 
 their Google Play clients, they will get notified.


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

 could you provide me the documentation link?
thanks for your time 

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

[android-developers] Rubberband vs. Gloweffect with ListView (and thus AlertDialog.Builder for Spinners)

2012-08-22 Thread FBondarenko
Hi,

as we know, there are different mechanisms to show feedback when 
overscrolling a list. Samsung had the rubberband effect on Galaxy S2, but 
on S3 they switched back to a glow effect. HTC Sensation does not show any 
feedback when at the end of a list. This leads us to the point where many 
customers with many different devices have different feedbacks.

Is there a way to set the feedback for the whole application 
programmatically within the app, without overriding each and every View or 
Dialog that might use a ListView? The goal is to have the same feedback 
(preferably the rubberband effect) on all devices.

Thanks!

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

Re: [android-developers] How to draw line between 2 touch points on image view in android.

2012-08-22 Thread Tilottama Gulame
Thanks for reply.
I have seen
http://www.krvarma.com/2010/10/gesture-detection-in-android-part-1-of-2/
this link, it's not useful for my application.

On Tue, Aug 21, 2012 at 2:20 PM, Asheesh Arya asheesharya...@gmail.comwrote:

 just go through this link
 http://www.krvarma.com/2010/10/gesture-detection-in-android-part-1-of-2/

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




-- 
***
Don'w waste your life trying to impress other people.
Do what you love,love what you do.
***

Thanks  Regards
Tilottama Gulame

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

2012-08-22 Thread Juned Khan
checkout this links

http://iamvijayakumar.blogspot.in/2011/06/android-lazy-image-loader-example.html
http://stackoverflow.com/questions/4885469/dynamically-show-images-from-resource-drawable
http://stackoverflow.com/questions/8133055/android-displaying-image-and-text-dynamically-in-listview

Thanks

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

[android-developers] Re: VideoView seetTo() takes longer time to start video after pause

2012-08-22 Thread Ashutosh

did you get any solution for this issue, I am also facing it.

thanks for help

-ashutosh
On Thursday, February 3, 2011 11:59:54 AM UTC+5:30, kavitha wrote:

 Hi All,

 In my project I am playing video with VideoView and when incoming call is 
 there,I pause the video.

 But later it takes long time to resume playback.But it resumes to correct 
 point.

 Sometimes it says Video cannot be played while resuming.

 Is there any other way to handle pause() and resume() of VideoView.

 protected void onPause() {
 super.onPause();
 pos=videoView.getCurrentPosition();
 videoView.pause();
 }

 protected void onResume() {
 super.onResume();
 videoView.seekTo(pos);
 }

 Please help,it is urgent.

 Thanks
 Kavitha


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

2012-08-22 Thread Prabudas


I am also trying to do this using AOA 2.0. Do you have any idea about how 
to  send multi ouch event from external touch screen  to android device 
using AOA 2.0? Thanks.

 Prabudas S

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

[android-developers] Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123


I want to detect each time the user opens the app, by tap on home / desktop 
icon. There seem not to be a straight forward way to do it. Found a few 
workarounds but nothing seems to be really reliable.

Things like, extend application object and use method onCreate(), but 
this is not what I need because it's not called always when the user taps 
on the app's icon (can be just brought from the background), and also the 
application may be destroyed and recreated while running. Then 
Application.onCreate() will also be called.

There war also some approaches involving BroadcastReceiver and checking 
intent flags but everything seems to be also not quite reliable?

I need this because I want to track with Google Analytics, when the user 
opens the app.

Thanks

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

Re: [android-developers] Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 8:33 AM, user123 ivanschu...@gmail.com wrote:
 I want to detect each time the user opens the app, by tap on home / desktop
 icon. There seem not to be a straight forward way to do it. Found a few
 workarounds but nothing seems to be really reliable.

The invoking intent will have action android.intent.action.MAIN and
category android.intent.category.LAUNCHER.

 Things like, extend application object and use method onCreate(), but this
 is not what I need because it's not called always when the user taps on the
 app's icon (can be just brought from the background),

In this case onResume() will be called, but not onCreate.

 and also the
 application may be destroyed and recreated while running. Then
 Application.onCreate() will also be called.

You can differentiate this situation by the fact that in the first
invocation the Bundle passed to onCreate() is null. When the activity
is recreated onCreate receives a copy of the intent given to
onSaveInstanceState() before onStop() is called.

-- 
The flames are all long gone, but the pain lingers on

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread RichardC
I think you need to re-consider your definition of open. I use 
long-press-home 90% of the time to launch applications I use on a regular 
basis.

On Wednesday, August 22, 2012 12:33:29 PM UTC+1, user123 wrote:

 I want to detect each time the user opens the app, by tap on home / 
 desktop icon. There seem not to be a straight forward way to do it. Found a 
 few workarounds but nothing seems to be really reliable.

 Things like, extend application object and use method onCreate(), but 
 this is not what I need because it's not called always when the user taps 
 on the app's icon (can be just brought from the background), and also the 
 application may be destroyed and recreated while running. Then 
 Application.onCreate() will also be called.

 There war also some approaches involving BroadcastReceiver and checking 
 intent flags but everything seems to be also not quite reliable?

 I need this because I want to track with Google Analytics, when the user 
 opens the app.

 Thanks


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

[android-developers] How to get IP addresses of other Wifi enabled devices by using other hardware /Mac address?

2012-08-22 Thread Meena Rengarajan
This is my code. I used it in Android 2.3. From my code, i got Hardware/Mac 
address of other wifi enabled devices. Now what i have to do is , i have to 
find an Ip addresses of other Wifi enabled devices programmically by using 
this Mac address. How should i get an Ip address from these Mac address. 
Please can anyone help me here?

My Code :

 registerReceiver(new BroadcastReceiver()
{
  @Override
public void onReceive(Context c, Intent intent) 
{
 results = wifi.getScanResults();
 size = results.size();
 int i = 0;
str1 = new String[size];
for (ScanResult result : results)
{

str1[i] = result.BSSID +   + result.level;
i++;
}
ArrayAdapterStringadapter=new 
ArrayAdapterString(getApplicationContext(),android.R.layout.simple_list_item_1,str1);
lv.setAdapter(adapter);
}
 }, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
Open: launch clicking on icon, either in applications or on home. Doesn't 
this cover your case?

On Wednesday, August 22, 2012 2:04:59 PM UTC+2, RichardC wrote:

 I think you need to re-consider your definition of open. I use 
 long-press-home 90% of the time to launch applications I use on a regular 
 basis.

 On Wednesday, August 22, 2012 12:33:29 PM UTC+1, user123 wrote:

 I want to detect each time the user opens the app, by tap on home / 
 desktop icon. There seem not to be a straight forward way to do it. Found a 
 few workarounds but nothing seems to be really reliable.

 Things like, extend application object and use method onCreate(), but 
 this is not what I need because it's not called always when the user taps 
 on the app's icon (can be just brought from the background), and also the 
 application may be destroyed and recreated while running. Then 
 Application.onCreate() will also be called.

 There war also some approaches involving BroadcastReceiver and checking 
 intent flags but everything seems to be also not quite reliable?

 I need this because I want to track with Google Analytics, when the user 
 opens the app.

 Thanks



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

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 9:04 AM, RichardC
richard.crit...@googlemail.com wrote:
 I think you need to re-consider your definition of open. I use
 long-press-home 90% of the time to launch applications I use on a regular
 basis.

This shortcut does not change the way the activity is invoked, either
from scratch or resuming after being sent to the background.

 On Wednesday, August 22, 2012 12:33:29 PM UTC+1, user123 wrote:

 I want to detect each time the user opens the app, by tap on home /
 desktop icon. There seem not to be a straight forward way to do it. Found a
 few workarounds but nothing seems to be really reliable.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
But there doesn't seem to be a solution valid for all cases, then. 
onResume() will also be called each time I launch the activity. Or it's 
shown at the foreground, because something which was in front of it was 
closed. This is not what I want. onCreate() with LAUNCHER category will be 
called only when the app is indeed created, but this will not be always the 
case when user opens the app. And in the last case (Application onCreate) 
there's also the problem that the application will not necessarily be 
created when the user launches it. 

On Wednesday, August 22, 2012 2:00:51 PM UTC+2, casantos wrote:

 On Wed, Aug 22, 2012 at 8:33 AM, user123 ivans...@gmail.com javascript: 
 wrote: 
  I want to detect each time the user opens the app, by tap on home / 
 desktop 
  icon. There seem not to be a straight forward way to do it. Found a few 
  workarounds but nothing seems to be really reliable. 

 The invoking intent will have action android.intent.action.MAIN and 
 category android.intent.category.LAUNCHER. 

  Things like, extend application object and use method onCreate(), but 
 this 
  is not what I need because it's not called always when the user taps on 
 the 
  app's icon (can be just brought from the background), 

 In this case onResume() will be called, but not onCreate. 

  and also the 
  application may be destroyed and recreated while running. Then 
  Application.onCreate() will also be called. 

 You can differentiate this situation by the fact that in the first 
 invocation the Bundle passed to onCreate() is null. When the activity 
 is recreated onCreate receives a copy of the intent given to 
 onSaveInstanceState() before onStop() is called. 

 -- 
 The flames are all long gone, but the pain lingers on 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
I want to detect exactly when the user says, hey, let's open the app, and 
taps on the app's icon, not anything else. Is this hard to understand?

On Wednesday, August 22, 2012 1:33:29 PM UTC+2, user123 wrote:

 I want to detect each time the user opens the app, by tap on home / 
 desktop icon. There seem not to be a straight forward way to do it. Found a 
 few workarounds but nothing seems to be really reliable.

 Things like, extend application object and use method onCreate(), but 
 this is not what I need because it's not called always when the user taps 
 on the app's icon (can be just brought from the background), and also the 
 application may be destroyed and recreated while running. Then 
 Application.onCreate() will also be called.

 There war also some approaches involving BroadcastReceiver and checking 
 intent flags but everything seems to be also not quite reliable?

 I need this because I want to track with Google Analytics, when the user 
 opens the app.

 Thanks


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

Re: [android-developers] Re: Can't display GoogleMaps in application

2012-08-22 Thread Lloyd Carroll
It generated the same key I had and still doesn't show the maps. It shows 
the control with the compass and my location, just isn't getting map data.

On Tuesday, August 21, 2012 11:25:21 PM UTC-5, asheesh arya wrote:

 just try to regenerate google api key 


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

[android-developers] Re: Android Software Licensing

2012-08-22 Thread kj
The Android framework source code is Apache 
2.0http://www.apache.org/licenses/LICENSE-2.0.htmllicensed. Your code is 
whatever license you want to give it. You do not 
have to release any source code of your own. Any source code you used from 
other people should obey the licensing of that code, if it has any.

On Tuesday, August 21, 2012 10:35:21 AM UTC-4, Yashwant Patil wrote:

 Hi,
  
 I have a very basic question, may be very stupid one, regarding meaining 
 of open source in the context of Marketplace apps. 
  
 Is it so that once I publish my app in Marketplace, the sourcecode of 
 application indirectly becomes opensource?
  
 Any pointers, links are appreciated
  
 Regards
 Yashwant


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get IP addresses of other Wifi enabled devices by using other hardware /Mac address?

2012-08-22 Thread Parthi K
call Inetaddress method


InetAddress Address = InetAddress.getLocalHost();
System.out.println(Address);

On Wed, Aug 22, 2012 at 5:42 PM, Meena Rengarajan meenasoft...@gmail.comwrote:

 This is my code. I used it in Android 2.3. From my code, i got
 Hardware/Mac address of other wifi enabled devices. Now what i have to do
 is , i have to find an Ip addresses of other Wifi enabled devices
 programmically by using this Mac address. How should i get an Ip address
 from these Mac address. Please can anyone help me here?

 My Code :

  registerReceiver(new BroadcastReceiver()
 {
   @Override
 public void onReceive(Context c, Intent intent)
 {
  results = wifi.getScanResults();
  size = results.size();
  int i = 0;
 str1 = new String[size];
 for (ScanResult result : results)
 {

 str1[i] = result.BSSID +   + result.level;
 i++;
 }
 ArrayAdapterStringadapter=new 
 ArrayAdapterString(getApplicationContext(),android.R.layout.simple_list_item_1,str1);
 lv.setAdapter(adapter);
 }
  }, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
 }

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

2012-08-22 Thread Mark Liversedge
None of them are database as a service. They are Web app platforms or 
frameworks. I'll look elsewhere for advice. 

Thanks anyway. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 9:23 AM, user123 ivanschu...@gmail.com wrote:
 I want to detect exactly when the user says, hey, let's open the app, and
 taps on the app's icon, not anything else. Is this hard to understand?

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
boolean fromLauncher = savedInstanceState == null 
Intent.ACTION_MAIN.equals(intent.getAction()) 

intent.getCategories().contains(Intent.CATEGORY_LAUNCHER);

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


[android-developers] Vitamio plugin into project directory

2012-08-22 Thread Swap
hello
I am vitamio for Ogg streaming but it needs to install plugin first so Is 
there any way to include vitamio plugin into your Project folder
If not than how can i indicate to user that you need to install particular 
this plugin (ARM - 6 or ARM -7 with neo or without neo ).. 
IS there any way to check weather your device support vitamio or not?? like 
X86 and Arm -5 wont support it so thats why..

Waiting for reply

Thank you 

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

Re: [android-developers] how to make updates to my app at store and alert users about new updates?

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 4:43 AM, Hady Abd alkhalik
ibnserin2...@gmail.comwrote:

 could you provide me the documentation link?


http://developer.android.com/distribute/index.html

-
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: Dynamic Array

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 1:29 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote:

 Problem
 when i insert, new item in Android calendar, saved array(A) should also
 add the new item event id of a new item.How to do the same?


Get the array, update it, put it back.


 1.is there any limit in shared prefernce to save the array ??


Not that I'm aware of.


 2.is there any other way to check duplicate entries before adding them in
 android calendar, i don't want to use database.


I would consult the Android documentation on the Calendar API.

-
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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
This will not be executed always. Android lets apps running in the 
background, although user closed it. When you launch the app it will not 
necessarily be created.

On Wednesday, August 22, 2012 3:00:40 PM UTC+2, casantos wrote:

 On Wed, Aug 22, 2012 at 9:23 AM, user123 ivans...@gmail.com javascript: 
 wrote: 
  I want to detect exactly when the user says, hey, let's open the app, 
 and 
  taps on the app's icon, not anything else. Is this hard to understand? 

 @Override 
 public void onCreate(Bundle savedInstanceState) { 
 super.onCreate(savedInstanceState); 
 Intent intent = getIntent(); 
 boolean fromLauncher = savedInstanceState == null  
 Intent.ACTION_MAIN.equals(intent.getAction()) 
  
 
 intent.getCategories().contains(Intent.CATEGORY_LAUNCHER); 



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

[android-developers] I had android doubt.Please go to the link and give ur ideas.

2012-08-22 Thread Siva Kumar
Dear All,

  I had *android* doubt.Please go to the link and give ur ideas.

http://android.stackexchange.com/q/28096/12015



-- 
*Thanks  Regards,
Sivakumar.J*

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

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 2:17 AM, Rajan r.d.thak...@gmail.com wrote:

 i want accurate  refreshed location detail every time (means, @ App start
 time, @ App resume time, @ restart time etc.)

 how it is possible?


Use the GPS provider and wait patiently for it to find the user's location,
handling the cases when it takes a long time or fails completely.

-
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] simulate just onPause() without onStop()

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 12:04 AM, Ubuntu guy sam_...@yahoo.co.in wrote:

  Is there any easy way to simulate this scenario?


Show a dialog yourself.

-
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] simulate just onPause() without onStop()

2012-08-22 Thread Mark Murphy
On Wed, Aug 22, 2012 at 10:24 AM, TreKing treking...@gmail.com wrote:
 On Wed, Aug 22, 2012 at 12:04 AM, Ubuntu guy sam_...@yahoo.co.in wrote:

  Is there any easy way to simulate this scenario?

 Show a dialog yourself.

Last time I checked, a Dialog does not have any impact on an activity
lifecycle. A dialog-themed activity should work, though. One
quick-and-dirty way to get one of those to display is to call
startActivity() on an Intent that will result in a chooser.

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

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

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


[android-developers] Wifi sample

2012-08-22 Thread bob
 

Is there a built-in Wifi sample that does a scan and displays the Wifi 
devices as they are detected?

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

[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread Vivek Bhusal
Some body 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

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
I honestly don't see how this is not making sense to you.  All of
those services provide web backends that hook into a database that let
you query, insert, etc... through an (typically REST based) API.

How is that not a database as a service.

I don't think I've understood your question at all, but you don't
really seem receptive to receiving advice, so I doubt you'll get help
other places either..

I think the reason you are basically upset is that you want an API
that lets have low level database access through an API like JDBC or
something, but I honestly can't see why any of these solutions
wouldn't be basically isomorphic..

kris

On Wed, Aug 22, 2012 at 8:47 AM, Mark Liversedge liverse...@gmail.com wrote:
 None of them are database as a service. They are Web app platforms or 
 frameworks. I'll look elsewhere for advice.

 Thanks anyway.

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

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


[android-developers] Re: background intent

2012-08-22 Thread lbendlin
Check your manifest file and debug why your broadcast receiver isn't called 
when the app is closed.

On Wednesday, August 22, 2012 3:08:17 AM UTC-4, Ehsan Sadeghi wrote:

 I have this 
 public class ReceiveSms extends BroadcastReceiver{
 @Override
 public void onReceive(Context context, Intent intent)
 {
 //---get the SMS message passed in---
 //---get the SMS message passed in---
 Bundle bundle = intent.getExtras();
 SmsMessage[] msgs = null;
 String str = ;
 if (bundle != null)
 {
 //---retrieve the SMS message received---
 Object[] pdus = (Object[]) bundle.get(pdus);
 msgs = new SmsMessage[pdus.length];
 for (int i=0; imsgs.length; i++){
 msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
 str += SMS from  + msgs[i].getOriginatingAddress();
 str +=  :;
 str += msgs[i].getMessageBody().toString();
 str += \n;
 }
 //---display the new SMS message---
 Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
 //---launch the MainActivity---
 Intent mainActivityIntent = new Intent(context, 
 MainActivity.class);
 mainActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 context.startActivity(mainActivityIntent);
 //---send a broadcast to update the SMS received in the activity---
 Intent broadcastIntent = new Intent();
 broadcastIntent.setAction(SMS_RECEIVED_ACTION);
 broadcastIntent.putExtra(sms, str);
 context.sendBroadcast(broadcastIntent);
 }
 }
 }
 
 but when application killed no sms is shown , but when application is 
 running or is in background sms is shown.


 در چهارشنبه 22 اوت 2012، ساعت 6:19:43 (UTC)، Ehsan Sadeghi نوشته:

 How can I run an activity in background and minimized it until invoke 
 that?



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

Re: [android-developers] Re: Dynamically changing the language at runtime

2012-08-22 Thread authorwjf
Related to this same question, if it is not supported to change the locale 
outside of the built-in OS configurations, how can I request a language 
specific soft keyboard on-the-fly?  I don't necessarily need code, just a 
push in the right direction.

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

2012-08-22 Thread cham herbias
Thank you for the help nirav. i appreciate it.

On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.com wrote:

 Hello Cham,
 In my opinion Developer site is best..it has good examples..Also you can
 download API demos for each platform.You can learn lot from that demos..
 Best of luck..

 Regards,
 Nirav

 On Tue, Aug 21, 2012 at 2:29 PM, cham herbias cham.herb...@gmail.comwrote:

 I am a computer engineering student. Can you help me with some
 suggestions about basic android app? . I have a very basic background of
 android programming and i want to learn more.

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




 --
 Regards,

 Nirav Parmar.


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




-- 

   archie herbias
 http://www.earnmailer.com/link/6ab51cbaff12bf5f
http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
http://www.earnmailer.com/

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

Re: [android-developers] First android app

2012-08-22 Thread Michael Leung
Start with Notepad Example, that is good

On Thu, Aug 23, 2012 at 1:01 AM, cham herbias cham.herb...@gmail.comwrote:

 Thank you for the help nirav. i appreciate it.


 On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.comwrote:

 Hello Cham,
 In my opinion Developer site is best..it has good examples..Also you can
 download API demos for each platform.You can learn lot from that demos..
 Best of luck..

 Regards,
 Nirav

 On Tue, Aug 21, 2012 at 2:29 PM, cham herbias cham.herb...@gmail.comwrote:

 I am a computer engineering student. Can you help me with some
 suggestions about basic android app? . I have a very basic background of
 android programming and i want to learn more.

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




 --
 Regards,

 Nirav Parmar.


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




 --

archie herbias
  http://www.earnmailer.com/link/6ab51cbaff12bf5f
  http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
  http://www.earnmailer.com/

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




-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

2012-08-22 Thread Mark Liversedge
I have no problems. Database as a service is a relatively new concept. This 
article was useful 
http://www.readwriteweb.com/cloud/2011/01/7-cloud-based-database-service.php

I was hoping some of the devs here could share experiences of them, but I guess 
this is more of a coding forum. Not that there is anything wrong with that. 

I'm always open to advice. But was perhaps a little terse. The article you 
linked to didn't seem relevant and you didn't appear to have understood my 
question. 

But thanks anyway! 

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

2012-08-22 Thread cham herbias
im sorry. what do you mean notepad example?

On Wed, Aug 22, 2012 at 8:07 AM, Michael Leung michaelchi...@gmail.comwrote:

 Start with Notepad Example, that is good

 On Thu, Aug 23, 2012 at 1:01 AM, cham herbias cham.herb...@gmail.comwrote:

 Thank you for the help nirav. i appreciate it.


 On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.comwrote:

 Hello Cham,
 In my opinion Developer site is best..it has good examples..Also you can
 download API demos for each platform.You can learn lot from that demos..
 Best of luck..

 Regards,
 Nirav

 On Tue, Aug 21, 2012 at 2:29 PM, cham herbias cham.herb...@gmail.comwrote:

 I am a computer engineering student. Can you help me with some
 suggestions about basic android app? . I have a very basic background of
 android programming and i want to learn more.

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




 --
 Regards,

 Nirav Parmar.


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




 --

archie herbias
  http://www.earnmailer.com/link/6ab51cbaff12bf5f
  http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
  http://www.earnmailer.com/

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




 --
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage

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




-- 

   archie herbias
 http://www.earnmailer.com/link/6ab51cbaff12bf5f
http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
http://www.earnmailer.com/

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

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 10:58 AM, user123 ivanschu...@gmail.com wrote:
 This will not be executed always. Android lets apps running in the
 background, although user closed it. When you launch the app it will not
 necessarily be created.

I suggest you to get satisfied with what you have. The world is cruel.

--8--
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 Intent intent = getIntent();
 boolean fromLauncher = savedInstanceState == null 
 Intent.ACTION_MAIN.equals(intent.getAction()) 
 intent.getCategories().contains(Intent.CATEGORY_LAUNCHER);


-- 
The flames are all long gone, but the pain lingers on

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

2012-08-22 Thread Harri Smått
Study AsyncTask or spawn a regular Java Thread where you do XML fetch and
parsing. Now it's all written within onCreate method. It shouldn't be a
problem to find better examples on how to use them than I can give.

--
H
On Aug 22, 2012 5:38 PM, Vivek Bhusal vivekbhu...@gmail.com wrote:

 Some body 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

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

2012-08-22 Thread Kristopher Micinski
Well, in general I think people dislike buzzwords more than anything.
X as a service, can literally mean anything to any set of developers
that are willing to push the concept to back their company's newest
concept, shelling out a few grand to promote their piece of redundant
crap with a conference.

In general what confuses me about your question is that you seem to be
more stuck on the buzzword than the end goal.  Parse and Google App
Engine.

I'm also pretty skeptical that you can brush my answer off so quickly
when services I've mentioned are *included in the article you linked*!
:-)

Moreover, Parse offers a NoSQL based solution, same as any of the
people in this article, and AWS is another option.

Why would the Google developers have any opinion on this?  If you
check the history of the group you'll find that none of the Google
devs have ever endorsed a non Google product / backend, if they said
anything it would probably be to point you at a list of the same
things I did or point you at Google App Engine.

But the more underlying factor is that, you're talking about wanting a
database as a service, when what you really *should* be talking
about is the end use of that service in your app.  The reason people
have web backends is the same as any distributed system: replication,
(partial) consistency, and persistence.  What's more important is that
what you can do with your *app*, the problems you face with
implementing a distributed system the proper way across the landscape
of installations of your app will vary much more than the minor choice
of which backend provider to use.

By the way, assuming this is the use case for your app, you might also
look into cloud to device messaging, which sort of solves the problem
of polling these databases..

I don't think it's that I misunderstood, but you seem to be brushing
off real answers to your question in favor of solutions with the
buzzword database as a service tied to them, frequent of the mid
level managers you see in software companies :-) ...

kris

On Wed, Aug 22, 2012 at 11:12 AM, Mark Liversedge liverse...@gmail.com wrote:
 I have no problems. Database as a service is a relatively new concept. This 
 article was useful 
 http://www.readwriteweb.com/cloud/2011/01/7-cloud-based-database-service.php

 I was hoping some of the devs here could share experiences of them, but I 
 guess this is more of a coding forum. Not that there is anything wrong with 
 that.

 I'm always open to advice. But was perhaps a little terse. The article you 
 linked to didn't seem relevant and you didn't appear to have understood my 
 question.

 But thanks anyway!

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

2012-08-22 Thread Kristopher Micinski
By the way, if hope to get additional help anywhere, you should give a
concise set of reasoning as to why Parse and Google App Engine don't
fit the use case you're looking for, as all of the articles you seem
to consider as proving this service do so in a nosql based way based
on a mostly REST API, GAE and Parse work similarly enough to that that
the differences don't really matter..

kris

On Wed, Aug 22, 2012 at 11:24 AM, Kristopher Micinski
krismicin...@gmail.com wrote:
 Well, in general I think people dislike buzzwords more than anything.
 X as a service, can literally mean anything to any set of developers
 that are willing to push the concept to back their company's newest
 concept, shelling out a few grand to promote their piece of redundant
 crap with a conference.

 In general what confuses me about your question is that you seem to be
 more stuck on the buzzword than the end goal.  Parse and Google App
 Engine.

 I'm also pretty skeptical that you can brush my answer off so quickly
 when services I've mentioned are *included in the article you linked*!
 :-)

 Moreover, Parse offers a NoSQL based solution, same as any of the
 people in this article, and AWS is another option.

 Why would the Google developers have any opinion on this?  If you
 check the history of the group you'll find that none of the Google
 devs have ever endorsed a non Google product / backend, if they said
 anything it would probably be to point you at a list of the same
 things I did or point you at Google App Engine.

 But the more underlying factor is that, you're talking about wanting a
 database as a service, when what you really *should* be talking
 about is the end use of that service in your app.  The reason people
 have web backends is the same as any distributed system: replication,
 (partial) consistency, and persistence.  What's more important is that
 what you can do with your *app*, the problems you face with
 implementing a distributed system the proper way across the landscape
 of installations of your app will vary much more than the minor choice
 of which backend provider to use.

 By the way, assuming this is the use case for your app, you might also
 look into cloud to device messaging, which sort of solves the problem
 of polling these databases..

 I don't think it's that I misunderstood, but you seem to be brushing
 off real answers to your question in favor of solutions with the
 buzzword database as a service tied to them, frequent of the mid
 level managers you see in software companies :-) ...

 kris

 On Wed, Aug 22, 2012 at 11:12 AM, Mark Liversedge liverse...@gmail.com 
 wrote:
 I have no problems. Database as a service is a relatively new concept. This 
 article was useful 
 http://www.readwriteweb.com/cloud/2011/01/7-cloud-based-database-service.php

 I was hoping some of the devs here could share experiences of them, but I 
 guess this is more of a coding forum. Not that there is anything wrong with 
 that.

 I'm always open to advice. But was perhaps a little terse. The article you 
 linked to didn't seem relevant and you didn't appear to have understood my 
 question.

 But thanks anyway!

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

2012-08-22 Thread Mark Liversedge
You seem to be very aggressive and you know nothing of me. 

If you are skeptical of db as a service and have no experience of it then don't 
respond to a thread entitled 'recommended database as a service providers'. 

Fwiw Google's dbaas is still experimental. 

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

2012-08-22 Thread Satya Komatineni
If you are still looking for advice I have created a note a while ago called

How I have learned Android SDK: An authors note
http://www.satyakomatineni.com/item/3784

See if this is of some help
(Disclosure: Yes I do have a book on the subject)


http://satyakomatineni.com/android/training
http://satyakomatineni.com
http://androidbook.com
http://twitter.com/SatyaKomatineni

On Wed, Aug 22, 2012 at 11:13 AM, cham herbias cham.herb...@gmail.comwrote:

 im sorry. what do you mean notepad example?


 On Wed, Aug 22, 2012 at 8:07 AM, Michael Leung michaelchi...@gmail.comwrote:

 Start with Notepad Example, that is good

 On Thu, Aug 23, 2012 at 1:01 AM, cham herbias cham.herb...@gmail.comwrote:

 Thank you for the help nirav. i appreciate it.


 On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.comwrote:

 Hello Cham,
 In my opinion Developer site is best..it has good examples..Also you
 can download API demos for each platform.You can learn lot from that
 demos.. Best of luck..

 Regards,
 Nirav

 On Tue, Aug 21, 2012 at 2:29 PM, cham herbias 
 cham.herb...@gmail.comwrote:

 I am a computer engineering student. Can you help me with some
 suggestions about basic android app? . I have a very basic background of
 android programming and i want to learn more.

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




 --
 Regards,

 Nirav Parmar.


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




 --

archie herbias
  http://www.earnmailer.com/link/6ab51cbaff12bf5f
  http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
  http://www.earnmailer.com/

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




 --
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage

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




 --

archie herbias
  http://www.earnmailer.com/link/6ab51cbaff12bf5f
  http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
  http://www.earnmailer.com/

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


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

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 9:27 AM, Mark Murphy mmur...@commonsware.comwrote:

 Last time I checked, a Dialog does not have any impact on an activity
 lifecycle.


Wow, I could have sworn a dialog caused a pause, but just confirmed it
indeed does not. Thanks for the clarification!

-
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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Justin Anderson
Why are you wanting to detect this?  Perhaps there is a better way to
accomplish what you are trying to do

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


On Wed, Aug 22, 2012 at 9:14 AM, Carlos A. M. dos Santos 
unixma...@gmail.com wrote:

 On Wed, Aug 22, 2012 at 10:58 AM, user123 ivanschu...@gmail.com wrote:
  This will not be executed always. Android lets apps running in the
  background, although user closed it. When you launch the app it will
 not
  necessarily be created.

 I suggest you to get satisfied with what you have. The world is cruel.

 --8--
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  Intent intent = getIntent();
  boolean fromLauncher = savedInstanceState == null 
  Intent.ACTION_MAIN.equals(intent.getAction()) 
 
 intent.getCategories().contains(Intent.CATEGORY_LAUNCHER);
 

 --
 The flames are all long gone, but the pain lingers on

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

2012-08-22 Thread Michael Leung
the notepad example in android developer website

Regards,
Michael Leung
http://www.itblogs.info
On Aug 22, 2012 11:16 PM, cham herbias cham.herb...@gmail.com wrote:

 im sorry. what do you mean notepad example?

 On Wed, Aug 22, 2012 at 8:07 AM, Michael Leung michaelchi...@gmail.comwrote:

 Start with Notepad Example, that is good

 On Thu, Aug 23, 2012 at 1:01 AM, cham herbias cham.herb...@gmail.comwrote:

 Thank you for the help nirav. i appreciate it.


 On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.comwrote:

 Hello Cham,
 In my opinion Developer site is best..it has good examples..Also you
 can download API demos for each platform.You can learn lot from that
 demos.. Best of luck..

 Regards,
 Nirav

 On Tue, Aug 21, 2012 at 2:29 PM, cham herbias 
 cham.herb...@gmail.comwrote:

 I am a computer engineering student. Can you help me with some
 suggestions about basic android app? . I have a very basic background of
 android programming and i want to learn more.

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




 --
 Regards,

 Nirav Parmar.


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




 --

archie herbias
  http://www.earnmailer.com/link/6ab51cbaff12bf5f
  http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
  http://www.earnmailer.com/

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




 --
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage

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




 --

archie herbias
  http://www.earnmailer.com/link/6ab51cbaff12bf5f
  http://www.earnmailer.com/alert/confirm/6ab51cbaff12bf5f
  http://www.earnmailer.com/

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

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

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread lbendlin
On top of all that has been said before, the error message is actually 
correct.  the IF statement needs an equality operator  ( == ) , not an 
assignment operator ( = ) .

On Tuesday, August 21, 2012 5:34:38 PM UTC-4, Waheed Rafiq wrote:

 thank you both for guiding me in a straight path with regards to xml and 
 java , I was reading android online tutorial  , I guess i jump into the 
 deep end of newbie user section , 
 On Aug 21, 2012 10:22 PM, Lew lewb...@gmail.com javascript: wrote:

 As Kristopher said, Java source is in *.java files and XML is in 
 *.xml files.  

 Also, Java follows Java syntax:

   package com.foo.bar;

   public class FooBar 
   {
 public static void main(String [] args)
 {
   // ... etc.
 }
   }

 XML follows XML syntax:

   rootTag
 someOtherTag someAttribute=value
   yetAnotherTagcontent/yetAnotherTag
   moreTag id=more value=barfoo /
 /someOtherTag
   /rootTag

 Now, when someone new to Java and XML runs into a question, it is good 
 to search through the documentation for Java and for XML:

 http://docs.oracle.com/javase/
 http://www.w3schools.com/xml/default.asp

 Read and study the tutorials, etc.

 -- 
 Lew

 Waheed Rafiq wrote: 

 you defo got one thing right  I am confused -:)  I actually thought I 
 was writing code in java ?  so this now begs the question where do I write 
 the code if not in MyFirstApp.main  

 I am new to Java and XML 

 thanks for your prompt reply 
 Kristopher Micinsk wrote:

 You seem to be quite confused... You can't write an if statement
 inside XML, it's not interactive (computation), it's just static XML.

 What you need to do is put that in your java code,

 Waheed Rafiq wrote:
  Hi guys , I am new to android development
 
  for sometime I have try to resolve  the if statement issue within my 
 code
  but can't seem to understand why it does not work
 
  here is my code that I was learning from online tutorial
 
  RelativeLayout xmlns:android=http://schemas.**
 android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
 
  
  xmlns:tools=http://schemas.**android.com/toolshttp://schemas.android.com/tools
 
  android:layout_width=match_**parent
  android:layout_height=match_**parent 
 
  TextView
  android:id=@+id/textView1

  
 . . . [ snip ] . . . 
  

   android:text=Edit me  // on this line I name the button 
 Edit Me
 
  if(android.text=Hussian Waheed) android.text=Change Me; 
 // on
  this line I am trying to say if the button is Edit Me then change 
 this to
  Change Me
 
 
  all I get is a error stating my if statment requires a equal , I just 
 don't
  understand it. really would like someone to give me a better example 
 of how
  to change a button name to different button name.
 

  

  /
 
  /RelativeLayout

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



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

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread Mark Murphy
On Wed, Aug 22, 2012 at 12:02 PM, TreKing treking...@gmail.com wrote:
 On Wed, Aug 22, 2012 at 9:27 AM, Mark Murphy mmur...@commonsware.com
 wrote:

 Last time I checked, a Dialog does not have any impact on an activity
 lifecycle.

 Wow, I could have sworn a dialog caused a pause, but just confirmed it
 indeed does not. Thanks for the clarification!

Yeah, it surprised me too when I discovered it. It's one of those
things that I don't find supremely shocking in retrospect but went
against my initial instinct.

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

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

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


Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Justin Anderson

 On top of all that has been said before, the error message is actually
 correct.  the IF statement needs an equality operator  ( == ) , not an
 assignment operator ( = ) .


But in Java you aren't going to get the expected results using == on a
String object... you need to use the equals() method.

if (str1.equals(str2))
//Do something here

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


On Wed, Aug 22, 2012 at 10:17 AM, lbendlin l...@bendlin.us wrote:

 On top of all that has been said before, the error message is actually
 correct.  the IF statement needs an equality operator  ( == ) , not an
 assignment operator ( = ) .

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

2012-08-22 Thread Lloyd Carroll
Use == for starters in your conditional statement.
On Aug 21, 2012 3:42 PM, Waheed Rafiq wra...@gmail.com wrote:

 Hi guys , I am new to android development

 for sometime I have try to resolve  the if statement issue within my code
 but can't seem to understand why it does not work

 here is my code that I was learning from online tutorial

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;

 xmlns:tools=http://schemas.android.com/tools;

 android:layout_width=match_parent

 android:layout_height=match_parent 


 TextView

 android:id=@+id/textView1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_centerHorizontal=true

 android:layout_centerVertical=true

 android:padding=@dimen/padding_medium

 android:text=@string/hello_world

 tools:context=.MainActivity /


 Button

 android:id=@+id/button1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_below=@+id/textView1

 android:layout_centerHorizontal=true

 android:layout_marginTop=59dp

 android:text=Edit me  // on this line I name the button Edit Me

 if(android.text=Hussian Waheed) android.text=Change Me; // on
 this line I am trying to say if the button is Edit Me then change this to
 Change Me


 all I get is a error stating my if statment requires a equal , I just
 don't understand it. really would like someone to give me a better example
 of how to change a button name to different button name.


 thanks






/





 /RelativeLayout

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

2012-08-22 Thread Justin Anderson
Well, for one, the images should not be in a layouts/drawable folder...
They should be in res/drawable

How are you displaying your orders? Are they in a listview? Are you using
an adapter?  What have you tried so far?

It shouldn't be that hard to query the status of your order and then
display the appropriate image.  Based on what you said you would access the
drawables in code like so:

   - R.drawable.new
   - R.drawable.process
   - R.drawable.completed

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


On Wed, Aug 22, 2012 at 4:54 AM, Juned Khan jkhan6...@gmail.com wrote:

 checkout this links


 http://iamvijayakumar.blogspot.in/2011/06/android-lazy-image-loader-example.html

 http://stackoverflow.com/questions/4885469/dynamically-show-images-from-resource-drawable

 http://stackoverflow.com/questions/8133055/android-displaying-image-and-text-dynamically-in-listview

 Thanks

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


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

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Kumar Bibek
You are trying to write code in the layout xmls?

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Aug 22, 2012 at 10:35 PM, Lloyd Carroll lloyd.carr...@gmail.comwrote:

 Use == for starters in your conditional statement.
 On Aug 21, 2012 3:42 PM, Waheed Rafiq wra...@gmail.com wrote:

 Hi guys , I am new to android development

 for sometime I have try to resolve  the if statement issue within my code
 but can't seem to understand why it does not work

 here is my code that I was learning from online tutorial

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
 

 xmlns:tools=http://schemas.android.com/tools;

 android:layout_width=match_parent

 android:layout_height=match_parent 


 TextView

 android:id=@+id/textView1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_centerHorizontal=true

 android:layout_centerVertical=true

 android:padding=@dimen/padding_medium

 android:text=@string/hello_world

 tools:context=.MainActivity /


 Button

 android:id=@+id/button1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_below=@+id/textView1

 android:layout_centerHorizontal=true

 android:layout_marginTop=59dp

 android:text=Edit me  // on this line I name the button Edit Me

 if(android.text=Hussian Waheed) android.text=Change Me; //
 on this line I am trying to say if the button is Edit Me then change this
 to Change Me


 all I get is a error stating my if statment requires a equal , I just
 don't understand it. really would like someone to give me a better example
 of how to change a button name to different button name.


 thanks






/





 /RelativeLayout

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

2012-08-22 Thread Nadeem Hasan


 onPause() is called whenever there is a change in current foreground 
 Context. The outgoing Context gets onPause() and incoming context gets 
 onResume(). Showing a dialog does not change the Context. Starting a new 
 activity does. Starting a service is different since its always in the 
 background.

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

2012-08-22 Thread Kristopher Micinski
On Wed, Aug 22, 2012 at 11:40 AM, Mark Liversedge liverse...@gmail.com wrote:
 You seem to be very aggressive and you know nothing of me.

 If you are skeptical of db as a service and have no experience of it then 
 don't respond to a thread entitled 'recommended database as a service 
 providers'.

 Fwiw Google's dbaas is still experimental.


I am being partially agressive because you seem to be rejecting advice
that lines up with your questions, and you implied I didn't understand
your question.  It's unproductive to everyone on the list when you
reject advice by saying that's not what I want, specifically when
you can have no evidence to support why the answers given (in fact,
quite to the contrary). I think I've made a good case as to why you
could use Parse or Google App Engine, and it would be helpful if you
would provide an answer as to why these are unacceptable.  An answer
to this would allow refined answers from me and others on the list,
but instead you say that any of the services recommended are in beta
and find this unacceptable.

For what it's worth, Google App Engine's backend is used by thousands
of apps, a number of which are at the enterprise level, and Parse
(although you didn't take the time to read) is enterprise ready at the
moment.

You also provide a number of links to services you want, provided they
have REST APIs you can simply use Android's baked in support for
HttpClients and the like, which is generally what people do.

Furthermore, you still haven't answered the question as to why you
need this support in your app.  The point of this forum is providing
help with SDK related questions, so your entire subject is somewhat
off topic and inappropriate here, a more acceptable question might be
framed how do I use this web service X with the HttpClient
implementation, I've tried Y, but haven't had any luck because of Z,
and my main goal with using the service is to accomplish etc...

kris

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


Re: [android-developers] Need to register a broadcastReceiver for available WiFi networks as they become available

2012-08-22 Thread dica
Thanks asheesh, but that's not exactly what I'm after.  The user should 
have to actually join the network, I just want to know when new SSIDs 
become available so my app can respond accordingly.

On Wednesday, August 22, 2012 12:33:48 AM UTC-4, asheesh arya wrote:

 just go through this 
 linkhttp://www.krvarma.com/2010/07/getting-ip-address-of-the-device-in-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] simulate just onPause() without onStop()

2012-08-22 Thread Kristopher Micinski
For use cases more like these, although the Dialog example clearly
seems more appropriate (/ realistic), would just using instrumentation
be an option for you?  (As long as you are just talking about test
code, of course,...)

kris

On Wed, Aug 22, 2012 at 1:04 AM, Ubuntu guy sam_...@yahoo.co.in wrote:
 Hello,

I'm developing an application and need to quickly test a scenario
 where my activitiy's onPause() is invoked (without onStop()).
 As per the documentation, this is a scenario where a dialog is shown
 on top of my activity. I tried long press of power down button to pop
 up a dialog, however, it doesn't invoke a onPause() at all.

Is there any easy way to simulate this scenario?

 Thanks in advance ! ! !

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

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


Re: [android-developers] error in new activity

2012-08-22 Thread Justin Anderson

 08-22 05:50:08.890: E/AndroidRuntime(608): Caused by:
 java.lang.NullPointerException
 08-22 05:50:08.890: E/AndroidRuntime(608): at
 ir.smspeik.sms.Hoghoughi.onCreate(Hoghoughi.java:23)


You are trying to use something that is null in Hoghoughi.java on line
23... Start there.  And then learn how to read Java stack traces.

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


On Wed, Aug 22, 2012 at 12:14 AM, Ehsan Sadeghi esade...@gmail.com wrote:

 08-22 05:50:08.890: E/AndroidRuntime(608): Caused by:
 java.lang.NullPointerException
 08-22 05:50:08.890: E/AndroidRuntime(608): at
 ir.smspeik.sms.Hoghoughi.onCreate(Hoghoughi.java:23)


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 10:00 AM, Carlos A. M. dos Santos
unixma...@gmail.com wrote:
 On Wed, Aug 22, 2012 at 9:23 AM, user123 ivanschu...@gmail.com wrote:
 I want to detect exactly when the user says, hey, let's open the app, and
 taps on the app's icon, not anything else. Is this hard to understand?

 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 Intent intent = getIntent();
 boolean fromLauncher = savedInstanceState == null 
 Intent.ACTION_MAIN.equals(intent.getAction()) 
 intent.getCategories().contains(Intent.CATEGORY_LAUNCHER) 
   (intent.getFlags() 
Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) == 0;

Might help too.

-- 
The flames are all long gone, but the pain lingers on

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

2012-08-22 Thread Mark Liversedge
On Wednesday, August 22, 2012 6:11:26 PM UTC+1, Kristopher Micinski wrote:

 condescending diatribe


Do you know anything about DB as a service or have any experience of it? 
Otherwise, please find another thread. please. 

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

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
On Wed, Aug 22, 2012 at 1:45 PM, Mark Liversedge liverse...@gmail.com wrote:
 On Wednesday, August 22, 2012 6:11:26 PM UTC+1, Kristopher Micinski wrote:

 condescending diatribe


 Do you know anything about DB as a service or have any experience of it?
 Otherwise, please find another thread. please.


Yes, and I've worked on implementing distributed filesystems that run
at a FUSE abstraction layer over these services.

I'm afraid you've made yourself look unaccepting enough that you are
unlikely to get much help..

kris

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


[android-developers] connect to a certain Wifi network?

2012-08-22 Thread bob
 

Is there a function to connect to a certain Wifi network?


I'm looking for something like WifiManager.connect(String SSID);

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

2012-08-22 Thread Mark Liversedge
So no then.

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

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
Really?  Apparently not, we implemented filesystems over services
using Parse and Xeround for distributed cooperative caching in Android
apps at an API level, I guess those services don't meet your
standards, though.

On Wed, Aug 22, 2012 at 1:52 PM, Mark Liversedge liverse...@gmail.com wrote:
 So no then.

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

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

2012-08-22 Thread Kristopher Micinski
fwiw to do it over again I'd also have considered Heroku to do it over
again, and you might look into that...

kris

On Wed, Aug 22, 2012 at 1:56 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 Really?  Apparently not, we implemented filesystems over services
 using Parse and Xeround for distributed cooperative caching in Android
 apps at an API level, I guess those services don't meet your
 standards, though.

 On Wed, Aug 22, 2012 at 1:52 PM, Mark Liversedge liverse...@gmail.com wrote:
 So no then.

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

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

2012-08-22 Thread Mark Liversedge
On Wednesday, August 22, 2012 6:56:21 PM UTC+1, Kristopher Micinski wrote:

 Really?  Apparently not, we implemented filesystems over services 
 using Parse and Xeround for distributed cooperative caching in Android 
 apps at an API level, I guess those services don't meet your 
 standards, though. 

 Why Xeround, I looked at them and am interested. You didn't mention them 
earlier. Is that because you would hesitate to recommend 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] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
I wouldn't hesitate to recommend them, it sort of depends on what the
type of API you're looking for is.  Parse seems to have a little
easier (lightweight) JSON API that you can use really easy with
Android standard library stuff (think HttpClient, etc..).  It's also a
bit more nosql-y if you're into that, and Xeround is a bit more
heavyweight to integrate into the Android stuff, and (iirc) MySQL
based,

kris

On Wed, Aug 22, 2012 at 2:07 PM, Mark Liversedge liverse...@gmail.com wrote:
 On Wednesday, August 22, 2012 6:56:21 PM UTC+1, Kristopher Micinski wrote:

 Really?  Apparently not, we implemented filesystems over services
 using Parse and Xeround for distributed cooperative caching in Android
 apps at an API level, I guess those services don't meet your
 standards, though.

 Why Xeround, I looked at them and am interested. You didn't mention them
 earlier. Is that because you would hesitate to recommend 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

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

2012-08-22 Thread Narendra Singh Rathore
Hi all,
Please let me know how to view / focus the last item of the gridview on
some event, in case there are a lot of items in the gridview

For example, I have 100 items in my gridview, and currently 1st item is
having focus. I want to view the last (100th) item, on some event (*without
scrolling*), say click event.
Please direct me how to do that.

Thanks n Regards,
NSR

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

2012-08-22 Thread Mark Liversedge
On Wednesday, August 22, 2012 7:10:52 PM UTC+1, Kristopher Micinski wrote:

 I wouldn't hesitate to recommend them, it sort of depends on what the 
 type of API you're looking for is.  Parse seems to have a little 
 easier (lightweight) JSON API that you can use really easy with 
 Android standard library stuff (think HttpClient, etc..).  It's also a 
 bit more nosql-y if you're into that, and Xeround is a bit more 
 heavyweight to integrate into the Android stuff, and (iirc) MySQL 
 based, 

 kris 

 Thanks. That's really useful. Will also now go look at Heroku too - its 
completely new to me.

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

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
On Wed, Aug 22, 2012 at 2:23 PM, Mark Liversedge liverse...@gmail.com wrote:
 On Wednesday, August 22, 2012 7:10:52 PM UTC+1, Kristopher Micinski wrote:

 I wouldn't hesitate to recommend them, it sort of depends on what the
 type of API you're looking for is.  Parse seems to have a little
 easier (lightweight) JSON API that you can use really easy with
 Android standard library stuff (think HttpClient, etc..).  It's also a
 bit more nosql-y if you're into that, and Xeround is a bit more
 heavyweight to integrate into the Android stuff, and (iirc) MySQL
 based,

 kris

 Thanks. That's really useful. Will also now go look at Heroku too - its
 completely new to me.


Great!  Glad to see it resolved to something useful, there are lots of
these sexy new backends popping up, and (as far as I can tell) a lot
of them are built on top of things like amazon's services, etc..,
Heroku and Parse seem to be getting really good rep in the app world.
I personally haven't used GAE as much as other people here have (only
played around with it, and thought about problems that might arise
with it), but I know that's an option that's (nominally) geared toward
being easily integrated into apps as well, which is the only reason I
mention it,

kris

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


[android-developers] Re: Wifi sample

2012-08-22 Thread Jegadeesan M
Check this link 
http://grepsrc.com/search?q=Wifidefs=refs=path=hist=project=ics-mr1

On Wednesday, 22 August 2012 07:34:39 UTC-7, bob wrote:

 Is there a built-in Wifi sample that does a scan and displays the Wifi 
 devices as they are detected?


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

2012-08-22 Thread bob
 

Sounds like you have a widget member variable and forgot to call 
findViewById before using it.

On Wednesday, August 22, 2012 1:14:24 AM UTC-5, Ehsan Sadeghi wrote:

 I create an activity Hoghoughi but when i try to start it an error raise : 

 08-22 05:50:08.890: E/AndroidRuntime(608): FATAL EXCEPTION: main
 08-22 05:50:08.890: E/AndroidRuntime(608): java.lang.RuntimeException: 
 Unable to start activity 
 ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Hoghoughi}: 
 java.lang.NullPointerException
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.ActivityThread.access$600(ActivityThread.java:130)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.os.Looper.loop(Looper.java:137)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.ActivityThread.main(ActivityThread.java:4745)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 java.lang.reflect.Method.invokeNative(Native Method)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 java.lang.reflect.Method.invoke(Method.java:511)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 dalvik.system.NativeStart.main(Native Method)
 08-22 05:50:08.890: E/AndroidRuntime(608): Caused by: 
 java.lang.NullPointerException
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 ir.smspeik.sms.Hoghoughi.onCreate(Hoghoughi.java:23)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.Activity.performCreate(Activity.java:5008)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
 08-22 05:50:08.890: E/AndroidRuntime(608): at 
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)



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

2012-08-22 Thread bob
android.widget.GridView


public void setSelection (int position)
Since: API Level 1
Sets the currently selected item
Parameters
position
Index (starting at 0) of the data item to be selected. If in touch mode, 
the item will not be selected but it will still be positioned appropriately.





On Wednesday, August 22, 2012 1:17:27 PM UTC-5, Narendra Singh Rathore 
wrote:

 Hi all,
 Please let me know how to view / focus the last item of the gridview on 
 some event, in case there are a lot of items in the gridview
  
 For example, I have 100 items in my gridview, and currently 1st item is 
 having focus. I want to view the last (100th) item, on some event (*without 
 scrolling*), say click event.
 Please direct me how to do that.
  
 Thanks n Regards,
 NSR


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

2012-08-22 Thread rahul


I'm creating a media player app.

When I starts or resumes the application I want to check if the media 
player was already playing a song.

So that if it was I will set my Pause/Play ToggleButton to *Pause*, else it 
was not playing earlier then button will set to *Play*.

(i.e. for e.g. if the user was already using the media player and left the 
app by pressing home or back button  now he resumes the player. then the 
button should be configured correctly.)

The actual MediaPlayer object is implemented in the Service  all the 
communications are done via AIDL interface methods.

Right now,


   1. In onResume I'm calling an AsynTask method that will check all the 
   running services and check If my MusicService is also running.
   2. If yes then I'm calling an aidl method to check if 
   mediaPlayer.isPlaying() is true or not.
   3. If yes then the toggleButton will set to pause(i.e. currently 
   playing), else play.

*Problem:* This AsyncTask is creating a race condition. That is sometimes 
it runs as intended  sometimes it just throws error


// In onResume
protected void onResume() {
new PlayerStatusCheck().execute();
}

//AsyncTask Class
class PlayerStatusCheck extends AsyncTask {
boolean isServiceAvailable;
private boolean isMyServiceRunning() {
ActivityManager manager = (ActivityManager) 
getSystemService(Context.ACTIVITY_SERVICE);
for (RunningServiceInfo service : manager
.getRunningServices(Integer.MAX_VALUE)) {
if (com.example.playingworking.MusicService.class.getName()
.equals(service.service.getClassName())) {
return true;
}
}
return false;
}

@Override
protected Object doInBackground(Object... params) {
isServiceAvailable = isMyServiceRunning();
return null;
}

@Override
protected void onPostExecute(Object result) {
try {
if (!isServiceAvailable) {
doInBackground(null);
} else {
if (aidlObject.isMediaPlaying()) {
tbPlayPause.setChecked(true);
} else {
tbPlayPause.setChecked(false);
}
}
} catch (RemoteException e) {
Toast.makeText(MainActivity.this,
MainActivity onPostExecute:  + e.toString(),
Toast.LENGTH_SHORT).show();
}
}
}

*Code In MusicService :*
//In IBinder onBind()
public boolean isMediaPlaying(){
if(mediaPlayer.isPlaying()){
return true;
}
return false;
}

Please Suggest...Thanks

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

[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread bob


 *This is only thrown for applications targeting the Honeycomb SDK or 
 higher. Applications targeting earlier SDK versions are allowed to do 
 networking on their main event loop threads, but it's heavily discouraged.
 *


On Tuesday, August 21, 2012 5:47:45 AM UTC-5, Vivek Bhusal wrote:

 I am working on application where i 
 get android.os.NetworkOnMainThreadException error... I studied about this 
 error. which says, i can use network task in main program and similar.. i 
 need to use AsyncTask to do network related task in next thread...
 I even tried to use AsyncTask but couldnt figure out.. Can anyone here 
 help me with this problem. I have my code uploaded in 

 https://github.com/Vivekbhusal/RSSFEED 

 i have checked, application is working. i mean there is no problem in 
 application coding.. so you dont have correct other part of coding... 
 Also, when i deploy my application in Google API, it works perfectly fine, 
 but in other AVD it shows problem.

 Thanks in advance


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

[android-developers] Re: background intent

2012-08-22 Thread bob
 

Maybe try logging something?  I'm not sure you can do a Toast there.

On Wednesday, August 22, 2012 2:08:17 AM UTC-5, Ehsan Sadeghi wrote:

 I have this 
 public class ReceiveSms extends BroadcastReceiver{
 @Override
 public void onReceive(Context context, Intent intent)
 {
 //---get the SMS message passed in---
 //---get the SMS message passed in---
 Bundle bundle = intent.getExtras();
 SmsMessage[] msgs = null;
 String str = ;
 if (bundle != null)
 {
 //---retrieve the SMS message received---
 Object[] pdus = (Object[]) bundle.get(pdus);
 msgs = new SmsMessage[pdus.length];
 for (int i=0; imsgs.length; i++){
 msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
 str += SMS from  + msgs[i].getOriginatingAddress();
 str +=  :;
 str += msgs[i].getMessageBody().toString();
 str += \n;
 }
 //---display the new SMS message---
 Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
 //---launch the MainActivity---
 Intent mainActivityIntent = new Intent(context, 
 MainActivity.class);
 mainActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 context.startActivity(mainActivityIntent);
 //---send a broadcast to update the SMS received in the activity---
 Intent broadcastIntent = new Intent();
 broadcastIntent.setAction(SMS_RECEIVED_ACTION);
 broadcastIntent.putExtra(sms, str);
 context.sendBroadcast(broadcastIntent);
 }
 }
 }
 
 but when application killed no sms is shown , but when application is 
 running or is in background sms is shown.


 در چهارشنبه 22 اوت 2012، ساعت 6:19:43 (UTC)، Ehsan Sadeghi نوشته:

 How can I run an activity in background and minimized it until invoke 
 that?



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

[android-developers] NDK in MacOS

2012-08-22 Thread Ricardo Santos
Hello Everyone!

  I am trying to compile a code using the ndk on MacOS and I am having a
problem with the path, I think.
  When I call ndk-build on the project directory, I get the message that it
can`t find the build-local.mk on my user directory, but it should be
looking on its own directory. Does anyone knows how to solve this problem?

Ricardo Santos

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