Re: [android-developers] Why is there NO good Viewpager tutorial on the Internet??

2017-01-09 Thread Mark Phillips
>From version 8.2 of _The Busy Coder's Guide
to Android Development_ https://wares.commmonsware.com

- Added a chapter on advanced `RecyclerView` techniques, starting
with using `RecyclerView` to replace a `ViewPager` for page-at-a-time
user interfaces

Mark

On Thu, Jan 5, 2017 at 10:50 AM, Marina Cuello 
wrote:

> What you link is not supposed to explain much, almost everything on the
> Reference portion of the site is just a little more than a Javadoc instance
> and that's what it's made for. In the official site you can find
> https://developer.android.com/training/animation/screen-slide.html which
> is not a big thing but it's a starting point.
> Not a tutorial, but it could be useful: a section of a chapter on Mark
> Murphy's book, https://commonsware.com/Android/previews/swiping-with-
> viewpager explaining a bit about its components.
> You can also check his code samples: https://github.com/co
> mmonsguy/cw-omnibus/tree/master/ViewPager
>
> Marina
>
>
> On Sun, Jan 1, 2017 at 2:41 PM, Niklas Daute 
> wrote:
>
>>  Hello guys,
>>
>>  I need to get this out before I go completely* insane.*
>>
>>  Currently I am developing an app which creates PieCharts based
>> on user entries, and i have a working single screen/ viegroup/ activity
>> whatever version of the app running and complete.
>>
>>  However, i want to* improve* the* layout *of this* application *a
>> little bit and it would help tremendously to have a *viewpager with
>> three different pages to host three diffreerent fragments with their own
>> purpose each. *
>>
>>  When I got the idea, i was rather optimistic about achieving my
>> goal, one week has passed since then.
>>
>> *What have I found on the Internet?*
>>
>> One great tutorial, which shows in *detail* how to create
>> and define a ViewPager with all its components and listeners and adapters
>> and whatsoever, with the goal to allow a young fresh developer to create a
>> simple ui which would help him create a *GREAT* application?
>>
>> * NOPE*
>>
>>Half assed information and so called "tutorials" which leave
>> out important information alà:
>>
>> "How to draw an Elephant
>>
>>   STEP 1: Draw the Elephant.
>>
>>   STEP 2: Done."
>>
>> *   YES*
>>
>> *However the biggest joke is the official View Pager
>> Documentation
>> 
>> on the android developers web page, which explains nothing and leaves me
>> with more questions than i started out with. *
>>
>>Words cannot explain how frustrated I am about this. How can such
>> a elementary UI element which is found in the most famous applications on
>> google play be so poorly documented and accessable fore new developers?
>>
>>I hope someone can understand my struggle and help me out, because
>> this issue is deeply frustrating to me. I am not trying to outsource my
>> anger/misfortune to anyone here. I am just irritated by the sheer ridicule
>> of this viewpager situation.
>>
>>If someone can provide me with *ONE *good *VIEWPAGER TUTORIAL *i
>> would be very thankful.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/android-developers/aa409c37-ffdb-4f5a-85d1-8f02498fde1b%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/android-developers/CACaNmX3_iL7ygrQk0U7sASi_y%2BH6%3DG%3
> Dgex6meFHR8Dxbmka5zA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android 

Re: [android-developers] Why is there NO good Viewpager tutorial on the Internet??

2017-01-01 Thread Mark Phillips
Considering the fact that everyone on this list is a volunteer, I suggest
you moderate your tone if you want to get any help at all.

If no one has written a viewpager tutorial that meets your needs, then
probably no one needed one. I suggest you look at the source code and api
documentation, build some simple test apps so you learn how the view pager
works, and then write the best viewpager tutorial that has ever been
written. You will surely receive all the accolades you deserve for your
efforts.

Mark

On Sun, Jan 1, 2017 at 10:41 AM, Niklas Daute  wrote:

>  Hello guys,
>
>  I need to get this out before I go completely* insane.*
>
>  Currently I am developing an app which creates PieCharts based on
> user entries, and i have a working single screen/ viegroup/ activity
> whatever version of the app running and complete.
>
>  However, i want to* improve* the* layout *of this* application *a
> little bit and it would help tremendously to have a *viewpager with three
> different pages to host three diffreerent fragments with their own purpose
> each. *
>
>  When I got the idea, i was rather optimistic about achieving my
> goal, one week has passed since then.
>
> *What have I found on the Internet?*
>
> One great tutorial, which shows in *detail* how to create and
> define a ViewPager with all its components and listeners and adapters and
> whatsoever, with the goal to allow a young fresh developer to create a
> simple ui which would help him create a *GREAT* application?
>
> * NOPE*
>
>Half assed information and so called "tutorials" which leave
> out important information alà:
>
> "How to draw an Elephant
>
>   STEP 1: Draw the Elephant.
>
>   STEP 2: Done."
>
> *   YES*
>
> *However the biggest joke is the official View Pager Documentation
> 
> on the android developers web page, which explains nothing and leaves me
> with more questions than i started out with. *
>
>Words cannot explain how frustrated I am about this. How can such a
> elementary UI element which is found in the most famous applications on
> google play be so poorly documented and accessable fore new developers?
>
>I hope someone can understand my struggle and help me out, because
> this issue is deeply frustrating to me. I am not trying to outsource my
> anger/misfortune to anyone here. I am just irritated by the sheer ridicule
> of this viewpager situation.
>
>If someone can provide me with *ONE *good *VIEWPAGER TUTORIAL *i
> would be very thankful.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/aa409c37-ffdb-4f5a-85d1-
> 8f02498fde1b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2O5%2BotBQQjeTR95Zxn1%2B--VK1OO7qSV-kpPNC3-7eQO_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Looking to turn a simple Excel worksheet into an Android App

2016-12-20 Thread Mark Phillips
Paul,

I would be happy to look at your spreadsheet and give you some feedback on
what it would take to convert it into an Android app.

Mark

On Sun, Dec 18, 2016 at 9:38 AM, Paul Bevins 
wrote:

> Hi,
>
> My name is Paul and I'm new to the forum. I looked, but did not see this,
> so posting.
>
> I have a simple, one sheet Excel file that does basic calculations,
> counting points for activities done during the week.
> I'm looking for a simple way to convert the sheet into an app.
> Right now, it seems like everything wants me to use some sort of web based
> forum for calculations and then drop to the app.
> However, frequently, people will not have web access, so this is not
> feasible.
> Is there a simple way to get this created?
>
> Alternatively, all the sheet does is count points for people trying to
> improve the quality of their life.
> Is there an easy way to build an app that does simple addition and color
> codes correspondingly?
>
> For instance, Journaling gets 3 points for each day done, a total of 7
> days per item (row).
> At 2 days (6 pts) or less, the total is red. 3-5 (9-15 pts), yellow and
> 6-7 (18-21), green.
>
> There are four sections. Mental, Physical, Recreational and Spiritual.
> Each of the four (15 row) sections also need to be totaled, though I'm not
> sure I want those colored.
>
> Finally, the complete total of all 60 rows needs to be displayed at the
> bottom, or for an app, maybe on top?
>
> This is a volunteer project and I'm willing to put a bit of money into it.
> However, since the people using the app won't be paying for it (or even
> able to),
> this really needs to be as inexpensive as possible, at least to start.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/45925b98-f4f9-4a4b-bc60-
> 79c375b90d29%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2PcDRj3Ho5uhRe976_poYoaXO_Zg42UtdBg2j%3DTefnJNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Database

2016-11-07 Thread Mark Phillips
Read the docs!

https://developer.android.com/training/basics/data-storage/databases.html

Mark

On Mon, Nov 7, 2016 at 2:12 PM, Vasil Vasilev  wrote:

> Hello Developers,
>
> I am new in android developing, but I already learned many things about it!
> So what I want is help with what database can I use for my Shopping List
> application?
> I am planning to store a shopping list that the user create to a database
> and also store goods into categorys for suggestion in to the search bar.
> Can you suggest me ant Database tool that I can use with android studio?
>
> Thank you in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/8453d090-e666-4d2e-a2b6-
> 94fe984f9353%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2PVdhm5Vq%2BtFvkiPxMFxPus1x0ZAdBkUs5jU0akfi9tWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] I want to Teach Middle School Students Android Programming

2016-09-28 Thread Mark Phillips
Chris,

I applaud you enthusiasm. IMO, android programming is a big leap forward
for middle school non-programmers right out of the box. However, MIT has
created an "app-inventor" project to address just what you want to do.
http://appinventor.mit.edu/explore/index-2.html. I have not used it, but
from the description it is based on a drag and drop principle for
components and then linking the boxes together to make it work. Something
like that may work for you.

Google has produced some very good video courses for beginning Android
programming on udacity, but the cost is $199/month/seat. Perhaps Google
would give you free access to these courses? The first one is 165 hours of
instruction, so it may be to large for what you want. These courses are
real programmer courses, ie you have to use the APIs to find some of the
information needed to build the projects. It may be too much for all but
the most advanced middle schoolers in your classroom.

There are lots of middle/high school programming resources on the Internet
for web based programming. This approach to learning programming may be
easier for you and the students to grasp. Some examples...in this case,
Google is your friend.

https://www.commonsense.org/education/top-picks/best-coding-tools-for-middle-school

https://code.org/educate/curriculum

http://www.edutopia.org/blog/15-ways-teaching-students-coding-vicki-davis

https://www.tynker.com/school/

Good luck!

Mark

On Wed, Sep 28, 2016 at 6:51 AM, Chris N  wrote:

> I want to teach my middle school students android programming.  Noone
> teaches them any programming in middle school or high school.  I think
> coding is an important skill for anyone to learn.
> I know web programming...like javascript and php.  I'll need to learn some
> android programming and then begin creating easy projects to teach them the
> basics.
>
> Maybe I'm crazy, but I think coding will do alot for these students.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/d1c41df2-0553-4d2c-a9f8-
> 9ccb9a6f6771%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2NW5SmTv9G2LH_kgFnZbTg4HiMh9r2DiJPXUJm2jFxYEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] App having Backend to store data

2016-09-19 Thread Mark Phillips
There are a million frameworks. I like Django Rest -
http://www.django-rest-framework.org/. But there are lots of other choices
out there.

Mark

On Sun, Sep 18, 2016 at 10:27 PM, Harsh Raj <harsh273...@gmail.com> wrote:

> Yes sir , I have a solution for that , but for the first time of use the
> user will have to connect to the internet.
> So when the user will search something, The result that is coming will be
> be stored on the user's mobile device.
> And the next time when user runs the app, the stored data will be shown
> but for new search, internet connection is needed.
>
> But the real problem is that I am not able to decide what to use for the
> back-end .
>
> On Mon, Sep 19, 2016 at 2:24 AM, Mark Phillips <m...@phillipsmarketing.biz
> > wrote:
>
>> What will happen to your app if the phone cannot connect to your server?
>> For example, no service, no wifi, or in airplane mode?
>>
>> You might want to look at having local storage on the phone for the app's
>> information and have a background task keep the local storage in sync with
>> the server.
>>
>> Mark
>>
>> On Sun, Sep 18, 2016 at 12:29 PM, HarSh Raj Vardhan <
>> harsh273...@gmail.com> wrote:
>>
>>> Guyz , I am really a beginner. and I want to develop a android having
>>> light app with only UI and nothing will be stored in the app as static data
>>> .
>>> All its data will be stored on a server or any other place which the app
>>> will retrieve whenever needed.
>>>
>>> The problem is that i don't know what to use for a data storage. Like a
>>> back-end or any server which is free and easy to use? is Google's firebase
>>> good for it ? and if yes then how can it be used efficiently ? and how to
>>> retrieve this data,and store too?
>>>
>>> Please help me as I am really short of time as this is my project.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-developers+unsubscr...@googlegroups.com.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> .
>>> Visit this group at https://groups.google.com/group/android-developers.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/android-developers/b5705392-31a0-4098-a25e-ac593a6364fa%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/android-developers/b5705392-31a0-4098-a25e-ac593a6364fa%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/android-developers/7vsjANmx-rE/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/android-developers/CAEqej2NYjk%2B9rEGW2bNJiPXyXgqNOC3GjQ
>> Dhyt%3D689AAc4LMfg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/android-developers/CAEqej2NYjk%2B9rEGW2bNJiPXyXgqNOC3GjQDhyt%3D689AAc4LMfg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/CAJeP_sunyXUiKMsj1BQjV3VxKUc-
> U7p5khbSmn_4idMOMsh_NA%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-developers/CAJeP_sunyXUiKMsj1BQjV3VxKUc-U7p5khbSmn_4idMOMsh_NA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2PH9pYvD0P-Ne7DWiQx%3DwXKL%2Bai%2Bj0CoRP5qjNhEtY91Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] App having Backend to store data

2016-09-18 Thread Mark Phillips
What will happen to your app if the phone cannot connect to your server?
For example, no service, no wifi, or in airplane mode?

You might want to look at having local storage on the phone for the app's
information and have a background task keep the local storage in sync with
the server.

Mark

On Sun, Sep 18, 2016 at 12:29 PM, HarSh Raj Vardhan 
wrote:

> Guyz , I am really a beginner. and I want to develop a android having
> light app with only UI and nothing will be stored in the app as static data
> .
> All its data will be stored on a server or any other place which the app
> will retrieve whenever needed.
>
> The problem is that i don't know what to use for a data storage. Like a
> back-end or any server which is free and easy to use? is Google's firebase
> good for it ? and if yes then how can it be used efficiently ? and how to
> retrieve this data,and store too?
>
> Please help me as I am really short of time as this is my project.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/b5705392-31a0-4098-a25e-
> ac593a6364fa%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2NYjk%2B9rEGW2bNJiPXyXgqNOC3GjQDhyt%3D689AAc4LMfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Goodbye, list.

2016-07-23 Thread Mark Phillips
I have also been bothered by all the spam job postings. I use gmail, so as
they started to arrive in my inbox a few weeks ago I just selected them as
spam, and now I hardly ever get any. It took a few weeks for the gmail spam
filter to learn to block these job posting emails, but now they are gone!

Mark

On Fri, Jul 22, 2016 at 3:10 PM, Trevor Page  wrote:

> I've rarely posted in this group, but always found it useful to follow the
> various discussions. Now, sadly, it's unsubscribe time for me.
>
> These days the only way it seems to 'benefit' me is to bring in a high
> volume of spam from recruiter scum. I've tried adding a few to the spam
> filter but it gets tiring.
>
> It's a shame and frankly bizarre that a group dedicated to Google's
> popular OS, on Google's own groups platform, is not professionally
> maintained by Google, and is instead just a hell hole of spam.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CAG8Y82o96A0ac3VJU6OSoB1yiFar2qf%2B6U08vVeDxmr8Y%3Dz7iw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2MoU4VUDf-CxyD4mpHrW_qEFd%3DD-6x7wAtkakksncJ7wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to pass multiple selections from the android application,similar to selection from a multiselect checkbox?

2016-07-17 Thread Mark Phillips
On Sat, Jul 16, 2016 at 10:46 PM,  wrote:

> Hi,
> I am developing an Android application and I need to pass multiple
> selections from the application,similar to selection from a multiselect
> checkbox.I have searched a lot and cannot find how to do this
>

I don't understand. Where are you sending these multiple selections?
Another Activity, Fragment, Application, web site,...?

