Re: [android-developers] Share data between an activity and an event listener (separate class file)

2012-06-29 Thread StSch
I maybe should have said:
Can I access attributes/member variables of my activity in my event 
listener? That is: Manipulate the date in my listener and have the updated 
data in my activity?

Am Freitag, 29. Juni 2012 21:27:38 UTC+2 schrieb MagouyaWare:
>
> This is a basic java question, not related to Android in any way...
>
> To do that you can create a constructor that takes as parameters the data 
> you want you're listener to have access to.  Alternatively you can add 
> getters/setters to add that data you want separately. ..
> On Jun 29, 2012 1:21 PM, "StSch"  wrote:
>
>> I have an Activity with a button and register an OnClickListener on this 
>> button that is defined in a separate class file. Can I share data between 
>> these 2 resources? That is: Can I access attributes/member variables from 
>> my activity in my event listener?
>>
>> Regards,
>> -Steffen-
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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]

2012-06-29 Thread vaibs malviya
my question is not that i just want to know why tabhost not work in 4.0.

On Fri, Jun 29, 2012 at 8:07 PM, Justin Anderson wrote:

> To find the cause of your force close look at the logcat output...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Fri, Jun 29, 2012 at 7:40 AM, vaibs malviya 
> wrote:
>
>> *it is possible to design a tabhost and it work for android 2.2 and also
>> working for 4.0.*
>> plz tell me if any one know
>> because i develop tabhost in 2.2 and it run successfully on android 2.2
>> but when my apps lunch on android 4.0 so tabhost not display and my apps
>> force to close.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: about the number of processes in Android app

2012-06-29 Thread Kumar Rangarajan

>
> On Jun 29, 10:27 am, Mark Murphy  wrote: 
> > On Fri, Jun 29, 2012 at 12:57 PM, M  wrote: 
> > > Is this case true that one single Android app has multiple processes 
> > 
> > Not normally. 
>
> When I monitored the kernel system calls, the app process always forks 
> other processes. weird to me. 
>

Depends on which app/process u were monitoring. If you monitor the zygote 
process, guess that would always keep forking new processes.

:-)

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

2012-06-29 Thread Mek Rama
okay, I see the 
https://developers.google.com/android/c2dm/ 

*Important:* C2DM has been officially deprecated as of June 26, 2012. At 
that time C2DM stopped accepting new users and quota requests. C2DM has 
been replaced byGoogle Cloud Messaging for 
Android (GCM). 
The C2DM service will continue to be maintained in the short term, but 
developers must use GCM for new development. We also encourage developers 
to move existing C2DM applications to GCM to take advantage of GCM 
features. See the C2DM-to-GCM 
Migration document 
for more information 

On Saturday, June 30, 2012 10:57:55 AM UTC+5:30, Mek Rama wrote:
>
> can you share the news from Google android or send the link if it is 
> posted in Google's android blog.??
>
> On Thursday, June 28, 2012 2:46:47 PM UTC+5:30, SIDHU wrote:
>>
>> Hi guys C2DM was deprecated and GCM came into existance plz notify this 
>> to every one
>>
>>

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

Re: [android-developers] Battery usage per app

2012-06-29 Thread Kumar Rangarajan

>
> > It also provides hardware component level breakdown of each app. 
>
> It is also only accurate for the Nexus One, last I checked. 
>

That is true. Its still the same. But then as a developer (assuming u have 
the N1), would'nt getting power consumption details on one model still give 
u a fair and reasonably consistent view of how it would perform on most 
models ? If the intent is to understand the consumption pattern of ones 
application, this is reasonably good enough right ?
 

> A better solution is the Qualcomm MDP and their Trepn software, but 
> this is rather expensive. 
>

Looks like the Trepn profiler is currently being redesigned and is not 
available 
(https://developer.qualcomm.com/mobile-development/development-devices/trepn-profiler),
 
but then as u mentioned it needs to be used with their expensive MDP 
devices.

:-)

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

[android-developers] Re: C2DM is deprecated from june26th

2012-06-29 Thread Mek Rama
can you share the news from Google android or send the link if it is posted 
in Google's android blog.??

On Thursday, June 28, 2012 2:46:47 PM UTC+5:30, SIDHU wrote:
>
> Hi guys C2DM was deprecated and GCM came into existance plz notify this to 
> every one
>
>

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

Re: [android-developers] how to add listview in to sliding drawer??

2012-06-29 Thread DILEEP PT
http://schemas.android.com/apk/res/android";
android:background="#FFCC"
android:id="@+id/drawer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:handle="@+id/handle"
android:content="@+id/content">




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

Re: [android-developers] Question about this group itself

2012-06-29 Thread TreKing
On Thu, Jun 28, 2012 at 10:08 AM, Francisco M. Marzoa Alonso <
fmmar...@gmail.com> wrote:

> If someone has a clue on how to solve this...


Create a filter in Gmail to have anything sent from you and addressed to
the Group get stamped with a specific label.
This will appear as a folder in TB.

-
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: GPRS connection problem in Android 2.3

2012-06-29 Thread Siva kumar Balasubramanian
Username and Password is not required.
Same APN settings works with other Android Tablet


On Fri, Jun 29, 2012 at 6:54 PM, lbendlin  wrote:

> does your APN require a username and password?
>
>
> On Friday, June 29, 2012 8:35:38 AM UTC-4, Siva kumar wrote:
>>
>> Hi all,
>>
>> I got s3c6410 Arm development Board. It has been ported with Android 2.3.
>>
>> This board has SIM300 GSM modem.When i tried to connect to internet
>> through GPRS i found APN was missing.
>> By searching through internet i added APN settings manually.
>>
>> I got the symbol G with arrows up down in the notification area.
>>
>> But when i opened the browser i am not able to browse the websites.
>>
>> I checked the netcfg in the adb shell
>>
>> *# netcfg*
>> *lo   UP127.0.0.1   255.0.0.0   0x0049*
>> *eth0 DOWN  0.0.0.0 0.0.0.0 0x1002*
>>
>> I found i am not getting the ip in it.
>>
>> I was able to make and receive calls through GSM modem.
>>
>> The GPRS connects in the same board when i am using embedded linux with
>> AT commands.
>>
>> When i see the logcat -b radio
>>
>> *D/GSM ( 2143): [GsmDataConnection-1] Connecting to carrier: 'gprs'
>> APN: 'www' proxy: '' port: '*
>> *D/RILJ( 2143): [0077]> SETUP_DATA_CALL 1 0 www   3*
>> *D/RILJ( 2143): [0077]< SETUP_DATA_CALL {1, gprs}*
>> *D/GSM ( 2143): [GsmDataConnection-1] DcActivatingState
>> msg.what=EVENT_SETUP_DATA_CONNECTION_DONE*
>> *D/GSM ( 2143): [GsmDataConnection-1] DataConnection setup
>> result='SUCCESS' on cid=1*
>> *D/GSM ( 2143): [GsmDataConnection-1] DcInactiveState:
>> setEnterNoticationParams cp,cause*
>> *D/GSM ( 2143): [GsmDataConnection-1] DcActiveState: enter
>> notifyConnectCompleted*
>> *D/GSM ( 2143): [GsmDataConnection-1] notifyConnection at
>> 1340992990513 cause=No Error*
>> *D/GSM ( 2143): [DataConnection] Start poll NetStat*
>> *D/RILJ( 2143): [0078]> SIGNAL_STRENGTH*
>> *D/RILJ( 2143): [0078]< SIGNAL_STRENGTH {17, 0, 0, 0, 0, 0, 0}*
>> *
>> *
>> The complete logfile is in 
>> http://pastebin.com/**pn7DS4CJ
>>
>> I need guidance in debugging this issue.
>>
>> Regards
>> sivakumar
>>
>>
>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 

sivakumar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

2012-06-29 Thread TreKing
On Fri, Jun 29, 2012 at 8:44 PM, Jason Hsu  wrote:

> No matter what I do, there are errors that keep the project from running.


Explaining what these errors are would help in you getting help.

-
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] Sandwich situation

2012-06-29 Thread bob


Can you send me the link to this?  I was looking for the developer phones 
the other day, but I couldn't find it.

On Thursday, June 28, 2012 9:30:43 AM UTC-5, Jack Steele wrote:
>
> If you didn't want a 2 year contract, you could buy the GSM Galaxy Nexus 
> from Google Play...
>
> Jack
> On Jun 28, 2012 7:27 AM, "bob"  wrote:
>
>> I'm developing software that will eventually run on an Ice Cream Sandwich 
>> phone.
>>
>>
>> However, I don't have a Sandwich phone yet since my provider (MetroPCS) 
>> does not offer Sandwiches yet.
>>
>>
>> Anyone know if the Sandwiches are usually hdpi or mdpi?  And, is there a 
>> way to get one without entering into a 2 year contract?
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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 do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

2012-06-29 Thread Jason Hsu
 

I'm trying to implement the project in the Android site's "Managing the 
Activity Lifecycle" training exercise at 
http://developer.android.com/training/basics/activity-lifecycle/index.html .

The instructions don't say how to set it up. A *.zip file is provided, but 
I can't figure out how to get it to work. No matter what I do, there are 
errors that keep the project from running.

What is the proper procedure for getting this project to work?

Yes, I have not only completed the Building Your First App tutorial but 
also published an app on Google Play. (It's a fun little app called Upgrade 
Your Cereal.)  So I have experience in starting and completing projects, 
but this is the first time I've tried to start a project SOLELY from a 
*.zip file.

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

Re: [android-developers] how to add listview in to sliding drawer??

2012-06-29 Thread TreKing
On Fri, Jun 29, 2012 at 4:57 AM, Salman Amjad wrote:

> m beginner can any1 plz help me?


Start here: http://lmgtfy.com/?q=how+to+write+in+english

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

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

[android-developers] Re: How to prevent the layout from getting reset when the screen orientation changes?

2012-06-29 Thread Nobu Games
As someone in your other thread already mentioned: you need to keep track 
of these layout changes you do and save this information in the 
onSaveInstanceState method. You could save a boolean value for example that 
indicates that "Button 2" has been added. In onCreate you need to read the 
savedInstanceState Bundle and check whether that "Button 2" flag is 
present. If that is the case you have to re-create Button 2 then.

