Re: [android-developers] Weight ingored when i append text in text view

2016-03-02 Thread Justin Anderson
We would be happy to help you out... provided you give us more
information.  Saying layout_weight isn't working properly and posting a
huge layout file is nowhere near enough information.

Maybe explain what you are expecting to happen, and what is actually
happening?  Some screenshots or other diagrams might be useful too.  From a
quick glance at your layout file, you are probably nesting layouts too much
and overcomplicating your UI.  But I'm not going to dig through your whole
layout file and try to guess what the problem is.

On Wed, Mar 2, 2016 at 12:09 PM Данила Горшков  wrote:

> here my xml:
>
> 
> http://schemas.android.com/apk/res/android";
>  xmlns:tools="http://schemas.android.com/tools";
>  android:layout_width="match_parent"
>  android:layout_height="match_parent"
>  android:paddingBottom="@dimen/activity_vertical_margin"
>  android:paddingLeft="@dimen/activity_horizontal_margin"
>  android:paddingRight="@dimen/activity_horizontal_margin"
>  android:paddingTop="@dimen/activity_vertical_margin"
>  tools:context="com.zonkgeeks.zoiduppers.zackzoid.AnalysActivity"
>  >
>
>android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="match_parent"
>  android:weightSum="2">
>
>android:orientation="horizontal"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1"
>  android:weightSum="2"
>  android:id="@+id/linearLayout"
>  android:baselineAligned="false">
>
>android:id="@+id/analys_lt"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_lt"
>  android:id="@+id/textView7"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsUI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>
>android:id="@+id/analys_rt"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_rt"
>  android:id="@+id/textView8"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsUNI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>  
>
>android:orientation="horizontal"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1"
>  android:weightSum="2"
>  android:baselineAligned="false">
>
>android:id="@+id/analys_lb"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_lb"
>  android:id="@+id/textView9"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsNUI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>
>android:id="@+id/analys_rb"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_rb"
>  android:id="@+id/textView10"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsNUNI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>
>  
>
>  
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe fr

Re: [android-developers] Make a Broadcast receiver receive broadcasts after force closing.

2016-03-02 Thread Justin Anderson
Hmm... ok, that eliminates the main thought I had as to the cause of the
problem.  Have you seen this?
http://stackoverflow.com/a/9240705/249412

On Wed, Mar 2, 2016 at 9:10 AM Narendran Anil  wrote:

> Yes. It is a separate class. Registered in the manifest. See, it work when
>>> the app is closed. But when you close the app from the Recent apps (as in
>>> there is no instance of the app running), then the broadcast receiver stops
>>> receiving broadcasts.
>>
>>
> On Wednesday, March 2, 2016 at 8:32:02 PM UTC+5:30, MagouyaWare wrote:
>
>> How are you creating your broadcast receiver?  Is it a separate class and
>> defined in the manifest? Or is it created and registered in an activity?
>>
>> On Wed, Mar 2, 2016 at 2:49 AM Narendran Anil  wrote:
>>
> Hello,
>>>
>>> I am working on an app that will show a pop up on call end. It works
>>> fine with a broadcast receiver but if the user force closes the app, the
>>> broadcast receiver stop s working (as it should) and herein lies my
>>> problem. My app's main functionality is to give the user a screen after the
>>> call ends so he can select an action he requires. This pop up appears only
>>> for certain numbers that he chooses so it is not a hassle in any way.
>>>
>>> I know that TrueCaller pop up will appear on receiving an incoming call
>>> even if the app is forced stopped. How do they achieve this? Do they use a
>>> special Broadcast Receiver?
>>> Can I make my app work by using some other method?
>>>
>>> PS - I am here because of this article (
>>> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/)
>>> led me here.
>>>
>>> I hope you guys help me out. Thank you.
>>>
>>> --
>>> 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-d...@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/14a64231-8141-48cf-a1c0-8f521eec305c%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/d820939c-1baa-45ef-b8ce-b502a43606e6%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/CAOq06s-aZ1ezPXkLCQi9wo9_SyaObEfNyQQk6N6LAQtDBG-ySA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] I want to create a transparent navigation drawer over the texture view where texture view will contain the live camera scene.

2016-03-02 Thread Justin Anderson
"I have been struggling with this since last week but without any luck."

What have you tried so far?

On Wed, Mar 2, 2016 at 9:15 AM umashankar thakur 
wrote:

> I am using texture view for showing live content of camera.
> I need to draw that semi transparent white colored border or outline (I
> don't know what to call it exactly) and on top of that a navigation drawer
> is to be added.
> I have been struggling with this since last week but without any luck. Any
> help would be kindly appreciated.
>
> like Layar UI.
>
>
> 
>
> --
> 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/6a67c693-6ae7-465d-b6c7-134915312bfa%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/CAOq06s-X6jDDb5G320LFm-1YvfFp8Grpx1NRCrerndYWaxze6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: ImageView not showing

2016-03-02 Thread Justin Anderson
"RelativeLayout layout = (RelativeLayout) this.findViewById(R.layout.
activity_menu_on_loadup);"

findViewById requires an id resource... not a layout resource.  That means
what you pass in to findViewById should look like this: R.id.my_view_id

On Tue, Mar 1, 2016 at 8:05 PM Elijah Smith 
wrote:

> I added the imageview to the layout, but accessing the layout has an
> underline in Intellij. It says: "Expected resource of the type int". I
> don't call this an error because it doesn't seem to actually be causing
> one, but I am confused as to what it wants me to do.
>
> RelativeLayout layout = (RelativeLayout) 
> this.findViewById(R.layout.activity_menu_on_loadup);
>
>
> --
> 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/3e9b6bae-f57c-471f-a7aa-14a69274fa3a%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/CAOq06s9Q7jUiFBZT7UPXAAt8idd4C0TUqYS_F-naApgeDg6DrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Image adquisicion app

2016-03-02 Thread Justin Anderson
Try again...

On Tue, Mar 1, 2016 at 7:04 PM developer 
wrote:

> i need acquire image and have control on the flashlight to turn on or turn
> off while i see image of the camera.
>
> --
> 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/e2bf15bf-8950-4c09-8d96-bf690233d153%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/CAOq06s-Cg0kscxM6MAYWsEX37V31C5WeRYOm-7ARP-BvLRgLHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Notification App Android Studio

2016-03-02 Thread Justin Anderson
The difference is that Android Wear devices are always connected to a
device via bluetooth.  To do what you are wanting to do, you would need to
either establish a bluetooth connection and send data via the connection
yourself or send the data up to some web server that you maintain and then
do a push notification to your other device.

In both scenarios though, you aren't going to be able to make use of
NotificationCompat to handle the interaction between the two devices like
you do with Android Wear devices.  You're going to have to manually write
all that stuff yourself.

On Tue, Mar 1, 2016 at 9:53 PM Danielle Anderson  wrote:

> I am trying to create an application that receives text messages from my
> mobile phone and then displays them on another device such as a tablet.
> Just curious if anyone has any recommendations on where/how to start? The
> android developer site has a lot of information show how to implement this
> on a wearable device using NotificationCompat.Builder but I am not sure if
> this applies to handheld devices as well.  Any help would be appreciated!
> Thank you!
>
> --
> 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/a08f1174-89ca-429b-bd5e-6af865fa2ef4%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/CAOq06s85%3DzpOyqzq%3Dw%2BEuxQNTvrszEQRRnmjFXKSLgjb0QN-Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] One big json call or multiple per activity calls for json?

2016-03-02 Thread Justin Anderson
I think the best practice depends on the requirements for the app and there
isn't a globally acceptable answer to that.  Obviously you don't want to
have an overly "chatty" app, but depending on how much data you need and
how often some of that data is used, you may not want to get it all up
front.  You want to find a good balance between having too many network
calls and UI response time.  If it takes a long time to wait for the data
to download then the experience is not going to be a good one for the user.

Also, this is not really an Android question... just saying. :-)

On Tue, Mar 1, 2016 at 11:11 PM sardar khan 
wrote:

> i think good practice is to load all data first time and save it.
>
> On Tue, Mar 1, 2016 at 8:34 PM, Marcel Molenaar 
> wrote:
>
>> Hello,
>>
>> What is good practice?
>>
>> I consider to do one call to my serverside json file at the first
>> activity of my app and get all my data at once.
>>
>> My college prefers to split it up into separate json calls in each
>> activity so only data for that specific activity will be requested.
>>
>> Which approach is the best?
>>
>> Regards,
>>
>> Marcel Molenaar
>>
>> --
>> 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/c384f425-f8d3-485a-9b6a-03cac353cf7b%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/CABHzXAR4ryw_8toBdNUOLVJ4nXmi1VZFdNMu%3DNweyrNQk7ZJ7w%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/CAOq06s-HwuQ0QMX4gaMs0KsFa1TOTO7gOb49c%2BDdvxYdHycV%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Make a Broadcast receiver receive broadcasts after force closing.

2016-03-02 Thread Justin Anderson
How are you creating your broadcast receiver?  Is it a separate class and
defined in the manifest? Or is it created and registered in an activity?

On Wed, Mar 2, 2016 at 2:49 AM Narendran Anil  wrote:

> Hello,
>
> I am working on an app that will show a pop up on call end. It works fine
> with a broadcast receiver but if the user force closes the app, the
> broadcast receiver stop s working (as it should) and herein lies my
> problem. My app's main functionality is to give the user a screen after the
> call ends so he can select an action he requires. This pop up appears only
> for certain numbers that he chooses so it is not a hassle in any way.
>
> I know that TrueCaller pop up will appear on receiving an incoming call
> even if the app is forced stopped. How do they achieve this? Do they use a
> special Broadcast Receiver?
> Can I make my app work by using some other method?
>
> PS - I am here because of this article (
> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/)
> led me here.
>
> I hope you guys help me out. Thank you.
>
> --
> 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/14a64231-8141-48cf-a1c0-8f521eec305c%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/CAOq06s_FyTM%3D%2B%3DHMvEARoFoFoOKcKdnWa6CmhF_x_dzdjP6EEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Font can't be found in assets/fonts

2016-01-21 Thread Justin Anderson
Do you need to specify the .ttf extension?

On Thu, Jan 21, 2016, 8:32 PM NuffsaidM8  wrote:

>
> 
>
>
> 
> I have a font file (.ttf) in the fonts directory inside the assets folder.
> Proof:
>
> Yet the error that my app gives me is that it can't find the font right
> there. I have double checked the name and been through several
> stackoverflow questions and seen no reason why it can't be found. Does
> someone have an idea what I did wrong? Here is the relevant code.
>
> try {
> Typeface welcomeFace = Typeface.createFromAsset(this.getAssets(), 
> "fonts/engebrechtrebd");
> TextView welcomeView = (TextView) this.findViewById(R.id.welcome);
> welcomeView.setTypeface(welcomeFace);
> } catch(Exception e) {
> Log.d("test", "ERROR", e);
> }
>
>
>
> --
> 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/2b10a41b-b631-4da7-ad04-9e6fc7361426%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/CAOq06s8AmcvVEYZH6eJSjXW9UXt8sGSrfQ6YyJbCR_t1obwYjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] can't install app on android 6.0

2016-01-21 Thread Justin Anderson
Oh nice, I wasn't aware of that!

On Thu, Jan 21, 2016, 7:32 AM Dan  wrote:

> If it is the multi-user issue, you don't have to use adb uninstall, the
> upper right menu bar in the settings->apps->(select your app) will have an
> "uninstall for all users" option that will get it off the device for all
> user profiles.
>
>
> On Wednesday, January 20, 2016 at 5:22:26 PM UTC-5, MagouyaWare wrote:
>
>> If you have multiple users on your device and install via adb (typically
>> via the IDE while developing the app) then you have to use adb to uninstall
>> it, as TreKing suggested.  Installing via adb seems to install for all
>> users.  If you then uninstall the app via the normal mechanism on your
>> phone it only removes the current user's version of it, which causes weird
>> behavior.
>>
>> On Wed, Jan 20, 2016 at 4:03 PM TreKing  wrote:
>>
>>>
>>> On Wed, Jan 20, 2016 at 8:16 AM, Pedro CLR  wrote:
>>>
 Returns message 'App not installed'. I used that same phone for debug;
 could it be that somehow the app is still installed (even for other users),
 and simply long-tapping and dragging the icon to 'uninstall' won't do the
 trick?
>>>
>>>
>>> Yes, I see weirdness like this frequently. Try using "adb uninstall
>>> "
>>>
>>>
>>> -
>>> 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-d...@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/CANCScghRF2aWozEToV4S_pcd0q353qoO2vxMVtpxQkj9ZPMHmw%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/7b6d6c8c-a69b-47f4-9d32-29754547195d%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/CAOq06s-oo%2Bv7FW671-GLyGy2k8%3DVy1LsbdqghK2X%3D6qZcvGFFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] VPN TRUE

2016-01-21 Thread Justin Anderson
This is your third post promoting your app in this group. Please stop
spamming the group.

On Thu, Jan 21, 2016, 1:53 AM Юра Сокол  wrote:

> VPN TRUE Mobile application. Now not only for tiresome iPads/iPhones, but
> specifically for your favorite Android devices ;) New functional mobile
> application VPN TRUE gives users secure access to worldwide public VPN
> network of the high speed VPN-servers, via Internet. Unlimited
> VPN-connection is now wherever you are! In a traveling, outdoors, in the
> countryside, just anywhere - enjoy a quality connection!
>
> VPN TRUE gives you two modes of unlimited FREE access:
> * Press "JUST CONNECT" button and use the app just "out of box" without
> any registering with random selection of a server automatically (limited
> VPN-servers list).
> * REGISTER you VPN TRUE and get the opportunity to choose a server
> manually in desired geographical location to your needs (much extended
> VPN-serves list)
>
> VPN TRUE ensure your safety on the Internet:
> * Protect yourself from DPI and other governments or enterprise data
> tracking
> * Prevent monitoring and espionage on the part of common Internet providers
> * Save in secret your location and yours personal information
> * Insure yourself from hackers attacks, when you are on a public Wi-Fi
> * Defend your personal data (mobile banking, e-mail, social networks and
> so on.)
>
> Features VPN TRUE:
> * Use social networks without the risk of blocking
> * Access to any sites with  regional restricted content at high speed
> * Save on international calls using servers in different countries
> * Obtain  FACEBOOK, YOUTUBE, NETFLIX, HULU, sports, news, and many others
> nice things from anywhere in the world
> https://play.google.com/store/apps/details?id=com.truevpn.vpn
>
> --
> 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/51d40227-f111-4d81-81a2-68497eb49f4c%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/CAOq06s-_yCARuU5G5BsbxZeQdmp8eMukuL-ernHZZrX3YB%2B_9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] can't install app on android 6.0

2016-01-20 Thread Justin Anderson
If you have multiple users on your device and install via adb (typically
via the IDE while developing the app) then you have to use adb to uninstall
it, as TreKing suggested.  Installing via adb seems to install for all
users.  If you then uninstall the app via the normal mechanism on your
phone it only removes the current user's version of it, which causes weird
behavior.

On Wed, Jan 20, 2016 at 4:03 PM TreKing  wrote:

>
> On Wed, Jan 20, 2016 at 8:16 AM, Pedro CLR  wrote:
>
>> Returns message 'App not installed'. I used that same phone for debug;
>> could it be that somehow the app is still installed (even for other users),
>> and simply long-tapping and dragging the icon to 'uninstall' won't do the
>> trick?
>
>
> Yes, I see weirdness like this frequently. Try using "adb uninstall
> "
>
>
> -
> 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/CANCScghRF2aWozEToV4S_pcd0q353qoO2vxMVtpxQkj9ZPMHmw%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/CAOq06s_Hdj3s6mpX8TQC6XvgcC7bEyxucqx3Aj7PC_5FuD_3yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Immediate Need||SOA Architect(12+ Months,CA)

2016-01-20 Thread Justin Anderson
Seriously, please stop using this forum as a head-hunting playground...

On Wed, Jan 20, 2016 at 2:40 PM pragyan dixit 
wrote:

>
>
> Hi,
> Hope you are doing great.
> I have a urgent direct client requirement , Please send me your updated
> profile.
>
> Below is the Complete Requirement
>
>
>
> *Role   :SOA Architect*
>
> *Location: Palo Alto, CA*
>
> *Duration: 12+Months*
>
>
>
>
>
>
>
> *Job Description: *
>
> Experience with design and implementation of SOA Architectures
>
> 2 to 5 years strong hands-on experience with creating Service Oriented
> Architecture solutions using java-based technologies and J2EE
>
> Expert on web services including services identification methodology,
> versioning, security
>
> Experience with different protocols such as SOAP, REST and WADL
>
> Exposure to ESB’s, IBM tools and products (Rules Engine, MDM) or similar
> produc
>
> Experience with design and implementation of mobile API architectures
> (preferred not mandatory
>
> Excellent understanding in XML, XSD, WSDL, Schema Validations, and XSLT
>
> Excellent understanding of Enterprise RDBMS, ER Diagrams, and developing
> SQL programs
>
> Strong understanding of best practices around WSDL Versioning, namespaces
> and XML dictionaries
>
> Strong understanding of Service Oriented Architecture concepts
>
>
>
>
>
> *Thanks and Regards…*
>
> Pragyan Dixit
>
> Technical Recruiter
>
> [image: cid:image001.jpg@01D14DEF.5BAD6DB0]408-722-9446 ext. 5099 [image:
> cid:image002.jpg@01D14DEF.5BAD6DB0]pragya...@e-solutionsinc.com
>
> ADDRESS:- e-Solutions Inc| 2 N. Market St., Suite # 400, San Jose, CA
> -95113,
>
> WEBSITE:- www.e-solutionsinc.com
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> 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/CADemGLhSzhjTrX9mK8Bm0f_PUC1O%2Bh1jWUZbhGghr5Ce%3DQnLFw%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/CAOq06s_iY6Uuia0U6yYF9k6MJC5Qd%3DDS2XdcmeTw%3DL_Stj8ZXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Socket.io on Singleton

2016-01-20 Thread Justin Anderson
I haven't done anything with socket.io, but a couple things I've come
across from just a few very quick searches... perhaps these will help?
Also, my advice in the future would be to look for a forum dedicated to
whatever library/framework you are having problems with...

http://stackoverflow.com/questions/17824757/socket-io-firing-callback-function-multiple-times
http://stackoverflow.com/questions/22495570/socket-io-nodejs-chat-why-do-messages-emit-multiple-times
http://stackoverflow.com/questions/17057455/socket-io-firing-multiple-events

Also, I'm assuming you haven't seen this tutorial?
http://socket.io/blog/native-socket-io-and-android/

If you had, you would have noticed this, essentially allowing you to not
have to worry about creating a singleton or moving socket.io calls to an
application class or service:

"IO.socket() returns a socket for http://chat.socket.io with the default
options. Notice that the method caches the result, so you can always get a
same Socket instance for an url from any Activity or Fragment."

Hope that helps... I doubt you will find very many developers on here with
in-depth knowledge of socket.io (I had never heard of it before).

On Wed, Jan 20, 2016 at 3:50 PM Gabriel Avila  wrote:

> By that I meant that the socket.io methods were moved from the
> application extended class into an android service class but I still kept
> getting multiple "hits" to the socket.io "on" methods regardless on the
> service thread being executed only once.
>
>
> On Wednesday, January 20, 2016 at 5:16:53 PM UTC-4, Gabriel Avila wrote:
>>
>> I'm trying to implement a globalized Socket.io connection method for an
>> entire application (multiple activities).
>>
>> The requirements:
>> 1. The socket.io must be enabled as long as the user is logged into the
>> application
>> 2. The socket has to keep connected even when switching activities.
>> 3. The socket.io connection must be kept alive even when application is
>> in background
>>
>> The Current Layout:
>> 1. Socket.io methods are implemented in a class that extends the
>> application class
>>
>> The Main Issues:
>> 1. When emitting from the server to the Android the socket.io "on"
>> methods are executed multiple times. The server code has been validated and
>> determined it is only sending one emit to the client.
>> 2. If I emit the methods from the server multiple times the "on" method
>> execution increases exponentially.
>>
>> The Previous Solution:
>> 1. Moved all the Socket.io methods into an Android Service but it did not
>> work.
>>
>> What can I do to solve this? Am I missing something else? From what I
>> read on other posts The singleton class will be elegible for termination by
>> the OS once the application moves into the background, how can I avoid this?
>>
>> Here is my Application Extended Class
>>
>> public class AppSettings extends Application {
>>
>> private static String TAG = "AppSettings";
>> private static String username;
>> private boolean isdriver;
>> private int time, Buffer, intents;
>> public CountDownTimer Clock;
>> public Context mainContext;
>> GOGODBHelper mGOGODBHelper;
>> SQLiteDatabase db;
>> private URI uri;
>> public static  Socket mSocket;
>> public static long transaction_id = 0;
>>
>> {
>> try {
>> uri = new URI("http://gogosocket.cloudapp.net:3000";);
>> AppSettings.this.mSocket = IO.socket(uri);
>>
>> } catch (URISyntaxException e) {
>> Log.d(TAG, e.getMessage());
>> }
>> }
>> @Override
>> public void onCreate() {
>> super.onCreate();
>> final Fabric fabric = new Fabric.Builder(this)
>> .kits(new Crashlytics())
>> .debuggable(true)
>> .build();
>> Fabric.with(this, new Crashlytics());
>>
>> mGOGODBHelper = new GOGODBHelper(this);
>>
>> registerReceiver(ConnectionReceiver, new
>> IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
>>
>> }
>>
>> public void setMainContext(Context context){
>> this.mainContext = context;
>> }
>>
>> public  Context getMainContext(){
>> return this.mainContext;
>> }
>>
>> //set and get username
>> public  void setUsername(String username) {
>> this.username = username;
>> }
>>
>> public  String getUsername() {
>> return this.username;
>> }
>>
>> //set and get isDriver
>> public void setIsdriver(boolean isdriver) {
>> this.isdriver = isdriver;
>> }
>>
>> public boolean getIsdriver() {
>> return this.isdriver;
>> }
>>
>> private long saveTransaction(String to, String from,String
>> event,String data,String timeStamp) {
>>
>> long newRowID = 0;
>>
>> db = mGOGODBHelper.getWritableDatabase();
>>
>> ContentValues values = new ContentValues();
>> values.put(Transactions.Transaction.COLUMN_NAME_TO,to);
>> values.put(Trans

Re: [android-developers] Socket.io on Singleton

2016-01-20 Thread Justin Anderson
What do you mean that moving calls to a device didn't work? That is most
likely what you want. I would implement it as a started and bound service.

On Wed, Jan 20, 2016, 3:21 PM Gabriel Avila  wrote:

> I'm trying to implement a globalized Socket.io connection method for an
> entire application (multiple activities).
>
> The requirements:
> 1. The socket.io must be enabled as long as the user is logged into the
> application
> 2. The socket has to keep connected even when switching activities.
> 3. The socket.io connection must be kept alive even when application is
> in background
>
> The Current Layout:
> 1. Socket.io methods are implemented in a class that extends the
> application class
>
> The Main Issues:
> 1. When emitting from the server to the Android the socket.io "on"
> methods are executed multiple times. The server code has been validated and
> determined it is only sending one emit to the client.
> 2. If I emit the methods from the server multiple times the "on" method
> execution increases exponentially.
>
> The Previous Solution:
> 1. Moved all the Socket.io methods into an Android Service but it did not
> work.
>
> What can I do to solve this? Am I missing something else? From what I read
> on other posts The singleton class will be elegible for termination by the
> OS once the application moves into the background, how can I avoid this?
>
> Here is my Application Extended Class
>
> public class AppSettings extends Application {
>
> private static String TAG = "AppSettings";
> private static String username;
> private boolean isdriver;
> private int time, Buffer, intents;
> public CountDownTimer Clock;
> public Context mainContext;
> GOGODBHelper mGOGODBHelper;
> SQLiteDatabase db;
> private URI uri;
> public static  Socket mSocket;
> public static long transaction_id = 0;
>
> {
> try {
> uri = new URI("http://gogosocket.cloudapp.net:3000";);
> AppSettings.this.mSocket = IO.socket(uri);
>
> } catch (URISyntaxException e) {
> Log.d(TAG, e.getMessage());
> }
> }
> @Override
> public void onCreate() {
> super.onCreate();
> final Fabric fabric = new Fabric.Builder(this)
> .kits(new Crashlytics())
> .debuggable(true)
> .build();
> Fabric.with(this, new Crashlytics());
>
> mGOGODBHelper = new GOGODBHelper(this);
>
> registerReceiver(ConnectionReceiver, new
> IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
>
> }
>
> public void setMainContext(Context context){
> this.mainContext = context;
> }
>
> public  Context getMainContext(){
> return this.mainContext;
> }
>
> //set and get username
> public  void setUsername(String username) {
> this.username = username;
> }
>
> public  String getUsername() {
> return this.username;
> }
>
> //set and get isDriver
> public void setIsdriver(boolean isdriver) {
> this.isdriver = isdriver;
> }
>
> public boolean getIsdriver() {
> return this.isdriver;
> }
>
> private long saveTransaction(String to, String from,String
> event,String data,String timeStamp) {
>
> long newRowID = 0;
>
> db = mGOGODBHelper.getWritableDatabase();
>
> ContentValues values = new ContentValues();
> values.put(Transactions.Transaction.COLUMN_NAME_TO,to);
> values.put(Transactions.Transaction.COLUMN_NAME_FROM, from);
> values.put(Transactions.Transaction.COLUMN_NAME_METHOD,event);
> values.put(Transactions.Transaction.COLUMN_NAME_DATA,data);
> values.put(Transactions.Transaction.COLUMN_NAME_TIMESTAMP,
> timeStamp);
>
> newRowID =
> db.insert(Transactions.Transaction.TABLE_NAME,null,values);
>
> return newRowID;
> }
>
> private boolean deleteTransaction(long transaction_id){
> db = mGOGODBHelper.getReadableDatabase();
>
> return db.delete(Transactions.Transaction.TABLE_NAME,
> Transactions.Transaction._ID + " = " +transaction_id , null) >0;
> }
>
> public void onSocket() {
> AppSettings.this.mSocket.on(Socket.EVENT_CONNECT_ERROR,
> onConnectError)
> .on(Socket.EVENT_CONNECT_TIMEOUT, onConnectError)
> .on(Socket.EVENT_RECONNECT_ERROR, onConnectError)
> .on(Socket.EVENT_RECONNECT_FAILED, onConnectError)
> .on(Socket.EVENT_DISCONNECT, onConnectError)
> .on(Socket.EVENT_ERROR, onConnectError)
> .on(Socket.EVENT_RECONNECT_ATTEMPT, onReconnect)
> .on(Socket.EVENT_RECONNECT, onReconnect)
> .on(Socket.EVENT_CONNECT, onConnect)
> .on("ping", ping)
> .on("method", method);
> //AppSettings.this.mSocket.on(Socket.EVENT_CONNECT_TIMEOUT,
> onConnectError);
> //AppSettings.this.mSocket.on(So

Re: [android-developers] can't install app on android 6.0

2016-01-20 Thread Justin Anderson
It won't install, or it won't run properly once installed?

On Wed, Jan 20, 2016, 5:30 AM Pedro CLR  wrote:

> I was developing a very simple app, 3 activities:
> > main that will check for existing URL in SharedPreferences and open
> WebActivity if exists, and UrlActivity if doesn't exist.
> > UrlActivity to insert a code that will complete the main URL (registered
> in strings.xml - using getString(R.string.resource_name)), and start
> WebActivity.
> > WebActivity will simply load the page corresponding to the URL set
> before.
>
> The only catch is that the app is validating existence of active network
> before doing any of this.
>
> Now it won't install on phone with android 6.0...
>
> What could have gone wrong now? :o
>
> Thanks in advance for any 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/ad3ed248-3f17-450b-bd95-cb519cae4520%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/CAOq06s8HvnEueWHDLzdyz4GX7Kb8NbCViK6afSZjP4K%3DLgkvgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How Can I Insert Radiobutton Value To SQLite (radio button 1 & radio button 2 has a value of 1)

2016-01-19 Thread Justin Anderson
I don't understand0 what you are asking... storing a value in a database
should be pretty straightforward.  What have you tried so far for storing a
value in a database?

On Tue, Jan 12, 2016, 9:11 AM Fernando Nicolei Esperida <
fernandonico...@gmail.com> wrote:

> I Am Creating A Voting App For Our School And I Need A To Create A
> Database To Store The Votes. This Is The video
> 
>  This
> Is The Result Activity 
>
> This Is The Result.java
>
>  package com.unicorninteractive.ssgelectionmobilerssths;
>
> import android.database.sqlite.SQLiteDatabase;
> import android.os.Bundle;
> import android.support.v7.app.AppCompatActivity;
> import android.widget.Button;
> import android.widget.TextView;
>
> public class results extends AppCompatActivity {
>
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_results);
>
>
>}}
>
> And This Is The President.java (Voting Activity)
>
> package com.unicorninteractive.ssgelectionmobilerssths;
>
> import android.content.Intent;
> import android.support.v7.app.AppCompatActivity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
> import android.widget.RadioButton;
> import android.widget.Toast;
> public class President extends AppCompatActivity {
> Button btn_votep;
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_president);
> btn_votep = (Button) findViewById(R.id.btn_votep);
> btn_votep.setOnClickListener(btnlistener);
> Toast toast=Toast.makeText(this, "Your Vote Is Now Counted", 
> Toast.LENGTH_LONG);
> toast.show();
> }
> public void onRadioButtonClicked(View view) {
> // Is the button now checked?
> boolean checked = ((RadioButton) view).isChecked();
>
> // Check which radio button was clicked
> switch(view.getId()) {
> case R.id.rb_p1:
> if (checked)
> // President 1
> break;
> case R.id.rb_p2:
> if (checked)
> // President 2
> break;
> }}
>
>
> private View.OnClickListener btnlistener = new  View.OnClickListener(){
>
> @Override
> public void onClick(View v) {
> Intent intent = new Intent(President.this , Vicepresident.class);
> startActivity(intent);
>}
>  };
>}
>
>
>
> --
> 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/649dbb60-5c9a-4db0-8821-62f62393890c%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/CAOq06s-Ei8RDbfXYO9TE23pK4zzC6nbb3OrG6t5xoRa7Wg_EDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] TabLayout - tab doesn't refresh view

2016-01-19 Thread Justin Anderson
Just for kicks, what happens if you don't create a new fragment every time
you change tabs?  Only create it once, something like this tutorial:
http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/

Note, I'm not endorsing that tutorial or anything... I don't see anything
immediately wrong with your code (related to the tabs anyway) but I figured
this tutorial should work, and that is the main difference I see between
your code and this tutorial.

On Tue, Jan 12, 2016 at 9:37 AM Hugo Teijiz  wrote:

> MainActivity:
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
>
>
> getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
> App.setTrxNumber(0);
> App.setContext(MainActivity.this);
>
> if (!isOnline()) {
> Toast.makeText(this, "No se ha Podido Conectar con el
> Servidor", Toast.LENGTH_LONG).show();
> finish();
> }
>
> StrictMode.ThreadPolicy policy = new
> StrictMode.ThreadPolicy.Builder().permitAll().build();
> StrictMode.setThreadPolicy(policy);
>
> if (ContextCompat.checkSelfPermission(this,
> Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED)
> {
> TelephonyManager mngr = (TelephonyManager)
> getSystemService(Context.TELEPHONY_SERVICE);
> imei = mngr.getDeviceId();
> } else {
> ActivityCompat.requestPermissions(this,
> new String[]{Manifest.permission.READ_CONTACTS},
> REQUEST_READ_PHONE_STATE_PERMISSION);
> }
>
> try {
> ContentResolver cr = getContentResolver();
> MostrarSettings(cr, true);
> } catch (Exception e) {
> Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();
> }
>
> Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
> setSupportActionBar(toolbar);
>
> final TabLayout tabLayout = (TabLayout)
> findViewById(R.id.tab_layout);
> tabLayout.addTab(tabLayout.newTab().setText("PENDIENTES"));
> tabLayout.addTab(tabLayout.newTab().setText("CONFIRM"));
> tabLayout.addTab(tabLayout.newTab().setText("RECHAZADOS"));
> tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);
>
> final ViewPager viewPager = (ViewPager) findViewById(R.id.pager);
> final PagerAdapter adapter = new PagerAdapter
> (getSupportFragmentManager(), tabLayout.getTabCount());
> viewPager.setAdapter(adapter);
> viewPager.addOnPageChangeListener(new
> TabLayout.TabLayoutOnPageChangeListener(tabLayout));
> tabLayout.setOnTabSelectedListener(new
> TabLayout.OnTabSelectedListener() {
> @Override
> public void onTabSelected(TabLayout.Tab tab) {
> viewPager.setCurrentItem(tab.getPosition());
> }
>
> @Override
> public void onTabUnselected(TabLayout.Tab tab) {
>
> }
>
> @Override
> public void onTabReselected(TabLayout.Tab tab) {
> viewPager.setCurrentItem(tab.getPosition());
> }
> });
> }
>
> PagerAdapter.java:
> import android.support.v4.app.Fragment;
> import android.support.v4.app.FragmentManager;
> import android.support.v4.app.FragmentStatePagerAdapter;
>
> /**
>  * Created by Hugo on 08/01/2016.
>  */
> public class PagerAdapter extends FragmentStatePagerAdapter {
> int mNumOfTabs;
>
> public PagerAdapter(FragmentManager fm, int NumOfTabs) {
> super(fm);
> this.mNumOfTabs = NumOfTabs;
> }
>
> @Override
> public Fragment getItem(int position) {
>
> switch (position) {
> case 0:
> PendFragment tab1 = new PendFragment();
> return tab1;
> case 1:
> ConfirmFragment tab2 = new ConfirmFragment();
> return tab2;
> case 2:
> RejectFragment tab3 = new RejectFragment();
> return tab3;
> default:
> return null;
> }
> }
>
> @Override
> public int getCount() {
> return mNumOfTabs;
> }
> }
>
> El martes, 12 de enero de 2016, 12:26:10 (UTC-3), MagouyaWare escribió:
>
>> Code?
>>
>> On Tue, Jan 12, 2016, 9:16 AM Hugo Teijiz  wrote:
>>
> Hello to everyone.
>>>
>>> I develop an Android application with TabLayout. The App has 3 tabs.
>>> When I click over Tab 1 (Index 0) and Tab 3 (Index 2) the view refresh
>>> great, but when I click over Tab 2 (Index 1) nothing happens.
>>>
>>> OnSelectedTab Listener executed correctly, and execute then
>>> setCurrentItem of viewPager, but onCreateView of Fragment doesn't execute.
>>>
>>> Any ideas?
>>>
>>> Thanks in advance
>>>
>>> Regards!!
>>>
>>> Hugo
>>>
>>> --
>>> You received this message because you are su

Re: [android-developers] Immediate Need: .Net UI Developer - MD

2016-01-19 Thread Justin Anderson
Please stop posting these job opportunities.  This forum is for android
developers who have development questions... it is not your personal
recruitment pool.

On Mon, Jan 18, 2016 at 9:04 AM Megha Agarwal 
wrote:

>
>
>
>
> *Hello,Please let me know if you have any consultant available for the
> below role,*Position :* .Net UI Developer*
> Location: Chevy Chase, MD
> Duration: Long Term
>
>
> *H1b & EAD GC Copy is compulsory to submit the profile*
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Required skills:Expertise in ASP.NET  MVC 4
> FrameworkWorking experience on HTML5 and CSS3Good understanding of
> .Net 4.5Experience working with REST and SOAP Web servicesGood JavaScript
> knowledge, especially JQueryUnderstanding of Design Patterns such as
> Dependency injection, SingletonExperience writing Unit Test cases for code
> coverageExperience working with KnockoutExperience working with
> AngularJavascript, Knockout.js, Jasmine js unit testing, and Html/CSS –
> particularly using SASS for CSS compilation.Experience making Ajax calls
> from client to reverse proxy that are directed to app tier.  Application
> handles responses to:  populate controls with applicable data-sources,
> navigate through the application rendering partial views, and consuming
> third-party services used in tracking client side experience.*
>
>
> *___*
>
> *Please send your resumes to megha.agar...@panzersolutions.com
>   for immediate consideration*
>
> *Thanks,*
>
> *Megha Agrawal*
> *megha.agar...@panzersolutions.com
> 203-652-1444*278*
>
> --
> 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/CAOwfwP1wX63bNXqpjhkRsArfP6Zyrb0cVmko7V7Asd8qu73rRw%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/CAOq06s8GDyJh2j40bxf1cAiRAT27hLyyxp1Jz-cRh5OM0FgWdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Ability for users to resize views?

2016-01-19 Thread Justin Anderson
You haven't provided anywhere near enough information to get the info you
want...

http://www.catb.org/esr/faqs/smart-questions.html
http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html


On Mon, Jan 18, 2016 at 1:05 PM  wrote:

> My Android app has two views, displayed simultaneously, when the app is in
> landscape orientation.
>
> I would like to enable the user to change the relative sizes of the views.
> In other words, the user could change the left view to be 20% of the width,
> and the right view to be 80%.
>
> What is the recommended approach?
>
> Sincerely,
>
> Eric Bergman-Terrell
> www.ericbt.com
>
> --
> 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/d479b80c-b967-428b-91ce-47aafe9f562d%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/CAOq06s_%2Bq5WySLpwWhzgxXx94ES-FMPwRJ9qGcvQqPkxvSmw8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] This app is incompatible with all of your devices

2016-01-19 Thread Justin Anderson
There are a number of potential reasons. Here are a few links that may help:
http://lifehacker.com/google-play-shows-you-why-an-app-is-incompatible-with-y-496328577

http://stackoverflow.com/questions/21730560/the-app-is-incompatible-with-all-your-devices

http://stackoverflow.com/questions/10475954/why-does-the-google-play-store-say-my-android-app-is-incompatible-with-my-own-de

http://www.ghacks.net/2013/05/06/find-out-why-apps-are-incompatible-with-your-android-device/

By the way, for what it's worth... I found these links with a simple google
search:
http://bfy.tw/3okg

Happy hunting...



On Tue, Jan 19, 2016 at 12:37 AM pankaj kumar 
wrote:

> Hi,
> can anyone suggest how to resolve the issue "This app is incompatible with
> all of your devices."
> Please helpe
> https://play.google.com/store/apps/details?id=com.myapps.vtu
>
> 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/f4fc63f7-2d50-45c1-8042-e83a559260c5%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/CAOq06s_iCEpy1dhomSAq-u49rdwQu2Q%3D2G709avuVBgDYLgb8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] read file from phone by using android studio