>
> Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2N4NpYRWJbSSpQKD%2Ba%2B%3D-Yz22%2BfN86ayRGxPPC-_VFzHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Hello to All my partners

2016-07-04 Thread Mark Phillips
please don't do that

On Sun, Jul 3, 2016 at 9:40 PM, Hari Raj  wrote:

> ok..
>
> On Sun, Jul 3, 2016 at 12:50 AM, naseer bhat 
> wrote:
>
>> Hi Partners,
>>
>> My name is Naseer Bhat , I am working with Nityo Infotech as a Sr.
>> Technical Recruiter. I am taking care of my two direct clients   i will be
>> sending you daily positions
>>
>>
>>
>>
>> Naseer Bhat
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/CABHLit%3DJKgNn_S6Vj_ZGFkRUQGgERSX6BF-JW0asQa4yDJ8kgg%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CAJ2YoM-ueC1Mc8WypAEeRJ8hwHYD8EptL1DzntC6dv_cZXBMmw%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2Mv%3Dq-Kp%3DaWc4LxBQRW6q_9qDn6mR7xpnFDtxgrOxgX0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] SURELY, someone out there can help/explain this to me.

2016-07-03 Thread Mark Phillips
Bob,

You need to show us your layout files and any code that changes the layouts
if we are going to be able to help you.

Mark

On Sat, Jul 2, 2016 at 8:19 PM, Bob B.  wrote:

> Hi all,
>
> (as you read through this)
> -- I am not hard coding ANY dimensions or sizes for anything
> -- All elements use wrap content and match parent
> -- I have read over the Android development for different screen sizes so
> many times I can almost recite the page (not to say I haven't missed
> something, so if I have, please point it out).
>
> I am literally on weeks of trying to figure this out and have read (many
> times) every resource I can find and am still clearly missing something.
>
> I am attempting to get image assets to stay in proportion to the screen on
> different devices.  This seems very fundamental and there is tons of
> documentation, but I am still struggling and would greatly appreciate some
> assistance.
>
> I have created 5 sets of images which look like the following.
>
> ldpi
> - dpi of the images is 36 x 36
>
> mdpi
> - dpi of the images is 48 x 48
>
> hdpi
> - dpi of the images is 72 x 72
>
> xhdpi
> - dpi of the images is 96 x 96
>
> xxhdpi
> - dpi of the images is 144 x 144
>
> I am designing in Android Studio and using one of the 10" xhdpi tablet
> devices to design against.
>
> I have a square image that I am placing 4 times (roughly evenly spaced) at
> the top of my screen and when viewing the screen, the image takes up
> roughly one inch or so.
>
> To accomplish this, I created an image that is 325x325px with a dpi of 96
> and it looks fantastic.
>
> The problem comes when I try to view my app on smaller device with the
> same density of xhdpi.  In these situations, the image is HUGE and takes up
> far more space than it should.
>
> I believe I understand the difference between pixel (tablet that is 1200
> px x 800 px) and dip/dp.  Given that the dimensions in pixels are 1200 x
> 800 and the density is xhdpi, the dimension in dp would be 600 x 400.
>
> This is where I am getting totally lost.  Clearly I am missing something
> and there must be a way to keep images proportioned correctly when you go
> from a small device size to a larger device size when both use the same
> density (for example, a  800 pixel x 600 px 3" phone and a 2500 pixel x
> 1600 pixel 10" tablet which both have a density of xhdpi).
>
> I do also realize that this is only 1/2 of the equation and the use of
> additional layout folders with qualifiers will be needed to potentially
> make adjustments for different screen sizes.  That part I am ok with but I
> am losing my mind over trying to figure out how to get my image assets to
> look the way I need.
>
> Any help would be OH so much appreciated.
>
> One final note.  I have seen several posts where people have stated, "Just
> use xhdpi assets and Android will scale everything for you."  Yes, I know
> this is a performance issue, but even trying that, it certainly is not
> scaling things down for me.  One thing I have noticed is that if I set the
> background property of a layout to an image asset, it seems to display as
> I'd want on every device, regardless of size or density.  However, the
> issue I am having is with image views specifically, so does my problem
> exist there?
>
> Thanks!
> Bob
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/d9c3d809-d511-4800-8234-bc2512b4869e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2OLGoqm%3DXNzBHgwu7QChRm0QJoxUXF1kMiVc5U8KuRvAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Missing something when sizing images to support different screens

2016-07-01 Thread Mark Phillips
Can you post your layout files? Are you using dips in your layout files?

Mark
On Jul 1, 2016 7:02 PM, "Bob B."  wrote:

> I have been reading over this information, forums, developer site, etc.
> for the past week and still have been unsuccessful in fully understanding
> how to size images such that things appear acceptable on different sized
> devices.  Certainly there is something I am missing, as this can't be that
> difficult, can it?  If someone could please point me in the right
> direction, I would be ever so grateful.
>
> I am using qualifiers on the drawable and layout folders in an attempt to
> handle the various screen sizes and densities.
>
> I have created drawable-ldpi, drawable-mdpi, drawable-hdpi, and
> drawable-xhdpi
> I have created layout-w320dp, layout-w480dp, layout-w600dp, and
> layout-w720dp
>
> I have placed a copy of the layout I am dealing with in each of the layout
> folders so I can adjust each as needed.
>
> I have placed my graphics that I am testing with in their respective
> drawable folder.
>
> I initially designed my app using a Galaxy Tab 10" and scaled my graphics
> (png) files in GIMP with a dpi of 320 and sized to fit how I wanted them to
> look in the 10" environment.
>
> I then took the original graphic (unmodified) that was used for the
> previously mentioned image and made the mdpi version by changing the dpi to
> 160 and setting the pixel width/height to 1/2 of the previously mentioned
> image.
>
> For the rest, I followed the information from the design guide of...
>
> ldpi = .75 of the mdpi
> hdpi = 1.5 of the mdpi
> With the first image created being the xhdpi
>
> Question 1:  Should you scale all images such that the following are true,
> regardless of the dimensions of each image?
>
> - ldpi images should always be 120dpi
> - mdpi images should always be 160dpi
> - hdpi images should always be 240dpi
> - xhdpi images should always be 320dpi
>
> Here is an example of what I have done and what specifically is not
> working.
>
> I have a logo that is 400 x 400 and has a dpi of 320.  This image looks
> beautiful on my tablet and the image file resides in the xhdpi folder
> I then took a copy of this image and scaled it to 200 x 200 with a dpi of
> 160 for my mdpi version and placed the file in the mdpi folder.
> When viewing a 10" device in Android Studio, it looks great
> When viewing a phone 3-4" device in Android Studio, the logo in HUGE!
>
> My goal is basically this.
>
> If I have an image that takes up exactly 1/4 of my screen on a tablet in
> the lower left corner, I want that image to take up the same 1/4 of the
> screen on the smaller devices, not be huge, taking up pretty much the
> entire screen.
>
> Question 2:  I thought Android was supposed to down-sample the images of
> larger than what was needed so it would essentially scale things down for
> me, with a better goal of providing assets that are close to where they
> should be, which is what I am attempting to do.  Is this not the case?
>
> There has to be some formula / step that I am simply missing here so if
> anyone could shed some light on this for me, I would greatly appreciate it.
>
> Thank you all!
>
> Bob
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/390111ec-3b70-4668-8d35-a688a974fe26%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2NJASgA7qZ0iEgyrFqDFCuDEiOwciOm0qatp8sp_9yxRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Developping android apps on Android device

2016-06-18 Thread Mark Phillips
AIDE in google play.

Mark

On Fri, Jun 17, 2016 at 9:29 PM, Tor Rent  wrote:

> Hi guys,
> one question:
> is it possible to code/compile/link android apps on Android device ?
> and how ? what gui/apps do I need ?
>
> ... actually it's 6 question :P
>
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/40bb42c3-4f21-4d19-9bce-62f52c9acb99%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2OBZSZ04iyFHnsx2rGzCDpJ%3DFSt7Z%3DrRn_3qU4mEC_NYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android table of contents navigation style

2016-05-21 Thread Mark Phillips
Take a look at the Amazon Kindle app. It seems to work well.

I don't think you will get anyone to design your app for you. You will be
the best judge of what works best for your use case.

Mark

On Sat, May 21, 2016 at 1:53 PM, Amitai Rosenberg 
wrote:

> Anyone?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/1a40ed09-4440-4f32-b995-e95c74689e03%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2PdJ7rW0fjkx86dUM3f1S7Bb%2BE%2BOtLjBTZpk6L-jJ-dtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] hi i need help with Button

2016-05-12 Thread Mark Phillips
https://developer.android.com/guide/topics/ui/controls/button.html

On Wed, May 11, 2016 at 3:41 PM, Håkon Berg  wrote:

> Hi  .. i hope  someone here can help me..  im trying to make a button but
> i dont find any way  to connect it into another page..
> i would like if there was same way when you make a webpage as hyperlink..
> i have see there something says click on and there should be also you cun
> choose your Action. Lets say URL or a Android page  so when you have done
> that then you have a working button
> Becouse we some dont know all the code system..we are not  able to do
> anything...  cun someone past me a guide some are Step by step it cun be
> nice to have..  :) Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/4ad6a33e-eb05-4196-b84c-32ebe7e7648b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2NVfECpY3SEwf7L_9To9HJ9v1nt0u%3DS%2B2FYWkNAiYpieg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] error!

2016-05-07 Thread Mark Phillips
Reinstall??

Mark

On Sat, May 7, 2016 at 5:21 AM, christian cuadros arguedas <
chrismark...@gmail.com> wrote:

> problem loading the android studio
>
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/222d652d-3d2f-4871-bad6-68f1352ddd4a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2Nf-ZMsK0WhdSYf2Rp%3DqpC5mOU3J1-ehW13iZSFrExUMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Guys plz help ...getting this error

2016-05-07 Thread Mark Phillips
The file may be there, but it appears to be empty - look at the error
message. Check the size of the file and the path to the file - you may be
looking in the wrong place for the file when you say "file is still on
location."

On my Ubuntu system I have the following -
mark@tsunami:~/junk$ locate support-annotations-23.3.0.jar
/home/mark/Android_Studio/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar
/home/mark/Android_Studio/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar.md5
/home/mark/Android_Studio/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar.sha1

The jar file is 19K in size.

You could also try downloading the sdk again.

Mark

On Fri, May 6, 2016 at 10:24 PM, Akshay Chavan  wrote:

> Error:error reading
> C:\Users\AKSHAY.AKAHAY\AppData\Local\Android\sdk\extras\android\m2repository\com\android\support\support-annotations\23.3.0\support-annotations-23.3.0.jar;
> zip file is empty
>
>
>
> But the file is still on location ...plz help !!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/01aa2ee2-a7d2-485f-a950-ed59420cef7d%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2O78%2B6Ua4-xOfMSsRtfW%2Bfu9HiYT70ESPgFxHwbAmqaqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Händlerkonto für IAPs

2016-02-14 Thread Mark Phillips
Christian,

Sie werden mehr Antworten bekommen, wenn Sie Ihre Frage auf Englisch zu
formulieren.

Mark

On Sun, Feb 14, 2016 at 11:09 AM, Christian Janßen <
jansse.christian1...@gmail.com> wrote:

> Guten Tag.
> Darf ich als "Privatperson" ein Händlerkonto einrichten, oder muss ich
> z.B. was beim Finanzamt klären bzw mir einen Gewerbeschein holen ?
> Denn ich möchte für eine von mir entwickelte App In-App Käufe einrichten.
>
>
> Mfg
> Christian J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/dbd8ce87-6996-403f-a308-c143914f100a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2Mno3Bszp1X1GMuVEmOMWq4hWWFQ7TdJLFdpBJi3yAuYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Oversight in Training for Android Developers?

2016-02-06 Thread Mark Phillips
It is defined in the section "Building a Simple User Interface" -
https://developer.android.com/training/basics/firstapp/building-ui.html. Go
to Add a Text Field.



Mark

On Sat, Feb 6, 2016 at 10:27 AM,  wrote:

> Hi all,
> I'm a beginner in Android development and I'm looking for some guides.
> I've tried also to read some ones in the Android developer site, but in
> this
> 
>  one
> I can see, in a void function, they use a findViewById to get a EditText
> element, but I don't know where is it, because it's not been declared in
> any layout file.
> Can you help me please?
> Thank you a lot.
>
>
> http://developer.android.com/training/basics/firstapp/starting-activity.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/e65e6b7a-b888-4389-87a4-07f22d2ee775%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2NCbUOmZXiHEkhB0YxBM0%2Bt4N6M-6JPD6OwGRy2xAg2Rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android Studio Android App

2016-01-26 Thread Mark Phillips
Have you looked at AIDE?
https://play.google.com/store/apps/details?id=com.aide.ui=en. It is a
Java IDE that runs on Android and can be used to build Android apps on your
tablet or phone. It has been around for awhile and is actively used (I see
traffic on the email list), although I am not sure how well it works. And
it is not Android Studio.

Mark

On Tue, Jan 26, 2016 at 2:12 PM, TreKing  wrote:

>
> On Mon, Jan 11, 2016 at 8:49 AM, William Henry King  > wrote:
>
>> Is there any way I can request that Google's Android team code an
>> official Android Studio app for the Play Store, so that we android
>> developers can develop apps on Android itself?
>>
>
>
> https://code.google.com/p/android/issues/entry?template=Tools%20feature%20request
>
>
>> It would be really wonderful to code Android apps ON Android, even if the
>> Android Studio app gets released only for Remix OS specifically.
>>
>> Or is an Android Studio app even possible?
>>
>
> Anything is possible, but considering ...
>
>- that AS is based on Intellij which does not have an Android app
>- the beefy hardware and system requirements to run AS
>- the (presumably) small size of the AS dev team
>- the considerable effort such an undertaking would be
>- how much work they want and have to do on the official desktop
>product
>- how few Android developers are interested in / clamoring for
>developing Android on Android
>
> ... I wouldn't hold my breath.
>
> -
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CANCScgjyaK5zN1zUL5jAC4%2BmL%2B6PH9HmouGqYDZrpUFY%3D5URCQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2P3mxs8s54kMGLttH42oVkV0Ozt%2BL1jF%2B1BmeKvau94aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Embeded ListViews

2016-01-22 Thread Mark Phillips
Matt,

Assuming your data has some sort of hierarchy (ie Graph_10.jpg), then you
only need one listview in an activity. As the user drills down into your
data (ie selects an element from the list), all you need to change is the
data displayed in the same listview. You don't need an infinite set of
nested listviews, you just need to change the data behind the listview.

In a nutshell, a listview has a dataAdapter providing the data. Once the
user makes a selection in the list view, change the data in the adapter and
use notifyDataSetChanged on the listview and the data displayed will change
to the new data set.

There are lots of examples on how to do this - Google is your best friend
here.

As an aside, you may want to do some research on Android UI best practices.
Looking at your data graph, I see two potential problems with a listview
solution.

1. (breadth issue) You might end up with a listview having scores of
elements at a particular level, and few will be willing to scroll all the
way through that list to find what they want. You might want to take a look
at the google contacts app as one way to handle this particular problem.

2. (depth issue) The other problem you face is it may take 10 or more steps
to drill down to the final piece of data. This is annoying to the user in
the number of clicks it takes to get to the bottom of the hierarchy, as
well as the difficulty of getting back to the top, the middle, or somewhere
else in that hierarchy. Very easy to get lost and frustrated with this
approach.