Some pseudo code:

onSaveInstanceState(Bundle outState) {
outState.putBoolean("button2", true);
}

onCreate(Bundle savedInstanceState) {
if(savedInstanceState != null) {
if(savedInstanceState.getBoolean("button2")) {
 // Add button 2 to your layout
}
}
}

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

2012-06-29 Thread Nobu Games

On Thursday, June 28, 2012 5:07:13 PM UTC-5, Mitchell wrote:
>
> The email stated previous account violations. I'm thinking this dev 
> may have been suspended previously. Can anyone give some insight on what 
> could have happened?


If that email says that your account has been suspended because of previous 
account violations, then it has something to do with you and your account 
and not with the person you bought that app from, methinks.

Was it the first time that you bought an existing app and uploaded it as 
your own?

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

2012-06-29 Thread James Black
Unless it copied a better known drawing application.
On Jun 29, 2012 6:25 PM, "Mitchell"  wrote:

> Obviously a drawing app should not have any problems.
>
> On Jun 29, 5:37 pm, Uwe Maurer  wrote:
> > What kind of app was it ?
> >
> >
> >
> > On Friday, June 29, 2012 12:07:13 AM UTC+2, Mitchell wrote:
> >
> > > Hi,
> >
> > > I purchased app source code from a developer changed a phew things and
> > > published my app. 5 days later my account got suspended. The email
> stated
> > > previous account violations. I'm thinking this dev may have been
> suspended
> > > previously. Can anyone give some insight on what could have happened?
> >
> > > Best Regards
> >
> > > Mitchell
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Code to send mail not working

2012-06-29 Thread Nobu Games


On Friday, June 29, 2012 5:51:14 PM UTC-5, MagouyaWare wrote:
>
> Ummm... care to explain exactly what "not working" means?
>
>
The copy-pasta gremlin has eaten the code correctness.

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

[android-developers] Re: help me

2012-06-29 Thread Nobu Games


> *private void Validations()
> { 
>   if(val1!=null)
>   {
>  Toast.makeTest(this,"Enter First Value"3000);
>   }
>   if(val1!=null)
>   {
>  Toast.makeTest(this,"Enter Second Value"3000);
>   }
>
> }*
>

Judging this piece of code you are a complete beginner and may want to pick 
up some basic programming classes / books / tutorials. This group is not 
the right place for that.

Anyway. You have syntax errors in it (missing commas between 
"Enter...Value" and 3000), the method "Toast.makeTest" does not exist. It 
should be "Toast.makeText" instead. The number 3000 should be either 
Toast.LENGTH_SHORT or Toast.LENGTH_LONG and in the end you need to call the 
show() method on the resulting Toast object which is returned by 
Toast.makeText.

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

2012-06-29 Thread Justin Anderson
>
> Please let me know the solution ASAP.
>
Please show us your code first...

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


On Thu, Jun 28, 2012 at 11:53 PM, smarajeet  wrote:

> Hi,
> I have a List View Containing spinners which are loaded dynamically at
> run time on a button click, The spinner is contained in a Array
> Adapter, The problem is when i click on spinner i do not get the
> current position/index of that particular spinner in the list view.
> Please let me know the solution ASAP.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 can i stop mails from these site

2012-06-29 Thread Justin Anderson
Follow the instructions at the bottom of EVERY SINGLE EMAIL YOU GET...

You received this message because you are subscribed to the Google
>  Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jun 27, 2012 at 5:30 AM, Sreenivas Reddy <
srinivasreddygajj...@gmail.com> wrote:

> How i stop receiving mails from android-developers@googlegroups.com this
> site.
>
> --
> Best Regards..
> Sreenivasreddy,
> +919966360928.
> ==
> Do good to all,like every one,but do not love anyone
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] help me

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

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


On Mon, Jun 25, 2012 at 10:15 AM, Sreenivas Reddy <
srinivasreddygajj...@gmail.com> wrote:

> sir i am a learner,
> i did not understand validations in simple calculations,when converted
> string  into integer
> i try like this way.help me sir
> *private void Validations()
> {
>   if(val1!=null)
>   {
>  Toast.makeTest(this,"Enter First Value"3000);
>   }
>   if(val1!=null)
>   {
>  Toast.makeTest(this,"Enter Second Value"3000);
>   }
>
> }*
> --
> Best Regards..
> Sreenivasreddy,
> +919966360928.
> ==
> Do good to all,like every one,but do not love anyone
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 add listview in to sliding drawer??

2012-06-29 Thread Justin Anderson
What have you tried so far?

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


On Fri, Jun 29, 2012 at 3:57 AM, Salman Amjad wrote:

> i m tryng to add listview to sliding drawer but dont know abt the way.
> m beginner can any1 plz help me?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] how to get links addresses from database to imageview?

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

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


On Fri, Jun 29, 2012 at 8:29 AM, Tej prakash  wrote:

> hi.
> Iam using webservice for my app. i have to give link address to an image
> in listview i.e that links should be taken from database(modifing by ADMIN).
> plz 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] Expandable List

2012-06-29 Thread Justin Anderson
Please don't ask the same question more than once...

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


On Mon, Jun 25, 2012 at 2:51 AM, sujit acharya
wrote:

>
> In ExpandbaleList each row having one LinearLayout.
> each LinearLayout contains 3 buttons.
> But when i select the buttons by left and right keypad that time sound is
> not coming.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Code to send mail not working

2012-06-29 Thread Justin Anderson
Ummm... care to explain exactly what "not working" means?

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


On Fri, Jun 29, 2012 at 6:25 AM, sri kanth  wrote:

> Button b1=(Button)findViewById(R.id.btnmail);
>  b1.setOnClickListener(new View.OnClickListener() {
>  public void onClick(View v) {
>  // TODO Auto-generated method stub
>  Intent intent = new Intent(Intent.ACTION_SENDTO);
>Uri uri = Uri.parse("mailto:priya.mehta...@gmail.com";);
>intent.setData(uri);
>   intent.putExtra("subject", "my subject");
>intent.putExtra("body", "my message");
>startActivity(intent);
>  }
> });
>
> try this again
>
> On Thu, Jun 21, 2012 at 3:23 AM, Priya Mehta wrote:
>
>>
>> Button b2=(Button)findViewById(R.id.btnmail);
>>  b1.setOnClickListener(new View.OnClickListener() {
>>  public void onClick(View v) {
>> // TODO Auto-generated method stub
>>  Intent intent = new Intent(Intent.ACTION_SENDTO);
>>   Uri uri = Uri.parse("mailto:priya.mehta...@gmail.com";);
>>   intent.setData(uri);
>>   intent.putExtra("subject", "my subject");
>>   intent.putExtra("body", "my message");
>>   startActivity(intent);
>>  }
>> });
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> *Thanks & Regards,
> Srikanth T,
> Android Developer,
> Cell :- (+91) 96400 31533.*
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 prevent the layout from getting reset when the screen orientation changes?

2012-06-29 Thread Justin Anderson
You have asked this question already.  Please don't post the same question
more than once...

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


On Mon, Jun 25, 2012 at 11:30 AM, StSch
wrote:

> I am aware of this article (
> http://developer.android.com/guide/topics/resources/runtime-changes.html)
> and the possibilities to handle runtime changes. Nevertheless I am a bit
> stuck, I didn't make it to prevent my layout below from getting reset when
> the screen orientation changes. I add 2 buttons programatically, 1 button
> is added in the onCreate()-method, 1 button is added in a checkbox' event
> listener. And that's the one that disappears when the screen orientation
> changes. How can I prevent this?
>
> Screenshot here: http://s14.directupload.net/file/d/2931/zvqkubis_png.htm
>
> Regards,
> -Steffen-
>
> ---
>
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
> setContentView(R.layout.fragment_menu);
>
> ViewGroup layout = (ViewGroup) findViewById(R.id.layout);
>
> Button btn = new Button(getApplication());
> btn.setId(1);
>
> btn.setText("Button 1");
> layout.addView(btn);
>
> mCheckBox1 = (CheckBox) findViewById(R.id.menu1);
>
> mCheckBox1.setOnClickListener(mClickListener);
> }
>
> final OnClickListener mClickListener = new OnClickListener() {
>
> public void onClick(View v) {
>
> ViewGroup layout = (ViewGroup) findViewById(R.id.layout);
>
> Button btn = new Button(v.getContext());
>
> btn.setId(2);
> btn.setText("Button 2");
>
> layout.addView(btn);
> }
> };
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 add image buttons in gridview in android

2012-06-29 Thread Justin Anderson
What have you tried so far?

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


On Mon, Jun 25, 2012 at 11:53 PM, nanda wrote:

> hi
>
> I am new to this android and i need to add image buttons in grid view by
> parsing an xml.how to do this??
>
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] I want to create a home screen widget which updates using a csv file when the widget or a button on it is being pressed.

2012-06-29 Thread Justin Anderson
http://lmgtfy.com/?q=android+update+widget+from+file+tutorial

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


On Thu, Jun 28, 2012 at 10:50 AM, Harry Wardlaw <
vernehmlass...@googlemail.com> wrote:

> Is there a tutorial for this? I am asking cause I have problems removing
> the internet connection part from the google widget example.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Trying to set toggleButton at right of text view

2012-06-29 Thread Justin Anderson
Why do you have so many LinearLayouts inyour XML?  You don't need to wrap
your TextView or your ToggleButton in a LinearLayout.  That being said, the
problem is that you are declaring your LinearLayout to be VERTICAL...
Hence, the TextView would be added, and then the ToggleButton would be
added VERTICALLY beneath the TextView...

Have you tried something simple like this?

http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="4px">








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


On Tue, Jun 26, 2012 at 12:53 PM, Emanuel Tivadar wrote:

> did you managed to solve this ? if yes, please provide the solution.
> 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] Android Device Emulator

2012-06-29 Thread Justin Anderson
Ask Adobe...

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


On Sat, Jun 23, 2012 at 1:58 AM, Zan  wrote:

> Hello all,
>
> Just developed a fast application in Adobe Flash CS5, and I published
> it as an "Emulator Release" for Android 2.2. Adobe compiled & created
> the .apk, and also installed on the emulator, but when I start the
> application on the emulator, it seems nothing happens but a black
> blank screen comes up. I already installed AIR.apk on the emulator,
> and tried Android 2.3.3 which's not worked neither.
> Could you give me some advice please?
>
> Thank you,
> ~Zan.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Using Implicent Intent to open system application

2012-06-29 Thread Justin Anderson
Oh, and you are setting up an EXPLICIT intent, not an IMPLICIT intent...

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


On Fri, Jun 29, 2012 at 4:25 PM, Justin Anderson wrote:

> You already asked this question and you received an answer... What more do
> you want?  The problem is that nothing is calling your LaunchComponent()
> method...
>
> As you were told before, override the onCreate() method and call your
> LaunchComponent() method from there.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Fri, Jun 29, 2012 at 12:32 PM, Jaison Brooks wrote:
>
>> Ok, im feeling really stupid right now, for some reason i cannot figure
>> out how to create just a signal application that when the user clicks the
>> icon from the home screen, it opens a different application. For instance,
>> you click on my app and it takes you to your email icon, or settings or
>> something along those lines.
>>
>> Here is some code i got so far, but its not doing anything when i open
>> the application, just showing blank white screen with the label of my
>> application.
>>
>> JAVA File
>>
>> package com.xxx.xxx.xxx;
>>
>> import android.app.Activity;
>> import android.content.Intent;
>> import android.content.pm.PackageManager;
>>
>>
>> public class MainActivity extends Activity {
>>
>> public void  LaunchComponent (String packageName, String name){
>> Intent task = new
>> Intent(Intent.ACTION_MAIN);
>> PackageManager manager =
>> getPackageManager ();
>> task = manager.getLaunchIntentForPackage("com.xxx.xxx.xxx");
>> task.addCategory(Intent.CATEGORY_HOME);
>> startActivity(task);
>>
>> }
>> }
>>
>> i do NOT have a layout file, i didnt think i would need one, since i am
>> not creating a UI at all.
>> Any recommendations would help alot, i've tried a few links, and i just
>> cannot get something to compile right.
>>
>> http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

2012-06-29 Thread Justin Anderson
You already asked this question and you received an answer... What more do
you want?  The problem is that nothing is calling your LaunchComponent()
method...

As you were told before, override the onCreate() method and call your
LaunchComponent() method from there.

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


On Fri, Jun 29, 2012 at 12:32 PM, Jaison Brooks wrote:

> Ok, im feeling really stupid right now, for some reason i cannot figure
> out how to create just a signal application that when the user clicks the
> icon from the home screen, it opens a different application. For instance,
> you click on my app and it takes you to your email icon, or settings or
> something along those lines.
>
> Here is some code i got so far, but its not doing anything when i open the
> application, just showing blank white screen with the label of my
> application.
>
> JAVA File
>
> package com.xxx.xxx.xxx;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.content.pm.PackageManager;
>
>
> public class MainActivity extends Activity {
>
> public void  LaunchComponent (String packageName, String name){
> Intent task = new
> Intent(Intent.ACTION_MAIN);
> PackageManager manager =
> getPackageManager ();
> task = manager.getLaunchIntentForPackage("com.xxx.xxx.xxx");
> task.addCategory(Intent.CATEGORY_HOME);
> startActivity(task);
>
> }
> }
>
> i do NOT have a layout file, i didnt think i would need one, since i am
> not creating a UI at all.
> Any recommendations would help alot, i've tried a few links, and i just
> cannot get something to compile right.
>
> http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-06-29 Thread Mitchell
Obviously a drawing app should not have any problems.

On Jun 29, 5:37 pm, Uwe Maurer  wrote:
> What kind of app was it ?
>
>
>
> On Friday, June 29, 2012 12:07:13 AM UTC+2, Mitchell wrote:
>
> > Hi,
>
> > I purchased app source code from a developer changed a phew things and
> > published my app. 5 days later my account got suspended. The email stated
> > previous account violations. I'm thinking this dev may have been suspended
> > previously. Can anyone give some insight on what could have happened?
>
> > Best Regards
>
> > Mitchell

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

2012-06-29 Thread Mitchell
It was a drawing app.

On Jun 29, 5:37 pm, Uwe Maurer  wrote:
> What kind of app was it ?
>
>
>
> On Friday, June 29, 2012 12:07:13 AM UTC+2, Mitchell wrote:
>
> > Hi,
>
> > I purchased app source code from a developer changed a phew things and
> > published my app. 5 days later my account got suspended. The email stated
> > previous account violations. I'm thinking this dev may have been suspended
> > previously. Can anyone give some insight on what could have happened?
>
> > Best Regards
>
> > Mitchell

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

2012-06-29 Thread Justin Anderson
Ummm... this group doesn't meet, AFAIK...

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


On Fri, Jun 29, 2012 at 1:31 PM, Jason Hsu  wrote:

> Next Tuesday is July 3rd.  Will this group be meeting?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] GoogleCalendarSyncAdapter - any limit on syncing calendar events from google server

2012-06-29 Thread Michael Chan
Hi,

The GoogleCalendarSyncAdapter's sync window is currently one month
back and one year forward. It won't sync any event that ended earlier
than a month ago.

GoogleCalendarSyncAdapter does not have a limit on the number of
event. Of course, there storage limits and the database will be slow
and unusable at some point.

Thanks,
Mike

On Tue, Jun 26, 2012 at 11:04 PM, Raghu  wrote:
> Hi
>
> I have few questions about Android GoogleCalendarSyncAdapter
> application.
> As per my understnading this application is useful to sync google
> calendar events between google server and android phone.
>
> 1. Android phone can display calendar range 1902 January 1 to 2036
> December 31st.
>   if I have last 10 years of gmail calendar events, is it possible to
> sync all these events? (Assume device memory  is large enough.)
>
> 2. While performing syncing, Will this application request only for
> limited time calendar events (EX: last 30 days) or will it sync all
> calendar events from server at the same time?
>     how excatly GoogleCalendarSyncworks?
>
> 3. is there any limit on number of calendar events for syncing?
>
> Could anyone help me in finding answers for above questions.
> Thank you.
>
> Raghu
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Activity Feed Within Native Android App

2012-06-29 Thread TreKing
On Thu, Jun 28, 2012 at 1:38 AM, Xiaoyang wrote:

> where should I start?
>

http://www.catb.org/~esr/faqs/smart-questions.html

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

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

Re: [android-developers] I really Need help guys

2012-06-29 Thread TreKing
First, please give your post a useful, relevant title. This will help
people decide if it's a topic worth reading and makes the discussion easier
to find later if someone searches for something similar.

On Fri, Jun 29, 2012 at 2:32 PM, Jaison Brooks wrote:

> public class MainActivity extends Activity {
>
> public void  LaunchComponent (String packageName, String name){
> Intent task = new
> Intent(Intent.ACTION_MAIN);
> PackageManager manager =
> getPackageManager ();
> task = manager.getLaunchIntentForPackage("com.xxx.xxx.xxx");
> task.addCategory(Intent.CATEGORY_HOME);
> startActivity(task);
>
> }
> }
>

You've defined a method, "LaunchComponent" ... and that's it. How do you
expect it to get called?

i do NOT have a layout file, i didnt think i would need one, since i am not
> creating a UI at all.
>

Correct.


> Any recommendations would help alot, i've tried a few links, and i just
> cannot get something to compile right.
>

Override onCreate(), which is called when your app is launched, and call
your method from there.

-
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: AccountManager undocumented exception returns "unknown authTokenType"

2012-06-29 Thread Sandeep Dhameshia
thanks mate for reply.

am using nexus device, so shouldn't be that issue. and I see it not that
frequently. bit strange but it's happening at particular time in a day, say
between 18-21IST. I know it's weird but I've observed this. rest of the
times it's as expected!!
On Jun 29, 2012 8:57 PM, "H"  wrote:

> No, never found a solution. I think Google restrict access to certain
> services from only Google licensed devices. So devices which don't
> *officially* have access to the Market seems to be the ones that can't
> access certain services. They can access some, such as gmail and gcal, but
> not all. Requests for auth tokens via the AccountManager calls the gsf and
> likely therefore sends the device's model back with the request so Big G
> can know if they would be a licensed device or not trying to access Google
> services.
>
> The only solution in my app was to use OAuth2 explicitly and since that's
> via a different method, it seems to work nicely.
>
> HTH.
>
> On Monday, June 25, 2012 3:42:29 PM UTC+1, Sandeep Android wrote:
>>
>> am also failing into same thing. tried many things but no success.
>>
>> did you manage to get it done any now?
>>
>> thanks a lot.
>>
>> On Thursday, January 13, 2011 4:30:12 AM UTC+5:30, H wrote:
>>>
>>> Hi,
>>>
>>> I'm calling the AccountManager like this:
>>>
>>> accountManagerFutureOld = mAccountManager.getAuthToken(**mAccount,
>>> "cl", false, null, null);
>>>
>>> The Account being passed in is a Google account (type="com.google").
>>>
>>> This works perfectly well for thousands of users of my app. But a
>>> handful of times each day, some users are getting this error
>>>
>>> java.lang.**IllegalArgumentException: unknown authTokenType
>>> at android.accounts.**AccountManager.**convertErrorToException(**
>>> AccountManager.java:1093)
>>> at android.accounts.**AccountManager.access$500(**
>>> AccountManager.java:74)
>>> at android.accounts.**AccountManager$AmsTask$**Response.onError(**
>>> AccountManager.java:944)
>>> at android.accounts.**IAccountManagerResponse$Stub.**onTransact(**
>>> IAccountManagerResponse.java:**69)
>>> at android.os.Binder.**execTransact(Binder.java:287)
>>> at dalvik.system.NativeStart.run(**Native Method)
>>>
>>> This isn't an exception that the javadoc says comes from this method!
>>>
>>> I think this is coming from the AbstractAccountAuthenticator.**
>>> getAuthTokenLabel(**IAccountAuthenticatorResponse, String) who in turn
>>> catches this exception from the concrete authenticator's 
>>> **getAuthTokenLabel(String)
>>> method. I've decompiled the gsf and looked in this method, but can't see
>>> any throw of an IllegalArgumentException in there. All it really does is
>>> call the PackageManager.**getPermissionInfo() and retrieve attributes
>>> of the PermissionInfo returned.
>>>
>>> Looking at the details for the reports, I *think* these reports are only
>>> coming from non google devices - for example the reported models include
>>> MID-7AS, XT800, EFREN II, etc. I don't see any mentions of nice devices
>>> like Desire or Nexus, etc.
>>>
>>> At first I thought this was just people forcing my app onto a non gapps
>>> device, but the fact that they have a Google account on the device which
>>> can be happily enumerated and retrieved using the standard api (i.e.
>>> type-com.google) makes me think they at least have the full google services
>>> framework otherwise they wouldn't have the GoogleLoginService.
>>>
>>> So does anyone know exactly what this error thinks is missing..? Is
>>> there any way to spot this before trying the call?
>>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] I really Need help guys