2016-01-19 Thread Justin Anderson
What files are you trying to access?

On Tue, Jan 19, 2016 at 1:13 AM omo  wrote:

> Hi, i m newbie here. I want to choose files from phone and encrypt it.
> The problem is i cannot get the path or select the files.
> Can teach me how to solve this problem by using what method?
> Or any tutorial can i learn? thank you
>
> --
> 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/7c39ce30-c72d-490e-a87a-5687c1623e8c%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/CAOq06s-gsPLMgyTSvcPu33gB8kJ%3Dvpv4onCjiG4AbHkX4o04nQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] SDK installation does not detect JDK

2016-01-19 Thread Justin Anderson
If you look at the development requirements, you will see that you need JDK
7:
http://developer.android.com/sdk/index.html#Requirements

On Tue, Jan 19, 2016 at 6:38 PM Ranieri Santos  wrote:

> Hello all,
>
> I´m using Windows7 64 bit and installed JDK1.8.0_66 (64 bit) but the SDK
> installation is not detecting the JDK. I´ve installed the SDK tools and the
> SDK was detected correctly but it´s not working with the IDE or the bundle.
> I´ve already insert the JAVA_HOME variable as C:\Program
> Files\Java\jdk1.8.0_66 and insert %JAVA_HOME% in PATH. Both java -version
> and javac -version are giving me the correct java versions. What am I
> missing?
>
> The IDE version is 24.4.1.
>
> Thanks for the help,
>
> Ranieri
>
> --
> 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/cb8fc826-0ec0-4552-a66c-ef0de5b55737%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/CAOq06s_QLGPHDbqG7BHpnPCP8QbTUUpCcjc42Y_Ra%3DcnDa0p%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] After signing app, what APK file can my phone use?

2016-01-19 Thread Justin Anderson
Providing you went through the signing process, then app-release.apk is the
one you want.


On Tue, Jan 19, 2016 at 9:37 PM NuffsaidM8  wrote:

> I just learned about signing a finished app. I want to know how I could
> get this app onto my phone. I understand that it is an APK file that should
> be put on the phone, but I'm not sure which one. The output lead me to a
> folder title "app" in which there is an apk file directly in sight
> called app-release.apk. Is this what I want? I can also dig into the build
> folder and find three more .apk files named "app-debug"
> "app-debug-unaligned" and "app-release-unaligned". I doubt these are what I
> want, but I really have no idea.
>
> Can somebody help me out here? 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/22f1a951-95f1-4cff-a683-ba76341322d3%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/CAOq06s-t%2B4gXABwH6uaajT10Hx%2BEqwsPpQWX4PB%2BHH5J43xx0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Start up application before sending intent

2016-01-19 Thread Justin Anderson
Glad you were able to get it worked out.

On Tue, Jan 19, 2016, 8:32 PM NuffsaidM8  wrote:

> As soon as I last posted I figured out what you meant and fixed the issue.
> 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/de001d17-91d5-411d-b5bd-5f9b50027285%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/CAOq06s__KmLZeLU7kNtYSinnxQA5bqU1Zc8Dzf9HmwjVFSdgkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Start up application before sending intent

2016-01-19 Thread Justin Anderson
No, not quite...

The boot up of the phone is a special case scenario.  I'm saying that in
that scenario you can't rely on the broadcast system, so you need to come
up with another code path to manually get your activity's receiver code
executed.

I would take the code that is executed in your receiver and move it to a
new method in your activity class. Make the receiver call that method. Then
when your intent with special data comes in (it can be as simple as a
boolean value), you can call that same method and get the same result by
bypassing the broadcast mechanism.

I can explain in more detail later if that doesn't make sense (I'm on my
phone and helping my son with his homework right now), but hopefully that
gets you on the right path.

On Tue, Jan 19, 2016, 8:13 PM NuffsaidM8  wrote:

> I apologize for not taking the time to work out my issues all myself. I'm
> a little out of my league here and am on a tight schedule. I am still
> slightly confused about a few things, such as:
>
> Why do I need to pass data through to the activity? All I want to do right
> now is start it up so that when I broadcast an intent with a filter
> recognized by the other receiver, it executes the code in the receiver in
> the activity class. I think you are insinuating that I could check for the
> data and once I can read it I can send the intent. Is this correct?
>
> --
> 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/6eafbab4-64bd-4358-91b4-f9b132741f9e%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/CAOq06s_XQ3Jiym0AoQGw_mDoAGKcPLbg7A81p56XqMMFBn%2BL6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Start up application before sending intent

2016-01-19 Thread Justin Anderson
My apologies... looking at your code again, I was a bit mistaken... you are
using an explicit intent to start your activity.  My guess is that the
broadcast is getting sent before your activity has registered itself.

If that is indeed the case, I would suggest passing extra data through the
intent used to start the activity.  When your activity starts up, you can
look for this data, and if present, you know you are starting it from your
broadcast receiver and you need to reset the alarm (I assume you are doing
something like that based on the code).

I still think it would be good to read up on this though:
http://developer.android.com/guide/components/intents-filters.html

Sorry for the confusion... that's what I get for scanning the code too
quickly. I missed your startActivity() call in the middle of the code
snippet.

Hope that helps,
Justin

On Tue, Jan 19, 2016 at 4:21 PM Justin Anderson 
wrote:

> If you send a broadcast, and your activity isn't currently running, then
> your Broadcast receiver isn't registered with the OS. How could it be? Your
> activity hasn't run the code to register itself.  And, furthermore, if
> you've done it correctly, when your activity goes away, it should
> unregister itself or you will run into problems.
>
> I think you are confusing receivers with intent-filters. I would read
> through this before continuing:
> http://developer.android.com/guide/components/intents-filters.html
>
> I think what you are TRYING to do is the equivalent of using an intent
> filter to implicitly start your activity.  But that is likely overkill.
> When you are trying to launch an activity that is part of your own
> application, 99% of the time you will want to use an explicit intent to
> start the activity.
>
> In both cases, you will want to use the context.startActivity() method...
> The difference between implicit and explicit intents is in how you
> construct the Intent object.
>
> On Tue, Jan 19, 2016 at 4:02 PM NuffsaidM8  wrote:
>
>> I did the receiver with only code, that's correct. What do you mean that
>> I need to start the activity? I thought that was what I was doing.
>>
>> --
>> 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/dc32640d-926f-4033-9198-5b94e6f4298d%40googlegroups.com
>> <https://groups.google.com/d/msgid/android-developers/dc32640d-926f-4033-9198-5b94e6f4298d%40googlegroups.com?utm_medium=email&utm_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/CAOq06s_-sehxEY26U7U1XNkQmpHqR8upb%3D0jkMR3qsXAgFyk2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Start up application before sending intent

2016-01-19 Thread Justin Anderson
If you send a broadcast, and your activity isn't currently running, then
your Broadcast receiver isn't registered with the OS. How could it be? Your
activity hasn't run the code to register itself.  And, furthermore, if
you've done it correctly, when your activity goes away, it should
unregister itself or you will run into problems.

I think you are confusing receivers with intent-filters. I would read
through this before continuing:
http://developer.android.com/guide/components/intents-filters.html

I think what you are TRYING to do is the equivalent of using an intent
filter to implicitly start your activity.  But that is likely overkill.
When you are trying to launch an activity that is part of your own
application, 99% of the time you will want to use an explicit intent to
start the activity.

In both cases, you will want to use the context.startActivity() method...
The difference between implicit and explicit intents is in how you
construct the Intent object.

On Tue, Jan 19, 2016 at 4:02 PM NuffsaidM8  wrote:

> I did the receiver with only code, that's correct. What do you mean that I
> need to start the activity? I thought that was what I was doing.
>
> --
> 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/dc32640d-926f-4033-9198-5b94e6f4298d%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/CAOq06s9nQ0xioMHhowziL9D6RnL-XtFwf%3D554o41o3kvTz%2BB9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Start up application before sending intent

2016-01-19 Thread Justin Anderson
>From what you've described, I suspect you are doing your receiver only in
code, which will not allow you to do what you want... This kind of receiver
is only active while your activity is active. Since your activity is not
active, neither is your receiver.

Why not just start your activity explicitly?

On Tue, Jan 19, 2016 at 3:34 PM NuffsaidM8  wrote:

> I have a broadcast receiver that is detecting a boot up of the phone. This
> part works fine. What I want to do is send a notification to a broadcast
> receiver in the Main Activity of the app, which is registered in the
> onCreate method as having an intent filter of "RESET_ALARM". This is what
> doesn't seem to be working. I tried starting the application with this
> (found it on stackkoverflow):
>
> Intent i = new Intent(context, MainActivity.class);
> i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> context.startActivity(i);
> Intent intent1 = new Intent("RESET_ALARM");
> context.sendBroadcast(intent1);
>
> but this does not seem to be working. I know the code is running, but a
> log statement in the receiver in the MainActivity.class file is not logging
> to the logcat. What am I doing wrong?
>
> --
> 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/948117f7-0e11-41a0-9745-f16e19099d17%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/CAOq06s-6eU4js-JwqX0Otb3Og0%2Bg5JAWMkO%2BgGxXNpyYqmwCng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: App changes name???

2016-01-18 Thread Justin Anderson
Sounds like someone hacked your account...

On Mon, Jan 18, 2016, 6:37 PM Burke Knight  wrote:

> Since can't edit post, have to double post.
>
>
> Not only was the title changed, but the description was, too.
> I'm not very pleased with this, as it added false information to the
> description.
>
> --
> 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/94de6a09-3a30-4ef8-b75a-248373f25bba%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/CAOq06s_KRPhStVrswf1GD1J%3DLX07rSkoa_JRHj6n0wqHgCBsOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Update notification when time change

2016-01-18 Thread Justin Anderson
Well, what exactly were you trying?

On Mon, Jan 18, 2016, 1:56 PM Martijn van Kekem <
s93martijn.ke...@leerling.denieuwsteschool.nl> wrote:

> Hello,
>
> I'm developing one of my first apps right now, and i'm trying to update
> the notification when the date manually/automatic changed.
> I was trying with Intent and ACTION_TIME_CHANGED but it doesn't work for
> me. Does someone now how to do this?
>
> Thanks!
> Martijn
>
> --
> 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/bdcf31cd-d7f9-4645-9866-13bc0aff93a9%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/CAOq06s9%3DS37YH%2BEP%3DWHy7dy8-%3DVmGz8wJ-XoFWmvUm0eoS2Rnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] ndk-build does not find header files in example code

2016-01-16 Thread Justin Anderson
Maybe this will help?
http://stackoverflow.com/questions/8638273/android-ndk-samples-compilation-error-string-h-no-such-file-or-directory

On Tue, Jan 12, 2016 at 3:29 PM Seth Tucker  wrote:

> Hi,
>I'm trying to get the eclipse tool-chain working because I need to work
> on the NDK. So for it's going terribly. After a lot of effort I was able to
> get the SDK compiling and running, but the NDK has a problem that I am
> totally unable to resolve.
>
> Every time I try to build the hello-jni example app, Eclipse throws a
> "can't find string.h no such file or directory." error. That's a standard
> header file, so I have no idea where the compiler typically looks for it,
> and I have no idea where the configuration for NDK build is buried, or why
> it's broken. I am on Ubuntu 15.10, using eclipse 4.5.1.  Any ideas?
>
> 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/9004e835-91c5-4b4d-96d4-55a1a1c4cf2e%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/CAOq06s-_o%2BWkxw9zzKTmvsqGEvobRfWfPmNNCVo_8Cpkq7jocA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] help needed for my new App

2016-01-16 Thread Justin Anderson
This link will tell you all you need to know about publishing an app:
http://developer.android.com/distribute/googleplay/start.html


On Tue, Jan 12, 2016 at 5:36 PM For Great Vocals 
wrote:

> Hi peeps.  I've paid someone to build an app for me but they have refused
> to publish it. They have sent me all of the files. I font have any .apk
> files from them.  Is there another file that I should be using to upload
> it. So annoying and confusing. Thanks T H
>
> --
> 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/ffa00648-9643-4c67-8af2-e6cd5b2f9922%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/CAOq06s-Xc_vOH5w%3DNOb7kmgenKgT2nS8BUpi4Je1VkVAweAfqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] To Create App for to Fetch Location Service App

2016-01-16 Thread Justin Anderson
"Is there anyway to hide this App service which is running in my phone bot
not be visible at anywhere..."
No

"Please advise?"
Unless I'm mistaken, once installed, an app will not do anything in the
background until the user has first manually launched the app.

I am very curious on the use case for an app like this... It would be a
huge security hole if it were possible.

On Wed, Jan 13, 2016 at 3:54 AM Abhishek Mehta 
wrote:

> Hi Guys,
>
> I need some clarity in here. I want to create an App which will run the
> bacground.
>
> Basically its tracker App so it has no app icon and no any other screen.
>
> following are my project scope.
>
>1. The App should run as service, should not consume lot of power or
>CPU
>2. send the latlong to server, calling webservice if network is
>available else donot send the latlong.
>
>
> Since it is an tracker App so my concern is that it should not appear
> anywhere in background as in under Application manager , running Apps or
> recent views
>
> Is there anyway to hide this App service which is running in my phone bot
> not be visible at anywhere...
>
> Please advise?
>
> --
> 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/37991022-ecb1-4c46-9fcd-8d02f193176f%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/CAOq06s-6E_iUN__TwHRkziDRyXk%3DbtK6JS0_oXigK7sVPrcM_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Creating FrameLayout Programmatically

2016-01-16 Thread Justin Anderson
Without seeing your code, it is virtually impossible to really help.
However, that being said, I took the code from the site, ran it, and it
looks good to me.  One thing I did find interesting though, is that his
code doesn't specify which type of LayoutParams he is creating, which means
he has an import statement that he isn't showing.  Here is my modified
version of the code, which places the textviews in the correct place on the
screen:

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

//Initializing imageView
ImageView imageView = new ImageView(this);
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);

//Ignore the reference to btn_radio below... just threw it in to get
something to compile

imageView.setImageResource(android.R.drawable.btn_radio);
imageView.setLayoutParams(new
FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));

TextView textView1 = new TextView(this);
textView1.setText("Fanny Hands Lane, London");
textView1.setTextSize(22);
textView1.setGravity(Gravity.CENTER_HORIZONTAL);
textView1.setTextColor(Color.parseColor("#fcfcfc"));
textView1.setBackgroundColor((Color.parseColor("#0c")));
textView1.setPadding(10,10,10,10);
FrameLayout.LayoutParams lp1 = new
FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
Gravity.CENTER_HORIZONTAL);
lp1.setMargins(0,20,0,0);
textView1.setLayoutParams(lp1);

TextView textView2 = new TextView(this);
textView2.setTextSize(18);
textView2.setGravity(Gravity.RIGHT|Gravity.BOTTOM);
textView2.setText("26/Jan/2014");
textView2.setTextColor(Color.WHITE);
textView2.setPadding(10,10,10,10);
textView2.setBackgroundColor(Color.BLACK);
FrameLayout.LayoutParams lp2 = new
FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
Gravity.BOTTOM|Gravity.RIGHT);
textView2.setLayoutParams(lp2);

//Initializing frame layout
FrameLayout framelayout = new FrameLayout(this);
framelayout.setLayoutParams(new
FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));

//Adding views to FrameLayout
framelayout.addView(imageView);
framelayout.addView(textView1);
framelayout.addView(textView2);

setContentView(framelayout);
}

Hope that helps,

Justin


On Sat, Jan 16, 2016 at 7:11 AM mr010rm  wrote:

> I tested "Creating FrameLayout Programmatically" from
> http://javatechig.com/android/android-framelayout-example
>
> and I have bad result
> Text 1 and Text2 is position from left and top corner. Why?
>
> All other attempts have failed deployment.
> The effect is always the same
>
>
> --
> 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/64031f07-b5f1-4e77-928c-2d8204bf399c%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/CAOq06s89Z%2BZVsTrs82eq9Y5-7aWOiGabht1sU%2BCY5ezUvQCOrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Decision making according to what the input in numeric field in ODK form

2016-01-16 Thread Justin Anderson
Say what now?

On Fri, Jan 15, 2016 at 7:37 AM Seema Rani  wrote:

> Hello,,
>
>  I am stuck on a point where I have to decide form redereing from ODK
> according to the inputs, like If I hacve enterd 2 in numeric field want to
> open form twice.
>
> --
> 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/8e5012c3-8848-4174-89bf-d9ae9cf435fd%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/CAOq06s_8ZB3GCMw7cUErRsrs61ZLAEG%2BLVSv5x3xP0OzmCYr9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] payment

2016-01-16 Thread Justin Anderson
Google will not pay you to develop an app.  If you choose to develop an app
and sell it, then people who decide to buy your app will pay Google for it,
then Google will pay you the money earned minus 30%.

On Sat, Jan 16, 2016 at 3:20 AM Harshal Jaiswal <
harshaljaiswal1...@gmail.com> wrote:

> does google pay for the app development. if yes then please tell the
> process and help 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/1cd1190b-5bd2-4b72-928f-22c74e30edd2%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/CAOq06s9b5Z4d99aievhKaVoRKO1xyqCSWT_cnkf%2BHAAF%3DxA6TA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Newbie: Lesson 2 Module 4: button_send

2016-01-16 Thread Justin Anderson
First thing to check is that you actually have a button_send string
defined... You should have a strings.xml file in the res/values folder.
Inside there you should see something like this:

Send

If that string definition exists, then you need to check your package
name.  The R class... make sure you are importing/using R.string as opposed
to android.R.string...

Hope that helps,
Justin


On Sat, Jan 16, 2016 at 5:02 PM moodamultani 
wrote:

> Hello friends,
>
> I was attempting the above module 4 in Lesson 2 (Building your first App)
> in the training pages:
>
>
> http://developer.android.com/training/basics/firstapp/starting-activity.html
>
> This module is titled: Starting Another Activity.
>
> I am trying this Android Studio 1.5.1 (6.0) API level 23 on Windows 10
> platform (i5 processor). I came across two problems:
>
> a) when adding a button, the execution failed on the line:
>.
>  android:text="@string/button_send"
>  ..   />
>
> The message is: 'No resource found that matches the given name (at text
> with value '@string/button_send').'
>
> b) I am noticing that the package R is in red throughout this module in my
> java classes. Does this mean this is not installed.
>
> Please could you advise me how to work around these errors?
>
> 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/88cba043-5ec6-4a09-b0b5-c75ec9b1dfe5%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/CAOq06s-4DmWm0iRAZEdj_n0WiG566bdpf7S7J23G%3D%2Bk5mQmAJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Need someone to write some code

2016-01-16 Thread Justin Anderson
You are going to need a lot of backend server code to do that...