You may want to take a hard look at the real problem you are trying to
solve for the user with all this data and find a different UI strategy that
solves that problem.

I hope that helps shed some light on your questions, and good luck!

Mark

On Fri, Jan 22, 2016 at 7:00 PM, Matt Fach  wrote:

>
> Hey thank you again for replying!  I really appreciate it.
> Lemme add the pictures.  Can you maybe explain this in more detail?
> "Again, if you need to represent a hierarchical structure (think file
> system) then you could very simply have a single activity that has a list
> of items, where clicking any item starts a new instance of the same
> activity with the list containing the children of the previously selected
> node. "
>
> Basically what I want is for the user to be able to navigate though all
> the categories and discover different drugs.  for instance the users will
> get
> a list view of a bunch of different drug categories arranged by
> pharmacology.  Then the user can enter into one of those drug types.  Then
> in the next screen will be another list of that specific drug type broken
> down into more categories.  So multilevel listviews.  I don't really like
> the "expandable" listviews where it all shows on one screen.  It kinda
> looks sloppy
>
> So, I am sure there is a much better way of approaching this.  Again, I
> was a little confused to your response I put in quotes.  Could you maybe go
> into a little more detail of what I should do to obtain this?  Or a better
> idea, ect..
>
> Do you understand basically what I am trying to do with my app?
>
> Thank again!
>
> Again, lemme know if I didn't convey anything properly.  I suck at
> explaining stuff.  :P
>
>
>
> On Friday, January 22, 2016 at 3:56:52 PM UTC-8, TreKing wrote:
>>
>>
>> On Fri, Jan 22, 2016 at 5:05 PM, Matt Fach  wrote:
>>
>>> Thanks for responding!!
>>>
>>
>> Sure thing holmes.
>>
>>
>>> It seems like I had a hard time conveying what I want to do.  Basically
>>> I want to have multilevel listviews.  I have only got it where I can embed
>>> one list view in a list view.  Do you know of any good tutorials that show
>>> how to do this?
>>>
>>
>> You can look at ExpandableListView
>> 
>> for a built in widget that supports one level of depth and see if you can
>> modify it for your needs.
>> You may even be able to bend ReyclerView
>> 
>>  to
>> do your bidding.
>>
>> However, neither this is going to be easy, or even likely doable.
>> Attempting to have a listview that itself has a list of listviews, each of
>> which themselves have lists of listviews, is just going to lead to you
>> having yourself a bad day.
>>
>> Again, if you need to represent a hierarchical structure (think file
>> system) then you could very simply have a single activity that has a list
>> of items, where clicking any item starts a new instance of the same
>> activity with the list containing the children of the previously selected
>> node.
>>
>>
>>> So if you look at the graph, every node is going to be a list view, but
>>> the children at all the drugs which will have a description of the drugs.
>>>
>>
>> That wasn't clear.
>>
>>
>>> I attached a couple pics of how the app look like so you have a better
>>> idea of what I am trying to do.
>>>
>>
>> I 

[android-developers] Problem with Adding Action Buttons in the Action Bar Using Pager and Fragments

2015-12-15 Thread Mark Phillips
My app has three tabs and I am using a pager to switch between the tabs.
Each tab has its own fragment. I added the Settings and Help action buttons
to the action bar in the main Activity using the OptionsMenu methods. I now
want to add a new action button to the action bar, but just for the first
tab and first fragment, and I don't want it to appear on the other
fragments when they are displayed in their tabs.

I have this layout for the main menu that is created in the main activity -

http://schemas.android.com/apk/res/android;
xmlns:app="http://schemas.android.com/apk/res-auto;
xmlns:tools="http://schemas.android.com/tools;
tools:context=".MainActivity">






This menu displays correctly and works as expected.

I have another menu, menu_prelaunch_fragment for the first fragment -

http://schemas.android.com/apk/res/android;
xmlns:app="http://schemas.android.com/apk/res-auto;>




and I add it to the action bar using the following code in the first
fragment -

@Override
public void onCreate(Bundle savedInstance) {
Log.d(TAG, "onCreate");
super.onCreate(savedInstance);
setHasOptionsMenu(true);
}

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflator) {
Log.d(TAG, "onCreateOptionsMenu");
inflator.inflate(R.menu.menu_prelaunch_fragment, menu);
super.onCreateOptionsMenu(menu, inflator);
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
Log.d(TAG, "onOptionsItemSelected");
if (item.getItemId() == R.id.clear_form)
clearFragmentData();
return super.onOptionsItemSelected(item);
}

The problem is that this added button does not go away when I go to the
other fragments on the other pages/tabs. The other fragments do not have
any options menu code in them.

I then added this code to the other fragments to remove the one button.

@Override
public void onCreate(Bundle savedInstanceState) {
Log.d(TAG, "onCreate");
super.onCreate(savedInstanceState);
setHasOptionsMenu(true);
}

@Override
public void onPrepareOptionsMenu (Menu menu) {
menu.findItem(R.id.clear_form).setVisible(false);
super.onPrepareOptionsMenu(menu);
}

But now the clear button does not appear in the action bar regardless of
what tabs are selected.

How do I add an action button to the action bar just for one tab (ie
fragment) in my three tab (ie three fragment) app? It should only appear
when that tab (fragment) is selected (displayed).

Thanks!

Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2MoYS7fzcXcT04jS8HWT-a78%2Brienr913OadraXwxsX-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Who translates google play apps?