2012-06-29 Thread Jaison Brooks
Ok, im feeling really stupid right now, for some reason i cannot figure out 
how to create just a signal application that when the user clicks the icon 
from the home screen, it opens a different application. For instance, you 
click on my app and it takes you to your email icon, or settings or 
something along those lines.

Here is some code i got so far, but its not doing anything when i open the 
application, just showing blank white screen with the label of my 
application.

JAVA File

package com.xxx.xxx.xxx;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.
PackageManager;


public class MainActivity extends Activity {

public void  LaunchComponent (String packageName, String name){
Intent task = new
Intent(Intent.ACTION_MAIN);
PackageManager manager =
getPackageManager ();
task = manager.getLaunchIntentForPackage("com.xxx.xxx.xxx");
task.addCategory(Intent.CATEGORY_HOME);
startActivity(task);

}
}

i do NOT have a layout file, i didnt think i would need one, since i am not 
creating a UI at all.
Any recommendations would help alot, i've tried a few links, and i just 
cannot get something to compile right.
http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent

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

[android-developers] Is AUG meeting next Tuesday?

2012-06-29 Thread Jason Hsu
Next Tuesday is July 3rd.  Will this group be meeting?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Share data between an activity and an event listener (separate class file)

2012-06-29 Thread Justin Anderson
This is a basic java question, not related to Android in any way...

To do that you can create a constructor that takes as parameters the data
you want you're listener to have access to.  Alternatively you can add
getters/setters to add that data you want separately. ..
On Jun 29, 2012 1:21 PM, "StSch"  wrote:

> I have an Activity with a button and register an OnClickListener on this
> button that is defined in a separate class file. Can I share data between
> these 2 resources? That is: Can I access attributes/member variables from
> my activity in my event listener?
>
> Regards,
> -Steffen-
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Share data between an activity and an event listener (separate class file)

2012-06-29 Thread StSch
I have an Activity with a button and register an OnClickListener on this 
button that is defined in a separate class file. Can I share data between 
these 2 resources? That is: Can I access attributes/member variables from 
my activity in my event listener?

Regards,
-Steffen-

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: PNG loading that doesn't premultiply alpha?

2012-06-29 Thread Romain Guy
>
> Another big issue similar to alpha-premultiply is that 32Bit ARGB Images
> are changed
> to 16Bit after scaling (especially if all alpha values are 255), without
> some dirty tricks.
> This is a big issue to, it's far away from the precission needed for good
> normal mapping.
>

There was a bug in the scaling code that I fixed. a 32 bits image will now
always be scaled to another 32 bits image.


>
> --
Romain Guy
Android framework engineer
romain...@android.com

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

Re: [android-developers] Re: about the number of processes in Android app

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 2:22 PM, M  wrote:
>> On Fri, Jun 29, 2012 at 12:57 PM, M  wrote:
>> > Is this case true that one single Android app has multiple processes
>>
>> Not normally.
>
> When I monitored the kernel system calls, the app process always forks
> other processes. weird to me.

The kernel system calls are off-topic for this list. Please visit the
Community tab on http://source.android.com.

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

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

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


Re: [android-developers] Preferred way to prevent the layout (example included) from getting reset when the screen orientation changes?

2012-06-29 Thread TreKing
On Sun, Jun 24, 2012 at 8:10 AM, StSch
wrote:

> I am a bit stuck. It's a pretty simple example, the checkbox's event
> handler adds one button to the layout. I change the screen orientation
> and the button disappears. The button that was added to the layount in
> the onCreate()-method remains on the screen. What's the difference?
>

The difference is one is add in onCreate, which is called again when the
Activity is recreated, and the other is called dynamically on click of a
button, which of course does not get called again.

My layout changes heavily in the event listeners and it would be very
> time-consuming and tiring to save the state and restore it again.
>

Unfortunately, that's how it's done. Either that or handle the
configuration changes yourself, which is a whole other can of worms.

What I would do is have a business model object that describes your UI.
Instead of modifying your UI on clicking a button, you update your model
and build your UI off of that. When you change configuration, persist the
model (as a Bundle, as a static, whatever) and recreate your UI from it as
necessary.

-
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] Preferred way to prevent the layout (example included) from getting reset when the screen orientation changes?

2012-06-29 Thread StSch
I add one button programatically to my layout and would have expected 
Android to keep the layout, especially since the documentation of the 
onSaveInstanceState()-method says:

The default implementation takes care of most of the UI per-instance state 
for you by calling onSaveInstanceState() on each view in the hierarchy that 
has an id, and by saving the id of the currently focused view (all of which 
is restored by the default implementation of 
onRestoreInstanceState(Bundle)).

And in the source code of one of the examples I find this comment:

The system takes care of saving a view's state as long as an id has been 
assigned to the view.

My layout changes heavily in the event listeners and it would be very 
time-consuming and tiring to save the state and restore it again.

Am Freitag, 29. Juni 2012 17:57:48 UTC+2 schrieb MagouyaWare:
>
> What do I need to do to still have Button 2 on the screen after I
>> change the screen orientation?
>>
>
> You need to read up on the activity lifecycle: 
> http://developer.android.com/guide/components/activities.html#Lifecycle
>
> When you rotate your device your activity is completely shut down and then 
> re-created.  Thus, by default, it gets put in the same state as when you 
> first launch the app.
>
> To compensate for this, you need to override and implement the 
> onSaveInstanceState() and onRestoreInstanceState() methods to put your 
> activity in the same state it was before the rotation occurred.
>
>
> http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29
>
>
> http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState%28android.os.Bundle%29
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Sun, Jun 24, 2012 at 7:10 AM, StSch  > wrote:
>
>> Can I please point you to my question on Stack Overflow?
>>
>>
>> http://stackoverflow.com/questions/11175966/how-to-prevent-the-layout-from-getting-reset-when-the-screen-orientation-changes
>>
>> I am a bit stuck. It's a pretty simple example, the checkbox's event
>> handler adds one button to the layout. I change the screen orientation
>> and the button disappears. The button that was added to the layount in
>> the onCreate()-method remains on the screen. What's the difference?
>> What do I need to do to still have Button 2 on the screen after I
>> change the screen orientation?
>>
>> Regards,
>> -Steffen-
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
Am Freitag, 29. Juni 2012 17:57:48 UTC+2 schrieb MagouyaWare:
>
> What do I need to do to still have Button 2 on the screen after I
>> change the screen orientation?
>>
>
> You need to read up on the activity lifecycle: 
> http://developer.android.com/guide/components/activities.html#Lifecycle
>
> When you rotate your device your activity is completely shut down and then 
> re-created.  Thus, by default, it gets put in the same state as when you 
> first launch the app.
>
> To compensate for this, you need to override and implement the 
> onSaveInstanceState() and onRestoreInstanceState() methods to put your 
> activity in the same state it was before the rotation occurred.
>
>
> http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29
>
>
> http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState%28android.os.Bundle%29
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Sun, Jun 24, 2012 at 7:10 AM, StSch  > wrote:
>
>> Can I please point you to my question on Stack Overflow?
>>
>>
>> http://stackoverflow.com/questions/11175966/how-to-prevent-the-layout-from-getting-reset-when-the-screen-orientation-changes
>>
>> I am a bit stuck. It's a pretty simple example, the checkbox's event
>> handler adds one button to the layout. I change the screen orientation
>> and the button disappears. The button that was added to the layount in
>> the onCreate()-method remains on the screen. What's the difference?
>> What do I need to do to still have Button 2 on the screen after I
>> change the screen orientation?
>>
>> Regards,
>> -Steffen-
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
Am Freitag, 29. Juni 2012 17:57:48 U

[android-developers] progress bar too small

2012-06-29 Thread bob
I'm trying to make a large indeterminate progress bar for my tablet.  When 
I do this

style="?android:attr/progressBarStyleLarge"

it still is fairly small.  If I force it to be larger, it gets real grainy. 
 Is there a way to get a big progress bar that isn't all grainy?

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

[android-developers] Using Implicent Intent to open system application

2012-06-29 Thread Jaison Brooks
Ok, im feeling really stupid right now, for some reason i cannot figure out 
how to create just a signal application that when the user clicks the icon 
from the home screen, it opens a different application. For instance, you 
click on my app and it takes you to your email icon, or settings or 
something along those lines.

Here is some code i got so far, but its not doing anything when i open the 
application, just showing blank white screen with the label of my 
application.

JAVA File

package com.xxx.xxx.xxx;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;


public class MainActivity extends Activity {

public void  LaunchComponent (String packageName, String name){
Intent task = new
Intent(Intent.ACTION_MAIN);
PackageManager manager =
getPackageManager ();
task = manager.getLaunchIntentForPackage("com.xxx.xxx.xxx");
task.addCategory(Intent.CATEGORY_HOME);
startActivity(task);

}
}

i do NOT have a layout file, i didnt think i would need one, since i am not 
creating a UI at all.
Any recommendations would help alot, i've tried a few links, and i just 
cannot get something to compile right.
http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent

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

[android-developers] Re: about the number of processes in Android app

2012-06-29 Thread M


On Jun 29, 10:27 am, Mark Murphy  wrote:
> On Fri, Jun 29, 2012 at 12:57 PM, M  wrote:
> > Is this case true that one single Android app has multiple processes
>
> Not normally.