On Sat, Jan 16, 2016, 1:12 PM United 45  wrote:

> Hi, I'm trying to build a face to face video chat. I need as much help as
> I could get. I need one activity one user can find another random chatter
> with a next button.
>
>
> On Friday, January 15, 2016 at 10:41:47 PM UTC-8, Amit wrote:
>
>> I m interested, please do let me know about the assignment in details.
>> Thanks,
>> Amit
>>
> On 16 Jan 2016 03:33, "United 45"  wrote:
>>
> Hi, I'm currently developing an app, and I need someone to write some java
>>> code.
>>> Email me if you're interested.
>>> It's Android by the way.
>>>
>>> --
>>> 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-d...@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/2280ccf2-23c0-4c09-acbe-6f0f3f7c1959%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/7e5e5b74-7ae3-4233-832a-16f93bced755%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/CAOq06s9JL_d9b0mMhZct3hXb_WR1EaZe6OFQ%2BwjysntDrp1UYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Need someone to write some code

2016-01-15 Thread Justin Anderson
That's quite the assumption to make... We will help other developers (who
are writing their own apps) when they get stuck on something and have a
question, but your aren't likely going to find someone who is willing to
work for you for free.

The vast majority of the users on here have full-time day jobs. Some, like
myself, do contract work on the side... But not for free.

Everyone on this list participates and answers questions on their own time.

Thanks,
Justin

On Fri, Jan 15, 2016, 5:21 PM United 45  wrote:

> I was just assuming you guys were interested in solving problems for the
> fun of it.
>
>
> On Friday, January 15, 2016 at 2:36:06 PM UTC-8, Dawid Drozd wrote:
>
>> how much do you pay?
>>
> On Fri, Jan 15, 2016 at 11:02 PM, United 45  wrote:
>>
> Hi, I'm currently developing an app, and I need someone to write some java
>>> code.
>>> Email me if you're interested.
>>> It's Android by the way.
>>>
>> --
>>> 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-d...@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/2280ccf2-23c0-4c09-acbe-6f0f3f7c1959%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Pozdrawiam
>> Dawid Drozd.
>>
> --
> 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/2593fc4f-a5df-471b-83b0-7c4f8d81ba9c%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/CAOq06s-bLfMSg0bShkb%2B8JT4OE-5Qe_9sc8VSZMX%2B44YTcWaPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] TabLayout - tab doesn't refresh view

2016-01-12 Thread Justin Anderson
Code?

On Tue, Jan 12, 2016, 9:16 AM Hugo Teijiz  wrote:

> Hello to everyone.
>
> I develop an Android application with TabLayout. The App has 3 tabs. When
> I click over Tab 1 (Index 0) and Tab 3 (Index 2) the view refresh great,
> but when I click over Tab 2 (Index 1) nothing happens.
>
> OnSelectedTab Listener executed correctly, and execute then setCurrentItem
> of viewPager, but onCreateView of Fragment doesn't execute.
>
> Any ideas?
>
> Thanks in advance
>
> Regards!!
>
> Hugo
>
> --
> 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/4ac4ec61-7c1a-49f1-aa6f-974b19e4dd14%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/CAOq06s_nxx-Y%2Be3RAX2Y%2BVdTXF%2BV89GkV%3De9VtpMseQb5ot-hQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Updating Android Application from within the application

2016-01-07 Thread Justin Anderson
Is the device connected directly to the build machine?

On Thu, Jan 7, 2016, 5:26 PM Shiv Anand  wrote:

> Hi Folks,
>
> We are trying to automate our CI process by getting the new build of
> application and then downloading it on the target device. The new build is
> downloaded successfully however when we are trying to install the
> application it requires user's interaction and then it is getting upgraded.
> We want a seamless way wherein we can get the update directly and there is
> no user interaction required. Can it be done in some way in Android
> Application?
>
> Any help is highly appreciated.
>
> Thanks
> Shivanand
>
> --
> 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/887f1087-7169-4b10-b461-3cdba51c012c%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/CAOq06s-Y7x%2B7Fb7WnfGAZP-B-DHEpvYpK4xNGR24giB6s%3D4qbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Select multiple images - web

2015-12-04 Thread Justin Anderson
http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

On Fri, Dec 4, 2015 at 8:02 AM  wrote:

> We have a web application that uploads photos to a specific virtual
> directory on our asp.net website.  We use a FileUpload button and the
> process works great for selecting a single file to upload. We also have a
> "Multiple" property that lets us select multiple files on a PC but would
> like to be able to do the same when using an android device and android (or
> Chrome, etc.) browser.  Is this possible and can someone point me to more
> info on how to do this. 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 http://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/5f3571ba-4c56-4a30-a141-12d24b09205f%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/CAOq06s9SxDbSJEYXX2pwTrqZxUx6kbE-U4duOPVki7%2BKv3UyQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] For a help

2015-12-04 Thread Justin Anderson
http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

On Fri, Dec 4, 2015 at 8:06 AM m tt  wrote:

> I am trying to get pretty good map. Which is you can look live. I mean
> like a moving things. But i have a samsung galaxy tab. So i dont have
> computer. Please if there someone  who can help me would be greatest
>
> --
> 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/1597b3bf-17c4-4a6c-b74d-0207d6b54ac4%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/CAOq06s_vueJLAKaTScycm0RvG7i8joZ_7Sh%2BeARrgdu5RighQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Error code 103

2015-12-04 Thread Justin Anderson
http://lmgtfy.com/?q=android+error+code+103

On Fri, Dec 4, 2015 at 9:30 AM Israel Papini Veronezi <
israelpveron...@gmail.com> wrote:

> My app is giving the error 103 on some devices in the installation. Can 
> anyone help me?
>
>
> --
> 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/81603815-ebe9-4137-9c1c-c5a8b1fab24d%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/CAOq06s9ax6DTZVgY6b7VUH0s3Vao%3DCyUJiCgpD22tKsHuMde6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] App failing on Samsung Galaxy 5 and 6

2015-12-03 Thread Justin Anderson
Sounds like you're going to have to use some debugging skills and figure
out more specifically what is causing the problem.

Given that it is marshmallow problems my first suggestion would be to look
at permissions since this fundamentally changed.

On Thu, Dec 3, 2015, 7:45 AM luiX_  wrote:

> I've experienced weird failures related to permissions on devices running
> Android 6.x but, in my case, was installing the apk directly.
>
> El jue., 3 dic. 2015 13:27, Daniel Tromp 
> escribió:
>
>> Hi Guys,
>>
>> I have a hybrid app on the play store currently (The Stylista) which runs
>> perfectly across different platforms until its loaded on a Samsung Galaxy 5
>> or 6..
>>
>> The app opens to a white screen with my loading gif just spinning and get
>> no further - is there something I am missing? Code should be added?
>>
>> Any suggestions would be appreciated
>>
>> --
>> 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/74a34493-ec64-47d9-9d48-9705c45ea71b%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/CA%2BRk-YURo1phEasLfZxv28oYxMiYHyJ%2B5aWbHnqYw7wmYYP1wA%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 http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s8WCHf_ypqG7rXUanRYmk_AEU9Ap5z0ib-ShY8J6N1P1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Whats your story behind your brand? ---to start up

2015-12-03 Thread Justin Anderson
Ok seriously, this forum is not for posts like this. You have posted many
times, and not once have you actually asked an app development question.

On Thu, Dec 3, 2015, 2:29 PM Danny Xu  wrote:

> *Story---company culture*
>
>
> For me it is the most important thing for a brand
>
>
> If a brand doesnt have story, its like a person dont have a soul
>
>
> If you ask people who have been in sales for years they will tell you
> this: people believe in stories, they believe because they can relate on
> that story.
>
> We all know word of mouth is the best way to increase your brand
> awareness, what is better than a good story for them to share with friends?
>
>
> Check out my app and guess what is the story behind my app?
>
> http://www.meshbean.com/rd/google
>
> --
> 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/64e04210-4c1b-41d0-be81-cb877d50a410%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/CAOq06s9S1TftU6eH_91vKXcmkABA6-EpF-sch9_UMQ7kPPE9aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] ViewPager in Fragment

2015-11-11 Thread Justin Anderson
"can you help me?"

Not without code...

On Wed, Nov 11, 2015, 12:18 PM Jonathan Fajardo Roa 
wrote:

> Hello, I have a ViewPager a Fragment, the first time I call the fragment
> is well shows the ViewPager, but not the second shows the info ViewPager,
> can you help me?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To 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] how to get windows to recognize kindle fire 5'th generation.

2015-11-03 Thread Justin Anderson
I ran into the same problem. I was able to get it working by going to
device manager and using Google's driver.

On Wed, Nov 4, 2015, 12:09 AM Ray Tayek  wrote:

> hi, i got a couple of these, but windows does not recognize them.
>
> i have uninstalled the windows drivers and installed the
> kindle_fire_usb_driver.zip.
>
> i have added the extra stuff
>  to the
> sdk.
>
> but no joy.
>
> my pc recognizes a nexus 7, and a galaxy tab s, and a few more.
>
> what should i try next?
>
> 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.


Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-09-30 Thread Justin Anderson
Have you tried looking at the contents of the .apk and comparing it with
one of your older .apk files built from eclipse?

On Wed, Sep 30, 2015 at 11:22 AM Faust Nijhuis 
wrote:

> I imported all my apps from Eclipse to Android studio and all of them are
> much bigger (5 to 7 times)
>
> I use proguard and minify and Zip Align Enabled
> (I use only the default proguard rules)
>
> How is it possible that apps build with Android studio are so much bigger ?
>
> build.gradle:
>
> apply plugin: 'com.android.application'
>
> android {
> compileSdkVersion 23
> buildToolsVersion "23.0.0"
>
> defaultConfig {
> applicationId "mwave.led_resistor"
> minSdkVersion 14
> targetSdkVersion 18
>
> }
> buildTypes {
> release {
> minifyEnabled true
> proguardFiles getDefaultProguardFile('proguard-android.txt'), 
> 'proguard-rules.pro'
> }
> debug {
> minifyEnabled false
> }
> }
> }
>
> dependencies {
> compile fileTree(dir: 'libs', include: ['*.jar'])
> compile 'com.google.android.gms:play-services-ads:+'
> compile 'com.android.support:support-annotations:23.0.1'
> }
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Core Image equivalent on Android

2015-08-24 Thread Justin Anderson
I would imagine you can do similar things, but not knowing kinds of
transformations and filters you are wanting to do, not sure how we can
help...

On Mon, Aug 24, 2015, 5:16 PM Paulo Cesar  wrote:

> I'm mainly a iOS developer, and I have this app that applies a series of
> transformations and blend filters on images, all using Apple Core Image
> library. And I now that I have to port it to Android, is there any
> equivalent to Core Image in Android?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To 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: Windows 10 and Studio

2015-08-24 Thread Justin Anderson
I am on Win 10 and have not had problems like this. I do not use GenyMotion.

I also found this:
http://stackoverflow.com/questions/31709084/genymotion-problems-in-windows-10

The underlying problems may very well not even be GenyMotion, but
VirtualBox... As of last night the latest version is not fully supported on
Win 10.

On Mon, Aug 24, 2015, 3:41 AM catafest  wrote:

> ... try make all settings for your Android Studio ( most Project Settings
> and if don't working take a look at build.gradle file).
> also , Genymotion use VirtualBox settings and it is just one android
> emulator.
>
>
> On Monday, August 24, 2015 at 12:59:37 AM UTC+3, Phil Gibbs wrote:
>>
>> After installing Win 10 I'm getting many lock-ups when using AS. Not sure
>> how much Genymotion is involved.
>> Downgraded to Win 7 and problems disappeared. So now I'm reluctant to try
>> 10 again.
>> Anyone seen this issue?
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Manifest android:process field

2015-08-11 Thread Justin Anderson
How is it not an answer?

On Tue, Aug 4, 2015, 9:49 AM pedr0  wrote:

> This is not quite an answer ... is it ?
>
>
> On Tuesday, August 4, 2015 at 3:40:53 PM UTC+1, MagouyaWare wrote:
>
>> The documentation does not state that each time the activity is created
>> it will also create a new process. From your email, the documentation
>> states:
>>
>> "If the name assigned to this attribute begins with a colon (':'), a new
>> process, private to the application, is created when it's needed and the
>> activity runs in that process"
>>
>> The way I read this (maybe I'm wrong, but I don't think so), it means the
>> activity with the process name will have a process separate from other
>> activities in your app. If it needs to create a new process it will...
>> "when it's needed." If it can reuse that same process that it created
>> before, which is separate from all other activities in your app, it will do
>> that because it doesn't NEED to create a new one.
>>
>>
>>
>> *"Anyway that gives me some troubles since, for no good reasons, a
>> System.exit(0) is called at the end of the onDestroy() thus terminating the
>> whole VM and preventing the activity from being created and restarted
>> again, such bit was commented out during the tests I have made to make it
>> possible for me to gather the traces and debug the issue."*
>> Ummm. why in the world are you doing this? You should NEVER need to
>> call System.exit() in an Android app. That is the sign of a poorly designed
>> app.
>>
> On Tue, Aug 4, 2015 at 4:12 AM pedr0  wrote:
>>
> Hi all,
>>>
>>> I am using such field in the AndroidManifest file to unsure that an
>>> activity it's started as a separate process each time, I am using it in
>>> this way :
>>>
>>>
>>> >>   android:process=":testprocess"
>>> ...
>>> />
>>>
>>> Following the Android documentation the colon ":" should mean the
>>> activity will be started in a new private process each time, or at least it
>>> will not share the process with anybody else, quoting from the Android
>>> website:
>>>
>>> "If the name assigned to this attribute begins with a colon (':'), a new
>>> process, private to the application, is created when it's needed and the
>>> activity runs in that process"
>>>
>>> What I see is that this is not happening all the time, actually it looks
>>> like the process is recycled to recreate the same activity, what I have
>>> done is to add a print right at the top of pretty much every on* activity's
>>> methods:
>>>
>>> I am printing the object id and the process id obtained through
>>>
>>> android.os.process.myPid();
>>>
>>> Yes, I did not need it since the process id is printed out each time but
>>> I've realized it just now :-)
>>>
>>>
>>> [...]
>>> I/user  ( 9428): onCreate 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onDestroy 9428 Object Activity@41b5da18
>>> I/user  ( 9428): onCreate 9428 Object Activity@41b5cad8 <-- New
>>> activity created using the old process
>>> I/user  ( 9428): onStart 9428 Object Activity@41b5cad8
>>> I/user  ( 9428): onResume 9428 Object Activity@41b5cad8
>>> [...]
>>>
>>>
>>> Such behavior is not always consistent, it could as it could not happen
>>> and sometimes the activity is really started in a new process.
>>>
>>>
>>> Anyway that gives me some troubles since, for no good reasons, a
>>> System.exit(0) is called at the end of the onDestroy() thus terminating the
>>> whole VM and preventing the activity from being created and restarted
>>> again, such bit was commented out during the tests I have made to make it
>>> possible for me to gather the traces and debug the issue.
>>>
>>>
>>> Unfortunately I can't change such incorrect application behavior
>>> nevertheless I wonder if I have some other tricks to play from an
>>> application point of view which enables the activity to be restarted in a
>>> new process each time.
>>>
>>> I wouldn't dislike for the sake of my own knowledge to be pointed where
>>

Re: [android-developers] font size normalization

2015-08-07 Thread Justin Anderson
AFAIK there is no direct matching like that. They are two different
operating systems and render text differently.

That being said, I think I read an article once that said there is a (very)
rough equivalence between pts used in iOS and sp/dp values used in Android.

You could try using 18 sp (or dp) and comparing rendered font sizes on your
Android and iOS devices. It may not be exact and you may need to tweak it a
little, but it is going to mainly be a trial and error kind of thing.

Of course, all of this is assuming you are not defining your fonts in pixel
values on Android, which would be a big no no.

Hope that helps.

On Fri, Aug 7, 2015, 9:55 AM Jags  wrote:

> in my app i use title fonr size 18.7 in ios, my customer says in android
> same size font looks smaller than iphone in s6.
> which font type and size in android s6 will be closest matching in iphone
> ? iphone one is accepted by my customer as a standard to use.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Version 1 is not served to any device configuration: all devices that might receive version 1 would receive version 2.

2015-08-07 Thread Justin Anderson
http://stackoverflow.com/questions/16060655/what-does-this-google-play-apk-publish-error-message-mean

http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

On Fri, Aug 7, 2015, 5:16 AM lselwd  wrote:

> This configuration cannot be published for the following reason(s):
>
>- *Version 1* is not served to any device configuration: all devices
>that might receive *version 1* would receive *version 2*.
>
>
> cross platform xdk android build...
>
> Used cordova 3.5.1 in version 1
> used cordova 4.1.2 in version 2
> that's the problem or... what to do?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To 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] Manifest android:process field

2015-08-04 Thread Justin Anderson
The documentation does not state that each time the activity is created it
will also create a new process. From your email, the documentation states:

"If the name assigned to this attribute begins with a colon (':'), a new
process, private to the application, is created when it's needed and the
activity runs in that process"

The way I read this (maybe I'm wrong, but I don't think so), it means the
activity with the process name will have a process separate from other
activities in your app. If it needs to create a new process it will...
"when it's needed." If it can reuse that same process that it created
before, which is separate from all other activities in your app, it will do
that because it doesn't NEED to create a new one.



*"Anyway that gives me some troubles since, for no good reasons, a
System.exit(0) is called at the end of the onDestroy() thus terminating the
whole VM and preventing the activity from being created and restarted
again, such bit was commented out during the tests I have made to make it
possible for me to gather the traces and debug the issue."*
Ummm. why in the world are you doing this? You should NEVER need to
call System.exit() in an Android app. That is the sign of a poorly designed
app.

On Tue, Aug 4, 2015 at 4:12 AM pedr0  wrote:

> Hi all,
>
> I am using such field in the AndroidManifest file to unsure that an
> activity it's started as a separate process each time, I am using it in
> this way :
>
>
>android:process=":testprocess"
> ...
> />
>
> Following the Android documentation the colon ":" should mean the activity
> will be started in a new private process each time, or at least it will not
> share the process with anybody else, quoting from the Android website:
>
> "If the name assigned to this attribute begins with a colon (':'), a new
> process, private to the application, is created when it's needed and the
> activity runs in that process"
>
> What I see is that this is not happening all the time, actually it looks
> like the process is recycled to recreate the same activity, what I have
> done is to add a print right at the top of pretty much every on* activity's
> methods:
>
> I am printing the object id and the process id obtained through
>
> android.os.process.myPid();
>
> Yes, I did not need it since the process id is printed out each time but
> I've realized it just now :-)
>
>
> [...]
> I/user  ( 9428): onCreate 9428 Object Activity@41b5da18
> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
> I/user  ( 9428): onStart 9428 Object Activity@41b5da18
> I/user  ( 9428): onResume 9428 Object Activity@41b5da18
> I/user  ( 9428): onStop 9428 Object Activity@41b5da18
> I/user  ( 9428): onDestroy 9428 Object Activity@41b5da18
> I/user  ( 9428): onCreate 9428 Object Activity@41b5cad8 <-- New activity
> created using the old process
> I/user  ( 9428): onStart 9428 Object Activity@41b5cad8
> I/user  ( 9428): onResume 9428 Object Activity@41b5cad8
> [...]
>
>
> Such behavior is not always consistent, it could as it could not happen
> and sometimes the activity is really started in a new process.
>
>
> Anyway that gives me some troubles since, for no good reasons, a
> System.exit(0) is called at the end of the onDestroy() thus terminating the
> whole VM and preventing the activity from being created and restarted
> again, such bit was commented out during the tests I have made to make it
> possible for me to gather the traces and debug the issue.
>
>
> Unfortunately I can't change such incorrect application behavior
> nevertheless I wonder if I have some other tricks to play from an
> application point of view which enables the activity to be restarted in a
> new process each time.
>
> I wouldn't dislike for the sake of my own knowledge to be pointed where
> such behavior is implemented, where is the Activity created and started and
> where is decided to start it from a new process or not ?
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.

Re: [android-developers] font resizing help

2015-08-03 Thread Justin Anderson
*Coffee = code

(That's what I get for answering on my phone...)

On Mon, Aug 3, 2015, 2:05 PM Justin Anderson  wrote:

> Without coffee we won't be able to help much...
>
> Are you programmatically setting the font size? Or are you setting it in
> xml? What type of size value are you using (px, sp, dp, etc...)?
>
> On Mon, Aug 3, 2015, 10:18 AM Jags  wrote:
>
>> Hi All,
>>
>> I am using Avenir-Light.ttf font in my project which runs both in ios and
>> android. The problem is font for same size looks smaller in android device.
>> Also, in iPad font looks smaller than that of iphone.
>>
>> Do i need to viewport / pixel density based font size calculation
>> implemented ?
>>
>> need a solution badly.
>>
>> thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To 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] font resizing help

2015-08-03 Thread Justin Anderson
Without coffee we won't be able to help much...

Are you programmatically setting the font size? Or are you setting it in
xml? What type of size value are you using (px, sp, dp, etc...)?

On Mon, Aug 3, 2015, 10:18 AM Jags  wrote:

> Hi All,
>
> I am using Avenir-Light.ttf font in my project which runs both in ios and
> android. The problem is font for same size looks smaller in android device.
> Also, in iPad font looks smaller than that of iphone.
>
> Do i need to viewport / pixel density based font size calculation
> implemented ?
>
> need a solution badly.
>
> thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To 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] Android Application example