2015-12-12 Thread Mark Phillips
I was curious about the cost of translation as well, so I googled it. I
found this site (
http://www.icanlocalize.com/site/services/android-localization/) and their
prices -

0.09 USD / word for expert translation or 0.135 USD / word including review
of the app’s texts and description on the Android marketplace.

I have never used their services, so I have no idea if they are any good,
or if the price is fair.

I have done some translation work in other areas (German and French), and I
will say that given the short phrase used in an app, one can't just use
Google translate on the words. The context is critical to make a native
sounding translation. This is true for all translations, but especially for
the phrases in an app.

Anyway, I would go with the $0.135 price, unless you can find a native
speaker to help you out.

Good luck!

Mark

On Sat, Dec 12, 2015 at 4:26 PM, Quentin Christensen <
quentin.christen...@gmail.com> wrote:

> The trick is probably the getting paid part.  I would love to have my app
> translated into as many languages as possible and if you are interested in
> translating my app I can send you the strings.xml file right now!  But
> having sold less than 100 copies at $2.99 AUD (minus Google's cut), of an
> app which took several months development time, I'd need to translate it
> into a language a lot more popular than it's current English in order to
> recoup the costs of development, let alone to pay someone else.
>
> Out of curiousity, how much would translation cost?
>
> Kind regards
>
> Quentin.
>
> --
> 22 Point
>
> Web: http://www.22point.com.au
> Check out our "Making Windows 10 Easy" eBooks and award winning app,
> RapiTap!
>
> On 12/12/2015 6:16 AM, Vladimir Markiev wrote:
>
>> So Google Play has a huge amount of different apps and games and often I
>> see people waiting for localization of certain app or game because they
>> don't speak English. This makes me wondering - who doe the localization?
>> Search gives only tips for those who want to translate their app, but not
>> for those who would like to assist translating them. I work as a freelance
>> translator and want to help those people, who don't speak English by
>> translating apps and games and maybe even get paid for that. So does anyone
>> know how to?
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com > android-developers+unsubscr...@googlegroups.com>.
>> To post to this group, send email to android-developers@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/c09c0a62-7698-481c-a6b0-937a60e33f64%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/android-developers/c09c0a62-7698-481c-a6b0-937a60e33f64%40googlegroups.com?utm_medium=email_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/566CAD1B.7080609%40gmail.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2PeskY%2BuoEgDZB94cD_kF9YNU7-GNyDGVmU8jBtqcERzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to send reference object to a fragment in android studio

2015-12-04 Thread Mark Phillips
As an alternative, why not store the ArrayList in the Application
object, and have getArrayList and setArrayList methods.
The Fragment can access the ArrayList and update
ArrayList with these methods. Since the Application object is a
singelton, there will only be one valid copy of ArrayList.

Mark

On Fri, Dec 4, 2015 at 1:20 AM, Doug  wrote:

>
>
> On Thursday, December 3, 2015 at 8:03:24 PM UTC-8, TreKing wrote:
>>
>>
>> On Thu, Nov 26, 2015 at 12:35 AM, Vinayak Mestri 
>> wrote:
>>
>>> I want to do like above code i.e student is reference variable so if i
>>> change any values of student arraylist will reflect to actual object in
>>> activity
>>
>>
>> 1 - Look at the documentation for Fragment which shows the static
>> constructor pattern that is typically used to construct a fragment with
>> parameters.
>> http://developer.android.com/reference/android/app/Fragment.html
>> Your model object would implement the Parcelable interface to be passed
>> along as data.
>>
>> 2 - You can then let the Activity know when changes are made via
>> callbacks:
>>
>> http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity
>>
>> You generally don't want the exact same data object in the activity and
>> fragment.
>>
>
> You generally *do* want the exact same data object if the object is large
> and would take significant time and memory to serialize and deserialize in
> a fully duplicated form.  This is especially OK if your source object is
> immutable and therefore threadsafe and immune to tampering for read
> operations.
>
>
>> If you really really do, you could alternative expose it as a public
>> method in the Activity then instead of passing it to the fragment, access
>> your activity in the fragment (onAttach or onActivityCreated or something)
>> and get the list data, which would be the actual list both objects would
>> share.
>>
>
> Also, if serialization is not a well-performing option, sending the
> fragment an indicator on how to find the collection would be fine.
> Sometimes people use an event bus to publish stored data object to
> dependents.  Sometimes receiving from a singleton is good enough as long as
> it's not adding too much weight to the app.  Sometimes querying a content
> provider (backed by sqlite database) for very large collections is
> appropriate.
>
> Doug
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/a903fbfa-9b30-4941-a94f-4831c310686c%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2M%2BeRAmB%3Dt751F7qGPw8Mx9ewZMAdsMDpJdiDpGF4haJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is this list dying?

2015-10-24 Thread Mark Phillips
Well, I got a response to my bug report (
https://code.google.com/p/android/issues/detail?id=191384). I asked that
the link to android-developers forum be removed and a link to Stack
Overflow added. Here is the first comment so far.

"Because StackOverFlow is Not a , And If a new Developper
Didn'nt Notice by himself/herself that StackOverFlow  Then this
person should Not Developp, This also can be interpreted as a 
So don't Modify it"

I guess I should consider myself spanked for the temerity of questioning
the conscience of the king.

I agree with Kris that the responses on Stack Overflow can be less than
optimal, and it takes a fair amount of effort to wade through the chaff to
find the wheat. I think the volume on Stack Overflow is caused more by (a)
changing nature of the Android API (b) increasing numbers of new Android
developers (
http://blog.appfigures.com/app-stores-growth-accelerates-in-2014/).

It seems the five of us have done our bit this week to keep the
android-developers forum alive!

Mark

On Fri, Oct 23, 2015 at 9:21 PM, Kristopher Micinski <krismicin...@gmail.com
> wrote:

> On Fri, Oct 23, 2015 at 3:14 PM, Mark Phillips
> <m...@phillipsmarketing.biz> wrote:
> > I recently posted to stack overflow and received more and faster
> responses
> > (ie no responses from this list). When I google for an android issue, I
> get
> > lots of stack overflow response.
>
> Along with this, I think the number of questions that warrant a novel
> answer are going down: i.e., I don't as frequently see questions that
> ask challenging technical questions that can't be looked up in API
> documentation.
>
> StackOverflow's android tag is generally of low quality compared to
> some other tags because it contains lots of people asking questions
> that could easily be answered by looking at the API documentation. But
> SO's model incentivizes people to answer these questions anyway, since
> they'll receive points. (Of course, SO as a community knows this and
> does seem to care about closing these questions actively, but it still
> persists.)
>
> Along with the reasons TreKing mentioned, you might also consider that
> over time a large knowledge base of Android answers has accumulated,
> meaning that new questions are less frequent. (Possible counterpoint:
> the API is always changing.) I think the big reason things have
> dropped off is that the most valuable answers were given by
> Android/Google's staff, who don't post as frequently. Some still post
> on other lists, e.g., `android-platform` or
> `android-security-discuss`.
>
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is this list dying?

2015-10-23 Thread Mark Phillips
I have the same observation. However, I don't know where everyone went!

I recently posted to stack overflow and received more and faster responses
(ie no responses from this list). When I google for an android issue, I get
lots of stack overflow response.

Maybe stack-overflow is better.

Mark

On Fri, Oct 23, 2015 at 11:09 AM, Tobiah  wrote:

> I used to get dozens of posts per day from this
> list.  Has the buzz moved to another forum?
>
> Thanks,
>
> Tobiah
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is this list dying?

2015-10-23 Thread Mark Phillips
TreKing - thanks for the clarification!

Someone at Google should update https://developer.android.com/support.html
and remove the link to this group if they really want to kill it.

I submitted a bug report -
https://code.google.com/p/android/issues/detail?id=191384. Not sure if it
will really bubble to the top of the stack anytime soon! ;)

Mark

On Fri, Oct 23, 2015 at 1:40 PM, TreKing  wrote:

>
> On Fri, Oct 23, 2015 at 1:09 PM, Tobiah  wrote:
>
>> Has the buzz moved to another forum?
>
>
> Google dropped official support for this forum quite some time ago, in
> favor of StackOverflow. There was a post, either in this group or the dev
> blog, or somewhere (can't find it now) announcing such. After that,
> Googlers (D. Hackborn et al) and more prominent members like Mark Murphy
> slowly stopped posting, and the traffic has been in perpetual decline.
>
> Shame - there have been some good times in this group.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Which Camera API to use?

2015-10-20 Thread Mark Phillips
I am developing a new app, and I want to support all the way back to Jelly
Bean/Ice Cream Sandwich. I need to use the video camera in my app - just to
shoot some 15 second footage and no processing.

Do I have to write two camera Activities, one with the camera api and the
other with the camera2 api, and somehow pick one based on the api level of
the device?

Or, should I just use the camera api?

Which camera api would you use if you were developing a new camera based
app today?

Thanks!

Mark

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to create a public static class

2015-09-22 Thread Mark Phillips
Java does not allow top level static classes, just inner static classes.
You can create something like a static class as follows:

1. define the class as final
2. make the constructor private
3. make all the members and methods in the class static

Take a look at the java.lang.Math class for an example.

Mark

On Mon, Sep 21, 2015 at 10:07 PM, weird0  wrote:

> How can I create a public static class in Android Studio?
>
> I want to create a *public static class Utilities* with static methods so
> that I can use them throughout the application without creating an object.
> I plan to create an AlertDialog and call that in multiple fragments.
>
> But, android Studio throws an error. Rite now, I don't know the exact
> error message because I am sitting here in office and making the post.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread Mark Phillips
On my Samsung Galaxy 4 phone from T-Mobile, I can hold down the home button
and get a list of running apps. I can kill each one individually with a
swipe, and there is a trashcan icon at the bottom of the screen that will
kill all the apps running. I use this feature to extend my battery time
when the batter is getting low. It may be a special Samsung app that does
this.

Mark

On Mon, Nov 24, 2014 at 1:13 AM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 What do you mean by -

 ...I test this by holding down the home button and killing my app ?

 If I start an app, then press  hold down the Home button, the app that
 was running is sent to the background (not killed)  the only option that
 appears is a circle that pops up to run Google Now - if I then swipe
 upwards. There is no option to kill any apps via the Home button
 interaction you described as far as I know, I tested this on (stock) Nexus
 5 with Android 5 as well as Sony Xperia 2 with Android 4.4 phone devices.

 The only (stock) standard way I know to kill apps is via Android
 Settings-Apps-Downloaded-(select App)-Press 'Force stop' button.

 I'd suggest you try in the service manifest entry android:exported=true if
 that is ok for your app. Other things to try are android:process  also
 make sure you are using startForeground(..)  stopForeground(.) calls in
 your service or it will be killed by the OS after a period of time and
 finally you probably need to use a wake lock to keep the CPU running when
 the display is turned off. I use these settings to get a GPS (background)
 Service to continue to run ok indefinitely after the uses exits my app or
 presses the home button or turns the screen off. (But be warned that these
 actions can deplete the device battery fairly quickly which many users do
 not like).

 The user can still always kill the app  background service even when the
 app is stopped / service in the background via Android
 Settings-Apps-Downloaded-(select App)-Press 'Force stop', there is
 nothing your app can do to avoid this...

 Regards






 On Sunday, November 23, 2014 5:44:45 PM UTC+11, Tony Pitman wrote:

 I am writing an app that needs to get gps location information in the
 background. I created a class derived from Service to do this. I copied the
 example on the Android developer site about making a background service. It
 uses the ServiceHandler thread to do the work.

 I use location manager and set up the receiving of updates.

 I have my main activity create the service using the normal way like this:

 Intent intent = new Intent(_context, MyService.class);
 _context.startService(intent);

 Inside my service I create the location manager and start getting
 location updates.

 This works great so far. I am doing this as a service because I want my
 service to receive updates even if my application is shut down. I test this
 by holding down the home button and killing my app.

 The problem is that as soon as I kill my app the service stops getting
 updates. The service does not go away, as far as I can tell, it just quits
 receiving GPS updates.

 As long as I leave the app running, even in the background, the service
 keeps getting the GPS updates.

 Can someone tell me how to continue to get GPS updates in my service even
 if the app that started it gets killed?

 I have some settings in my AndroidManifest.xml that might be affecting
 it. I have the service set up so it is not exported and has permissions. I
 do this because I don't want other applications to use my service. Could
 these be affecting it?

 Here is my service entry in the xml:

 service android:name=com.mycompany.mypackage.MyService
 android:permission=com.mycompany.MY_SERVICE android:exported=false /

 Just after that outside of the application tag I have this:

   permission android:name=com.mycompany. MY_SERVICE/
   uses-permission android:name=com.mycompany. MY_SERVICE /


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

Re: [android-developers] Physical address is required for paid apps or in-app purchases

2014-09-19 Thread Mark Phillips
Rent a post office box near where you live. Then call it a suite in your
address. You can pick up the mail once a week. Not a big deal.

I completely agree about the privacy issue with using your home address. I
wouldn't use my home address, nor my private email address.

Mark
On Sep 17, 2014 11:24 PM, nagamatu nagam...@gmail.com wrote:

 Dear Android Developers,

 I got the following notification at Google play Developer Console.

 | Add a physical contact address Beginning September 30, 2014, you need to
 add a physical address
 | to your Settings page. After you've added an address, it will be
 available on your app's detail page to
 | all users on Google Play. If your physical address changes, make sure to
 update your information on
 | your Settings page.

 | If you have paid apps or apps with in-app purchases, it's mandatory to
 provide a physical address
 | where you can be contacted. If you don't provide a physical address on
 your account, it may result in
 | your apps being removed from the Play Store.

 I do not want to disclose my home address in public, because I am an
 individual developer.
 This is privacy issue. I don't understand why Google requires my physical
 address.

 I disclose my e-mail address and users can contact me. Also I can reply to
 messages that is written
 in review at Google Play.

 If I am working for a company and office address is disclosed in public, I
 do not care for it.
 But do you want to know your home address in public?

 # I sent a feedback about objection for this requirement.

 --
 nagamatu

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Physical address is required for paid apps or in-app purchases

2014-09-19 Thread Mark Phillips
The PO Box I meant has a physical address. For example, Mailboxes Etc and
many other similar places offer a real street address and suite number. No
different than any other business address. I did not mean a box at the Post
Office. MBE charges about $13/month for the smallest personal box. There
are other similar stores that cost less. And you can call to see if you
have any mail, so you don't have to go there until someone sends you a
letter bomb...;)

I totally understand that this is an onerous pain-in-the*** hoop that we
have to jump through. Just one more reason to dislike Google. However, as I
have seen over the years on this list, it is VERY hard to argue with
Google, let alone find a way to start a discussion. So, I was just trying
to provide a helpful suggestion to meet the requirements of the new rule.

Mark

On Fri, Sep 19, 2014 at 2:31 PM, Dallas Singletary devdal...@gmail.com
wrote:

 It has to be a PHYSICAL ADDRESS no PO BOXES  and I can't find out were to
 add the address I don't see a place in settings to add an address. Of
 course you could use your local post offices address and just put C/O
 General Delivery
 On Sep 19, 2014 5:21 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Not just a blatant privacy violation.

 They're putting developers' lives at risk.

 Not every developer lives in relatively safe place like the US, or
 Western Europe. The world is larger than that, and there are places where
 criminal activity is relatively high.

 It's quite easy for someone to do the math, multiplying an app's price by
 its install count, and then to pay a visit to the developer -- with the
 intent of extortion, racket, theft, or other criminal activity.

 A PO box won't work for me personally, and Google may not accept them
 either.

 -- K


 2014-09-20 1:00 GMT+04:00 Mark Phillips m...@phillipsmarketing.biz:

 Rent a post office box near where you live. Then call it a suite in your
 address. You can pick up the mail once a week. Not a big deal.

 I completely agree about the privacy issue with using your home address.
 I wouldn't use my home address, nor my private email address.

 Mark
 On Sep 17, 2014 11:24 PM, nagamatu nagam...@gmail.com wrote:

 Dear Android Developers,

 I got the following notification at Google play Developer Console.

 | Add a physical contact address Beginning September 30, 2014, you need
 to add a physical address
 | to your Settings page. After you've added an address, it will be
 available on your app's detail page to
 | all users on Google Play. If your physical address changes, make sure
 to update your information on
 | your Settings page.

 | If you have paid apps or apps with in-app purchases, it's mandatory
 to provide a physical address
 | where you can be contacted. If you don't provide a physical address
 on your account, it may result in
 | your apps being removed from the Play Store.

 I do not want to disclose my home address in public, because I am an
 individual developer.
 This is privacy issue. I don't understand why Google requires my
 physical address.

 I disclose my e-mail address and users can contact me. Also I can reply
 to messages that is written
 in review at Google Play.

 If I am working for a company and office address is disclosed in
 public, I do not care for it.
 But do you want to know your home address in public?

 # I sent a feedback about objection for this requirement.

 --
 nagamatu

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

Re: [android-developers] Physical address is required for paid apps or in-app purchases

2014-09-19 Thread Mark Phillips
Dallas,

I completely agree.

The only reason I can think they want this information is for Homeland
Security or something related. When one rents a box at MBE or the PO, one
has to show valid id like driver's license or passport or something with a
photo. If you app incites riots or takes over an airplane and holds the
passengers for ransom, then they know where you live and how to find you.
It can't be to send you a monthly check.;)

Mark

On Fri, Sep 19, 2014 at 4:12 PM, Dallas Singletary devdal...@gmail.com
wrote:

 Completely understand what your are saying Mark. Sorry I misunderstood, I
 was just stating that per Google(Via Email), I could not use my PO Box I
 would need to add a home/business address with a street number and name.
 For me, I will just use my local post offices' address and put C/O General
 Delivery and just go pick the mil up from the post office so I don't have
 to expose my home address. I am a Google  Android Enthusiast but,this is
 kinda an unnessery pain for Developers.

 Best Regards,
 Dallas
 On Sep 19, 2014 6:35 PM, Mark Phillips m...@phillipsmarketing.biz
 wrote:

 The PO Box I meant has a physical address. For example, Mailboxes Etc and
 many other similar places offer a real street address and suite number. No
 different than any other business address. I did not mean a box at the Post
 Office. MBE charges about $13/month for the smallest personal box. There
 are other similar stores that cost less. And you can call to see if you
 have any mail, so you don't have to go there until someone sends you a
 letter bomb...;)

 I totally understand that this is an onerous pain-in-the*** hoop that we
 have to jump through. Just one more reason to dislike Google. However, as I
 have seen over the years on this list, it is VERY hard to argue with
 Google, let alone find a way to start a discussion. So, I was just trying
 to provide a helpful suggestion to meet the requirements of the new rule.

 Mark

 On Fri, Sep 19, 2014 at 2:31 PM, Dallas Singletary devdal...@gmail.com
 wrote:

 It has to be a PHYSICAL ADDRESS no PO BOXES  and I can't find out were
 to add the address I don't see a place in settings to add an address. Of
 course you could use your local post offices address and just put C/O
 General Delivery
 On Sep 19, 2014 5:21 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Not just a blatant privacy violation.

 They're putting developers' lives at risk.

 Not every developer lives in relatively safe place like the US, or
 Western Europe. The world is larger than that, and there are places where
 criminal activity is relatively high.

 It's quite easy for someone to do the math, multiplying an app's price
 by its install count, and then to pay a visit to the developer -- with the
 intent of extortion, racket, theft, or other criminal activity.

 A PO box won't work for me personally, and Google may not accept them
 either.

 -- K


 2014-09-20 1:00 GMT+04:00 Mark Phillips m...@phillipsmarketing.biz:

 Rent a post office box near where you live. Then call it a suite in
 your address. You can pick up the mail once a week. Not a big deal.

 I completely agree about the privacy issue with using your home
 address. I wouldn't use my home address, nor my private email address.

 Mark
 On Sep 17, 2014 11:24 PM, nagamatu nagam...@gmail.com wrote:

 Dear Android Developers,

 I got the following notification at Google play Developer Console.

 | Add a physical contact address Beginning September 30, 2014, you
 need to add a physical address
 | to your Settings page. After you've added an address, it will be
 available on your app's detail page to
 | all users on Google Play. If your physical address changes, make
 sure to update your information on
 | your Settings page.

 | If you have paid apps or apps with in-app purchases, it's mandatory
 to provide a physical address
 | where you can be contacted. If you don't provide a physical address
 on your account, it may result in
 | your apps being removed from the Play Store.

 I do not want to disclose my home address in public, because I am an
 individual developer.
 This is privacy issue. I don't understand why Google requires my
 physical address.

 I disclose my e-mail address and users can contact me. Also I can
 reply to messages that is written
 in review at Google Play.

 If I am working for a company and office address is disclosed in
 public, I do not care for it.
 But do you want to know your home address in public?

 # I sent a feedback about objection for this requirement.

 --
 nagamatu

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

Re: [android-developers] Is it possible to track mileage with the GPS on the phone?

2014-06-26 Thread Mark Phillips
On Wed, Jun 25, 2014 at 11:36 AM, Steve Gabrilowitz steveg1...@gmail.com
wrote:

 I just did a play store search for the heck of it and there is an app that
 claims to do just that, and has good reviews so it apparently is possible.
 The app is free but implements in-app purchasing and one of the reviewers
 mentioned something about a $10 option but it might be a better solution
 for you than reinventing the wheel.

 If you want to write a simple app as you suggest and you don't mind having
 to turn it on and off then it seems to me that all you would need is 2
 usages of the GPS, record the location when you turn it on and then when
 you turn it off just look up the distance between current point and saved
 start point!

A more accurate approach would be to sample the GPS location on a
continuous basis. A button on the app could be used to start/stop the
sampling to save battery, or, better yet, dynamically change the sample
rate - decrease when the samples don't change and increase to a set maximum
when they do. I can envision driving from point A to point B on several
different routes, all of which are different distances. Just knowing the
end points would not be a very accurate way to measure the miles driven for
stuff like oil changes, tire rotation, tire wear, etc.

Mark



 On Jun 25, 2014 11:58 AM, Dan Cha cuban...@gmail.com wrote:

 I'm looking to better track my own personal mileage on my truck.. so was
 looking into the GPS module and seems it may be possible, but wanted to ask
 before spending to much time building something that will never work.
 since this is going to be for my personal usage, it is going to be a
 simple app that ill turn on when in the truck and have it track my miles
 for the day and so on..

 I know sounds like a pain to have to turn it on and off but since this is
 a work that can be part of our daily routine to log everything, turn on app
 and so on..

 any links to good source would be great if this is possible..

 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] New Android Development Tool..

2013-10-17 Thread Mark Phillips
I cannot answer for joe131, and I can't use his tool since it only runs on
Windows (I am a Linux/Android guy). However, I have been looking for a
non-Eclipse command line approach for android development. I use Eclipse on
my main system at my desk, but when I am on the road (I am a consultant) I
prefer to only carry my Android tablet. I have moved quite a few of my Java
and Python projects to the cloud and have been using the command line and
ssh to continue working while on the road. I would like to put my Android
projects in the cloud and work on them using my tablet and the command line
as well. There are a few google hits on command line android development,
so there are others, although most likely a small population. Just consider
us the lunatic fringe of Android development...we pose no threat, and
sometimes resistance is not futile;)

Mark

P.S. And, yes I have looked at AIDE as another possible solution.


On Thu, Oct 17, 2013 at 3:16 PM, TreKing treking...@gmail.com wrote:


 On Thu, Oct 17, 2013 at 4:47 PM, joe131 joes0...@gmail.com wrote:

 I know that everybody in the universe uses Eclipse
 for their Android development, but I'm almost finished
 developing an easy to use tool for your Android development,
 mostly for those who use the Command line.


 Why are you developing this? What problem are you solving? Why would
 anyone switch from the official, mature tools in Eclipse and the new
 Android Studio?


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

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


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


[android-developers] Design Questions about Spinners and Localized Values

2012-12-06 Thread Mark Phillips
I have more of a design question than a specific question about a piece of
code.

In my application, the user has to select the correct units from a spinner
for data that he or she inputs into some text boxes. By units, I mean
length (feet, meters, etc), mass (grams, slugs, etc.),  temperature
(degrees C, degrees F, etc), pressure (milibars, pascals, etc), and others.

Requirements:
1. Select in Preferences either SI or English or both
2. Allow users to enter use the most convenient units for each piece of
data (e.g. mass - grams and length inches).
3. Since the app uses this data in calculations, I have to convert the
various quantities into similar units to perform the calculations.
4. Save input data in local db for off-line calculations. I want to store
the values in the original units to avoid any rounding errors by converting
from one set of units to another.
3. Allow for localization of all strings

I initially thought to just put arrays in strings.xml for the various units
(length, mass, temperature, etc) to simplify the code and translations.
However, I end up with a lot of string testing to see which unit was
selected. The string testing is harder to work with when the strings are
translated. I would rather have an index assigned to each unit, then create
a simple two-dimensional array for unit conversions.