When I monitored the kernel system calls, the app process always forks
other processes. weird to me.


>
> > and each process has multiple threads?
>
> Yes.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


[android-developers] Re: prevent your app from showing in defautl app selection

2012-06-29 Thread Nobu Games
Post your manifest file. The only reason why this happens is your app 
declares itself to be able to handle this kind of intent. You may want to 
read the following: 
http://developer.android.com/guide/components/intents-filters.html#ifs

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

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 1:58 PM, rayk  wrote:
> I am puttting this out there again.  I have not been able to take my app off
> the chooser lis.

Get rid of the  that is causing it to be an option in
the 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 3.7 Available!

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


[android-developers] Re: prevent your app from showing in defautl app selection

2012-06-29 Thread rayk
I am puttting this out there again.  I have not been able to take my app 
off the chooser lis.  

On Wednesday, June 13, 2012 3:56:47 PM UTC-4, rayk wrote:

> My app plots locations on a google map. When user selects the location a 
> popup comes up to get directions to the place. Selecting directions opens 
> google navigation and gps is selected to give directions from where they 
> are. 
>
> However, if user is using another app and it wants to grab the gps, a 
> selection box comes up with google navigation and my app. How do I prevent 
> my app from coming up as a selection?
> Similar to having multiple browsers and when clicking on a URL, a list of 
> the browsers come up to choose. 
>  
> So if you select select a URL from say another application like facebook, 
> you get a list of browsers for the url. My app is in the list to be chosen 
> also.
>
> How do I remove an app from that list?
>

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