2015-07-31 Thread Justin Anderson
Say what?

On Thu, Jul 30, 2015, 4:31 PM shiva pendem  wrote:

> Hello,
>
> I need a android application where it will show two routes in first screen
> let say the route is from A to B and the second one is from C to D. and
>  below that i need a button to which asks for show on map, on clicking the
> button  it should show the two route maps in the new screen, here i will be
> sending 4 points that is 4 latitudes and 4 longitudes to next screen.
>
> Can any one guide me how can i do this. my main moto or requirement is to
> show two routes for 4 different points as explained.
>
> Thanks,
> Pendem Shiva Shankar,
> Mob:+91-9533024675.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Cutom Tab Indicator TabLayout Design Lib Support

2015-07-31 Thread Justin Anderson
1) Create a png of a triangle.
2) Create a state list drawable where the selected state uses that image
and the unelected state doesn't (You may want to get more involved and add
pissed states).
3) Create a custom layout to inflate for the tab that has a text view and
set the bottom drawable of that text view to use your state list drawable
created in step 2
4) When you create your tabs, inflate the layout created in step 3 and set
it as the custom view of your tab

DISCLAIMERS:
There may be a better way to accomplish this, but this is what I thought of
initially. I have done stuff like this in the past but it's been a while do
there may be done additional tweaking you need to do. If I remember right I
used PagerTab Strip.

Hour that at least gets you in the right direction.

Thanks,
Justin

On Fri, Jul 31, 2015, 3:38 AM Pratama Nur Wijaya 
wrote:

> Hi everyone,
>
> i want to make custom tab like these (see image)
>
> http://www.awesomescreenshot.com/image/444876/fd1fdc0ed49b53f846b6b2282868235a
>
> its look like instagram login page,
>
> i have try using Design Support Lib TabLayout
> but i dont have an idea how to custom tablayout indicator like that
>
>
> any suggestion ?
> Thanks before
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Android custom data to show in listview

2015-07-23 Thread Justin Anderson
Sorry, I don't do personal consulting like that for free. My consulting
rates are $120/hour.

I'm happy to help here on this forum, but I spend time on here in my free
time so I'm not going to go pouring through your project to try to solve
your problem.

Try debugging and stepping through the code to see if you can figure out
what is going on, or at least try to narrow it down to where you think the
cause of the problem is and post another, more specific, question.

Thanks,
Justin

On Thu, Jul 23, 2015, 1:12 PM GROZEA Ion  wrote:

>  Hi,
> I have already corrected this issue
>
> ArrayList list_NameImg = new 
> ArrayList();list_NameImg.add(basic);list_NameImg.add(sensors);list_NameImg.add(fastobjects);list_NameImg.add(pantilt);list_NameImg.add(usb);
>
> ModesLvAdapter adapter = new ModesLvAdapter(getActivity (), 
> R.layout.my_list_item, list_NameImg.get(tab_idx));myLV = (ListView) 
> myLV.findViewById(R.id.customListView);View v = 
> inflater.inflate(R.layout.modes_lv, null);myLV.setAdapter(adapter);
>
> The problem is that nothing from the list view is shown in tab and also
> the swipe behavior of the tab is changed. I have snt you a link with the
> project to have a look and see if you can help me and maybe propose better
> ways to do it as i am a beginner.
>
> Thank you for your help.
>
>
>
> On 7/23/2015 6:34 PM, Justin Anderson wrote:
>
> A fragment is not a Context. Pass in "getActivity()" instead of "this"
>
>  On Thu, Jul 23, 2015, 11:16 AM gvi7  wrote:
>
>> I have tried the following
>>
>>
>> <https://lh3.googleusercontent.com/-UwZUAdWZliQ/VbETW8LzhcI/Ifk/KfACIlRyDZc/s1600/Untitled.png>
>>
>> //NameImg[][] list_NameImg = new NameImg[][]{basic, sensors, fastobjects, 
>> pantilt, usb};ArrayList list_NameImg = new 
>> ArrayList();list_NameImg.add(basic);list_NameImg.add(sensors);list_NameImg.add(fastobjects);list_NameImg.add(pantilt);list_NameImg.add(usb);ModesLvAdapter
>>  adapter = new ModesLvAdapter(this, R.layout.my_list, 
>> list_NameImg.get(tab_idx));
>>
>>
>>  but now i get
>>
>>
>>
>> On Thursday, July 23, 2015 at 3:14:30 PM UTC+2, MagouyaWare wrote:
>>
>>>  1) What is the error you are getting?
>>>  2) What is ModesLvAdapter? You didn't provide that class.  You
>>> basically gave us everything about your project except the ONE thing that
>>> has to do with your question.
>>>
>>>  On Thu, Jul 23, 2015 at 5:56 AM gvi7  wrote:
>>>
>>> Here is how the UI should look like
>>>
>>>
>>> On Thursday, July 23, 2015 at 12:42:29 PM UTC+2, gvi7 wrote:
>>>
>>> I would like to have your guidance to solve a problem that i have with
>>> my first android app (SlidingTabLayout) I have the following
>>> ViewPagerAdapter.java
>>>
>>>   import android.support.v4.app.Fragment;import 
>>> android.support.v4.app.FragmentManager;import 
>>> android.support.v4.app.FragmentStatePagerAdapter;
>>> /**
>>>  * Created by John on 6/12/2015.
>>>  */public class ViewPagerAdapter extends FragmentStatePagerAdapter {
>>>
>>> CharSequence Titles[]; // This will Store the Titles of the Tabs which 
>>> are Going to be passed when ViewPagerAdapter is created
>>> int NumbOfTabs; // Store the number of tabs, this will also be passed 
>>> when the ViewPagerAdapter is created
>>>
>>>
>>> // Build a Constructor and assign the passed Values to appropriate 
>>> values in the class
>>> public ViewPagerAdapter(FragmentManager fm, CharSequence mTitles[], int 
>>> mNumbOfTabsumb) {
>>> super(fm);
>>>
>>> this.Titles = mTitles;
>>> this.NumbOfTabs = mNumbOfTabsumb;
>>>
>>> }
>>>
>>> //This method return the fragment for the every position in the View 
>>> Pager
>>> @Override
>>> public Fragment getItem(int position) {
>>> return Tab_Modes.init(position);
>>> }
>>>
>>> // This method return the titles for the Tabs in the Tab Strip
>>>
>>> @Override
>>> public CharSequence getPageTitle(int position) {
>>> return Titles[position];
>>> }
>>>
>>> // This method return the Number of tabs for the tabs Strip
>>>
>>> @Override
>>> public int getCount() {
>>> return NumbOfTabs;
>>> }}
>>>
>>>
>>> The custom data structure 

Re: [android-developers] Re: Android custom data to show in listview

2015-07-23 Thread Justin Anderson
A fragment is not a Context. Pass in "getActivity()" instead of "this"

On Thu, Jul 23, 2015, 11:16 AM gvi7  wrote:

> I have tried the following
>
>
> 
>
> //NameImg[][] list_NameImg = new NameImg[][]{basic, sensors, fastobjects, 
> pantilt, usb};
> ArrayList list_NameImg = new ArrayList();
> list_NameImg.add(basic);
> list_NameImg.add(sensors);
> list_NameImg.add(fastobjects);
> list_NameImg.add(pantilt);
> list_NameImg.add(usb);
> ModesLvAdapter adapter = new ModesLvAdapter(this, R.layout.my_list, 
> list_NameImg.get(tab_idx));
>
>
> but now i get
>
>
>
> On Thursday, July 23, 2015 at 3:14:30 PM UTC+2, MagouyaWare wrote:
>
>> 1) What is the error you are getting?
>> 2) What is ModesLvAdapter? You didn't provide that class.  You basically
>> gave us everything about your project except the ONE thing that has to do
>> with your question.
>>
>> On Thu, Jul 23, 2015 at 5:56 AM gvi7  wrote:
>>
>> Here is how the UI should look like
>>
>>
>> On Thursday, July 23, 2015 at 12:42:29 PM UTC+2, gvi7 wrote:
>>
>> I would like to have your guidance to solve a problem that i have with my
>> first android app (SlidingTabLayout) I have the following
>> ViewPagerAdapter.java
>>
>> import android.support.v4.app.Fragment;
>> import android.support.v4.app.FragmentManager;
>> import android.support.v4.app.FragmentStatePagerAdapter;
>>
>> /**
>>  * Created by John on 6/12/2015.
>>  */
>> public class ViewPagerAdapter extends FragmentStatePagerAdapter {
>>
>> CharSequence Titles[]; // This will Store the Titles of the Tabs which 
>> are Going to be passed when ViewPagerAdapter is created
>> int NumbOfTabs; // Store the number of tabs, this will also be passed 
>> when the ViewPagerAdapter is created
>>
>>
>> // Build a Constructor and assign the passed Values to appropriate 
>> values in the class
>> public ViewPagerAdapter(FragmentManager fm, CharSequence mTitles[], int 
>> mNumbOfTabsumb) {
>> super(fm);
>>
>> this.Titles = mTitles;
>> this.NumbOfTabs = mNumbOfTabsumb;
>>
>> }
>>
>> //This method return the fragment for the every position in the View 
>> Pager
>> @Override
>> public Fragment getItem(int position) {
>> return Tab_Modes.init(position);
>> }
>>
>> // This method return the titles for the Tabs in the Tab Strip
>>
>> @Override
>> public CharSequence getPageTitle(int position) {
>> return Titles[position];
>> }
>>
>> // This method return the Number of tabs for the tabs Strip
>>
>> @Override
>> public int getCount() {
>> return NumbOfTabs;
>> }
>> }
>>
>>
>> The custom data structure class
>>
>> /**
>>  * Created by John on 7/22/2015.
>>  */
>> public class NameImg {
>> public String itemName;
>> public String itemDesc;
>> public int itemImg;
>>
>> public NameImg() {
>> super();
>> }
>>
>> public NameImg(String itemName, String itemDesc, int itemImg) {
>> super();
>> this.itemName = itemName;
>> this.itemDesc = itemDesc;
>> this.itemImg = itemImg;
>> }
>>
>> public String getName() {
>> return this.itemName;
>> }
>>
>> public void setName(String itemName) {
>> this.itemName = itemName;
>> }
>>
>> public String getDesc() {
>> return this.itemDesc;
>> }
>>
>> public void setDesc(String itemDesc) {
>> this.itemDesc = itemDesc;
>> }
>>
>> public int getImg() {
>> return this.itemImg;
>> }
>>
>> public void setImg(int itemImg) {
>> this.itemImg = itemImg;
>> }
>>
>> }
>>
>>
>> and the tab
>>
>> /**
>>  * Created by John on 6/12/2015.
>>  */
>> public class Tab_Modes extends Fragment {
>> int tab_idx;
>> private ListView myLV;
>>
>> static Tab_Modes init(int val) {
>> Tab_Modes myTab = new Tab_Modes();
>> // Supply val input as an argument.
>> Bundle args = new Bundle();
>> args.putInt("val", val);
>> myTab.setArguments(args);
>> return myTab;
>> }
>>
>> /**
>>  * Retrieving this instance's number from its arguments.
>>  */
>>
>> public void onCreate(LayoutInflater inflater, ViewGroup container, 
>> Bundle savedInstanceState) {
>> // super.onCreate(savedInstanceState);
>> tab_idx = getArguments() != null ? getArguments().getInt("val") : 1;
>>
>> NameImg usb[] = new NameImg[]
>> {
>> new NameImg("1", "USB1", R.drawable.hand),
>> new NameImg("2", "USB2", R.drawable.bulb),
>> new NameImg("3", "USB3", R.drawable.bullet)
>> };
>> NameImg[][] list_NameImg = new NameImg[][]{basic, spi, i2c, usb};
>> ModesLvAdapter adapter = new ModesLvAdapter(this, R.layout.my_list, 
>> list_NameImg[tab_idx][]);
>> myLV = (List

Re: [android-developers] Re: Android custom data to show in listview

2015-07-23 Thread Justin Anderson
1) What is the error you are getting?
2) What is ModesLvAdapter? You didn't provide that class.  You basically
gave us everything about your project except the ONE thing that has to do
with your question.

On Thu, Jul 23, 2015 at 5:56 AM gvi7  wrote:

> Here is how the UI should look like
>
>
> On Thursday, July 23, 2015 at 12:42:29 PM UTC+2, gvi7 wrote:
>>
>> I would like to have your guidance to solve a problem that i have with my
>> first android app (SlidingTabLayout) I have the following
>> ViewPagerAdapter.java
>>
>> import android.support.v4.app.Fragment;
>> import android.support.v4.app.FragmentManager;
>> import android.support.v4.app.FragmentStatePagerAdapter;
>>
>> /**
>>  * Created by John on 6/12/2015.
>>  */
>> public class ViewPagerAdapter extends FragmentStatePagerAdapter {
>>
>> CharSequence Titles[]; // This will Store the Titles of the Tabs which 
>> are Going to be passed when ViewPagerAdapter is created
>> int NumbOfTabs; // Store the number of tabs, this will also be passed 
>> when the ViewPagerAdapter is created
>>
>>
>> // Build a Constructor and assign the passed Values to appropriate 
>> values in the class
>> public ViewPagerAdapter(FragmentManager fm, CharSequence mTitles[], int 
>> mNumbOfTabsumb) {
>> super(fm);
>>
>> this.Titles = mTitles;
>> this.NumbOfTabs = mNumbOfTabsumb;
>>
>> }
>>
>> //This method return the fragment for the every position in the View 
>> Pager
>> @Override
>> public Fragment getItem(int position) {
>> return Tab_Modes.init(position);
>> }
>>
>> // This method return the titles for the Tabs in the Tab Strip
>>
>> @Override
>> public CharSequence getPageTitle(int position) {
>> return Titles[position];
>> }
>>
>> // This method return the Number of tabs for the tabs Strip
>>
>> @Override
>> public int getCount() {
>> return NumbOfTabs;
>> }
>> }
>>
>>
>> The custom data structure class
>>
>> /**
>>  * Created by John on 7/22/2015.
>>  */
>> public class NameImg {
>> public String itemName;
>> public String itemDesc;
>> public int itemImg;
>>
>> public NameImg() {
>> super();
>> }
>>
>> public NameImg(String itemName, String itemDesc, int itemImg) {
>> super();
>> this.itemName = itemName;
>> this.itemDesc = itemDesc;
>> this.itemImg = itemImg;
>> }
>>
>> public String getName() {
>> return this.itemName;
>> }
>>
>> public void setName(String itemName) {
>> this.itemName = itemName;
>> }
>>
>> public String getDesc() {
>> return this.itemDesc;
>> }
>>
>> public void setDesc(String itemDesc) {
>> this.itemDesc = itemDesc;
>> }
>>
>> public int getImg() {
>> return this.itemImg;
>> }
>>
>> public void setImg(int itemImg) {
>> this.itemImg = itemImg;
>> }
>>
>> }
>>
>>
>> and the tab
>>
>> /**
>>  * Created by John on 6/12/2015.
>>  */
>> public class Tab_Modes extends Fragment {
>> int tab_idx;
>> private ListView myLV;
>>
>> static Tab_Modes init(int val) {
>> Tab_Modes myTab = new Tab_Modes();
>> // Supply val input as an argument.
>> Bundle args = new Bundle();
>> args.putInt("val", val);
>> myTab.setArguments(args);
>> return myTab;
>> }
>>
>> /**
>>  * Retrieving this instance's number from its arguments.
>>  */
>>
>> public void onCreate(LayoutInflater inflater, ViewGroup container, 
>> Bundle savedInstanceState) {
>> // super.onCreate(savedInstanceState);
>> tab_idx = getArguments() != null ? getArguments().getInt("val") : 1;
>>
>> NameImg usb[] = new NameImg[]
>> {
>> new NameImg("1", "USB1", R.drawable.hand),
>> new NameImg("2", "USB2", R.drawable.bulb),
>> new NameImg("3", "USB3", R.drawable.bullet)
>> };
>> NameImg[][] list_NameImg = new NameImg[][]{basic, spi, i2c, usb};
>> ModesLvAdapter adapter = new ModesLvAdapter(this, R.layout.my_list, 
>> list_NameImg[tab_idx][]);
>> myLV = (ListView) myLV.findViewById(R.id.customListView);
>> View v = inflater.inflate(R.layout.my_list, null);
>> myLV.setAdapter(adapter);
>> }
>> }
>>
>>
>> The activity_main.xml
>>
>> LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>> xmlns:tools="http://schemas.android.com/tools";
>> android:layout_width="match_parent"
>> android:layout_height="match_parent"
>> android:orientation="vertical"
>> tools:context=".MainActivity">
>>
>> > android:id="@+id/tool_bar"
>> layout="@layout/tool_bar"
>> android:layout_height="wrap_content"
>> android:layout_width="match_parent"
>> />
>>
>> > android:id="@+id/tabs"
>> android:layout_width="match_pa

Re: [android-developers] Re: Google Play Services adds nearly 10,000 methods!

2015-07-17 Thread Justin Anderson
Read through this article, in particular the section on only including
portions of Google Play Services in your app:
https://developers.google.com/android/guides/setup

On Fri, Jul 17, 2015 at 10:32 AM Igor Ganapolsky  wrote:

> Any update on this issue?  I there a workaround at all?  I am experiencing
> severe DEX limitations in my project because of this.
>
>
> On Tuesday, March 25, 2014 at 1:56:16 PM UTC-4, Jeff Campbell wrote:
>>
>> The latest version and the Google Play Services (4.3) now adds about
>> 2,500 more methods (since 4.2)!!  (Adding Google Play Services to your
>> project will add about 14,000 methods to your app) seems to be getting
>> worse and worse!
>>
>> On Friday, February 7, 2014 2:14:50 PM UTC-7, Jeff Campbell wrote:
>>>
>>> We have an app that depends on a lot of libraries, and recently we
>>> wanted to integrate Google Maps into our application.  We learned that we
>>> would have to add the following dependency to our app:
>>>
>>> compile 'com.google.android.gms:play-services:4.1.32'
>>>
>>> Before adding this dependeny, our app had about a 40k method count.
>>> After adding this dependency our method count jumped to about 50k (about
>>> 10k methods added to our apk!).  And, it seems that with every new version
>>> of this dependency it grows more and more (we noticed about a 2k growth in
>>> the last update).
>>>
>>> I know that this dependency contains a LOT of different types of
>>> services which include things we don't even use (which all contribute to
>>> the 10k method count).  I know that I can use Proguard to strip out
>>> un-needed methods, but in a development environment this just slows down
>>> build time, and can make debugging issues difficult.
>>>
>>> Could the Google Play Services be divided into seperate aar projects?
>>> Example:
>>>
>>> play-services-core (required by all... assuming that there is some
>>> shared code)
>>> play-services-maps
>>> play-services-games
>>> play-services-ads
>>> play-services-plus
>>> play-services-wallet
>>> etc
>>>
>>> Doing this would reduce the risk of apps hitting the 65k method limit
>>> cap (seems crazy that a Google library takes 15% of the 65k limit of any
>>> single app)
>>>
>>> Thanks,
>>> Jeff
>>>
>>>
>>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Get the background Running app list.