I thought of creating a singleton class for each unit, and put all the
conversion data, unit names, abbreviations, etc in there, and then pass
that to the ArrayAdapter for the spinner. But I then loose the convenience
of localizations of string in strings.xml as well as the automatic choice
of the correct localized strings provided by the platform.

Is there a better way to keep using the localization functions provided by
the android platform, and also add some intelligence to the string values
returned by the selected item in the spinner?

Thanks!

Mark

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

2012-12-06 Thread Mark Phillips
It has to do with one of my requirements to allow the user to specify in
the app's preferences to display only a subset of the units. If I pick SI
(System International), then all I get are meters, kilograms, Newtons,
degrees C, etc. If I specify English, then I get feet, slugs, pounds, and
degrees F. I am not sure if there are others unit groupings that may become
important. So, in a SI preference, the first position in the length spinner
will have meters, whereas the English preference will have feet. If both
systems are chosen, the the first position of the length spinner may be
feet or meters (haven't decided yet). I guess I could try to relax this
requirement, but then I run the risk of pissing off the (pick any country
outside the US and GB) by allowing a stinking dirty foot to be part of
the spinner...;) I can hear the comments on my app page nowBTW, I loved
reading your blog comments to users!

Using the indices of the spinner seems fraught with some other dangerous
side effects. For example, if I store the index from the length spinner in
the sqlite table for one of the measurements, and the order of the length
units change for some reason, then that data is corrupted. Using something
like an enum to fix the index value of feet feels like a better solution,
but then I run into the problems of utilizing all the platform's benefits
of a simple string array and coming up with a simple way of relating that
array's values to my hard coded indices. I also find the need to create a
bunch of units classes (length, mass, speed, acceleration, temperature,
pressure, etc.) to get the functionality I need and adding that to
 spinneradapters to get the strings like lots of extra code when a simple
xml string array will work for the most part. But that path seems the be
the only way to go.

Perhaps I am over thinking this?

Mark


On Thu, Dec 6, 2012 at 9:49 AM, TreKing treking...@gmail.com wrote:

 On Thu, Dec 6, 2012 at 10:18 AM, Mark Phillips m...@phillipsmarketing.biz
  wrote:

 I initially thought to just put arrays in strings.xml for the various
 units (length, mass, temperature, etc) to simplify the code and
 translations. However, I end up with a lot of string testing to see which
 unit was selected.


 If you have arrays of string, why are you testing the strings themselves
 instead of the indices?


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

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

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

Re: [android-developers] Design Questions about Spinners and Localized Values

2012-12-06 Thread Mark Phillips
After some more thought, I think your advice to use the position of the
unit name in the array will work.

The only issue I can think of is if I add a new unit after the app is
released, the new entry has to go at the end of the array. For example,
take pressure units. Say I start with the units: bar, atm, mmHg, Pa. In
version 2.0 (bigger, better, etc) I find I need to add mbar, and inHg. They
would have to go at the end of this array, so the spinner would display
bar, atm, mmHg, Pa, mbar, inHg. A better visual display would be mbar, bar,
atm, inHg, mmHg, Pa, but I cannot insert mbar and inHg into the array, they
have to go at the end because I am using the array's position index for the
units instead of an external fixed constant. If I insert the new units into
the start of the array, then any saved unit index in the sqlite db from the
1.0 version of the app will be incorrect. Probably a small price to pay for
the benefits of easy localization.

Thanks,

Mark


On Thu, Dec 6, 2012 at 2:33 PM, TreKing treking...@gmail.com wrote:

 On Thu, Dec 6, 2012 at 3:21 PM, Mark Phillips 
 m...@phillipsmarketing.bizwrote:

 Perhaps I am over thinking this?


 Perhaps. I'm having a hard time following with just your description. If
 you could share some examples of how you're structuring things, in code and
 / or xml, or show some screenshots or something, that might help.



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

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


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

Re: [android-developers] Re: minimum hardware requirements to develop on

2012-12-02 Thread Mark Phillips
There is an interesting article in Linux Journal -
http://www.linuxjournal.com/content/swap-your-laptop-ipad-linode. The
author dumped his high powered/heavy laptop for an iPad and a basic linode
account. He does all his development using vm, and all his files,
compilers, etc. are on his Linode account (running some form of Linux).
$5/month for full backups, so he never worries about loosing anything, even
if his iPad walks off. He obviously can get email etc on his tablet, and
claimed to be much happier carrying his tablet (always on, longer batter
life, etc) than a laptop. Of course, you may have to use a slower vnc
connection to test graphical layouts for your apps, but other than that, I
don't see why you can't use this approach, and it may be cheaper than a
more powerful laptop. Especially if you replace the iPad with an android
tablet. ASUS makes a great android tablet with a dockable keyboard (TF
301?), which would be more compact to carry around than a tablet and a
wireless keyboard as the author describes. You can also run Linux natively
on that hardware, if you so choose.

Personally, I feel my productivity would be much less if I didn't use
eclipse with all its bells and whistles.

Let us know what you end up using!

Mark

On Sun, Dec 2, 2012 at 3:52 PM, Nobu Games dev.nobu.ga...@gmail.com wrote:

 I develop on a three-year-old notebook using Eclipse and Linux. Emulators
 for any Android version higher than 2.2 are basically unusable on my
 machine (I once made the experiment of starting up a Jelly Bean emulator.
 The screen remained black after 15 minutes so I just killed the process).
 For that reason I use VirtualBox and x86 Android images for testing higher
 versions which works very well.

 Build time can get really slow depending on the complexity of the app
 project. A clean build of an app with about 23 dependency projects takes up
 to 7 minutes.
 Do not use the latest version of Eclipse. It does not work. Especially in
 combination with the ADT plugin a nightmare to use.

 If you really don't need the convenience of Eclipse for handling Java code
 generation, auto-completion, refactoring etc. then just go for any editor
 you like. But anyway, you should be fine even with Eclipse. And you still
 can change your mind if it doesn't work for you.


 On Sunday, December 2, 2012 1:51:14 PM UTC-6, Russell Wheeler wrote:

 So far I have been developing directly on my galaxy nexus and nexus 7
 using the amazing AID app.

 However, as the N7 can't provide logs due to it being jelly bean, i feel
 the need to get a mini notebook in order to utilise adb logcat.

 My main worry is that something with only 1gb (2gb if i upgrade, which i
 will) and a 1.5-1.83GHz atom CPU won't be powerful enough.

 I can possibly get around certain worries by not using emulators and
 testing directly on my two devices, so that will save me a great deal. Also
 I am tempted to just use vim and command line tools instead of eclipse
 which again might save me from a slow PC.

 What do you guys think? Is the notebook way under powered? What if i just
 use vim and no emulators?

 Side note, does anyone actually code in vim/command line?

 Cheers

 Russ

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

2012-11-19 Thread Mark Phillips
The screen with the temperature spinner is an edit screen which is filled
at run time with the data the user entered in a previous session. The data
will eventually come from a cursor/sqlite database, but for now as I work
on the ui, I am simulating the app with sample data using string arrays and
simple array adapters. I have some helper methods in a static class that
provided the data in the form of arrays to the app (ie as a  standin for
the db backend until the db is stable). I guess I can wait to solve this
problem when I get to the cursor/sqlite integration phase, and just change
my sample data to hold the index instead of the actual string value.

The heart of my question is if there is another way to search the
arrayadapter for formatted strings.

Thanks,

Mark

On Mon, Nov 19, 2012 at 2:08 AM, skink psk...@gmail.com wrote:



 Mark Phillips wrote:
  Any suggestions on how to set the value of the spinner index by searching
  the strings in the spinner array?

 why would you do that?

 why not simply:

 // set C deg
 s.setSelection(0)
 // set F deg
 s.setSelection(1)
 // set K deg
 s.setSelection(2)

 pskink

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


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

[android-developers] Problem Searching the Array in a Spinner

2012-11-18 Thread Mark Phillips
I have a spinner defined as:

Spinner
android:id=@+id/spinner_temperature
android:layout_width=match_parent
android:layout_height=wrap_content
android:entries=@array/temperature_units
android:prompt=@string/prompt_temperature_units /

In strings.xml I have
string-array name=temperature_units
itemsupo/supC/item
itemsupo/supF/item
itemsupo/supK/item
/string-array

I want to set the index of the spinner by searching for one of the string
values in the array temperature_units. When I look at the ArrayAdapter in
the debugger, it says that the array has three elements: oF, oC, and oK. I
tried this code:

s = (Spinner) v.findViewById(R.id.spinner_temperature);
s.setSelection(((ArrayAdapterString)s.getAdapter()).getPosition(data[choice][RocketModelsData.TEMPERATURE_UNITS]));

where data[choice][RocketModelsData.TEMPERATURE_UNITS] returns a string
contained in the array.

but the spinner is not set to the expected value..

I broke down the statements into pieces, and tried to search on
permutations of the strings in the array using this:

s = (Spinner) v.findViewById(R.id.spinner_temperature);
ArrayAdapterString sAdapter = (ArrayAdapterString) s.getAdapter();
int g0 = sAdapter.getPosition(F);
int g1 = sAdapter.getPosition(oF);
int g2 = sAdapter.getPosition(supo/supF);

All three values, g0, g1, and g2 are -1, so the search failed.

If I remove the superscript formatting from the array, the search works
just fine for F, C, and K or oF, oC, and oK.

Any suggestions on how to set the value of the spinner index by searching
the strings in the spinner array? My layout is cramped, so I can't change
the array elements, for example, to degrees C; ie removing the
superscript formatting.

Thanks,

Mark

P.S. Is there a way to read the array from the strings.xml file, and then
make a shadow array that would have the supo/supF strings? I could get
the index from searching that array.

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

[android-developers] Question About Form Design

2012-11-10 Thread Mark Phillips
Is it considered poor design to make a form in two columns, with a test
field identifier on the left and an empty field on the right? EditTexts
have a handy hint, but the hint is not needed if there us a TextField next
to the EditText. However, Spinners don't have anything like a hint, so they
need something to tell the user what the selection is all about, as it may
not be obvious.

I am making a form with several EditText fields, some spinners, and some
radio buttons. Just curious if my design (labels on the left, controls on
the right) is a little out dated for the modern Andorid world. I would hate
to show my age with and outmoded design. ;)

Thanks,

Mark

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

2012-11-01 Thread Mark Phillips
Thanks, that clears up my confusion.

Mark

On Wed, Oct 31, 2012 at 2:01 PM, nEx.Software
email.nex.softw...@gmail.comwrote:

 You can have many instances of any type of View with the same id without
 restriction. The id is just an int field on a view, so that the view may be
 identified in code. Changes to one instance will not change the other
 instances, regardless of their container (Activity, Fragment, ViewGroup).
 To gain a reference to a particular instance, you should call findViewById
 on its closest parent (assuming you do not have multiple instances as
 direct children of the same parent).

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

2012-10-30 Thread Mark Phillips
As a newbie, I was wondering if layouts are reusable. For example, say I
have Activities A and B, and they both have the same layout for the screen.
So I create Layout L in the file my_layout.xml, which has a Textfield with
@id+/textfield1 in the layout and it is blank.

In the onCreate() of both Activities A and B, can I have the line
setContentView(R.my_layout)? Will there be any issues when switching from
one Activity to the other?

Will I have issues accessing the Textfield with id textfiel1? If the user
sets the value Activity A and I save it somewhere (say in the Application
object), then when I display Activity B, textfield1 should be blank. Right?

Other than one less layout file, am I really saving any resources by having
one layout file?

Or, is it better practice to create two layout files, one for each
Activity, and to have two unique textfields in these two layouts.

Thanks,

Mark

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

2012-10-30 Thread Mark Phillips
Thanks for your response.

What happens to the ids of the elements in the layout? Will I have one id
for the TextViews in my example, so when I do something to it (change the
color or text, for example), will all the TextViews in all the layouts
change? I guess it will not matter on a small screen as there will only be
one activity at time.

What if I use fragments and have two fragments on the screen at the same
time with the same layout for each fragment. Then there are two active
TextViews with the same idis this an issue? If I change one, will both
change?

Thanks!

Mark

On Tue, Oct 30, 2012 at 3:56 PM, Romain Guy romain...@android.com wrote:

 You can reuse XML layouts (just like you can reuse any resource.) When you
 use a layout resource (with setContentView() for instance) it gets
 inflated. This means the layout is parsed and converted into actual View
 objects. If you reuse the same layout in several activities, you will
 simply create several sets of View objects that all have the same
 characteristics.


 On Tue, Oct 30, 2012 at 3:49 PM, Mark Phillips m...@phillipsmarketing.biz
  wrote:

 As a newbie, I was wondering if layouts are reusable. For example, say I
 have Activities A and B, and they both have the same layout for the screen.
 So I create Layout L in the file my_layout.xml, which has a Textfield with
 @id+/textfield1 in the layout and it is blank.

 In the onCreate() of both Activities A and B, can I have the line
 setContentView(R.my_layout)? Will there be any issues when switching from
 one Activity to the other?

 Will I have issues accessing the Textfield with id textfiel1? If the user
 sets the value Activity A and I save it somewhere (say in the Application
 object), then when I display Activity B, textfield1 should be blank. Right?

 Other than one less layout file, am I really saving any resources by
 having one layout file?

 Or, is it better practice to create two layout files, one for each
 Activity, and to have two unique textfields in these two layouts.

 Thanks,

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




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

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

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

2012-09-07 Thread Mark Phillips
+200
On Sep 7, 2012 8:57 AM, TreKing treking...@gmail.com wrote:

 On Fri, Sep 7, 2012 at 7:33 AM, Amey Bapat amey.n.ba...@gmail.com wrote:

 Domin8rJ
 listen up buddy,
 wid due respect to the prev posts on this thread heres an idea for u..
 u might take tym fr it but its k
 jus take any chap or couple of chaps frm any subject and jus create an
 app..
 so i would b like having a chap in ur phone..
 automating it in a way towards smarter education..
 jus draw some sample screens on a paper,try to go thru chapters frm mark
 murphy's book so that screens smehw can b designed..
 later on things will fall into place slowly wid event handling an all..
 jus try it..any help in that matter mail me okk..
 it can turn out to b very difficult for u but try it out..
 its fun coding in android..


 This post is an affront to the English language.


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

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

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

Re: [android-developers] Anyone Using Android Plot?

2012-08-24 Thread Mark Phillips
krs,

Thanks. How about AChartEngine - http://code.google.com/p/achartengine/.
Have you heard anything about that one?

Thanks,

Mark