Re: [android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Raghav Sood
>
> You do not have to sign up on your Web site to make in-app purchases,
> AFAIK. If you choose to make this a requirement, that is your
> decision, but then please don't complain when users get frustrated
> with your game setup. If nothing else, make it a lazy requirement --
> *only* ask them to sign up *if* they wish to make purchases.
>

Hmm... The lazy requirement thing could work.

People who root their phones and elect to tinker with the innards of
> your database perhaps won't make in-app purchases, or will make one
> (to seed the database) and that's it. Rooted users should represent a
> tiny percentage of your user base, so this should represent a tiny
> loss of revenue. Personally, I think you have already spent more time
> worrying about it than it is worth, but that's just me. Or, as
> Kristopher pointed out, if you can detect this condition during game
> play, nuke 'em from orbit.
>

Well, this makes sense. Thanks for the help.

-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

Re: [android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Raghav Sood
>
> So store the currency in an online database?  Or use some form of
> encryption... Or understand that pretty much nobody will do this, and
> if they do, simply boot their account from your system.
>

Everything is intended for the online database. The local one is temporary
storage in case an internet connection is unavailable. The best solution
I've come up with so far is to use string values in the local database, and
process them into credits on the server. So in the local database I can
have a string like "CreditA" which corresponds to 100 credits on the
server. That way, even a rooted user can only boost their credits by a limit

Thanks

-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

Re: [android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 1:39 PM, Raghav Sood  wrote:
>> Make it optional. The only features you get ("move their progress and
>> purchases across devices") are not strictly required for your app to
>> work, AFAICT.
>
> I also intend to use this to store in app purchase info.

You do not have to sign up on your Web site to make in-app purchases,
AFAIK. If you choose to make this a requirement, that is your
decision, but then please don't complain when users get frustrated
with your game setup. If nothing else, make it a lazy requirement --
*only* ask them to sign up *if* they wish to make purchases.

> Anyways,
> since all of my items are managed items, I can verify with Google if the
> user has purchased them or not, but the local database might also have in
> app currency values. A rooted user could exploit this to give himself
> practically unlimited currency.

People who root their phones and elect to tinker with the innards of
your database perhaps won't make in-app purchases, or will make one
(to seed the database) and that's it. Rooted users should represent a
tiny percentage of your user base, so this should represent a tiny
loss of revenue. Personally, I think you have already spent more time
worrying about it than it is worth, but that's just me. Or, as
Kristopher pointed out, if you can detect this condition during game
play, nuke 'em from orbit.

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

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

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


Re: [android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Kristopher Micinski
> Wow. Mark Murphy hasn't tried something related to Android :-) Anyways,
> since all of my items are managed items, I can verify with Google if the
> user has purchased them or not, but the local database might also have in
> app currency values. A rooted user could exploit this to give himself
> practically unlimited currency.
>

So store the currency in an online database?  Or use some form of
encryption... Or understand that pretty much nobody will do this, and
if they do, simply boot their account from your system.

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] problem with apk file in 2.3.6

2012-06-29 Thread akash roy
thanx to all...
I got the solution..there was a mismatch of android sdk version...i coded
it in 2.2 and it worked on that samsung android phn galaxy s2
..
again thanx a lot..

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

Re: [android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Raghav Sood
>
> Make it optional. The only features you get ("move their progress and
> purchases across devices") are not strictly required for your app to
> work, AFAICT.
>

I also intend to use this to store in app purchase info.


> Not really. Moreover, other than the in-app purchases, it should not
> matter if the user tinkers with the data -- it is *their data*, not
> yours. And while I have not implemented in-app purchasing, I would
> hope there is some sort of verification mechanism you can use for that
> which is part of their system.
>

Wow. Mark Murphy hasn't tried something related to Android :-) Anyways,
since all of my items are managed items, I can verify with Google if the
user has purchased them or not, but the local database might also have in
app currency values. A rooted user could exploit this to give himself
practically unlimited currency.

Thanks

-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

Re: [android-developers] Android ICS VpnService

2012-06-29 Thread Robert Greenwalt
You say you found some applications "that use VpnService, but without using
a remote server".  Are the providing VPN capabilities?  i don't think so.
 Yes, you can create a client-side VpnService without network connectivity,
but it's clearly not providing a vpn.

I think if you want to create a real VPN and a custom VpnService you should
educate yourself on what a
VPNis.


On Mon, Jun 25, 2012 at 3:43 AM, kyousef  wrote:

> Hi,
> I have been trying to use VpnService new feature in android ICS. I got it
> working, but I use to think that there must be a remote server for the VPN,
> and that the mobile application have to route all traffic to that remote
> server and get the responses back. This complicates the design a lot.
> Recently, I found some applications that use VpnService, but without using
> a remote server. These applications can even establish the VPN with no
> internet connectivity at all. I really need to get this thing happening,
> but I have no idea how to forward the traffic to the Internet. I tried to
> find any hints or examples, but in vain.
> Any help?
>
> Regards,
> Kareem
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] about the number of processes in Android app

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 12:57 PM, M  wrote:
> Is this case true that one single Android app has multiple processes

Not normally.

> and each process has multiple threads?

Yes.

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

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

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


Re: [android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 1:01 PM, Raghav Sood  wrote:
> Some users may not appreciate having to sign up for an account

Make it optional. The only features you get ("move their progress and
purchases across devices") are not strictly required for your app to
work, AFAICT.

> A rooted user could edit the local database and insert their own data to it.
> Is it possible to prevent/make this difficult?

Not really. Moreover, other than the in-app purchases, it should not
matter if the user tinkers with the data -- it is *their data*, not
yours. And while I have not implemented in-app purchasing, I would
hope there is some sort of verification mechanism you can use for that
which is part of their system.

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

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

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


Re: [android-developers] Re: Need help - hidden GPS monitoring app

2012-06-29 Thread Kristopher Micinski
> The employees agree to keep the phone and GPS feature turned on as long as
> possible
>

Not to mention ensuring they don't install a "fake GPS" app...

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] Activities in Android Game

2012-06-29 Thread Tony Houghton
On Fri, 29 Jun 2012 07:51:32 -0700 (PDT)
Pablo Ramon <19bard...@gmail.com> wrote:

> If my game has a Main menu, level selector, etc... Will I create an 
> activity for any menu, or only one Activity that manage a SurfaceView and 
> helping with "states" Draw the especified menu?

I think this really depends on how you want your menus to look and/or
whether you're familiar with developing using Android widgets. If you
want your game to have its own look & feel and/or you aren't familiar
with widgets it's probably easier to use a single activity and use
similar methods to what your game screen uses to draw things and respond
to input. This is the approach used in the book Beginning Android Games.
The activity owns an object implementing a Screen interface to render
the screen and respond to input, so by replacing the Screen object you
can display all sorts of different screens. I think that's a better
design than having an enum and switch for different states.

If you'd prefer your menu screens to use familiar Android widgets then
use separate activities.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it possible to pre-assign permission for specific USB device?

2012-06-29 Thread Dianne Hackborn
Sorry, no there is not.

On Thu, Jun 28, 2012 at 5:43 AM, Subodh Nijsure wrote:

>
> I have an application that talks to external USB device with vendor id of
> say 0xD00D and product id of 0x01.
>
> Is it possible to specify in AndroidManifest.xml file that my application
> should always have permission to use device with ID 0xD00D:0x01 without
> user having to explicitly give this permission when application starts?
>
> Currently I have declared following in my manifest,
> 
> android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
> 
>
> and  I have registered receiver for intent ACTION_USB_PERMISSION etc. as
> described in
> http://developer.android.com/guide/topics/connectivity/usb/accessory.html
>
> But is there any way to declare that my application X should always have
> permission for specific device, without user having to grant such a
> permission explicitly?
>
>
> -Subodh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

[android-developers] Remote database for users' game data - Best Practices

2012-06-29 Thread Raghav Sood
Hi all,

I'm working on a game. My game has a bunch of things like In app purchases,
in game credits, unlocked content etc. To allow users to move their
progress and purchases across devices, I've decided to have them sign up
for an account at the beginning. This account will store all of their data.
Additionally, this account can be used by the same user with my future
games as well. Now I had a few questions about the best practices when
using a system like this. Here's what I've come up with so far. If
something can be done better, or I've left out something that'll help me,
please tell me.


   - User signs up at first run. Email is verified etc.
   - User account is stored online in Database A, so that I can use the
   accounts for future games
   - After this, purchase information etc is stored in Database B, which is
   different on a game to game basis.
   - In case internet is not available when the user does something that
   needs to be saved, it is stored to a local database, which is synced with
   the online one when an internet connection is found

Potential problems with this approach:

   - Some users may not appreciate having to sign up for an account
   - A rooted user could edit the local database and insert their own data
   to it. Is it possible to prevent/make this difficult?
   - While I have a certification in PHP/MySQL, I'm not too familiar with
   databases on Android.

Is there something I've left out/ignored? Do any of you have a better
approach to solve this problem?

Thanks
-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] may i declare in the AndroidManifest.xml of the test project?

2012-06-29 Thread Dianne Hackborn
I would *strongly* discourage you from using shared user IDs.  Once you
publish your app like this, you can't change it.  This has lots of subtle
repercussions for your app.  Just please stay away from it.  Definitely do
not use it just for testing.

On Wed, Jun 27, 2012 at 8:22 PM, tiger meng  wrote:

> hi Dianne
>
> i found that if i share the linux user-id of my main and test application
> (by declaring same "sharedUserId" string),  i can put the "extra test
> purpose permissions" in  my test project's androidmanifest.xml file.
>
>  it works, my test app have the permission now.  the good part is, i don't
> need to change the src code.
>
> is it a strange work around in your opinion?
>
>
> On Wednesday, June 27, 2012 8:08:08 AM UTC+8, Dianne Hackborn wrote:
>>
>> Probably not, this is pretty core to the security model.
>>
>> On Mon, Jun 25, 2012 at 10:14 PM, tiger meng wrote:
>>
>>> i see. thanks. it makes sense to me.
>>>
>>> hope android project can consider my case, and design some easier to use
>>> mechanism for test projects in the future :)
>>>
>>>
>>> On Tuesday, June 26, 2012 9:56:52 AM UTC+8, Dianne Hackborn wrote:

 I assume you mean you are using test code that runs in Instrumentation,
 so your test code is in a separate .apk from your main app.  If so, then
 yes, a service in your test .apk that your test code can connect with and
 call to have it to the protected operations.

 On Mon, Jun 25, 2012 at 6:11 PM, tiger meng wrote:

> thx.
>
> so that the test code runs in a separate service, not in my
> application's process. so that i can declare uses-permission in my test
> project.
> is it what you mean?
>
> On Tuesday, June 26, 2012 8:06:37 AM UTC+8, Dianne Hackborn wrote:
>>
>> Correct, Instrumentation runs in the process of the app being tested,
>> so can only run with its permissions.  You can't extend the app's
>> permissions without changing its manifest to declare them.  I suppose you
>> could put a service in your instrumentation .apk that your 
>> instrumentation
>> code can connect with from the app to execute code that needs other
>> permissions.
>>
>> On Mon, Jun 25, 2012 at 2:25 AM, tiger meng wrote:
>>
>>> hi all,
>>>
>>> i created an Android project and a test project.
>>> my test cases want to access network, e.g. upload test log to my log
>>> server.
>>> my app doesn't access network, however.
>>>
>>>  >> />
>>> so where shall i declare above ?  in application's
>>> manifest or in test project's manifest?
>>>
>>> according to my test, i works only when i put it in application
>>> manifest.
>>> when i put it in test project, i got permission denial security
>>> exception...
>>>
>>> what shall i do?
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscribe@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.
>>
>>
> On Tuesday, June 26, 2012 8:06:37 AM UTC+8, Dianne Hackborn wrote:
>>
>> Correct, Instrumentation runs in the process of the app being tested,
>> so can only run with its permissions.  You can't extend the app's
>> permissions without changing its manifest to declare them.  I suppose you
>> could put a service in your instrumentation .apk that your 
>> instrumentation
>> code can connect with from the app to execute code that needs other
>> permissions.
>>
>> On Mon, Jun 25, 2012 at 2:25 AM, tiger meng wrote:
>>
>>> hi all,
>>>
>>> i created an Android project and a test project.
>>> my test cases want to access network, e.g. upload test log to my log
>>> server.
>>> my app doesn't access network, however.
>>>
>>>  >> />
>>> so where shall i declare above ?  in application's
>>> manifest or in test project's manifest?
>>>
>>> according to my test, i works only when i put it in application
>>> manifest.
>>> when i put it in test project, i got permission denial security
>>> exception...
>>>
>>> what shall i do?
>>>
>>>  --
>>> You received this message beca

Re: [android-developers] Battery usage per app

2012-06-29 Thread Dan

On Friday, June 29, 2012 3:22:28 AM UTC-4, Dianne Hackborn wrote:
>
> No.  The way this is done is very complicated, using an ever-evolving set 
> of measurements of various operations applications are doing and computing 
> them against a device-specific power profile to construct the UI.  This is 
> only intended to provide rough estimates as shown in the UI, this is not a 
> facility for applications to use.
>


If the information is good enough to show to the user, it should be good 
enough for
the user to gather up with an app to look at later.  All this hand waving 
about "ever
evolving" and "device specific" just pushes people to re-implement what 
they can
see done by the UI in the AOSP code (which, IMO is worse because it won't be
able to track the evolution/device specific changes.)

Hiding it in dumpsys output or forcing the user to click through menus and 
not exporting
it to the public API looks like either lazyness or some plot to put 
application developers
at a disadvantage if they want to be able to let users have the choice to 
track things in
a way Google may not have thought of.

There are plenty of other APIs that provide "rough estimates" (like 
RunningAppInfo) so
I don't see why there would be an issue with making it public and saying 
"rough estimate"
in the docs. 

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

[android-developers] about the number of processes in Android app

2012-06-29 Thread M
Hi,

Is this case true that one single Android app has multiple processes
and each process has multiple threads?

Thanks

M

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


Re: [android-developers] Can´t kill an activity/app

2012-06-29 Thread Dianne Hackborn
What does "Android 2.2 Google Maps" mean?

Anyway, the default implementation of Activity when it gets the back key is
to call finish().  If it is not finishing, you are overriding this behavior
or doing something else to change it.

On Fri, Jun 29, 2012 at 9:51 AM, icaro...@gmail.com wrote:

> Hi guys,
>
> I have an activity (main) that never is destroyed if I navigate through
> others activities.
> It DOES kill the app when I only navigate to the main activity.
>
> Example:
>
>
> 1)  "Main activity"  > Back Button Pressed
> Kill
>
> 2)  "Main activity"  > Activity 1
> When I press back button at "Activity 1", naturally the app goes back to
> Main activity (stack). NORMAL
> But already in "Main activity" when I press the back button, the app goes
> back to "Activity 1" in an infinite loop.
>
> I already checked if I have some some method falling into an infinite
> loop, but until now, everything is ok.
> I also tried to force the kill, calling "finish()", "destroy()", "android.
> os.Process.killProcess(android.os.Process.myPid())", but all was in vain.
>
> Specs: Android 2.2 + Google Maps
>
> Thanks,
>
> Icaro Camelo
> *Software Engineer*
> **Microsoft Certified Professional - .NET Framework 2.0
> Microsoft Certified Technology Specialist - Windows and Web
> Applications 3.5
>
> *
> E-mail: icaro...@gmail.com
> Mobile: +55 (85) 8820-9009
> Skype: icarocamelo*
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

[android-developers] Re: Android Spinner not working

2012-06-29 Thread sach
 
Hi please give me your xml file i solve that one.


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

[android-developers] Re: about the communication channels between android apps

2012-06-29 Thread Chris Stratton
On Jun 29, 12:24 pm, M  wrote:

> So, is there any way to montior all the communication channels between
> Android apps inside the devices?

No, because people can play dirty tricks like modulating and measuring
the system load to transmit information slowly.

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


[android-developers] Re: Need help - hidden GPS monitoring app

2012-06-29 Thread Chris Stratton
On Jun 29, 12:08 pm, Mihai Popescu  wrote:

> The client is not a seller, it is a large company and its activity involves
> mostly transporting goods throughout the country. The purpose of the
> software is to monitor truck driver location, thus enforcing some policies
> to save money. Can't have a truck driver get paid for telling lies about
> being stuck 2 hours in traffic, while watching TV at home, and getting paid
> for that, right?

Use a device bolted to the roof of the truck cab then; those have been
on the market for a long time.   Saves the privacy issue since you are
tracking the company asset (the vehicle), saves the reliability issue
since it gets vehicle power and isn't dependent on the employee
remembering to charge it.

> 2. The custom OS solution
> I know this is the best option, but I'm not sure the customer will be
> interested in spending that much money.

Doing it via a customized android build would not be all that
complicated.  But it would also not be on topic for this group.

> 3. More questions regarding Android and having the app run in background
> Android is based on Linux, so doesn't it have some low-level user
> management? You know, somewhat like a regular Linux distribution.
> I am thinking maybe my app/service can run as root, and require root
> permissions to be shut down (maybe password protected?).

Yes, but only in a customized android installation.  This group is
about creating apps, not about customizing android itself.

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

2012-06-29 Thread Nobu Games
Maybe following link is of help for you. Apparently this can only be done 
on ICS devices and is meant to be integrated into IMEs: 
http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html

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

Re: [android-developers] HELP PLEASE.

2012-06-29 Thread TreKing
On Tue, Jun 26, 2012 at 7:20 PM, codedreamer wrote:

> this xml file just wont work


Explaining what "just wont work" means would go a long way to getting you
help.

-
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] HELP PLEASE.

2012-06-29 Thread Sonvane Sachin
hi,


http://schemas.android.com/apk/res/android";
package="np4.com"
android:versionCode="1"
android:versionName="1.0"
android:installLocation= "preferExternal">

   


  


















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

[android-developers] Re: Need help - hidden GPS monitoring app

2012-06-29 Thread Nobu Games
You got your answers by programmers who are familiar with the Android SDK 
and platform. What you are requesting is not possible without firmware 
modifications (which is out of the scope of this group). And I agree with 
Daniel's remarks. The idea itself is a bit flawed. What happens if there is 
no data connectivity, or the battery is dying? Or the user just turns off 
the device? Or the user is making a phone call (I don't think that you can 
have data connectivity and phone calls simultaneously, but I'm not sure 
about that). In the end of the day your customer / the employer has to put 
a bit of trust into their employees for making that big brother system work:

   1. The employees need to know and agree on that they are spied on
   2. The employees agree not to temper with that app, neither are they 
   allowed to stop it nor are they allowed to temper with its data storage or 
   functionality
   3. The employees agree to keep the phone and GPS feature turned on as 
   long as possible

Your app could still cache the collected data and upload it to the server 
as soon as connectivity is available. If there are anomalies this can be 
figured out on the server side by the end of the day and traced back to a 
particular employee.

Furthermore you could make your spy app the default home launcher app, just 
to make sure it gets started as first app and every time the home button 
gets pressed. Still: the user could revert back to the default home 
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

Re: [android-developers] Re: about the communication channels between android apps

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 12:24 PM, M  wrote:
> So, is there any way to montior all the communication channels between
> Android apps inside the devices?

Only via your own custom firmware, for obvious privacy and security
reasons. Discussion of that is off-topic for this list -- see
http://source.android.com to learn about the Android firmware.

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

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

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


[android-developers] Re: about the communication channels between android apps

2012-06-29 Thread M
Thanks a  lot for your reply!

So, is there any way to montior all the communication channels between
Android apps inside the devices?
Any existed mechanism or reference or codes?

Thanks a lot.

M

On Jun 14, 8:35 pm, Kristopher Micinski 
wrote:
> On Wed, Jun 13, 2012 at 1:33 AM, michael  wrote:
> > Hi,
>
> > the following is one statement, is it correct? :
> > that applications do not run natively and inter-app communications
> > must take place via IPC is not entirely true. There are ways for
> > application to communicate without going through pre-defined OS
> > provided channels.
>
> > Thanks a lot for your reply
>
> > M
>
> There are lots of ways for apps to communicate:
>   -- Intents,
>   -- Content providers,
>   -- Direct RPC a la AIDL,
>   -- Writing to a shared file,
>   -- etc..., the list goes on.
>
> By far, the most common paradigms are using either intents, or RPC
> (either with AIDL or a Messenger, which is built on top of AIDL).
> Using intents are a fairly lightweight asynchronous communication
> mechanism, though their expressiveness is somewhat limited, whereas
> direct RPC ties the apps together more, and you might not need it if
> you're sending simple messages.
>
> Your statement doesn't make any sense, by the way.  Whether apps run
> naively or not depends on the vm implementation.  They definitely run
> on top of the vm, as everything in Android does, but they may or may
> not be run in compiled code via JIT.  They have to communicate using
> the mechanisms provided., but as I said there's a wide range of things
> possible, even using 
> ashmem,http://www.androidenea.com/2010/03/share-memory-using-ashmem-and-bind...
>
> kris
>
> 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] HELP PLEASE.