2015-07-08 Thread Justin Anderson
As of Lollipop there is no way to do that.

On Wed, Jul 8, 2015, 8:50 AM Seshu  wrote:

> Hi All,
>  How can we retrieve the list of background runnings apps list in
> android. currently i am using
> public List getRunningTasks (int maxNum).
> But this method is deprecated in API level 21 i.e., from Lollipop onwards.
> is there any alternative method to get the running apps list. please try to
> help me guys
>
> Thanks
> S.Seshu.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] "Error inflating class com.android.internal.widget.ActionBarContainer" on some Sony devices.

2015-07-07 Thread Justin Anderson
Not entirely sure, but maybe this helps?
http://stackoverflow.com/questions/12115125/creating-custom-style-crashes-app

On Wed, Jun 17, 2015 at 6:41 PM Farproc  wrote:

> Hi,
>
> I've got a lot of error reports from Sony devices with Android 5.0.2 in
> the past few weeks. It seems that  a ArrayIndexOutOfBoundsException
> occurs when inflating ActionBarContainer. ActionBarContainer is an
> internal class, never used directly in my code.  The only line of my code
> in the stack trace is a call to Activity.setContentView(). Any ideas?
> Thanks.
>
>
> 
>
> The list of Build.FINGERPRINT of these devices includes:
>
> Sony/C6802/C6802:5.0.2/14.5.A.0.270/3305956307:user/release-keys
> Sony/C6833/C6833:5.0.2/14.5.A.0.270/3305956307:user/release-keys
> Sony/C6902/C6902:5.0.2/14.5.A.0.270/3750474323:user/release-keys
> Sony/C6903/C6903:5.0.2/14.5.A.0.270/3750474323:user/release-keys
> Sony/C6943/C6943:5.0.2/14.5.A.0.270/3750474323:user/release-keys
> Sony/D5503/D5503:5.0.2/14.5.A.0.270/3750474323:user/release-keys
> Sony/D5803/D5803:5.0.2/23.1.A.1.28/151083418:user/release-keys
> Sony/D6503/D6503:5.0.2/23.1.A.1.28/151083418:user/release-keys
> Sony/D6603/D6603:5.0.2/23.1.A.1.28/151083418:user/release-keys
> Sony/D6616/D6616:5.0.2/23.1.C.0.385/498118161:user/release-keys
> Sony/D6633/D6633:5.0.2/23.1.1.E.0.1/937646546:user/release-keys
> Sony/D6653/D6653:5.0.2/23.1.A.1.28/151083418:user/release-keys
>
>
> 
>
> The stack trace:
>
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.my.app/com.my.app.MainActivity}:
> android.view.InflateException: Binary XML file line #31: Error inflating
> class com.android.internal.widget.ActionBarContainer
> at android.app.ActivityThread.performLaunchActivity(
> ActivityThread.java:2345)
> at android.app.ActivityThread.handleLaunchActivity(
> ActivityThread.java:2405)
> at android.app.ActivityThread.access$800(ActivityThread.java:149)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:211)
> at android.app.ActivityThread.main(ActivityThread.java:5317)
> at java.lang.reflect.Method.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:372)
> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(
> ZygoteInit.java:1016)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
> Caused by: android.view.InflateException: Binary XML file line #31: Error
> inflating class com.android.internal.widget.ActionBarContainer
> at android.view.LayoutInflater.createView(LayoutInflater.java:633)
> at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
> at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
> at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
> at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
> at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
> at com.android.internal.policy.impl.PhoneWindow.
> generateLayout(PhoneWindow.java:3500)
> at com.android.internal.policy.impl.PhoneWindow.installDecor(
> PhoneWindow.java:3572)
> at com.android.internal.policy.impl.PhoneWindow.
> setContentView(PhoneWindow.java:371)
> at android.app.Activity.setContentView(Activity.java:2144)
> at com.my.app.MainActivity.onCreate(Unknown Source)
> at android.app.Activity.performCreate(Activity.java:5933)
> at android.app.Instrumentation.callActivityOnCreate(
> Instrumentation.java:1105)
> at android.app.ActivityThread.performLaunchActivity(
> ActivityThread.java:2298)
> ... 10 more
> Caused by: java.lang.reflect.InvocationTargetException
> at java.lang.reflect.Constructor.newInstance(Native Method)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
> at android.view.LayoutInflater.createView(LayoutInflater.java:607)
> ... 23 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: length=7; index=7
> at android.content.res.Resources.toPreloadCookie(Resources.java:2447)
> at android.content.res.Resources.loadDrawable(Resources.java:2475)
> at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
> at android.view.View.(View.java:3806)
> at android.view.ViewGroup.(ViewGroup.java:492)
> at android.widget.FrameLayout.(FrameLayout.java:115)
> at android.widget.FrameLayout.(FrameLayout.java:111)
> at android.widget.FrameLayout.(FrameLayout.java:107)
> at com.android.internal.widget.ActionBarContainer.(
> ActionBarContainer.java:57)
> ... 26 more
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more optio

Re: [android-developers] Samsung Note issue - SpannableStringBuilder;; SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

2015-06-15 Thread Justin Anderson
SpannableStringBuilder;; SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length

My guess would be that you are trying to set a span on an empty string.
Don't do that. :-)

On Thu, Jun 4, 2015, 11:30 PM Rakesh Jha  wrote:

> Hi,
>
> i'm facing this error since 3-4 days, what ever solution I got in internet
> i tried, but no solution.
>
> SpannableStringBuilder;; SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero 
> length
> SpannableStringBuilder;; SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero 
> length
>
>
> Crashing is happening at Sumsung Note only with below configuration -
> Model no: Samsung Galaxy Note 1, GT-N7000
> Resolution of device: 1280 x 800 Pixel
> Size of device: 5.5 inch
>
>
> Any suggestion on this.
>
> --
> Thanks & Regards
>
> Rakesh Kumar Jha
> Android Developer, Trainer and Mentor
> Bangalore
> Skype - rkjhaw
> (O) +918050753516
> (R) +919886336619
>
> Rakesh Jha
> 9886336619
>
> https://www.facebook.com/rakeshjhadhamdaha
> https://twitter.com/rkjhaw
> https://plus.google.com/u/0/b/114183395110899096234/114183395110899096234/
> 
> http://dhamdaha.blogspot.in/
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Bonjour Browsing

2015-06-15 Thread Justin Anderson
What have you tried so far?

On Thu, Jun 11, 2015, 5:14 AM Raghavendra Rao  wrote:

> Can anybody help me on how can implement "listing all the Bonjour Service
> with in the WiFi Vicinity"
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Error with android.support.v7.internal.widget.ActionBarOverlayLayout

2015-06-05 Thread Justin Anderson
I'm not sure what you are asking...

On Fri, Jun 5, 2015, 2:44 PM Ricardo Santos 
wrote:

> Hello everyone! Have anyone solved the problem
> of android.support.v7.internal.widget.ActionBarOverlayLayout rendering in
> Android Studio?
>
> I am having this problem for a while and have always worked around it. I
> have serached in the messages for people who might have already solved it,
> but found none. Can anyone help me?
>
> Ricardo Santos
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> 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] Using Callbacks in Master-Detail Scenario.

2015-05-20 Thread Justin Anderson
"Can someone tell me what I'm missing here?"
Some sample code, so we can try to help... :-)

On Wed, May 20, 2015 at 8:29 AM Phil Gibbs  wrote:

> I have a typical master-detail scenario.  That is, first activity invokes
> a list fragment in which I retrieve a list using a contentprovider.  An
> Item click on this list returns the row using a callback to activity.
> Activity determines device type and either fires a detail fragment (for
> tablets etc) or fires a detail activity (for phones).
> I am trying to update the list in the list activity following an update,
> or a delete.  The adapter is located in the list fragment - as is normal.
> I have coded callbacks from the detail activity to the first activity.
> That did not work. I've done the same thing but calling back to the list
> fragment.  That does not work.  I created a hard-coded reference to the
> ListFragment adapter in the DetailFragment in order to call  '
> notifyDataSetChanged' which not surprisingly also did not work.
> Can someone tell me what I'm missing here?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Android studio "inished with non-zero exit value 3" error

2015-05-13 Thread Justin Anderson
@Marina
Thank you for that information. I had never encountered that problem
before. If I encounter it in the future I will know how to start figuring
out the root cause of the problem.

On Wed, May 13, 2015 at 2:21 PM Justin Anderson 
wrote:

> *"Everyone works within time constraints. Do not assume that I have
> unlimited time to wait."*
> That is true, but no one made that assumption. Flip that around and you
> can't assume that people on this forum are here at your beck and call.
>
> *"I have already done my due diligence."*
> Great. But that doesn't give you the right to carry on the way you have
> been without being called on it.
>
> *"As it is, there were no helpful links and no one here helped, and you
> can get off your high horse because you did nothing but derail the damn
> thread."*
> Marina posted some very helpful information. And it came within the
> timeframe I initially mentioned to expect most answers... Most answers come
> within 2-3 days. Marina provided helpful information about 36 hours after
> your email came through on the forum thread.
>
> As for me, I was simply trying to help you understand how you were being
> rude, disrespectful, and belligerent.  At every step of the way, you have
> done nothing but hurl insult after insult.  I passed on many opportunities
> to return the favor, in the hopes of helping you better understand how the
> community around this forum operates.
>
> *"I do not see why I should contribute to a forum full of trolls like
> yourself, and that is my choice."*
> Yes, it is your choice. And if you can't control your temper and be
> respectful and patient on here, then you have my full support in that
> choice.
>
> Thanks,
> Justin
>
> On Wed, May 13, 2015 at 1:59 PM Ristar  wrote:
>
>> Everyone works within time constraints. Do not assume that I have
>> unlimited time to wait.
>>
>> I have already done my due diligence. As it is, there were no helpful
>> links and no one here helped, and you can get off your high horse because
>> you did nothing but derail the damn thread.
>>
>> Your link is pathetic. I was not the one asking for apologies, was I? I
>> do not see why I should contribute to a forum full of trolls like yourself,
>> and that is my choice. You are the one that can't get over it. So, take
>> your own stupid advice, and get over it.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> ---
>> 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: Android studio "inished with non-zero exit value 3" error

2015-05-13 Thread Justin Anderson
*"Everyone works within time constraints. Do not assume that I have
unlimited time to wait."*
That is true, but no one made that assumption. Flip that around and you
can't assume that people on this forum are here at your beck and call.

*"I have already done my due diligence."*
Great. But that doesn't give you the right to carry on the way you have
been without being called on it.

*"As it is, there were no helpful links and no one here helped, and you can
get off your high horse because you did nothing but derail the damn
thread."*
Marina posted some very helpful information. And it came within the
timeframe I initially mentioned to expect most answers... Most answers come
within 2-3 days. Marina provided helpful information about 36 hours after
your email came through on the forum thread.

As for me, I was simply trying to help you understand how you were being
rude, disrespectful, and belligerent.  At every step of the way, you have
done nothing but hurl insult after insult.  I passed on many opportunities
to return the favor, in the hopes of helping you better understand how the
community around this forum operates.

*"I do not see why I should contribute to a forum full of trolls like
yourself, and that is my choice."*
Yes, it is your choice. And if you can't control your temper and be
respectful and patient on here, then you have my full support in that
choice.

Thanks,
Justin

On Wed, May 13, 2015 at 1:59 PM Ristar  wrote:

> Everyone works within time constraints. Do not assume that I have
> unlimited time to wait.
>
> I have already done my due diligence. As it is, there were no helpful
> links and no one here helped, and you can get off your high horse because
> you did nothing but derail the damn thread.
>
> Your link is pathetic. I was not the one asking for apologies, was I? I do
> not see why I should contribute to a forum full of trolls like yourself,
> and that is my choice. You are the one that can't get over it. So, take
> your own stupid advice, and get over it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> 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: Android studio "inished with non-zero exit value 3" error

2015-05-13 Thread Justin Anderson
*"For the millionth time, before I posted the question, I have already
tried searching for the answer, and all I found was an unanswered
StackOverflow question."*
I've already addressed that. That just adds to the reason that you should
be patient and wait a little longer.  It also does nothing to account for
the rude and belligerent behavior.

*"Do not try to make it sound like I expect anyone to do my work for me,
and no one here did anything worth a damn for me."*
Unfortunately you made it sound like you expected that, when you said *"Like,
come on, I already showed you the error code. Or is everyone clueless?"*

*"You people can blame me for being "impatient", but what good would a
solution be to me if it were given 1 or 2, or 10, or 100 years later?"*
We are talking about a period of days, not years.  We are simply talking
about some basic internet etiquette.

*"With members like the 3 of you, I shall make the conscious choice never
to share anything here."*
I highly recommend reading this. The whole article is good, but I'm linking
to a very specific section that applies to the interactions in this thread:
http://www.catb.org/~esr/faqs/smart-questions.html#not_losing

On Wed, May 13, 2015 at 1:28 PM Ristar  wrote:

> For the millionth time, before I posted the question, I have already tried
> searching for the answer, and all I found was an unanswered StackOverflow
> question. Do not try to make it sound like I expect anyone to do my work
> for me, and no one here did anything worth a damn for me.
>
> You people can blame me for being "impatient", but what good would a
> solution be to me if it were given 1 or 2, or 10, or 100 years later?
>
> With members like the 3 of you, I shall make the conscious choice never to
> share anything here.
>
>
> On Wednesday, May 13, 2015 at 10:28:46 PM UTC+8, Steve Gabrilowitz wrote:
>
>> Sorry if you don't like the truth, but you were being rude and
>> impatient.  When you post in this forum is it expected that somebody who
>> knows the answer will enlighten you, not that people will search for the
>> solution for you.  It is also expected that if you should happen to solve
>> the problem yourself then you will post the solution for the benefit of
>> others, but apparently you didn't know that either.
>>
>
>> On Wed, May 13, 2015 at 9:54 AM, Ristar  wrote:
>>
>>> If no one can answer, the normal assumption would be everyone's
>>> clueless. In any case, I did not assert that everyone's clueless, only
>>> asking if that were so. As it is, I have pointed out that the exact same
>>> question on Stack Overflow remains unanswered, and he wasnt rude.
>>>
>>> I am no longer interested in the answer, because I, being better than
>>> all the trolls with nothing better to do other than cry about "rudeness"
>>> because of their ineptness at solving real problems and do nothing but
>>> derail from a solution seeking thread to a flaming thread, have found the
>>> solution to the problem.
>>>
>>> If you have a problem, troll, don't read. It's that simple, troll.
>>>
>>>
>>> On Wednesday, May 13, 2015 at 9:27:27 PM UTC+8, MagouyaWare wrote:

 *"If you are such a fragile and sensitive being, I suggest that you
 stop reading."*
 I am neither fragile nor sensitive. You were being rude, were called
 out on it, and then got belligerent. I was simply giving you some advice if
 you really wanted to have a chance at getting an answer.

 *"In fact, I would go one step further and suggest that you stop
 surfing the web in case it offends your delicate sensibilities."*
 Given that your only response is to lash out at those calling you out
 on your behavior, perhaps you should take your own advice.

 *"I do not appreciate your derailing of the thread."*
 The only person responsible for derailing the thread is yourself, and
 how you have chosen to lash out at those that called you out on your
 rudeness.

 *"As I have mentioned earlier the same question was not answered on
 Stack Overflow."*
 What does that matter? All that shows is that your particular problem
 is a rare one, and that it may take some time for someone to figure out,
 which in turn means you are probably going to have to wait a little bit.

 I've been on this forum since it was created. That doesn't really
 matter other than that I can tell you that people best get answers when
 they are patient, and not rude when they don't get an answer. As I said
 before, it is not uncommon for a period of 2-3 days before someone is able
 to answer a question.

 Can you post a follow-up to your question? Absolutely. Generally I
 would suggest at least waiting 2 days. And when you do, a very simple
 question like "Has anyone seen anything like this before?" should suffice.

 *"I do not appreciate your derailing of the thread."*
 Likewise, I do not appreciate your rudeness. C'est la vie. The only
 pers

Re: [android-developers] Should we adhere holo design or material design for app running on Android below 5

2015-05-13 Thread Justin Anderson
Good point. I will have to start updating my apps now. :-)

On Tue, May 12, 2015 at 8:59 AM Jose_GD  wrote:

> +1.
>
> Google wouldn't take the effort to make AppCompat if they didn't intend to
> get Material Design on older devices.
>
> Cheers
>
> José
> https://play.google.com/store/apps/developer?id=José%20González%20D%27Amico
> 
>
>
> El lunes, 11 de mayo de 2015, 15:21:16 (UTC-3), TreKing escribió:
>
>>
>> On Mon, May 11, 2015 at 10:17 AM, yccheok  wrote:
>>
>>> However, if the app is running on Android 2.3 till Android 4, should I
>>> make the app having Holo look, or Material look? Does Google provide any
>>> official guideline on this?
>>
>>
>> Google's put a huge amount of effort into Material and making it
>> backward-portable in the app compat library. Considering that you can use
>> this to get this theme on all of these platform versions, and considering
>> how ass-ugly 2.3x looks now by comparison, you probably should just use the
>> one theme on everything.
>>
>> Reference link for video for consistent design:
>> http://youtu.be/5Be2mJzP-Uw
>>
>>
>> -
>> 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.