On Wed, Aug 22, 2012 at 9:57 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 I've never used it, but I do have some intuitions from what I've heard
 on the forum.  It seems that it's not perfect and not extremely
 beautiful, but people generally get by with it for open source apps.
 If you want to get something better you'd probably have to jump up to
 a licensed library (i.e., for Android I *think* this is the best
 solution available, of course you can always try to hack the more
 standard ones for Java, too..)

 kris

 On Thu, Aug 23, 2012 at 12:47 AM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  I need to plot some XY pairs, and I ran across AndroidPlot
  (http://androidplot.com/wiki/Home). Do you use it? Do you recommend it?
 Is
  there another package that is better?
 
  I also want to do some zooming and panning around the data plot.
 
  Thanks,
 
  Mark
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Anyone Using Android Plot?

2012-08-22 Thread Mark Phillips
I need to plot some XY pairs, and I ran across AndroidPlot (
http://androidplot.com/wiki/Home). Do you use it? Do you recommend it? Is
there another package that is better?

I also want to do some zooming and panning around the data plot.

Thanks,

Mark

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

2012-08-06 Thread Mark Phillips
Not trying to be rude, but why do we, as a developer community, need
another forum?

Mark
On Aug 6, 2012 9:55 PM, saikrishna yogasaikris...@gmail.com wrote:

 The Forum name is www.debugandroid.com

 On Tuesday, August 7, 2012 10:22:33 AM UTC+5:30, saikrishna wrote:

 Hello guys those who are really interested in learning and sharing their
 knowledge to the world can join me as a *MODERATOR* in the newly
 launched Android forum.. Come lets make it big together

 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

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

2012-07-10 Thread Mark Phillips
Try googleandroid xml parser...or java xml parser.

Mark
On Jul 10, 2012 12:40 PM, Ramki ramakrishnan.e...@gmail.com wrote:

 Hi,

 I am very new to the android application... I am trying to create a
 android application for my personal purpose. its a finance tool.
 I've created an object class like this
 public class expense
 {
 amountpaid
 paymentdescription
 paymentmethod
 etc
 }

 and in my main activity i am creating a list of the expense class
 Listexpense obj = new Listexpense();
 and then add some expenses to it

 Once i add this I am trying to write it to an xml file in external
 storage.
 I am facing challenges
 1. to convert obj to xml file
 2. and then convert it back to class...

 The reason i have to right it to xml file is because, i can use the
 xml file to keep a local copy in my system when i connect it to my pc.

 Can someone please help me on the best way to do this?

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


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

[android-developers] Contact UI Question

2012-04-25 Thread Mark Phillips
In my application, I need to collect information about (most likely) new
people for the phone's contact database (eg players on a sports team). I
see how to add the information using the Contacts API (
http://developer.android.com/resources/articles/contacts.html). I was
thinking of adding the contact with a new group name, so I can easily find
them again and display just those the names in a ListActivity.

What about the ui for creating and editing contacts? Do I have to create my
own contact editing ui, or is there a way to drop the user in the native
edit contact ui to enter the information about the contact, and then bring
them back to my app's ui when they are done?

Thanks,

Mark

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

2012-04-08 Thread Mark Phillips
Depending on what you need to do in the server side, you might want to look
at django if all you need are some restful apis. Django is easy to learn,
and runs with minimal resources.

Mark
On Apr 8, 2012 6:57 AM, Ankita Kashyap ankita.kashyap@gmail.com
wrote:

 Thanks to all of you. I got a the direction of exploration with respect to
 my requirements.

 On Sat, Apr 7, 2012 at 10:50 PM, Dalvinder Singh 
 singh.dal...@gmail.comwrote:

 Most commonly used approach seems to be using jBoss server and develop
 REST Api's as it's widely accepted in the industry and moreover if you
 further develop applications on other platforms same Api's can be used.


 On Saturday, April 7, 2012 10:41:56 PM UTC+5:30, Kristopher Micinski
 wrote:

 Google app engine seems like a good idea, and so I'd suggest it.

 Parse also is a new backend, along with a few others, but GAE seems to
 have a lot of power out there, and probably good docs as well,

 The reality is that your app is more than just the java code you
 write, it's also the backend and your own ecosystem of support,

 kris

 On Sat, Apr 7, 2012 at 12:35 PM, Ankita Kashyap
 ankita.kashyap@gmail.com wrote:
  Ok. I would try to explore Google App engine and things similar to it.
  Thanks for your reply. Though any further lead in this direction is
 still
  welcome.
 
 
  On Fri, Apr 6, 2012 at 9:19 PM, TreKing treking...@gmail.com wrote:
 
  On Fri, Apr 6, 2012 at 9:52 AM, Ankita Kashyap
  ankita.kashyap@gmail.com wrote:
 
  Now, I have no idea about server-side programming and learning it.
 
 
  You should probably spend a good chunk of time studying up on this
 topic
  then.
 
 
  So, my question is many shared server services are not offering many
  options with respect to what server and database to go with. And, I
 need to
  stick with whatever minimum they are offering. Kindly tell me what
 exactly I
  am doing wrong here?
 
 
  That question does not make much sense (to me, at least).
 
 
  As in there are already many apps on android app market that give
 daily,
  hourly etc. updates. SO, how do they do/manage it?
 
 
  They have a server component and communicate with it periodically,
  presumably.
 
  The gist of your question seems to be about how to set up a server for
  your app, which is not Android specific and thus not relevant to this
 list.
  Do some research and try other server-specific forums for this type of
  question. Maybe look at Google App Engine for your Android app server
 needs.
 
 
  --**--**
 --**---
  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 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@**
 googlegroups.com android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en

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


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

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

Re: [android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor

2012-03-28 Thread Mark Phillips
Nigh impossible.based on what I have read in this list...

Mark (not Murphy)
On Mar 28, 2012 7:52 AM, Rob Jackson robjackso...@gmail.com wrote:

 Thanks Mark. Can you expound a bit on your meaning of troublesome?

 On Wed, Mar 28, 2012 at 10:31 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com
 wrote:
  To say why should they seems like a pretty short-sighted response.

 Not to that particular question (Does Google recommend any best
 practices for Android Developers so that they may one day sell their
 app with minimal complications?). There are lots of things where we
 could use best practices. Providing advice on the transfer of assets
 as part of corporate acquisitions would be relatively low on my
 priority list, because it affects relatively few developers.

 That being said, I think there is a slightly different answer for:

  Does Google currently facilitate the transfer of acquired apps/games
 from one developer account to another?

 My understanding is that if you can get in touch with somebody
 involved in Google Play that they can do this. Getting in touch with
 somebody involved in Google Play can be troublesome.

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

 Android App Developer Books: http://commonsware.com/books

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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-28 Thread Mark Phillips
Penalty for wrong answer: you have to share your pain meds ;)

Mark
On Mar 24, 2012 6:45 PM, Justin Anderson magouyaw...@gmail.com wrote:

 Kostya,

 Thanks for catching my mistake!  I had surgery for a deviated septum a
 couple days ago and I'm on some pretty heavy meds... Serves me right for
 trying to answer some questions while I'm obviously so very loopy!  :-)

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


 2012/3/24 Kostya Vasilyev kmans...@gmail.com

 25 марта 2012 г. 0:55 пользователь Justin Anderson
 magouyaw...@gmail.com написал:
  Apen sorry i dint notice ur suggestion, no it's not about the name,
  hmm i think it's something wrong with the order of the blocks...
 
 
  No, it IS about the name... Apen was correct (and that is what I was
 trying
  to say before, but was REALLY tired so I apologize for the incoherent
  replies).
 
 
  mNewDevicesArrayAdapter = new ArrayAdapterString(this,
  R.layout.textviewlayout);
 
 
  That is incorrect... You should not be passing in an R.layout here...
 you
  should be passing in an R.id

 No.

 The two-argument constructor takes a *layout* id:


 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96

 and it's assumed that the layout consists of just one TextView at the
 root.


 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378

 So:

 res/layout/item_simple.xml:

 ?xml version=1.0 encoding=utf-8?
 TextView  /

 and then:

 new ArrayAdapter(this, R.layout.item_simple)

 Constructor #2 takes a layout id and a view id:


 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107

 and uses findViewId with the last (third) parameter locate the text
 view within the layout:


 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381

 res/layout/item_complex:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout ... or something else 
  TextView android:id=@+id/item_text_view  /
  ImageView ... or something else /
 /LinearLayout

 and then

 new ArrayAdapter(this, R.layout.item_complex, R.id.item_text_view)

 -- K

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


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

2012-03-28 Thread Mark Phillips
My android app needs to talk to a MySQL database on a server. I have been
googling for solutions and found recommendations for Jersey and Restlet. I
have looked at these two frameworks, but from reading I cannot tell which
is better. I am new to REST, but have experience in Java, servlets, and
jsp. So I was wondering if anyone on this list has experience with one or
both, and any recommendations you may have. I am looking for a simple way
to CRUD data in my database (~ 15-20 tables). Any hands-on feedback is
appreciated!

Thanks!

Mark

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

[android-developers] Looking for Jersey/Restlet/REST recommendations

2012-03-28 Thread Mark Phillips
I forgot to include a subject line.

On Wed, Mar 28, 2012 at 11:38 AM, Mark Phillips
m...@phillipsmarketing.bizwrote:

 My android app needs to talk to a MySQL database on a server. I have been
 googling for solutions and found recommendations for Jersey and Restlet. I
 have looked at these two frameworks, but from reading I cannot tell which
 is better. I am new to REST, but have experience in Java, servlets, and
 jsp. So I was wondering if anyone on this list has experience with one or
 both, and any recommendations you may have. I am looking for a simple way
 to CRUD data in my database (~ 15-20 tables). Any hands-on feedback is
 appreciated!

 Thanks!

 Mark

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

2012-03-28 Thread Mark Phillips
Mark,

I agree with you for the most part. Since my only application for these two
frameworks is in conjunction with my Android project, I thought I would see
if any of the Android developers had an opinion.

I probably should have added an OT to the subject line..if I hadn't
forgotten the subject line in the first place:$

Mark

On Wed, Mar 28, 2012 at 1:49 PM, Mark Murphy mmur...@commonsware.comwrote:

 You might want to ask this on StackOverflow (where you can cross-tag
 it), or on a list dedicated to Java server technologies. This has much
 more to do with Restlet and Jersey than it does Android.

 On Wed, Mar 28, 2012 at 4:44 PM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  I forgot to include a subject line.
 
  On Wed, Mar 28, 2012 at 11:38 AM, Mark Phillips 
 m...@phillipsmarketing.biz
  wrote:
 
  My android app needs to talk to a MySQL database on a server. I have
 been
  googling for solutions and found recommendations for Jersey and
 Restlet. I
  have looked at these two frameworks, but from reading I cannot tell
 which is
  better. I am new to REST, but have experience in Java, servlets, and
 jsp. So
  I was wondering if anyone on this list has experience with one or both,
 and
  any recommendations you may have. I am looking for a simple way to CRUD
 data
  in my database (~ 15-20 tables). Any hands-on feedback is appreciated!
 
  Thanks!
 
  Mark
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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



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

 Android App Developer Books: http://commonsware.com/books

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


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

[android-developers] Question About LatinIME/SoftKeyboard - anyone using it?

2012-03-22 Thread Mark Phillips
I am working on a app that needs a fair amount of user input, both text and
numbers. The input paradigm has to be very fast - there is little time to
jump between several screens to complete the input before a new set of data
input has to be made. Fast may not the the right wordin this scenario
I find it distracting to move through several screens (popup
dialogs/selection boxes included) to finish this input set and then return
to making observations to collect the data that has to be input. I could
use selection boxes, but I would like to find something else more clever.
Why? The competition uses that input mode, and I find their input method to
be slow and painful (to me - ie distracting from the observing component of
this user application).

The good news is the text is really just a small set of one, two, or three
letter codes plus 1-3 numbers. I was thinking of trying to make a small
keyboard that had the right codes and numbers to see if that input format
is faster and less distracting. I googled for android soft keyboard and
found references to the LatinIME and the sample SoftKeyboard in the sdk.
Most of the references I have found to these keyboards is translating them
into different languages. What I really need is a 4X4 grid (or maybe the
3X6 number grid will work) of keys where I can change the labels on the
keys depending on the different input conditions. Is it possible to change
the layout and number of keys using these tools, or do I have to roll my
own from scratch using the SoftKeyboard as a starting point?

Would it be easier/simpler to use a grid layout and just put 16 buttons in
it?

Thanks for your thoughts!

Mark

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

2012-03-21 Thread Mark Phillips
How??

If you are going to ask for help,   and then say the problem is solved,
you have an obligation to tell the  list the solution, so the next bloke
with a similar problem can help him/herself.

Mark
On Mar 21, 2012 10:40 AM, vaggos von karajan vaggo...@otenet.gr wrote:



 Solved..!

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

2012-03-19 Thread Mark Phillips
I am using ActionbarSherlock 4.0 to create my actionbar. I have three icons
in the actionbar - home, preferences, and help, and a dashboard screen to
start the app with 6 different activities to choose from. In all 6
activities, the home button just goes to the Dashboard activity.

* In the Help Activity, the actionbar only shows the preferences and home
icon. The home icon has the up indicator. In the onOptionsItemSelected
method in the HelpActivity uses finish() for the case of selecting the home
button. It all works as described.

* In the PreferencesActivity the actionbar only shows the help  and home
icon. The home icon has the up indicator. In the onOptionsItemSelected
method in the PreferencesActivity uses finish() for the case of selecting
the home button. It all works as described.

If I click on Help, then Preferences, then Help, then Preferences, then
Help, and then go back, I have to go back through the whole chain to get to
my starting point. I seem to be creating several HelpActivities and
PreferenceActivities as I go (I put a toast message in each activities
onCreate method to tell me when the activity is created). This behavior
does not seem to be a good idea. So, my question is: in the
onOptionsItemSelected method for the HelpActivity, how do I determine if
there is an existing PreferenceActivity and go to that one, or create a new
one if there isn't one. I would think there must be some Android pattern
for this problem, as I can't be that clever to be the first one to run into
this problem.

Thanks!

Mark

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

2012-03-19 Thread Mark Phillips
Mark,

Thanks for the great explanation! It worked like a charm.


Mark

On Mon, Mar 19, 2012 at 5:27 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Mar 19, 2012 at 8:13 PM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  If I click on Help, then Preferences, then Help, then Preferences, then
  Help, and then go back, I have to go back through the whole chain to get
 to
  my starting point. I seem to be creating several HelpActivities and
  PreferenceActivities as I go (I put a toast message in each activities
  onCreate method to tell me when the activity is created). This behavior
 does
  not seem to be a good idea. So, my question is: in the
 onOptionsItemSelected
  method for the HelpActivity, how do I determine if there is an existing
  PreferenceActivity and go to that one, or create a new one if there isn't
  one. I would think there must be some Android pattern for this problem,
 as I
  can't be that clever to be the first one to run into this problem.

 You can add FLAG_ACTIVITY_REORDER_TO_FRONT to your Intent you use with
 startActivity() for all but perhaps your home option. This flag will
 recycle an existing instantiated copy of your activity, if one
 exists (otherwise, it creates one).

 In this case, if you click on Help, then Preferences, then Help, then
 Preferences, then Help, BACK will take you to Preferences, and
 another BACK will take you wherever you started from.

 For the home option, you might instead add FLAG_ACTIVITY_CLEAR_TOP
 and FLAG_ACTIVITY_SINGLE_TOP flags to your Intent for startActivity().
 This destroys all other activities in your task and then displays the
 one you are starting.

 In this case, if you clicked on Help, then Preferences, then the
 action bar's home affordance, then BACK, you exit the application --
 the home affordance would wipe out the Help and Preferences activities
 via the aforementioned pair of flags, leaving you with just your home
 activity, which BACK would exit.

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

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

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


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

2012-03-04 Thread Mark Phillips
I am curious as to how many folks on the list are using ActionBarSherlock
versus rolling their own or some other library for pre 3.0 applications?

Thanks,

Mark

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

[android-developers] Having a Problem using a Library in My Project

2012-03-02 Thread Mark Phillips
I have an Android project, which is a library. The project compiles and
works in an example project. However, the example project has the same
package name (but a separate project).

In my current project, which has a completely different package name, I am
trying to use the same library. I set up the current project as follows:
* the library project is in the eclipse build path as a project
* the manifest.xml file has this inside the application tag -
  uses-library
android:name=com.markupartist.android.widget.ActionBar
  android:required=true /
* I added these lines to the layout file for my activity:
com.markupartist.android.widget.ActionBar
android:id=@+id/actionbar
style=@style/ActionBar
/
I get the error in eclipse - error: Error: No resource found that matches
the given name (at 'style' with value '@style/ActionBar').

The ActionBar library has a syle.xml file with the ActionBar tag. I also
tried putting the ActionBar library as a jar in the build path, and I get
the same error.

What am I missing to include the ActionBar library in my current project?

Thanks,

Mark

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

2012-03-02 Thread Mark Phillips
On Fri, Mar 2, 2012 at 3:36 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Fri, Mar 2, 2012 at 5:30 PM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  I have an Android project, which is a library.

 Is this a true Android library project
 (
 http://developer.android.com/guide/developing/projects/projects-eclipse.html#SettingUpLibraryProject
 )?

 Yes.

   * the library project is in the eclipse build path as a project

 Yes, but did you add it to Eclipse as an Android library project
 (
 http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject
 )?


Nope, this was my problem. Thanks for the information!!


  * the manifest.xml file has this inside the application tag -
uses-library
  android:name=com.markupartist.android.widget.ActionBar
android:required=true /

 Delete this, unless your library is really a firmware add-on that
 you have built into custom firmware (in which case, you're outside the
 scope of this list).


I was looking at the manifest docs and found library, and not a lot of
clear explanation, so I tried it.


  I also
  tried putting the ActionBar library as a jar in the build path, and I get
  the same error.

 JARs don't have resources.


I discovered that by looking in the jar file.

Thanks!!!

Mark

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

2012-02-15 Thread Mark Phillips
David,

Thanksthat is not the one I am looking for.

Mark

On Tue, Feb 14, 2012 at 12:39 PM, David Thaler davidtha...@gmail.comwrote:

 There is http://duarlander.ning.com/.

 On Feb 14, 7:09 am, Mark Phillips m...@phillipsmarketing.biz wrote:
  I found a testing service while surfing late one night, hence, no
  bookmark...:( . It was volunteer run, or very inexpensive, and the tester
  loaded your app on a phone and created a short video of
  his/her experiences using the app. In the example video, there was lots
 of
  commentary, things the tester liked, didn't like, where he/she got hung
 up,
  etc. I can't seem to find the web site again. Does anyone know the URL?
 
  Thanks,
 
  Mark

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

2012-02-15 Thread Mark Phillips
+10
On Feb 15, 2012 10:06 AM, Ted Scott t...@hootinholler.com wrote:

 Please don't take this the wrong way, I'm not complaining, just observing.
 I have to say that between the ESL and txt speak this list has some really
 funny moments.

 The mental image I got from pies of cod will have me smiling for the
 rest of the week. I'm wondering if it's some new way of preparing lutefisk.

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


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

Re: [android-developers] Need help testing an app!

2012-02-14 Thread Mark Phillips
Try these guys - http://duarlander.ning.com/. I have never used them, but
it looks like you can post a request for testers on their wall and may not
have to pay.

Mark

On Tue, Feb 14, 2012 at 12:23 AM, Manmade manmadeinf...@gmail.com wrote:

 I wonder if anybody please could help me test an app that I made?
 I have made an Android app to a school here in sweden and one guy says
 that its not working.

 The guy has a Google Galaxy Nexus with OS 4.0.2, but it would be good
 to get tests from other phones too!

 I have tested it in the Eclipse Emulator with OS 2.2, 2.3 and the
 latest 4.0.3, I have also tested it on my Samsung Galaxy 9001 with OS
 2.3.3 and on my girlfriends Samsung Galaxy 9000 with OS 2.2 and it is
 working as is should, no faults!
 The only thing that doesnt work is saving a localStorage value in 2.2,
 and therefor I have released it with OS 2.3.7.

 I think it is something wrong with his phone and not the app!?
 Off course I could be wrong, but its strange that it work for me and
 not for him!

 You find the app here:
 https://market.android.com/details?id=com.manmade.se
 or you will find the apk file here:
 http://www.manmade.se/iphone/sam/sam1.4.apk

 To test the shedule in the app, do this:
 1. In the menu click Schema.
 2. Click on the button at the top right corner Persnr
 3. Write 19951003-5489 in the text field and click Spara.
 This saves the personal number to a localStorage, and only has to be
 done ones.
 An alert will show up saying Personnummer sparat, which is a
 confirmation that the number has been saved.
 4. Return to the menu and start the Schema page again.
 5. Click the link Mitt Schema.
 Now you should see a shedule!

 1. Doesnt all phones that is running the Android OS work the same
 way?
 2. Could you please also test the other pages in the app and see if
 you see anything strange?
 3. Could you please write down the phone you are testing it on and
 also what version of OS it is.


 If you get an error saying:
 Application Error The connection to the server was unsuccessful.
 (file:///android_asset/www/index.html)
 This is due to slow connection and is fixed in my latest release
 version, but not in the above, so just ignore that thanks.
 But if you find any other problems please let me know.
 Thanks a lot for your time and help.

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


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

[android-developers] App Testing Service - can't find the URL

2012-02-14 Thread Mark Phillips
I found a testing service while surfing late one night, hence, no
bookmark...:( . It was volunteer run, or very inexpensive, and the tester
loaded your app on a phone and created a short video of
his/her experiences using the app. In the example video, there was lots of
commentary, things the tester liked, didn't like, where he/she got hung up,
etc. I can't seem to find the web site again. Does anyone know the URL?

Thanks,

Mark

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

2012-02-09 Thread Mark Phillips
Could you release an update and offer something for the rating? Additional
levels, characters, some way to personalize the game for the user?

Mark
On Feb 9, 2012 9:46 AM, albnok alb...@gmail.com wrote:

 Man I most certainly don't click Rate, no matter what, I just want to
 get in the game or whatever app.

 I guess they have to feel compelled to want to rate it?

 On Feb 8, 11:44 pm, decastro reis...@gmail.com wrote:
  I have recently released a game called tangle twister to the market.
  I have spent a little on admob advertising so now have 650 downloads.
  But only two people have rated it so far. I wonder if I'm doing
  something wrong to get so few ratings.
 
  At the moment I bring up a prompt for the user to rate after they have
  run the app at least three times and have just completed a level
  higher than three (very easy). I only prompt if there is currently an
  internet connection.There is also a Rate option that appears if the
  users press the menu button during game play.
 
  I guess there are a few possibilities:
 
  A) I have a bug in the code which results in me seeing the prompt, but
  other users not seeing it.
  B) The wording on the prompt is not encouraging enough.
  C) People simply don't like the app and never play long enough to get
  the prompt.
  D) I have made some market configuration error which results in
  ratings being lost.
  E) 2 out of 650 is actually what I should expect for this type of
  game.
  F) Something else.
 
  Any ideas?

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