2012-06-29 Thread Raghav Sood
Well, seeing as you aren't telling us the exact problem, we can't really
help you but what jumps out is that in the configChanges attribute you're
using a "/" instead of a "|".

Thanks

On Wed, Jun 27, 2012 at 5:50 AM, codedreamer wrote:

> Hello. Currentyl i have a book called beginning android games by appress
> written by Mario zechner. I COPIED EXACTLY wats in the book for a setup for
> an app and this xml file just wont work. Thanks in advance if u can help
> me. I appreciate it
>
>
>
>
>
>
>
>
>
> 
> http://schemas.android.com/apk/res/android";
> package="np4.com"
> android:versionCode="1"
> android:versionName="1.0"
> android:installLocation= "preferExternal">
>
>
>
>
> android:label="@string/app_name"
>  android:debuggable="true">
>
>
>android:label="@string/app_name"
> android:screenOrientation="landscape"
> android:configChanges="keyboard/keyboardHidden/orientation">
>
>
> 
> 
>
>  />
> 
> 
> 
>
>  android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
> 
> 
>
>
>
> 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

2012-06-29 Thread jarkman
Thanks - I'd tried that, but it's not nearly as nice an experience as voice 
typing, where the text appears while the user is speaking.

On Friday, June 29, 2012 5:11:21 PM UTC+1, Nobu Games wrote:
>
> You can start an 
> Intentfor
>  speech recognition.
>

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

Re: [android-developers] Re: Need help - hidden GPS monitoring app

2012-06-29 Thread Mark Murphy
On Fri, Jun 29, 2012 at 12:08 PM, Mihai Popescu
 wrote:
> Android is based on Linux, so doesn't it have some low-level user
> management? You know, somewhat like a regular Linux distribution.

Yes, which you mostly deal with in custom firmware.

> I am thinking maybe my app/service can run as root, and require root
> permissions to be shut down (maybe password protected?).

Your app can run as root, and the user can still stop the app. The
only way to stop this would be custom firmware.

> The next obvious question would be: can I prevent the user from changing the
> service start-up settings?

They can simply uninstall your app. The only way to stop this would be
custom firmware.

> And of course: can the service open the 3G/GPRS connection at any time
> without generating additional dialogs?

Yes, for some definitions of "open the 3G/GPRS connection".

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

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

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


[android-developers] about the sensors of Android devices

2012-06-29 Thread M
Hi, all,

Are all the sensors of Android devices running as deputy apps in he
device?

Camera, for sure.  But for Accelerometer, WiFi, Bluetooth and so on.
Are they running as deputy apps?

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: Start voice typing from code ?

2012-06-29 Thread Nobu Games
You can start an 
Intentfor
 speech recognition.

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

2012-06-29 Thread Latimerius
On Thu, Jun 28, 2012 at 7:26 PM, b0b  wrote:
> Ah changing stuff for the sake of changing stuff...

Yeah... call me conservative but I just hate when people do that.  I
don't get it, does anyone know what problem they were trying to solve?

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


[android-developers] Re: Need help - hidden GPS monitoring app

2012-06-29 Thread Mihai Popescu
First of all: Google's idea about design seems to evade me :)
I didn't see most of your replies.

1. Legal issues
The software (application, service or custom OS) will be used on employee 
handsets. I assume our customer can get them to sign some papers for this, 
it is not really my problem :)
The client is not a seller, it is a large company and its activity involves 
mostly transporting goods throughout the country. The purpose of the 
software is to monitor truck driver location, thus enforcing some policies 
to save money. Can't have a truck driver get paid for telling lies about 
being stuck 2 hours in traffic, while watching TV at home, and getting paid 
for that, right?

2. The custom OS solution
I know this is the best option, but I'm not sure the customer will be 
interested in spending that much money.
Also, I think buying car tracking devices might exceed their budget and 
also cost them some monthly fee for them. They do own over a thousand 
trucks,  and buying GPS trackers for them would go up to 200k, while they 
plan to invest only half of that in software in general, and not only for 
the tracking app.
Besides, this would mean no profit for us :)

3. More questions regarding Android and having the app run in background
Android is based on Linux, so doesn't it have some low-level user 
management? You know, somewhat like a regular Linux distribution.
I am thinking maybe my app/service can run as root, and require root 
permissions to be shut down (maybe password protected?).
Also, I assume that services are the only type of sotware capable of 
starting on phone power-up, so probably this will be the best solution.
The next obvious question would be: can I prevent the user from changing 
the service start-up settings?
And of course: can the service open the 3G/GPRS connection at any time 
without generating additional dialogs?

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

[android-developers] I want to create a home screen widget which updates using a csv file when the widget or a button on it is being pressed.

2012-06-29 Thread Harry Wardlaw
Is there a tutorial for this? I am asking cause I have problems removing 
the internet connection part from the google widget example.

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

[android-developers] IAP Error RESULT_SERVICE_UNAVAILABLE - Unexpected response code 429

2012-06-29 Thread Joel Martinez
Strange error that I'm seeing when trying to restore transactions:

06-29 11:57:06.255: E/Volley(16498): [13] BasicNetwork.performRequest: 
Unexpected response code 429 for 
https://android.clients.google.com/vending/api/ApiRequest
06-29 11:57:06.265: E/Finsky(16498): [1] 
NotifyingErrorListener.onErrorResponse: Server error on 
InAppPurchaseInformationRequest: com.android.volley.ServerError

which comes back in response to the request to RESTORE_TRANSACTIONS. 
According to some other threads I've come across on stack overflow, this 
seems related to potentially sending too many restore requests, which could 
potentially happen during development. 

Is there any definitive documentation about this behavior/response? How 
does one recover from receiving this error after it has been encountered 
... I first noticed this yesterday, and then when I tried it again this 
morning am still receiving it. 

Question was also posted on SO (albeit in an earlier form, before I had 
more info about the problem):
http://stackoverflow.com/questions/11263733/android-iap-error-result-service-unavailable

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

[android-developers] Android Device Emulator

2012-06-29 Thread Zan
Hello all,

Just developed a fast application in Adobe Flash CS5, and I published
it as an "Emulator Release" for Android 2.2. Adobe compiled & created
the .apk, and also installed on the emulator, but when I start the
application on the emulator, it seems nothing happens but a black
blank screen comes up. I already installed AIR.apk on the emulator,
and tried Android 2.3.3 which's not worked neither.
Could you give me some advice please?

Thank you,
~Zan.

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

2012-06-29 Thread Andrei Buneyeu
I had very similar issue - ffmpeg caused crash of my app by signal 7 
(SIGBUS) after decoding several hundreds of frames. It was not very device 
specific - on some devices app crashed more often, on other less often.

It was very incomprehensible issue for me cause it could happen at any time 
of video encoding/decoding and I couldn't find any conditions that causes 
failures.
But I recompiled ffmpeg with `-malign-double` flag according to this useful 
article:
http://software.intel.com/en-us/blogs/2011/08/18/understanding-x86-vs-arm-memory-alignment-on-android/.
 
And it helped! So my full "configure" line is (of course not all of these 
flags are useful for you):

> ./configure --target-os=linux --cross-prefix=arm-linux-androideabi-
> --disable-asm --arch=arm --cpu=cortex-a9 --sysroot=${SYSROOT} 
--enable-neon --disable-avdevice --enable-decoder=mjpeg 
--enable-demuxer=mjpeg --enable-parser=mjpeg --enable-demuxer=image2 
--enable-muxer=mp4  --prefix=build/armeabi-v7a --extra-cflags='-DANDROID 
-I${NDK_ROOT}/sources/cxx-stl/system/include -mtune=cortex-a9 -mfpu=neon 
-mfloat-abi=softfp' --extra-ldflags='-Wl,--fix-cortex-a8 -malign-double 
-L../android-libs -Wl,-rpath-link,../android-libs' 
--extra-cxxflags='-Wno-multichar -malign-double -fno-exceptions -fno-rtti'