Re: [android-developers] Re: Android studio "inished with non-zero exit value 3" error

2015-05-13 Thread Justin Anderson
Glad you found the solution to your problem. :-)

On Wed, May 13, 2015 at 9:57 AM Ristar  wrote:

> If no one can answer, the normal assumption would be everyone's clueless.
> In any case, I did not assert that everyone's clueless, only asking if that
> were so. As it is, I have pointed out that the exact same question on Stack
> Overflow remains unanswered, and he wasnt rude.
>
> I am no longer interested in the answer, because I, being better than all
> the trolls with nothing better to do other than cry about "rudeness"
> because of their ineptness at solving real problems and do nothing but
> derail from a solution seeking thread to a flaming thread, have found the
> solution to the problem.
>
> If you have a problem, troll, don't read. It's that simple, troll.
>
>
> On Wednesday, May 13, 2015 at 9:27:27 PM UTC+8, MagouyaWare wrote:
>
>> *"If you are such a fragile and sensitive being, I suggest that you stop
>> reading."*
>>
> I am neither fragile nor sensitive. You were being rude, were called out
>> on it, and then got belligerent. I was simply giving you some advice if you
>> really wanted to have a chance at getting an answer.
>>
>> *"In fact, I would go one step further and suggest that you stop surfing
>> the web in case it offends your delicate sensibilities."*
>> Given that your only response is to lash out at those calling you out on
>> your behavior, perhaps you should take your own advice.
>>
>> *"I do not appreciate your derailing of the thread."*
>> The only person responsible for derailing the thread is yourself, and how
>> you have chosen to lash out at those that called you out on your rudeness.
>>
>> *"As I have mentioned earlier the same question was not answered on Stack
>> Overflow."*
>> What does that matter? All that shows is that your particular problem is
>> a rare one, and that it may take some time for someone to figure out, which
>> in turn means you are probably going to have to wait a little bit.
>>
>> I've been on this forum since it was created. That doesn't really matter
>> other than that I can tell you that people best get answers when they are
>> patient, and not rude when they don't get an answer. As I said before, it
>> is not uncommon for a period of 2-3 days before someone is able to answer a
>> question.
>>
>> Can you post a follow-up to your question? Absolutely. Generally I would
>> suggest at least waiting 2 days. And when you do, a very simple question
>> like "Has anyone seen anything like this before?" should suffice.
>>
>> *"I do not appreciate your derailing of the thread."*
>>
> Likewise, I do not appreciate your rudeness. C'est la vie. The only person
>> truly responsible for the thread getting derailed is your own.
>>
>> On Tue, May 12, 2015 at 11:19 PM Ristar  wrote:
>>
>>> If you are such a fragile and sensitive being, I suggest that you stop
>>> reading. In fact, I would go one step further and suggest that you stop
>>> surfing the web in case it offends your delicate sensibilities. I do not
>>> appreciate your derailing of the thread.
>>>
>>> As I have mentioned earlier the same question was not answered on Stack
>>> Overflow.
>>>
>>> Don't be a derailing troll.
>>>
>>>
>>> On Wednesday, May 13, 2015 at 7:19:05 AM UTC+8, MagouyaWare wrote:

 Rudeness is not defined by the question asked, but by how it was asked.
 And yes, your second post was rude.

 This list is answered by people who answer things in their spare time.
 They aren't sitting around getting paid by Google (or anyone for that
 matter) to answer questions.

 It is not uncommon for answers to take 2-3 days (our longer!) before
 being answered.

 So sit back, wait, grab a cup of coffee, perhaps apologize for being
 rude, and hopefully someone will see your question soon that knows how to
 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 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 

Re: [android-developers] Re: Android studio "inished with non-zero exit value 3" error

2015-05-13 Thread Justin Anderson
*"If you are such a fragile and sensitive being, I suggest that you stop
reading."*
I am neither fragile nor sensitive. You were being rude, were called out on
it, and then got belligerent. I was simply giving you some advice if you
really wanted to have a chance at getting an answer.

*"In fact, I would go one step further and suggest that you stop surfing
the web in case it offends your delicate sensibilities."*
Given that your only response is to lash out at those calling you out on
your behavior, perhaps you should take your own advice.

*"I do not appreciate your derailing of the thread."*
The only person responsible for derailing the thread is yourself, and how
you have chosen to lash out at those that called you out on your rudeness.

*"As I have mentioned earlier the same question was not answered on Stack
Overflow."*
What does that matter? All that shows is that your particular problem is a
rare one, and that it may take some time for someone to figure out, which
in turn means you are probably going to have to wait a little bit.

I've been on this forum since it was created. That doesn't really matter
other than that I can tell you that people best get answers when they are
patient, and not rude when they don't get an answer. As I said before, it
is not uncommon for a period of 2-3 days before someone is able to answer a
question.

Can you post a follow-up to your question? Absolutely. Generally I would
suggest at least waiting 2 days. And when you do, a very simple question
like "Has anyone seen anything like this before?" should suffice.

*"I do not appreciate your derailing of the thread."*
Likewise, I do not appreciate your rudeness. C'est la vie. The only person
truly responsible for the thread getting derailed is your own.

On Tue, May 12, 2015 at 11:19 PM Ristar  wrote:

> If you are such a fragile and sensitive being, I suggest that you stop
> reading. In fact, I would go one step further and suggest that you stop
> surfing the web in case it offends your delicate sensibilities. I do not
> appreciate your derailing of the thread.
>
> As I have mentioned earlier the same question was not answered on Stack
> Overflow.
>
> Don't be a derailing troll.
>
>
> On Wednesday, May 13, 2015 at 7:19:05 AM UTC+8, MagouyaWare wrote:
>>
>> Rudeness is not defined by the question asked, but by how it was asked.
>> And yes, your second post was rude.
>>
>> This list is answered by people who answer things in their spare time.
>> They aren't sitting around getting paid by Google (or anyone for that
>> matter) to answer questions.
>>
>> It is not uncommon for answers to take 2-3 days (our longer!) before
>> being answered.
>>
>> So sit back, wait, grab a cup of coffee, perhaps apologize for being
>> rude, and hopefully someone will see your question soon that knows how to
>> 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 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: Android studio "inished with non-zero exit value 3" error

2015-05-12 Thread Justin Anderson
Rudeness is not defined by the question asked, but by how it was asked. And
yes, your second post was rude.

This list is answered by people who answer things in their spare time. They
aren't sitting around getting paid by Google (or anyone for that matter) to
answer questions.

It is not uncommon for answers to take 2-3 days (our longer!) before being
answered.

So sit back, wait, grab a cup of coffee, perhaps apologize for being rude,
and hopefully someone will see your question soon that knows how to help.

On Tue, May 12, 2015, 7:06 PM Ristar  wrote:

>
>
> On Wednesday, May 13, 2015 at 5:42:16 AM UTC+8, Lew wrote:
>>
>> Not with rudeness like that, we can't. Yeesh.
>>
>> On Tuesday, May 12, 2015 at 8:19:02 AM UTC-7, Ristar wrote:
>>>
>>> Can anyone answer how to fix this? Like, come on, I already showed you
>>> the error code. Or is everyone clueless?
>>>
>>> On Tuesday, May 12, 2015 at 3:32:12 PM UTC+8, Ristar wrote:

 Error:Execution failed for task ':app:dexDebug'.
 > com.android.ide.common.process.ProcessException:
 org.gradle.process.internal.ExecException: Process 'command 'C:\Program
 Files\Java\jdk1.7.0_72\bin\java.exe'' finished with non-zero exit value 3

 How to fix this?

>>>
> I asked the question 15 hrs ago and posted the 2nd post 7 hrs ago.
>
> It is not "rudeness", when I am merely asking if everyone is really
> clueless. A quick check at StackOverflow shows the same question
> unanswered.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Should we adhere holo design or material design for app running on Android below 5

2015-05-11 Thread Justin Anderson
Ideally, you should style it for whatever version of Android the app is
running on.  If Lollipop, then, Material, 4.x should use Holo, etc...

On Mon, May 11, 2015, 11:22 AM yccheok  wrote:

> Previously, I had an Android app, which built on the top of
> ActionBarSherlock. The app runs well on Android 2.3 till Android 5.0
>
> Currently, I'm in the process, of migrating my app, from ActionBarSherlock
> to Google AppCompat.
>
> For the app running on Android 5.0, I'm targeting to use Material design.
>
> However, if the app is running on Android 2.3 till Android 4, should I
> make the app having Holo look, or Material look? Does Google provide any
> official guideline on this?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> 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] apk name for Google play

2015-05-01 Thread Justin Anderson
Yes, you can rename the apk file however best suits your needs.

The play store only cares about the data in the manifest file and how the
apk was signed.

On Fri, May 1, 2015, 10:34 AM NewToAndroid  wrote:

> Hi all,
>
> I want to publish my app on Google play. When I create the signed apk
> (with Android Studio), it creates the file with name "apk-release.apk".
> It does not look appropriate to me to upload apk file with that name on
> Google play. Is it ok if I just rename the apk file before upload ?
> Does it matter to have a proper name for the apk file ?
>
> Can you guys share your experiences regarding the name of the apk file ?
> what if I add the version number in the apk file name ? e.g. MyApp_1.0.apk
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To 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] startService with explicit intent is not working to start framework service.

2015-04-28 Thread Justin Anderson
Ah, that's what I thought. This forum is for developing Android apps. If
you are modifying a custom build of Android you would be better of in one
of the other forums.

On Wed, Apr 29, 2015, 12:59 AM rashmi ks  wrote:

> Custom build of Android
>
> On Tue, Apr 28, 2015 at 11:35 PM, Justin Anderson 
> wrote:
>
>> Are you writing this for a rooted device or for a custom build of Android?
>>
>> On Tue, Apr 28, 2015, 7:10 AM Rashmi  wrote:
>>
>>> Hi,
>>> I have added MyService in android/framework/base/services/ space and
>>> registered that service in AndroidManifest.xml
>>> of android/frameworks/base/core/res/. Calling startService() of MyService,
>>> from test application is working fine with implicit intent. But explicit is
>>> not working with warning message "Unable to start service".
>>>
>>> I have used
>>> package name - "com.android.server"
>>> class name - "com.android.server.MyService"
>>> flag - android:exported="true"
>>>
>>> Please let me know how do we use explicit intent with framework service.
>>>
>>> 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 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 a topic in the
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/android-developers/qKqD0eMC8Vw/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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] startService with explicit intent is not working to start framework service.

2015-04-28 Thread Justin Anderson
Are you writing this for a rooted device or for a custom build of Android?

On Tue, Apr 28, 2015, 7:10 AM Rashmi  wrote:

> Hi,
> I have added MyService in android/framework/base/services/ space and
> registered that service in AndroidManifest.xml
> of android/frameworks/base/core/res/. Calling startService() of MyService,
> from test application is working fine with implicit intent. But explicit is
> not working with warning message "Unable to start service".
>
> I have used
> package name - "com.android.server"
> class name - "com.android.server.MyService"
> flag - android:exported="true"
>
> Please let me know how do we use explicit intent with framework service.
>
> 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 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] Which activity method is good for a continuous loop?

2015-04-17 Thread Justin Anderson
*"When there is no internet connectivity, the mediaplayer assumes, the mp3
it was playing is finished and performs onComplete method. I had put
stopself in onCompletion, so the service is stopping.*
*Now, somewhere I would like to have this code that, if the mediaplayer has
completed itself (without the user stopping it), I want to re-try to create
the mediaplayer again and run it. I am not sure, where should this code
sit? where means, which callback of the service or the mediaplayer can have
this check and re-start logic."*

The code for restarting the service is what I was referring to when I said
it sounds like you are trying to fix a symptom of the problem.  So the
question is not where to put code to restart the service.  The question
should be, how do you detect an error in playback with MediaPlayer so you
can prevent the server from stopping itself?

A quick google search brought me to this SO post that looks like it could
help:
http://stackoverflow.com/questions/17619055/restarting-mediaplayer-when-connection-lost-in-android

That being said, you could probably also implement a broadcast receiver
that listens for connectivity state changes and act accordingly.

On Fri, Apr 17, 2015 at 6:57 PM NewToAndroid  wrote:

> Yes. It might be the case that I am not going to the root cause.
>
> I have a main activity, which starts a service. The service creates a
> MediaPlayer object and plays a MP3. This MP3 is not a mp3 file, but it is
> the live stream which is played over internet.
> When there is no internet connectivity, the mediaplayer assumes, the mp3
> it was playing is finished and performs onComplete method. I had put
> stopself in onCompletion, so the service is stopping.
>
> Now, somewhere I would like to have this code that, if the mediaplayer has
> completed itself (without the user stopping it), I want to re-try to create
> the mediaplayer again and run it. I am not sure, where should this code
> sit? where means, which callback of the service or the mediaplayer can have
> this check and re-start logic.
>
>
> On Friday, April 17, 2015 at 3:07:43 PM UTC+1, MagouyaWare wrote:
>
>> It sounds like you are trying to fix the symptom of a problem rather than
>> address the actual issue.  The real question should be "Why does my
>> service get destroyed?"
>>
>> Have you looked into why your service gets destroyed? What kind of
>> service are you using (hopefully not IntentService)?
>>
>> On Fri, Apr 17, 2015 at 8:52 AM NewToAndroid  wrote:
>>
> Hi all,
>>>
>>> I have a very simple app, which has 1 screen with few buttons. It will
>>> start a service which will pay music using mediaplayer.
>>> Now, sometimes if I go in no internet coverage area or move between 3g
>>> and wifi, the player stops and service completes (does its onDestroy).
>>>
>>> I am thinking of writting a simple loop, which will check if the service
>>> is running after every 10 secnds (or something like that) and if the
>>> service is down, it will start it.
>>> Question is, where should I write this loop in the activity code ? which
>>> method is better suited to have this loop which is continuously running ?
>>> onStart?
>>> Any other better ideas ? (I am sure there will be)
>>>
>>> Thanks in advance
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>>
>> To post to this group, send email to android-d...@googlegroups.com
>>
>>
>>> To unsubscribe from this group, 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/g

Re: [android-developers] Which activity method is good for a continuous loop?

2015-04-17 Thread Justin Anderson
It sounds like you are trying to fix the symptom of a problem rather than
address the actual issue.  The real question should be "Why does my service
get destroyed?"

Have you looked into why your service gets destroyed? What kind of service
are you using (hopefully not IntentService)?

On Fri, Apr 17, 2015 at 8:52 AM NewToAndroid  wrote:

> Hi all,
>
> I have a very simple app, which has 1 screen with few buttons. It will
> start a service which will pay music using mediaplayer.
> Now, sometimes if I go in no internet coverage area or move between 3g and
> wifi, the player stops and service completes (does its onDestroy).
>
> I am thinking of writting a simple loop, which will check if the service
> is running after every 10 secnds (or something like that) and if the
> service is down, it will start it.
> Question is, where should I write this loop in the activity code ? which
> method is better suited to have this loop which is continuously running ?
> onStart?
> Any other better ideas ? (I am sure there will be)
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To 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] Signing App

2015-04-17 Thread Justin Anderson
http://lmgtfy.com/?q=android+signed+vs+unsigned+application

On Fri, Apr 17, 2015 at 8:08 AM Rahul Kaushik 
wrote:

> Hello Team
>
> What is the difference between
>
> android export signed application package or  export android application
>
> which is a better way to sign an app
>
> Please Suggest
>
> TX
> RK
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Trying to better understand how to add menu's to the pages within my app

2015-04-13 Thread Justin Anderson
It also seemed like you have dialogs and that from those dialogs you want
to be able to navigate to the other screens in the app.  If I read that
correctly, please don't do that. :-)

On Thu, Apr 9, 2015 at 9:35 PM TreKing  wrote:

>
> On Wed, Apr 8, 2015 at 4:07 PM, Daniel Chacon  wrote:
>
>> Looking at the "Up vs. Back" portion within the dev section that was
>> provided, it seems "back" is the way, but having the ability to jump right
>> back would be great
>
>
> You probably want a NavigationDrawer
> 
> instead of a menu with dropdown items.
>
>
> -
> 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.


Re: [android-developers] Trying to better understand how to add menu's to the pages within my app

2015-04-08 Thread Justin Anderson
*"What am i doing wrong that i have to hit back so many times to get back
to where i was originally?"*

Talk about a loaded question... You are apparently using activities for
each of your screens.  That is fine, but when you call startActivity() from
within another activity that is the default behavior you get with the back
button.  This is a very basic Android concept.

I highly suggest before you do ANY more development you take some time to
read through the Design section (specifically the pattern sub-section) of
the Android Developer website and figure out how you want your app to work.

http://developer.android.com/design/patterns/index.html

Once you've figured out HOW you want your app to work, and the different
patterns available, you can then start developing your app and ask more
specific questions.

On Wed, Apr 8, 2015 at 12:10 PM Dan Cha  wrote:

> So within my app currently, we have 3 main pages.
>
> The main home page
> A create/submit page
> and a view page
>
> Because those pages work off webservice to populate 2 drop downs, i wanted
> to create "settings/options" where the user can manage the data within the
> drop down.
>
> So current i have the menu setup in the top left corner of the pages, when
> you click that, you get the dropdown menu with a few options..
>
> But something i noticed, is if i chose any item from that menu, and then
> chose another menu item and then again another item, only way to get back
> to the original window i was on is to hit back x number of times(x being
> how ever many menu items i chose to select.
>
> Here is my code to open the new selected menu item:
>
> @Override
> public boolean onOptionsItemSelected(MenuItem item) {
> Intent intent = new Intent();
> switch (item.getItemId())
> {
> case R.id.action_settings:
> intent.setComponent(new ComponentName(ViewInventoryActivity.this,
> SettingsActivity.class));
> startActivity(intent);
> return true;
>
> case R.id.action_about:
> intent.setComponent(new
> ComponentName(ViewInventoryActivity.this, AboutActivity.class));
> startActivity(intent);
> return true;
> }
> return super.onOptionsItemSelected(item);
> }
>
> What am i doing wrong that i have to hit back so many times to get back to
> where i was originally?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Proper way to setup app to notify user(if opt in) when new items are added to database

2015-04-06 Thread Justin Anderson
That would probably be a push notification

On Mon, Apr 6, 2015, 4:23 PM Dan Cha  wrote:

> So working on a app that will list inventory items for a few users.. IF
> the user opts to be notified, what is the proper way to implement such
> notifications?
>
> The app works via a webservice that allows the entry of items and also
> returns full list to the user when they select to view.
>
> What would that be considered so i can google the appropriate technique.
>
> 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 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] Which layout(s) can help me ?

2015-04-06 Thread Justin Anderson
*"Sounds like a LinearLayout with vertical orientation. The first item (top
image) would have a layout_weight of 0.25 and layout_gravity of
center_horizontal, the second (button) a weight of 0.75 and have
layout_gravity = center."*