2012-02-09 Thread Mark Phillips
My apologies for recommending something against the market policies. I was
not aware of that policy. I am just starting out, so I have not gotten that
far in the process to actually put an app  on the market.

BTW, I was not advocating making an offer for a better rating. I meant an
incentive for the user to just rate the game.

Mark
On Feb 9, 2012 11:08 AM, a1 arco...@gmail.com wrote:

 Could you release an update and offer something for the rating? Additional
 levels, characters, some way to personalize the game for the user?


 Which is, of course, violation of market content policy terms (
 http://www.android.com/us/developer-content-policy.html  see Spam and
 Placement section: Developers also should not attempt to change the
 placement of any Product in the Store by rating an application multiple
 times, or by offering incentives to users to rate an application with
 higher or lower ratings.)

 To OP, 1 rating for ca. 400-500 user is what I'm seeing in my free games,
 also take a quick look at other free games on market it's looks like this
 is more or less what you should expect.

 --
 Bart

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

2012-02-01 Thread Mark Phillips
I want to have a background image of a game board in one of my activities,
and I am not sure how to implement it. I have been reading about Drawables
and 9patch, and I am confused about the basics.

1. I can draw the image I want in GIMP, but what size do I make it?
Actually, what sizes, as I assume I have to have one for each of the
different resolutions - hdp, ldp, and mdp? Do I need separate images for
both portrait and landscape orientations?

2. Is 9patch just for buttons, or for background images, too? Is this the
tool I need to help with the screen size issues from question #1?

3. I can't seem to find any good tutorials about how to make a background
image for an activity, and how to make it accommodate all the screen sizes
and resolutions. Yes, I have googled for it and looked in O'Rielley's
Programming Android...;)

Thanks,

Mark

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

[android-developers] Question Regarding Table Layout

2012-01-21 Thread Mark Phillips
I have a table layout with 2 columns. One column has a
MultiAutoCompleteTextView, the other has a Spinner. The data in the Spinner
is only 3 characters. Both columns take an equal amount of space. How do I
shrink the column with the Spinner and expand the column with the TextView?

Thanks!

Mark

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

2012-01-09 Thread Mark Phillips
Looks like an interesting book to read.

Mark

On Thu, Jan 5, 2012 at 9:50 AM, scp89 jayvanbui...@gmail.com wrote:

 I've recently finished writing the first full-length, android-specific
 book on Android Marketing. It covers tips, tricks, strategies,
 competitive analysis, and so much more. Everything I've learned in 2
 years selling android apps, I've put into this book. It is available
 via e-book OR softcover:

 E-book:
 http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B005WE7S3G/ref=sr_1_5?ie=UTF8qid=1325606679sr=8-5

 Softcover:

 http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/1463778406/ref=sr_1_cc_1?s=digital-textie=UTF8qid=1325606710sr=1-1-catcorr

 GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
 reply to this thread, and 1 week from today I will randomly select 3
 members and PM you a link to your free download of the 130 page book.

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

2012-01-08 Thread Mark Phillips
Just curious why we need yet another Android discussion group?

Mark

On Sun, Jan 8, 2012 at 3:42 AM, Subanand Thiruppathirajan 
tsuban...@gmail.com wrote:

 Please join in Android Developers Community and discuss all technical
 details on Android Platform.

 http://www.facebook.com/groups/androidmasters/

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

2011-12-14 Thread Mark Phillips
Is there a way to capture key strokes in eclipse and run them as a script?

I have three eclipse projects that interact, and I need to clean, build,
etc the projects in a certain order. How can I automate this so I click one
button and the steps are run?

My tasks;
1. Clean projects A, B, C
2. Build project A
3. Run java B.main input.txt in project B (depends on build of A) to
create output files in B
4. Build project B (depends on build of project A)
5. Create jar of project B
6. Clean project A
7. Build project A (depends on B.jar)
8. Build project C
9. Run Junit tests in project C

I googled for some answers, and found references to Monkey, which is no
longer available, and Ant. However, I am not sure if Ant is what I need,
and I have not found a good tutorial that helps with this problem.

Thanks,

Mark

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

[android-developers] OT: Can't Get Eclipse to Run

2011-11-28 Thread Mark Phillips
My apologies for posting this plea for help to the android list. I have not
had a response from the eclipse list, so I hoped someone here can point me
in the right direction.

I moved my previous Android development environment to a new hard drive,
but same computer. I cannot get eclipse to start - no splash screen, just
nothing. I am trying to run 32 bit eclipse with 32 bit java on my 64 bit
Debian box. I have the ia32 extensions installed. This is a fresh install
of Debian, Eclipse and Java. All I moved over from the old hard drive was
my workspace folder, and it is in the same location.

When I run eclipse in debug mode I get:
mark@orca:~/eclipse$ ./eclipse -debug
Start VM: /usr/local/lib/jdk1.6.0_29/bin/java
-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar
/home/mark/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/mark/eclipse/eclipse
-name Eclipse
--launcher.library
/home/mark/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505/eclipse_1407.so
-startup
/home/mark/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata 2338008
-debug
-vm /usr/local/lib/jdk1.6.0_29/bin/java
-vmargs
-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar
/home/mark/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
Install location:
file:/home/mark/eclipse/
Configuration file:
file:/home/mark/eclipse/configuration/config.ini loaded
Configuration location:
file:/home/mark/eclipse/configuration/
Framework located:

file:/home/mark/eclipse/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
Framework classpath:

file:/home/mark/eclipse/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
Splash location:

/home/mark/eclipse/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
Debug options:
file:/home/mark/eclipse/.options not found
Time to load bundles: 9
Starting application: 2148
mark@orca:~/eclipse$

I am running Linux version 3.1.0-1-amd64 (Debian 3.1.1-1) (gcc version
4.6.2 (Debian 4.6.2-4)) on the server. My eclipse.ini looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
/usr/local/lib/jdk1.6.0_29/bin/java
-vmargs
-Xms40m
-Xmx384m

From the command line I get:
mark@orca:~/eclipse$ java -version
java version 1.6.0_29
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Server VM (build 20.4-b02, mixed mode)

What am I missing to get eclipse to start?

Thanks,

Mark

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

2011-11-28 Thread Mark Phillips
I ran eclipse from the command line:
java  -jar
/home/mark/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

and got these errors:

eclipse.buildId=M20110909-1335
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2011-11-28 18:09:53.790
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/mark/eclipse/configuration/org.eclipse.osgi/bundles/154/1/.cp/libswt-pi-gtk-3738.so:
libgtk-x11-2.0.so.0: cannot open shared object file: No such file or
directory
no swt-pi-gtk in java.library.path
/home/mark/.swt/lib/linux/x86/libswt-pi-gtk-3738.so: libgtk-x11-2.0.so.0:
cannot open shared object file: No such file or directory
Can't load library: /home/mark/.swt/lib/linux/x86/libswt-pi-gtk.so

The library libgtk-x11-2.0.so is in the Debian package ia32-libs-gtk, and
once I installed that package, eclipse started.

Mark