Hope it'll help you.
Best regards,
Andrei Buneyeu.

пятница, 20 апреля 2012 г., 10:44:40 UTC+3 пользователь B.Arunkumar написал:
>
> Hi, 
>
> We have designed an app which renders video from IP camera on the 
> Android mobile (Samsung Galaxy SII) through RTSP, the video frames get 
> decoded by ffmpeg and rendered on ImageView. We get the RTSP responses 
> and video packets from the IP camera using a socketchannel and 
> asynchronous selector. Sometimes we get this error "Process 8769 
> terminated by signal (7)" and the app crashes at the point where the 
> asynchronous selector is read and the packets get processed. Could 
> somebody give any clues on what could be the possible reasons why we 
> get this error sometimes and the app crashes? 
>
> 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] adb, ant and emulator devices

2012-06-29 Thread kosie99
When I start an emulator, I see that adb has 2 devices listed, one that 
look something like this STOJKDHY and another one that has a name like 
emulator-5554. When I do a ant install, it tells me that there are more 
that one emulator running and it fails. I then need to specify 
emulator-5554 explicitly. Is this something new, because I never had to do 
it before? Or am I doing something wrong (most probable cause ;))

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

[android-developers] Help me!

2012-06-29 Thread nghia tran duc
Hello everyone!
I am newbie, I want to make a program transfer data  on Mydevie vs Android 
OS  by USB port  on Android OS. I think to read data as use Mouse or 
Keyboard, but I don't know to do it, Can u help me!
Thanks !

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

[android-developers] Re: How to convert a image into Base64 string?

2012-06-29 Thread Todd Painton
I actually had the exact same question.  The original post, the question, 
was pretty specific and I'm thankful not everyone on the internet answered 
as you originally did or google really wouldn't have any answers would it?  
Thankfully, others below you gave brief non-smart-alek responses that 
google DID pick up, and brought me straight to them.. after having to 
unfortunately wade through your non-helpful responses first.   So let me 
add.. Thanks to all.. but one.   

On Friday, January 28, 2011 10:56:42 AM UTC-6, Hari Edo wrote:
>
>
> This kind of question seems more like a school homework 
> assignment, but in case the question is practical, here goes. 
>
> What Base64 is: 
>
>   http://en.wikipedia.org/wiki/Base64 
>
> This article gives plenty of examples and details that someone 
> can write their own fully-tested implementation in an hour. 
>
> But in twenty seconds of using Google, I tried the search string 
> of "base64 encode in java" and got tons of hits.  The third link 
> has a fully-tested implementation (based on the same Wikipedia 
> example data and algorithms). 
>
>   http://www.wikihow.com/Encode-a-String-to-Base64-With-Java 
>
> Now, it's not good form to just copy code without asking, but 
> since this is a How-To article published on the web, I don't 
> think you'll run into copyright issues if you adapt their code 
> into your application.  There's good discussion in the article 
> about how the code works, and advice on learning to program. 
>
> However, this question is even sillier than that.  The 
> Android platform even includes a class called Base64 which 
> does all the encoding and decoding for you.  Without 
> worrying about incompatibility, testing, or license issues! 
>
>   http://developer.android.com/reference/android/util/Base64.html 
>
> That class even has an .encodeToString() method that turns 
> your arbitrary byte[] data into a String ready for use in 
> sqlite TEXT fields. 
>
> Beyond that, I'm really not sure what the actual problem is. 
>
> I'm not trying to be rude, but it's depressing when people 
> ask questions that are so quickly answered with even the 
> most cursory search first. 
>
> On Jan 28, 11:40 am, saex  wrote: 
> > Hi 
> > 
> > Can someone tell me the code to transforma image (maximum of 200KB) 
> > into Base64 String??? 
> > 
> > i need to know how to do it with android, because i have to add the 
> > functionality to upload images to a remote server in my main app 
> > putting them into a ROW of the database, as a string. 
> > 
> > i am searching in google and in StackOverflow but i can't find easy 
> > examples that i can afford. And also i find some examples but they are 
> > not talking about to transform into String... and i need to transform 
> > into string to upload by JSON to my remote server. 
> > 
> > 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 use gwtp dispatch actions on android

2012-06-29 Thread Bery



Hello.

This is the link from the stackoverflow question if you would like to 
answer there also: 
http://stackoverflow.com/questions/11151996/how-to-use-dispatch-actions-on-android/11152042#comment14622740_11152042

I am working on a project hosted on AppEngine, and for the browser client I 
am using the GWTP platform which implies using GIN (on the client) and 
GUICE on the server. Also, it uses Models, presenters, actions and events.

I am thinking of also writing an android client for the service but I don't 
know how to start because I don't know how to connect and exchange data 
with the webservice. I would have to use Actions and Action Handlers ( 
http://code.google.com/p/gwt-platform/wiki/GettingStartedDispatch ) which I 
use for the browser client. From Android I only know how to do it with RPC, 
and I can't make the connection, I don't know how to map classes from the 
device to the server.

For example, by using GWTP, if on the browser client I want to do something 
on the server, I implement an Action class, an ActionResult class ( both on 
the client ) and an ActionHandler class (on the server). To dispatch an 
action, I use the DispatchAsync interface and to get the result I use 
AsyncCallback.

Action (on the client ) - SendRoadNotification.java :

public class SendRoadNotification extends
ActionImpl {

private RoadNotification roadNot;



@SuppressWarnings("unused")
private SendRoadNotification() {
// For serialization only
}

public SendRoadNotification(RoadNotification roadNot) {
this.roadNot = roadNot;
}

public RoadNotification getRoadNot() {
return roadNot;
}
}

ActionResult (on the client ) -- SendRoadNotfifcationResult.java :

public class SendRoadNotificationResult implements Result {

private RoadNotification roadNot;

@SuppressWarnings("unused")
private SendRoadNotificationResult() {
// For serialization only
}

public SendRoadNotificationResult(RoadNotification roadNot) {
this.roadNot = roadNot;
}

public RoadNotification getRoadNot() {
return roadNot;
}
}

ActionHandler ( on the server ) -- SendRoadNotificationActionHandler.java :

public class SendRoadNotificationActionHandler implements
ActionHandler {

static DataStore ds = DataStore.getDatastoreService();

@Inject
public SendRoadNotificationActionHandler() {
}

@Override
public SendRoadNotificationResult execute(SendRoadNotification action,
ExecutionContext context) throws ActionException {

//Here I am doing something with that action
}

@Override
public void undo(SendRoadNotification action,
SendRoadNotificationResult result, ExecutionContext context)
throws ActionException {
}

@Override
public Class getActionType() {
return SendRoadNotification.class;
}
}

The way I use those, is:

SendRoadNotification action = new SendRoadNotification(rn);
dispatchAsync.execute(action, sendRoadNotifCallback);

And the callback:

AsyncCallback sendRoadNotifCallback = new 
AsyncCallback() {

@Override
public void onSuccess(SendRoadNotificationResult result) {


}

@Override
public void onFailure(Throwable caught) {
Window.alert("Something went wrong");

}

};

How can I implement this in android ? Can somebody give me an example or 
had this problem before ?

I am using AppEngine sdk 1.6.4, GWT sdk 2.4.0, GWTP plugin for Eclipse and 
GPE plugin for Eclipse.

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

[android-developers] Activity Feed Within Native Android App

2012-06-29 Thread Xiaoyang
I am trying to build a feature in an Android app that allows a user to
post some combination of text and images onto a "news feed" that can
be 1) visible to all users or 2) visible to the user's friends (the
user decides this at each posting).

I have tried Google to no avail, so my question is, I guess, where
should I start? (What should I use for the database, etc.)

Thanks everyone.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] may i declare in the AndroidManifest.xml of the test project?

2012-06-29 Thread Jagadish Vasarla
Create a Service with aidl interface which uploads logs to server. Include
your "android.permission.INTERNET" permission  in the service. Call the
Service calls from ur test app. It is just like server and client.

With Regards,
V.Jagadish



On Mon, Jun 25, 2012 at 2:55 PM, tiger meng  wrote:

> hi all,
>
> i created an Android project and a test project.
> my test cases want to access network, e.g. upload test log to my log
> server.
> my app doesn't access network, however.
>
>  
> so where shall i declare above ?  in application's
> manifest or in test project's manifest?
>
> according to my test, i works only when i put it in application manifest.
>
> when i put it in test project, i got permission denial security
> exception...
>
> what shall i do?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-06-29 Thread Emanuel Tivadar
did you managed to solve this ? if yes, please provide the solution. thanks.

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

[android-developers] Why Galaxy Tab 2 7.0 (GT-P3110) not found in supported device

2012-06-29 Thread Tiger Ng
Hi,

I am using Galaxy Tab 2 7.0 (GT-P3110) for development.
After I upload app to Google Play, it said "This app is incompatible with 
your Samsung GT-P3110".

Here is my settings in manifest.xml

 



Also I check with google play's support: 
http://support.google.com/googleplay/bin/answer.py?hl=en&answer=1727131#S
they are no GT-P3110 devices ? What is the problem ? I can use Google Play 
in my device to download other apps.

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

[android-developers] HELP PLEASE.

2012-06-29 Thread codedreamer
Hello. Currentyl i have a book called beginning android games by appress 
written by Mario zechner. I COPIED EXACTLY wats in the book for a setup for 
an app and this xml file just wont work. Thanks in advance if u can help 
me. I appreciate it










http://schemas.android.com/apk/res/android";
package="np4.com"
android:versionCode="1"
android:versionName="1.0" 
android:installLocation= "preferExternal">

   


   
   
   
  
   

















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

[android-developers] how to add image buttons in gridview in android

2012-06-29 Thread nanda
hi

I am new to this android and i need to add image buttons in grid view by 
parsing an xml.how to do this??


Thanks

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

  1   2   3   4   >