I'm not sure he wants that top image to always take up 25% of the vertical
space.  It sounds to me like he wants the image to take up whatever space
it is supposed to and then have the button centered on the screen with
whatever is left.  The above solution would also cause the button's height
to take up the entire remaining space on the screen, which I don't think
was the OP's intent.

I would suggest not using layout weights and wrapping the button in a
layout (perhaps a frame layout since the button is supposed the only thing
going in there.  Something like this should work:

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












On Sun, Apr 5, 2015 at 9:03 AM TreKing  wrote:

>
> On Sun, Apr 5, 2015 at 6:55 AM, NewToAndroid  wrote:
>
>> How / which layout or layouts should I use here ??
>
>
> Sounds like a LinearLayout with vertical orientation. The first item (top
> image) would have a layout_weight of 0.25 and layout_gravity of
> center_horizontal, the second (button) a weight of 0.75 and have
> layout_gravity = center.
>
>
> -
> 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.


Re: [android-developers] Orientation listener not working in Android Fragment

2014-08-29 Thread Justin Anderson
As I said before...

Also, as an FYI, if you provide some code of how you are loading the
> fragments, you might get some better info on how to solve your problem.
>

You are not going to get any help without showing us some code for how you
are managing your fragments...

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


On Fri, Aug 29, 2014 at 1:23 AM, askl  wrote:

> Thanks Justin for your reply.
>
> Yes you got my issue. But not totally. As you said that, in fragment
> layout is not change when device rotation. I had to add
>
> android:configChanges
>
>
> line in manifest file. Mainly in my application has 3 tabs and first tab
> has two inner fragment. So please help me to get orientation event in inner
> fragment in First tab. If i remove that manifest code line,  when device
> rotation inner fragment will be goes back, That mean automatically reload
> main fragment when rotation.
>
> Thnx
>
>
>
>
> On Friday, 29 August 2014 11:59:52 UTC+5:30, MagouyaWare wrote:
>
>> If i launch Inner main fragment 2 and i tap on anther next tab. when i
>>> came back to the Home Tab, the Inner main fragment 2 is not visible and
>>> it goes to the Home Tab automatically.
>>>
>>
>> It sounds like you have a bug. To fix it, you should probably put some
>> breakpoints in your fragment's lifecycle callbacks and figure out why you
>> are getting unexpected bhavior.
>>
>> Finally i fixed that issue using this code,
>>>
>>>  >> android:name=".HomeActivity"
>>> android:configChanges="orientation|screenSize"
>>> android:label="@string/title_activity_operation" >
>>>  
>>>
>>> This is a very common approach to "fixing" errors, but it is generally a
>> very very very bad idea.  Unless you know what you are doing, you do not
>> want to be using the configChanges attribute.
>>
>> But the problem is, i want to set deference layout with orientation
>>> change (portrait/landscape) for a inner fragment in the main fragment. But
>>> It's not working and orientation listener is not working in an inner
>>> fragment.
>>>
>>
>> I'm not sure I fully understand what you are trying to say here...  But
>> what I think you are saying is that you have two layout files (one in
>> res/layout and one in res/layout-land) but when you rotate the device the
>> layout doesn't get reloaded. Is that correct?  If so, I refer to my comment
>> above... specifying configChanges for an activity is generally a very very
>> very bad thing to do, unless you really know what you are doing.
>>
>> Your configChanges line above tells Android to ignore orientation
>> events... So naturally, when you rotate the device, it ignores the fact
>> that the orienation changed and the layout doesn't get reloaded.   Remove
>> that line, and then your layouts should magically work on device rotation.
>> But... that will then bring back the other but you mentioned... so you will
>> need to start doing some debugging to figure out why you are getting
>> unexpected behavior.
>>
>> Already I've created two deference XML layouts (layout-large-land and
>>> layout-land)for a single inner fragment. But the device when rotate UI not
>>> change. How can i solve this issue.
>>>
>>
>> See above...  Also, as an FYI, if you provide some code of how you are
>> loading the fragments, you might get some better info on how to solve your
>> problem.
>>
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Thu, Aug 28, 2014 at 10:45 PM, askl  wrote:
>>
>>>  I've a Project Android Tab Pager with Fragments. And there're two
>>> inner fragments in Main fragment.
>>>
>>>- Home Tab (Fragment)
>>>   - Inner main fragment 1
>>>   - Inner main fragment 2
>>>- Next Tab 1 (Fragment)
>>>- Next Tab 2 (Fragment)
>>>
>>> If i launch Inner main fragment 2 and i tap on anther next tab. when i
>>> came back to the Home Tab, the Inner main fragment 2 is not visible and
>>> it goes to the Home Tab automatically. Finally i fixed that issue using
>>> this code,
>>>
>>>  >> android:name=".HomeActivity"
>>> android:configChanges="orientation|screenSize"
>>> android:label="@string/title_activity_operation" >
>>

Re: [android-developers] Orientation listener not working in Android Fragment

2014-08-28 Thread Justin Anderson
>
> If i launch Inner main fragment 2 and i tap on anther next tab. when i
> came back to the Home Tab, the Inner main fragment 2 is not visible and
> it goes to the Home Tab automatically.
>

It sounds like you have a bug. To fix it, you should probably put some
breakpoints in your fragment's lifecycle callbacks and figure out why you
are getting unexpected bhavior.

Finally i fixed that issue using this code,
>
>   android:name=".HomeActivity"
> android:configChanges="orientation|screenSize"
> android:label="@string/title_activity_operation" >
>  
>
> This is a very common approach to "fixing" errors, but it is generally a
very very very bad idea.  Unless you know what you are doing, you do not
want to be using the configChanges attribute.

But the problem is, i want to set deference layout with orientation change
> (portrait/landscape) for a inner fragment in the main fragment. But It's
> not working and orientation listener is not working in an inner fragment.
>

I'm not sure I fully understand what you are trying to say here...  But
what I think you are saying is that you have two layout files (one in
res/layout and one in res/layout-land) but when you rotate the device the
layout doesn't get reloaded. Is that correct?  If so, I refer to my comment
above... specifying configChanges for an activity is generally a very very
very bad thing to do, unless you really know what you are doing.

Your configChanges line above tells Android to ignore orientation events...
So naturally, when you rotate the device, it ignores the fact that the
orienation changed and the layout doesn't get reloaded.   Remove that line,
and then your layouts should magically work on device rotation.  But...
that will then bring back the other but you mentioned... so you will need
to start doing some debugging to figure out why you are getting unexpected
behavior.

Already I've created two deference XML layouts (layout-large-land and
> layout-land)for a single inner fragment. But the device when rotate UI not
> change. How can i solve this issue.
>

See above...  Also, as an FYI, if you provide some code of how you are
loading the fragments, you might get some better info on how to solve your
problem.


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


On Thu, Aug 28, 2014 at 10:45 PM, askl  wrote:

>  I've a Project Android Tab Pager with Fragments. And there're two inner
> fragments in Main fragment.
>
>- Home Tab (Fragment)
>   - Inner main fragment 1
>   - Inner main fragment 2
>- Next Tab 1 (Fragment)
>- Next Tab 2 (Fragment)
>
> If i launch Inner main fragment 2 and i tap on anther next tab. when i
> came back to the Home Tab, the Inner main fragment 2 is not visible and
> it goes to the Home Tab automatically. Finally i fixed that issue using
> this code,
>
>   android:name=".HomeActivity"
> android:configChanges="orientation|screenSize"
> android:label="@string/title_activity_operation" >
>  
>
> But the problem is, i want to set deference layout with orientation change
> (portrait/landscape) for a inner fragment in the main fragment. But It's
> not working and orientation listener is not working in an inner fragment.
>
> Already I've created two deference XML layouts (layout-large-land and
> layout-land)for a single inner fragment. But the device when rotate UI not
> change. How can i solve this issue.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] BitmapMesh Refreshing

2013-12-12 Thread Justin Anderson
What have you tried so far?

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


On Fri, Nov 1, 2013 at 1:21 AM, ashwini vandanapu <
ashwini.vandan...@gmail.com> wrote:

> Dear All,
>
>
>   In my android application, i want to apply image warp effect
> for image. For that i use BitmapMesh from api demos. The problem is that,
> it's not saving warped image. Whenever i touch image, it refresh the image
> and doesn't save my previously warped image.I want to save that image
> whenever user perform warp operation. If any one know kindly share with and
> help me out.
>
>
>
> Thanks&Regards,
> Ashwini V.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.


Re: [android-developers] Status Bar Notification

2013-12-12 Thread Justin Anderson
Complete shot in the dark here... but have you tried giving your
notification an id other than 0?

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


On Sun, Dec 8, 2013 at 10:51 PM, Rahul Kaushik wrote:

> Hi,
>
> Status bar notififcation is not showing up in Sony Xperia z with android
> version 4.2
>
> Code
>
> NotiCountValue= NotiCountValue + ncount;
>
>  NotificationManager mNotificationManager = (NotificationManager) context
>  .getSystemService(Context.NOTIFICATION_SERVICE);
> CharSequence contentTitle =   "FranConnect Mobile";
>  int icon = R.drawable.fcicon;
> Notification notification = new Notification();
>  CharSequence contentText =NotiCountValue+ " Unread Notifications.";
>  Intent notifyIntent = new Intent(context,MainActivity.class);
>  notifyIntent.setClass(context, hybridlistactivity.class);
>  PendingIntent pendingintent =
> PendingIntent.getActivity(context, 0,
> notifyIntent,  PendingIntent.FLAG_UPDATE_CURRENT |
> Notification.FLAG_AUTO_CANCEL);
>  notification.icon=icon;
>  notification.setLatestEventInfo(context, contentTitle, contentText,
> pendingintent);
>  mNotificationManager.notify(0, notification);
>
>
> Please suggest
>
> Thanks
> RK
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.


Re: [android-developers] Reverse Fragment Stack Order

2013-12-12 Thread Justin Anderson
What specifically are you trying to accomplish?  Maybe there is a better
way to get the same effect...

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


On Wed, Dec 11, 2013 at 2:58 PM, Alex Fu  wrote:

> Is there a way to reverse the order in which Fragments are added and drawn
> onto the screen? Instead of the newest Fragment added being on top, I'd
> like to try and get the newest Fragment added on bottom. I tried looking
> into the ViewGroup that a Fragment is attached to and maybe altering the
> behavior in which it lays out it's children, but it seems like that has no
> bearing on the order/z-index. See https://gist.github.com/alexfu/7918808 for
> reference.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.


Re: [android-developers] Re: Get Area code (DDD)

2013-12-12 Thread Justin Anderson
http://lmgtfy.com/?q=android+get+phone+number+programmatically

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


On Wed, Dec 11, 2013 at 6:41 PM, RichardC wrote:

> Most SIMs do not know their own phone number as they do not need that
> information.  The mobile phone network uses IMEI codes for identification
> and connection.
>
>
> On Wednesday, December 11, 2013 1:51:26 PM UTC, Italo Mendonça Rocha wrote:
>>
>> Hello,
>>
>> I need to retrieve the full phone number from my SIM, including the area
>> code. Does anyone know how I do it?
>>
>> Thanks, Ítalo.
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.


Re: [android-developers] Filename with invalid encoding crashes File.list()

2013-12-12 Thread Justin Anderson
On Thu, Dec 12, 2013 at 5:19 AM, Martin Heller wrote:

> Hopefully this issue is resolved soon.
>

That's a good one... This is Google we are talking about here. :-)

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

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


Re: [android-developers] how to get item from grid view at specific postion

2013-12-11 Thread Justin Anderson
GridView uses an adapter... all of the changes you are talking about doing
should be done in your adapter's getView() method.

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


On Wed, Dec 11, 2013 at 10:09 AM, TreKing  wrote:

>
> On Tue, Dec 10, 2013 at 11:50 PM, Amit Mangal  > wrote:
>
>> i get position of button pressed using get tag but i am unable to get the
>> relative layout on whihc image and button is displaying.
>>
>> any idea how to get that layout view
>
>
> Your question is not really clear. What does your hierarchy look like?
>
>
> -
> 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.


Re: [android-developers] How to parse this json

2013-12-10 Thread Justin Anderson
>
> How to parse this json

Write a json parser. Or use an existing parsing library, like gson.

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


On Mon, Dec 9, 2013 at 11:53 PM, Arun Kumar K wrote:

> [
> [
> "strServiceToken",
> "intVoteNowMemberID",
> "intAbort",
> "strInstallURL",
> "strImageURL"
> ],
> [
> "46D2BAB0-5AA0-481D-9D0A-B37C38CC962E",
> "2",
> "0",
> "",
> "http://xxx.xxx.com/VNImages/";
> ]
> ]
>
> --
> *Regards*
> *Arun*
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.


Re: [android-developers] Re: Removing a Fragment from FragmentPagerAdapter

2013-12-06 Thread Justin Anderson
Does this apply?
http://stackoverflow.com/questions/9758799/how-to-remove-fragment-from-fragmentpageradapter

If not, there were numerous other links on Google by searching for "android
fragmentpageradapter remove fragment"

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


On Sat, Nov 2, 2013 at 9:46 AM, Boozel  wrote:

> Sorry its actually the *Navigation Type: Swipe Views + Title Strip* type
>
>
> On Saturday, November 2, 2013 5:45:08 PM UTC+2, Boozel wrote:
>>
>> Hi
>>
>> I have created an Activity from the template of a Blank Activity (
>> http://developer.android.com/tools/projects/templates.html#blank-activity)
>> with *Navigation Type: Tabs* or *Tabs + Swipe*
>>
>>
>> My code is below. I cannot find a way to remove a fragment. I can delete
>> a tab from the pager at the Top but the fragment below is not removed.
>> Please can you tell me what I am doing wrong? Any help would be appreciated.
>>
>> Thanks in advance.
>>
>> import android.content.Context;
>> import android.content.Intent;
>> import android.os.Bundle;
>> import android.support.v4.app.Fragment;
>> import android.support.v4.app.FragmentActivity;
>> import android.support.v4.app.FragmentManager;
>> import android.support.v4.app.FragmentPagerAdapter;
>> import android.support.v4.view.ViewPager;
>> import android.util.Log;
>> import android.view.LayoutInflater;
>> import android.view.Menu;
>> import android.view.MenuItem;
>> import android.view.View;
>> import android.view.ViewGroup;
>> import android.widget.TextView;
>> import android.widget.Toast;
>>
>> import java.util.ArrayList;
>>
>> public class MainActivity extends FragmentActivity {
>> private static final String TAG = "Tag";
>>
>> SectionsPagerAdapter mSectionsPagerAdapter;
>> Context context;
>>
>> ArrayList titles;
>> ArrayList frags;
>>
>> /**
>>  * The {@link ViewPager} that will host the section contents.
>>  */
>> ViewPager mViewPager;
>>
>>
>> @Override
>> protected void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> context = getApplicationContext();
>>
>> //
>> titles = new ArrayList();
>> frags = new ArrayList();
>> titles.add("One");
>> titles.add("Two");
>> titles.add("Three");
>> titles.add("Four");
>> createFrags();
>> //=
>>
>> setContentView(R.layout.activity_main);
>>
>> // Create the adapter that will return a fragment for each of the
>> three
>> // primary sections of the app.
>>
>> mSectionsPagerAdapter = new SectionsPagerAdapter(
>> getSupportFragmentManager());
>>// Set up the ViewPager with the sections adapter.
>> mViewPager = (ViewPager) findViewById(R.id.pager);
>> mViewPager.setAdapter(mSectionsPagerAdapter);
>> }
>>
>> public void createFrags()
>> {
>> for (int i = 0; i < titles.size(); i++)
>> {
>> Fragment fragment = genFrag(i+"");
>>  frags.add(fragment);
>> }
>> }
>>
>> public Fragment genFrag(String i)
>> {
>> Fragment fragment = new DummySectionFragment();
>> Bundle args = new Bundle();
>> args.putString(DummySectionFragment.ARG_SECTION_NUMBER, i);
>> fragment.setArguments(args);
>> return fragment;
>> }
>>
>> @Override
>> public void onDestroy()
>> {
>> super.onDestroy();
>> }
>>
>> @Override
>> public boolean onCreateOptionsMenu(Menu menu) {
>> // Inflate the menu; this adds items to the action bar if it is
>> present.
>> getMenuInflater().inflate(R.menu.main, menu);
>> return true;
>> }
>>
>> @Override
>> public boolean onOptionsItemSelected(MenuItem item) {
>> Log.d(TAG,"onOptionsItemSelected");
>> // Handle item selection
>> switch (item.getItemId()) {
>> case R.id.action_settings:
>> Log.d(TAG,"Settings menu item pressed");
>> Toast.makeText(this,"Settings",Toast.LENGTH_LONG);
>>
>>  

Re: [android-developers] How to get Twitter authorization without WebView interface?

2013-12-06 Thread Justin Anderson
I would check on a Twitter API forum...

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


On Sun, Nov 3, 2013 at 1:53 PM, Jonathan Chacón Barbero <
tyflos2...@gmail.com> wrote:

> Hello,
>
> I'm developing a Twitter client and I get the Twitter authorization
> account using a WebView control to get the PIN and other data for
> authorization.
>
> Because of some accessibility problems with WebView I can't use a WebView
> control. I thought of designing a native interface with two EditText
> controls for User and password fields. After getting the login data I need
> to use this data with the Twitter authorization page without a WebView
> control but I don't know how can I do it.
>
> I looked for any tutorial or documentation to do it but I could not find
> anything.
>
> Any help?
>
> The project is for Android 4.0 or higher
>
> Thanks in advance
>
>  Regards
>  Jonathan Chacón Barbero
> Accessibility, usability and new technologies consultant
> Accessibility should be a base of the project, it should not be a patch of
> the product
> Tlf/Phone: +34 679953948
> *e-Mail: *jonathancha...@me.com | jonathanchaconbarb...@gmail.com
> *Blog:* http://www.programaraciegas.net
> *Twitter:* http://www.twitter.com/jonathanchacon
> *LinkedIn:* http://es.linkedin.com/in/jonathanchacon
> *Facebook:* http://www.facebook.com/jonathan.chacon.barbero
> *Messenger:* tyf...@hotmail.com
> *GTalk:* tyflos2...@gmail.com
> *Skype:* Tyflos_
> *FaceTime:* jonathanchaconbarb...@gmail.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 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.


Re: [android-developers] Integrate BBM in Android Apps

2013-12-06 Thread Justin Anderson
I would suggest checking on a BlackBerry forum...  According to
http://crackberry.com/bbm:



*"BBM (formerly BlackBerry Messenger) is a data-based instant messaging
network that is exclusive to BlackBerry devices. Messages are sent over
BlackBerry’s private network, ensuring security and privacy."*
Doesn't sound very promising...

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


On Tue, Dec 3, 2013 at 11:32 PM, Ratheesh Valamchuzhy
wrote:

> Hi All
>
> I am working on Android app in which has an option to connect with BBM
> contact(PIN). Is there any API is available for achieve this. How we can do
> this in Android . Any help is thankful
> --
> --
> ωιтн яєgαя∂ѕ
> Ratheesh ...
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.


  1   2   3   4   5   6   7   8   9   10   >