On Mon, Nov 28, 2011 at 3:38 PM, Mark Phillips
m...@phillipsmarketing.bizwrote:

 My apologies for posting this plea for help to the android list. I have
 not had a response from the eclipse list, so I hoped someone here can point
 me in the right direction.

 I moved my previous Android development environment to a new hard drive,
 but same computer. I cannot get eclipse to start - no splash screen, just
 nothing. I am trying to run 32 bit eclipse with 32 bit java on my 64 bit
 Debian box. I have the ia32 extensions installed. This is a fresh install
 of Debian, Eclipse and Java. All I moved over from the old hard drive was
 my workspace folder, and it is in the same location.

 When I run eclipse in debug mode I get:
 mark@orca:~/eclipse$ ./eclipse -debug
 Start VM: /usr/local/lib/jdk1.6.0_29/bin/java
 -Xms40m
 -Xmx384m
 -XX:MaxPermSize=256m
 -jar
 /home/mark/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 -os linux
 -ws gtk
 -arch x86
 -showsplash
 -launcher /home/mark/eclipse/eclipse
 -name Eclipse
 --launcher.library
 /home/mark/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505/eclipse_1407.so
 -startup
 /home/mark/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 --launcher.overrideVmargs
 -exitdata 2338008
 -debug
 -vm /usr/local/lib/jdk1.6.0_29/bin/java
 -vmargs
 -Xms40m
 -Xmx384m
 -XX:MaxPermSize=256m
 -jar
 /home/mark/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 Install location:
 file:/home/mark/eclipse/
 Configuration file:
 file:/home/mark/eclipse/configuration/config.ini loaded
 Configuration location:
 file:/home/mark/eclipse/configuration/
 Framework located:

 file:/home/mark/eclipse/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
 Framework classpath:

 file:/home/mark/eclipse/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
 Splash location:

 /home/mark/eclipse/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
 Debug options:
 file:/home/mark/eclipse/.options not found
 Time to load bundles: 9
 Starting application: 2148
 mark@orca:~/eclipse$

 I am running Linux version 3.1.0-1-amd64 (Debian 3.1.1-1) (gcc version
 4.6.2 (Debian 4.6.2-4)) on the server. My eclipse.ini looks like this:
 -startup
 plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 --launcher.library
 plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
 -showsplash
 org.eclipse.platform
 --launcher.XXMaxPermSize
 256m
 --launcher.defaultAction
 openFile
 -vm
 /usr/local/lib/jdk1.6.0_29/bin/java
 -vmargs
 -Xms40m
 -Xmx384m

 From the command line I get:
 mark@orca:~/eclipse$ java -version
 java version 1.6.0_29
 Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
 Java HotSpot(TM) Server VM (build 20.4-b02, mixed mode)

 What am I missing to get eclipse to start?

 Thanks,

 Mark


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

2011-11-28 Thread Mark Phillips
Sounds like the OP wants to make a ”but-dialing” app...;)

Mark
On Nov 28, 2011 6:16 PM, Lew lewbl...@gmail.com wrote:

 On Monday, November 28, 2011 4:17:34 PM UTC-8, James Black wrote:

 I don't see why a person would install a program that could make calls
 secretly, as it could then spy on people without their knowledge.


 Or rack up their peak minutes and cost them a bunch of money.

 So, having the ability to do that would be bad for a phone, so I doubt you
 will see this capability, unless you release your own version of Android OS.

 On Mon, Nov 28, 2011 at 6:03 PM, Mark Murphy mmu...@commonsware.comwrote:

 Fortunately, this is not possible.

 On Fri, Nov 25, 2011 at 5:17 AM, ZeeShaN AbbAs meea...@gmail.com
 wrote:
  hey I want to make a call from my application, so far I found that
  ... [snip] ...
  but there is a problem that I want to call person secretly and this
  call the default Activity can I write my own activity for making call
  or receiving call secretly (means without any UI call run on
  background)??


 --
 Lew

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

2011-10-31 Thread Mark Phillips
I have the following layout:

LinearLayout
TableLayout_1
ScrollView
   MyHorizontalScrollView
 TableLayout_2

MyHorizontalScrollView extends HorizontalScrollView. I can get a pointer to
TableLayout_2 using findViewById(). How do I get a pointer to TableLayout_1
from MyHorizontalScrollView?

Thanks,

Mark

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

2011-10-31 Thread Mark Phillips
How do I get it from my activity?

Mark

On Mon, Oct 31, 2011 at 8:38 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Oct 31, 2011 at 11:34 AM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  I have the following layout:
 
  LinearLayout
  TableLayout_1
  ScrollView
 MyHorizontalScrollView
   TableLayout_2
 
  MyHorizontalScrollView extends HorizontalScrollView. I can get a pointer
 to
  TableLayout_2 using findViewById(). How do I get a pointer to
 TableLayout_1
  from MyHorizontalScrollView?

 You don't, since TableLayout_1 is not a child of
 MyHorizontalScrollView. You get it from your activity.

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

 _Android Programming Tutorials_ Version 4.0 Available!

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


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

2011-10-31 Thread Mark Phillips
My apologies for not being clear. I an very new to android development -
this is my second week of experimenting/reading.

I assume there is a pattern for accessing a view_1 from view_2, where
view_1 is not a child of view_2. Perhaps I am wrong.

I was thinking that in the constructor of view_2, there is this Context
object. I looked at the api and I don't see anything obvious, but is there
a way through that object to get a handle on the activity so I can call
activity.findViewById() in view_2 to get at view_1?

Or, is the pattern to create a getter in the activity, which calls
findViewById() for view_1, and then somehow view_2 calls that getter.
Again, not sure how to get a handle to the activity in view_2.

Thanks,

Mark

On Mon, Oct 31, 2011 at 9:28 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Oct 31, 2011 at 11:55 AM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  How do I get it from my activity?

 Call findViewById() on the activity.

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

 _Android Programming Tutorials_ Version 4.0 Available!

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


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

2011-10-31 Thread Mark Phillips
I think I found it..with your suggestion to look at the activity...

((Activity1)getContext()).some public method in the Activity);

Is this the best way to accomplish what I want?

Thanks!

Mark

On Mon, Oct 31, 2011 at 10:30 AM, Mark Phillips
m...@phillipsmarketing.bizwrote:

 My apologies for not being clear. I an very new to android development -
 this is my second week of experimenting/reading.

 I assume there is a pattern for accessing a view_1 from view_2, where
 view_1 is not a child of view_2. Perhaps I am wrong.

 I was thinking that in the constructor of view_2, there is this Context
 object. I looked at the api and I don't see anything obvious, but is there
 a way through that object to get a handle on the activity so I can call
 activity.findViewById() in view_2 to get at view_1?

 Or, is the pattern to create a getter in the activity, which calls
 findViewById() for view_1, and then somehow view_2 calls that getter.
 Again, not sure how to get a handle to the activity in view_2.

 Thanks,

 Mark


 On Mon, Oct 31, 2011 at 9:28 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Oct 31, 2011 at 11:55 AM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  How do I get it from my activity?

 Call findViewById() on the activity.

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

 _Android Programming Tutorials_ Version 4.0 Available!

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




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

2011-10-31 Thread Mark Phillips
ThanksI will look into implementing it the way you suggested.

Mark

On Mon, Oct 31, 2011 at 10:47 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Oct 31, 2011 at 1:35 PM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  I think I found it..with your suggestion to look at the activity...
 
  ((Activity1)getContext()).some public method in the Activity);
 
  Is this the best way to accomplish what I want?

 Tactically, there seem to be some scenarios in which getContext() of a
 View does not return an Activity, but rather something else
 (ContextWrapper, IIRC).

 Strategically, it may be cleaner for you to define an interface, have
 MyHorizontalScrollView hold an instance of that interface, have your
 activity supply MyHorizontalScrollView with an implementation of that
 interface, and have MyHorizontalScrollView call methods on that
 interface implementation as needed. In particular, I would make the
 interface be evented -- MyHorizontalScrollView should neither know
 nor care what other widgets are floating around, so it should be
 surfacing events and letting the activity handle them, rather than
 having the interface supply objects to MyHorizontalScrollView and
 having it massage other widgets.

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

 _Android Programming Tutorials_ Version 4.0 Available!

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


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

[android-developers] Scrolling a Table

2011-10-28 Thread Mark Phillips
I have a table with 10 columns and 11 rows. All the columns are the same
size, except the first and last. I only want to display three columns at a
time - the first, a middle column, and the last column. Vertical scrolling
is handle normally.

My layout is:

LinearLayout
ScrollView (for vertical scrolling)
HorizontalScrollView
TableLayout

My plan is to extend HorizontalScrollView and override onGenericMotionEvent,
use the ActionMask to find any horizontal scrolling, and scroll the table by
using collapseColumn() to make one of the middle columns visible based on
the x direction of scrolling. Does this seem feasible? Has anyone tried this
before? Is there a better way?

Thanks!

Mark

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: (Scrolling a Table) Can't Figure Out Compiler Error

2011-10-28 Thread Mark Phillips
Can someone help me understand why the compiler is complaining about this
code. I get two errors:

The method onGenericMotionEvent(MotionEvent) is undefined for the type
HorizontalScrollView
The method onGenericMotionEvent(MotionEvent) of type MyHorizontalScrollView
must override a superclass method

Accroding to the API, onGenericMotionEvent is a public method of
HorizontalScrollView -
http://developer.android.com/reference/android/widget/HorizontalScrollView.html#onGenericMotionEvent(android.view.MotionEvent)

import android.content.Context;
import android.util.AttributeSet;
import android.widget.HorizontalScrollView;
import android.view.MotionEvent;

public class MyHorizontalScrollView extends HorizontalScrollView {

public MyHorizontalScrollView(Context context, AttributeSet attrs,
int defStyle) {
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
}

public MyHorizontalScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
}

public MyHorizontalScrollView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}

@Override
public boolean onGenericMotionEvent (MotionEvent event) {
// TODO put some code here to control horizontal scrolling

return super.onGenericMotionEvent(event);
}

}

Thanks!

Mark

On Fri, Oct 28, 2011 at 9:01 AM, Mark Phillips
m...@phillipsmarketing.bizwrote:

 I have a table with 10 columns and 11 rows. All the columns are the same
 size, except the first and last. I only want to display three columns at a
 time - the first, a middle column, and the last column. Vertical scrolling
 is handle normally.

 My layout is:

 LinearLayout
 ScrollView (for vertical scrolling)
 HorizontalScrollView
 TableLayout

 My plan is to extend HorizontalScrollView and override
 onGenericMotionEvent, use the ActionMask to find any horizontal scrolling,
 and scroll the table by using collapseColumn() to make one of the middle
 columns visible based on the x direction of scrolling. Does this seem
 feasible? Has anyone tried this before? Is there a better way?

 Thanks!

 Mark


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: (Scrolling a Table) Can't Figure Out Compiler Error

2011-10-28 Thread Mark Phillips
The Since API level 12. is grayed out on my screen...I just noticed it
thanks to you!

Sorry about the dumb question.

Mark

On Fri, Oct 28, 2011 at 2:40 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 onGenericMotionEvent
 Since API level 12.

 Are you targeting Android 3.1?


 2011/10/29 Mark Phillips m...@phillipsmarketing.biz

 Can someone help me understand why the compiler is complaining about this
 code. I get two errors:

 The method onGenericMotionEvent(MotionEvent) is undefined for the type
 HorizontalScrollView
 The method onGenericMotionEvent(MotionEvent) of type
 MyHorizontalScrollView must override a superclass method

 Accroding to the API, onGenericMotionEvent is a public method of
 HorizontalScrollView -
 http://developer.android.com/reference/android/widget/HorizontalScrollView.html#onGenericMotionEvent(android.view.MotionEvent)

 import android.content.Context;
 import android.util.AttributeSet;
 import android.widget.HorizontalScrollView;
 import android.view.MotionEvent;

 public class MyHorizontalScrollView extends HorizontalScrollView {

 public MyHorizontalScrollView(Context context, AttributeSet attrs,
 int defStyle) {
 super(context, attrs, defStyle);
 // TODO Auto-generated constructor stub
 }

 public MyHorizontalScrollView(Context context, AttributeSet attrs) {
 super(context, attrs);
 // TODO Auto-generated constructor stub
 }

 public MyHorizontalScrollView(Context context) {
 super(context);
 // TODO Auto-generated constructor stub
 }

 @Override
 public boolean onGenericMotionEvent (MotionEvent event) {
 // TODO put some code here to control horizontal scrolling

 return super.onGenericMotionEvent(event);
 }

 }

 Thanks!

 Mark

 On Fri, Oct 28, 2011 at 9:01 AM, Mark Phillips 
 m...@phillipsmarketing.biz wrote:

 I have a table with 10 columns and 11 rows. All the columns are the same
 size, except the first and last. I only want to display three columns at a
 time - the first, a middle column, and the last column. Vertical scrolling
 is handle normally.

 My layout is:

 LinearLayout
 ScrollView (for vertical scrolling)
 HorizontalScrollView
 TableLayout

 My plan is to extend HorizontalScrollView and override
 onGenericMotionEvent, use the ActionMask to find any horizontal scrolling,
 and scroll the table by using collapseColumn() to make one of the middle
 columns visible based on the x direction of scrolling. Does this seem
 feasible? Has anyone tried this before? Is there a better way?

 Thanks!

 Mark


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

2011-10-24 Thread Mark Phillips
I have the following layout:

LinearLayout - vertical
  TableLayout
  ScrollView
  TableLayout
  LinearLayout

When I fill the TableLayout in the ScrollView with rows, it pushes the
bottom LinearLayout off the screen. How do I get these three layouts to work
together so all three appear on the screen, and I can scroll the center
layout to see all of the table? I only want 6 rows of the table to be
visible. It all fits with room to spare if I only have 6 rows in the table.

I can make it work if I do this:

LinearLayout - vertical
  TableLayout
  LinearLayout - android:layout_height=360dp
 ScrollView
 TableLayout
  LinearLayout

Is this the right way to handle this problem - specifying a specific
height? Since devices have different screen sizes, do I need some sort of
code to get the screen size and compute this value at the start of the
program? Is there a more android way of accomplishing what I want?

Thanks!

Mark

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

[android-developers] Scrolling like a spreadsheet

2011-10-21 Thread Mark Phillips
I was reading this thread (
http://groups.google.com/group/android-developers/browse_thread/thread/0de5d5325a01fc53?pli=1)
about scrolling a table like a spreadsheet, and one of the contributors
offered some code, but it is based on a spreadsheet_layout in a file called
spreadsheet.xml. I have googled for it, and cannot find it. Does anyone know
where it is? I also emailed the author, and no response.

Thanks,

Mark

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

[android-developers] Newbie Help with TableLayout

2011-10-20 Thread Mark Phillips
I am new to Android, but not Java. I am trying to use the TableLayout to
create the following table:

|A: |  |10| 4|12|x|eee e|
|F: |gg| 3|24| 8| |34:89|

Two rows, with some text of varying length. The capitalized text is fixed,
the lower case and numbers change as the program runs. I need to keep the
columns aligned, as well as the numbers.

I want the two rows to span the width of the screen, so there needs to be
some variable padding in the cells to keep the columns aligned. How do I do
that?

Mark

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

2011-10-20 Thread Mark Phillips
Mark,

Thanks! That looks much better!!

Mark

On Thu, Oct 20, 2011 at 12:38 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use android:stretchColumns=1 to have the aa/ column
 stretch based upon the text length. android:stretchColumns can take a
 comma-delimited list of columns if you have more than one you want to
 stretch.

 On Thu, Oct 20, 2011 at 3:01 PM, Mark Phillips
 m...@phillipsmarketing.biz wrote:
  I am new to Android, but not Java. I am trying to use the TableLayout to
  create the following table:
 
  |A: |  |10| 4|12|x|eee e|
  |F: |gg| 3|24| 8| |34:89|
 
  Two rows, with some text of varying length. The capitalized text is
 fixed,
  the lower case and numbers change as the program runs. I need to keep the
  columns aligned, as well as the numbers.
 
  I want the two rows to span the width of the screen, so there needs to be
  some variable padding in the cells to keep the columns aligned. How do I
 do
  that?
 
  Mark
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-10-07 Thread Mark Phillips
I am just diving into Android development, and I have a question about
setting up Eclipse with the SDK. My development machine runs Linux version
3.0.0-1-amd64 (Debian 3.0.0-3), and I understand the SDk is 32 bit. Do I
install the 32 bit Eclipse or the 64 bit Eclipse? Does it matter? Or, should
I setup a 32 bit chroot or VM and work out of there?

Thanks!

Mark

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