[android-developers] Sample Broken?

2016-01-12 Thread P Hill
I generated a New | Fragment | List (with a +1 Button)
and without touching anything, but rebuilding the project, the Preview
window/view

I get a Rendering Problem (overlay on what it was trying to show in design
mode).
"The following classes could not be instantiated

   -- com.google.android.gms.plus.PlusOneButton

Some web searching and apparenty the answer maybe:
" The most likely reason is that you did not include this framework in your
application."

IDE Question: Is there a way Android Studio (IntelliJ) I can copy the
Rendering Problem text, so that I could actually past it (or part of it)
here?

Question 2,3,4: OK, what does that mean to add a framework to my
application?
How do I figure out what framework I'd need? How do I that?

Bonus Question: What kind of useless example doesn't generate a complete
runnable example?
Am I not understanding how these example work?

-Paul

-- 
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/CAFR9p%3DMQvfLYHcQmp%3DfAotOesiOXnESEtPZ-k3uW7ztCDjAW-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Customize phonebook , contact problem

2016-01-12 Thread li he
I need to display contacts in my app. Just like whatsapp, show a small icon 
on the right for each item in list view.

I create a custom provider to copy the whole contact and register a 
observer for CRUD. Also I upload all the phone numbers to sever ,checking 
 whether it is registered. 

My problem is it is rather slow. If delete 5 contacts, my database always 
keep 1-2 contact undeleted. That because the observer' on change called too 
frequently.

Anyway, my local contact table not always sync with phone native table. And 
I had to spend a lot effort on sync. 

Is there any method easier?  Or I just read native phone table, and extend 
the table (adding some extra columns: avatar, status, last login time. 
etc).?

I know it might involved with syncadapter and account manager, 
contentprovider. but How to extend that table? or How to set a customize 
MIME type for existing contact? 


-- 
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/b7936334-281b-423b-9d5f-6d987634e301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] why ScriptIntrinsics faster than mine?RenderScript

2016-01-12 Thread 万岁面神
I am trying to convert yuv to rgb and I build a yuv2rgb function with 
RenderScript .then I find that ScriptIntrinsicYuvToRGB 

 is significantly fast than mine. why it is so fast?
does the custom renderscript can be fast like that?

-- 
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/c0914dc6-18bc-4ce7-a3e3-57a4cc0a7a80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Building for System API

2016-01-12 Thread Satish Ch
I'm also looking for it. Please share your thoughts.


On Tuesday, June 8, 2010 at 2:13:30 AM UTC+5:30, ivan wrote:
>
> Hello, 
>
> I'm working on an extensive project that will be prepackaged on 
> certain phones.  I'm researching using some of the existing Android 
> providers such as DownloadProvider, and as such I need access to an 
> Android System JAR file containing all the necessary classes. 
>
> How do I get my hands on such a JAR file, or should I just attempt to 
> build one from the Android source code? 
>
> 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/6f8586d6-c6da-4b64-81dc-c09153e5c873%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android studio inherit class from external module

2016-01-12 Thread Adrian Ivasku
I have established that if I extend a class from a module that does NOT 
contain NDK code, it works fine. I can extend an abstract class in my main 
module app, but only when I try to extend the module that contains c++ and 
Java code it does not. The module builds ok, but it doesn`t work as a 
dependency.

Do you have experience with NDK and Android Studio? Any idea what could be 
the problem ?

On Sunday, January 10, 2016 at 9:14:10 PM UTC+1, niks wrote:
>
> Hi Adrian,
>
> I will look into your issue. But from what I read, really quickly, from 
> your stakeoverflow post I saw that it works fine in eclipse.
>
> I can tell you this from my experience:
>
> I program in both eclipse and android studio but I prefer eclipse. The 
> reason is that android studio caused me issues similar to the one you are 
> currently facing.
> IF it works for you in eclipse - and from what I saw - you are 
> respectively comfortable in working in the eclipse environment - 
>
> hence, stick with eclipse to complete your app.
>
> I am pretty much sure that once you package your app in eclipse it will 
> run without issues - something that you should also check on an actual 
> device before uploading; although I strongly believe that you will have no 
> problems. 
>
> Keep me updated of how things proceed. And yes I will try to look into the 
> issue - but I do not promise anything, ok?
>
> Τη Κυριακή, 10 Ιανουαρίου 2016 - 9:22:31 μ.μ. UTC+2, ο χρήστης Adrian 
> Ivasku έγραψε:
>>
>> Hello everybody, I have a strange question about inheritance from classes 
>> that are from diferent modules. I have posted the question here:
>>
>>  
>> http://stackoverflow.com/questions/34698454/android-studio-inherit-class-from-external-module
>>
>> If anybody has any idea or advice, please share.
>>
>> Greetings
>>
>

-- 
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/41463f1b-07ed-4f4c-b84d-5630af5db49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android studio inherit class from external module

2016-01-12 Thread Adrian Ivasku
I have established that if I extend a class from a module that does NOT 
contain NDK code, it works fine. I can extend an abstract class in my main 
module app, but only when I try to extend the module that contains c++ and 
Java code it does not. The module builds ok, but it doesn`t work as a 
dependency. Pure Java module works with pure Java main module app, only if 
it contains NDK code it cannot be extended.

Do you have experience with NDK and Android Studio? Any idea what could be 
the problem ?

On Sunday, January 10, 2016 at 9:14:10 PM UTC+1, niks wrote:
>
> Hi Adrian,
>
> I will look into your issue. But from what I read, really quickly, from 
> your stakeoverflow post I saw that it works fine in eclipse.
>
> I can tell you this from my experience:
>
> I program in both eclipse and android studio but I prefer eclipse. The 
> reason is that android studio caused me issues similar to the one you are 
> currently facing.
> IF it works for you in eclipse - and from what I saw - you are 
> respectively comfortable in working in the eclipse environment - 
>
> hence, stick with eclipse to complete your app.
>
> I am pretty much sure that once you package your app in eclipse it will 
> run without issues - something that you should also check on an actual 
> device before uploading; although I strongly believe that you will have no 
> problems. 
>
> Keep me updated of how things proceed. And yes I will try to look into the 
> issue - but I do not promise anything, ok?
>
> Τη Κυριακή, 10 Ιανουαρίου 2016 - 9:22:31 μ.μ. UTC+2, ο χρήστης Adrian 
> Ivasku έγραψε:
>>
>> Hello everybody, I have a strange question about inheritance from classes 
>> that are from diferent modules. I have posted the question here:
>>
>>  
>> http://stackoverflow.com/questions/34698454/android-studio-inherit-class-from-external-module
>>
>> If anybody has any idea or advice, please share.
>>
>> Greetings
>>
>

-- 
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/c090e013-eb90-43d8-8ef3-c0228d7c66d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Keep Android Wear device connected to WiFi AP and listening

2016-01-12 Thread Marcel Florian


I have the *Moto 360 2nd* generation with Android Wear 1.3.0.2230669. It is 
connected to a WiFi Access Point. *Bluetooth* is switched *off* and the 
watch is *not paired*.

Some tests with *Kismet* showed, that the watch is *not detected* on the 
Access Point as long as it is in silent mode.

I have a project in which I want to *send notifications to the watch by 
WiFi* (I plan to use MQTT). It is important that the watch should not be 
paired with a smartphone.

How can I accomplish this? Can I install a client on the watch that stays 
connected to the WiFi AP and is listening to the MQTT channel?

-- 
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/637c59b6-066d-4ee4-a23e-aca2ca20bd2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Scrolling to view in CoordinatorLayout shows only partially the view

2016-01-12 Thread simonsysarbejder


I have made an Android app containing a CoordinatorLayout with a AppBar and 
a NestedScrollView. 


In my NestedScrollView I have a list of items, and a button which scroll to 
an item in my NestedScrollView.

When clicking the button, the Android app scroll down to the item, but 
doesn't show the whole item, only partially: 
http://i.stack.imgur.com/8kuq0.png

I expected something like the following: http://i.stack.imgur.com/k0A5N.png


It seems like the amount the app needs to scroll is about the same size as 
the AppBar, in order to show the whole view. If I remove the scroll flag in 
my layout file below, I get the expected behavior.

I'm in doubt if View.requestRectangleOnScreen() is the right method to 
call, or if I should use a different layout then NestedScrollView? What do 
I do wrong?


My activity is coded as follows:


package com.example.sij.coordinatorlayoutbug;

import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

TextView itemToNavigateTo;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

itemToNavigateTo = (TextView)findViewById(R.id.itemToNavigateTo);
Button navigatorButton = (Button) findViewById(R.id.navigator_button
);
navigatorButton.setOnClickListener(navigateToItemListener());
}

View.OnClickListener navigateToItemListener() {
return new View.OnClickListener() {
@Override
public void onClick(final View v) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
itemToNavigateTo.requestRectangleOnScreen(new Rect(
0, 
0, 
itemToNavigateTo.getWidth(), 
itemToNavigateTo.getHeight()));
}
});
}
};
}
}


And the layout:

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
















 





-- 
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/e979c2be-31c7-471e-ac7b-f934b8300d91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How are big android applications managaging and optimizing network calls specially for poor networks like 2g ?

2016-01-12 Thread gjs
Hi,

Look at the existing reference materials already provided eg 

http://developer.android.com/training/efficient-downloads/index.html

http://developer.android.com/training/efficient-downloads/efficient-network-access.html

http://developer.android.com/training/basics/network-ops/index.html

Regards

-- 
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/2b11fecb-1628-4aa5-86c8-ebc684877b59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Play Store Error 505

2016-01-12 Thread Δημήτρης Ντέμος
Hello. I'm the developer of an app that shows fuel prices in Greece, on a 
Google Map.

More than 2000 users successfully downloaded the app with android versions 
4.1 to 6.0.1 without any issue. But there are 2 reports that they can't 
install it because it shows "Error 505".

I made some research and the error is usually caused by a permission that 
is shared among different apps. I checked my app and the permissions for 
Google Maps have my package name in front, not something default like 
"com.example...etc".

So i don't know if it is my app's fault or users'

If someone knows something i will appreciate it.

Thank you in advance!

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


[android-developers] Re: App without Launcher Icon

2016-01-12 Thread Gaurav Naik


> But i need broadcast Receiver so it is possible to remove launcher 
> activity & still get BroadCast Receiver,
>
As per  i know after 3.0 if you remove  this you didn't get the BroadCast Receiver ?

-- 
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/8b4dc020-78da-44f2-9e75-6d1ecfe1c083%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-01-12 Thread Fernando Nicolei Esperida


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.


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

2016-01-12 Thread Hugo Teijiz
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.


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] TabLayout - tab doesn't refresh view

2016-01-12 Thread Hugo Teijiz
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 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/4ac4ec61-7c1a-49f1-aa6f-974b19e4dd14%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

Θέμα: [android-developers] Play Store Error 505

2016-01-12 Thread niksap1
  Try out t‎he following link:‎http://stackoverflow.com/questions/27010548/unknown-error-code-during-application-install-505Hope it helpsΕστάλη από το BlackBerry 10 smartphone μου.Από: Δημήτρης ΝτέμοςΕστάλη: Τρίτη, 12 Ιανουαρίου 2016 - 16:08Προς: Android DevelopersΑπάντηση σε: android-developers@googlegroups.comΘέμα: [android-developers] Play Store Error 505Hello. I'm the developer of an app that shows fuel prices in Greece, on a Google Map.More than 2000 users successfully downloaded the app with android versions 4.1 to 6.0.1 without any issue. But there are 2 reports that they can't install it because it shows "Error 505".I made some research and the error is usually caused by a permission that is shared among different apps. I checked my app and the permissions for Google Maps have my package name in front, not something default like "com.example...etc".So i don't know if it is my app's fault or users'If someone knows something i will appreciate it.Thank you in advance!



-- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a9d1def3-198d-4350-8ad8-77072207b103%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/20160112160434.4833359.69947.3351%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Game not playing on some compatiable devices

2016-01-12 Thread 'Jean-Baptiste Queru' via Android Developers
There are many devices out there with screens below 320 dpi. Even if your app 
is phone-only, there are many hdpi phones out there (240 dpi) 
(480*{800,848,854}), and mdpi isn't quite dead yet (160 dpi).
Chances are, an issue very directly related to the screen density would affect 
all such devices, and therefore more than 3 device models. I suspect that your 
issue is not so directly related to the screen density, but to something more 
subtle.
JBQ
--Jean-Baptiste M. "JBQ" QuéruMobile Excellence Architect, YahooSent from the 
Yahoo Mail app

On Monday, January 11, 2016, 5:19 PM, Terry Hess  
wrote:

I got a couple bad reviews saying my game stops playing on their devise. After 
looking at the devises with bad reviews the only thing they have in common is 
the dpi. The three devices with bad reviews have a dpi lower than 320. I have a 
lot of good reviews and all of the devises have a dpi of 320 or higher. My 
question is would the dpi of the devise affect the games play ability?


-- 
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/05c75325-7ec3-4bbd-b365-11a816bd105d%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/451316854.3154264.1452612425502.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: access to internal telephony

2016-01-12 Thread R.Rajan
hi

My dialing no is like this

800505,4,1234567890,00919446481000

Up to last coma, its working. but the last 14 digit is the destination 
mobile no to dial.
but its not taking .

any chance to dial the above numbers using  this code

Uri uri = Uri.parse("tel:"+ number);
Intent intent = new Intent(Intent.ACTION_CALL, uri);
startActivity(intent);

Thanks
Ribu






On Monday, February 23, 2009 at 4:49:17 PM UTC, Rimma Sukhovsky wrote:
>
> sorry for the delay. for any destination number (say 
> "212333,4;444"), it would be: 
>
>
> destNum = destNum.replaceAll("#", ENCODE_POUND); 
> if (destNum.endsWith(ENCODE_POUND)) //calls ending with "#" will fail 
> { 
> destNum= destNum.substring(0, destNum.length()-ENCODE_POUND.length 
> ()); 
> } 
> Intent mIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + 
> destNum)); 
>
> where: 
> private static final String ENCODE_POUND = "%23"; 
>
>
> On Feb 10, 9:22 am, "shimo...@gmail.com"  wrote: 
> > Hi, 
> > 
> > Can you share the code snippet you use to call, for example - 
> > "212333,4;444" ? 
> > 
> > (the comma should yield a "timed" pause, the ';' - a "hard" pause - 
> > waiting for the user to acknowledge before dialing) 
> > 
> > Thanks ! 
> > 
> > On Feb 9, 1:19 pm, legerb  wrote: 
> > 
> > > I had problems with the '#', but when encoded, it works fine. With 
> > > other symbols i didn't have any problems. And i remember that when '#' 
> > > was the last char (even encoded), it was always stripped. 
> > 
> > > On Feb 9, 9:25 am, "shimo...@gmail.com"  wrote: 
> > 
> > > > Hi, 
> > 
> > > > Using a DEV phone, seems I can not make calls to numbers containing 
> > > > extra digits (i.e. pauses - either 'hard' or 'timed'). They are 
> > > > stripped. 
> > 
> > > > If I start the call from the built-in contacts app using the 
> > > > ACTION_VIEW 
> > > > intent and then tapping a phone field with, say - *151,#,1 it is 
> > > > dialed 
> > > > ok. 
> > 
> > > > Is there any intent other than ACTION_CALL I need to use to start a 
> > > > call 
> > > > to a number  like *151,#,1 to have the device call then send 
> those 
> > > > extra digits ? 
> > 
> > > > Or is there any specific intent data ? type ? extra ? 
> > > > Or maybe a formatting ? 
> > 
> > > > TIA 
> > 
> > > > On Feb 8, 6:09 am, Dianne Hackborn  wrote: 
> > 
> > > > > Not any time soon.  Most of the classes there will only work when 
> running 
> > > > > code in the phone process, and making them work in other process 
> would be 
> > > > > significant work. 
> > 
> > > > > Also on the G1 I don't believe that anything in the application 
> processor 
> > > > > even has access the voice data stream, so it just wouldn't be able 
> to do 
> > > > > what you want even if you were modifying the platform itself. 
> > 
> > > > > On Sat, Feb 7, 2009 at 11:04 AM, Gero Mudersbach  
> wrote: 
> > > > > > Hello, 
> > 
> > > > > > are there plans to make com.android.internal.telephony available 
> public? As 
> > > > > > far as I understand it is currently not possible to write e.g. 
> an answering 
> > > > > > machine "within" the current framework (standard sdk), because 
> direct access 
> > > > > > to "acceptCall" and hangup methods is missing. 
> > 
> > > > > > Best 
> > > > > > G. Mudersbach 
> > 
> > > > > -- 
> > > > > Dianne Hackborn 
> > > > > Android framework engineer 
> > > > > hack...@android.com 
> > 
> > > > > Note: please don't send private questions to me, as I don't have 
> time to 
> > > > > provide private support.  All such questions should be posted on 
> public 
> > > > > forums, where I and others can see and answer them. 
> > 
> >

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To 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/0806f6a5-e09e-44eb-9de3-8d9146ae94ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to send MMS in background without using Intents

2016-01-12 Thread Manoj kumar
Hi there,

Can any one help me in this context?

Thanks,
Manoj.

On Mon, Nov 30, 2015 at 1:55 PM, Manoj  wrote:

> Hi,
>
> I want to send mms without using Intents. I found sendMultimediaMessage
> can be used from SMSManager. But I really don't have any idea how to use
> it. Could anyone explain me the usage of it?
>
> Thanks,
> Manoj.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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/VgS3zrUXHNM/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 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/CAETgHsuUHevG3pQS349MuA1y_fvZBxz0VPdTDVQY-8h4XEehoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to Make WebView as Built In Bootstrap , Javascript Resource ?

2016-01-12 Thread Boss Raja
My website needs bootstrap css of about 125KB, and Javascript of about 
200KB - For Displaying the webpage properly.
I want to store the resource( bootstrap + js ) locally into the android 
webview source.

When i am trying to load my website on android webview , it should take the 
resource from local storage.

my webpage header codings :

http://mobtube.nsys.in/source/static/css/bootstrap.min.css>" 
rel="stylesheet">http://mobtube.nsys.in/source/static/js/jquery.min.js>">  
  http://mobtube.nsys.in/source/static/application.js>"> 



Give any solutions

-- 
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/155bfc17-8534-4535-a493-579057fa5528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Θέμα: [android-developers] Play Store Error 505

2016-01-12 Thread Δημήτρης Ντέμος
Thank you for your answer. I've created only 1 android app and only this 
one has this package name. Also all the permissions have the package name 
in front of them so it's not possible that an app is using exactly the same 
declaration.


Τη Τρίτη, 12 Ιανουαρίου 2016 - 6:15:12 μ.μ. UTC+2, ο χρήστης niks έγραψε:
>
> Try out t‎he following link:
>
> ‎
> http://stackoverflow.com/questions/27010548/unknown-error-code-during-application-install-505
>
> Hope it helps
>
> Εστάλη από το BlackBerry 10 smartphone μου.
> *Από: *Δημήτρης Ντέμος
> *Εστάλη: *Τρίτη, 12 Ιανουαρίου 2016 - 16:08
> *Προς: *Android Developers
> *Απάντηση σε: *android-d...@googlegroups.com 
> *Θέμα: *[android-developers] Play Store Error 505
>
> Hello. I'm the developer of an app that shows fuel prices in Greece, on a 
> Google Map.
>
> More than 2000 users successfully downloaded the app with android versions 
> 4.1 to 6.0.1 without any issue. But there are 2 reports that they can't 
> install it because it shows "Error 505".
>
> I made some research and the error is usually caused by a permission that 
> is shared among different apps. I checked my app and the permissions for 
> Google Maps have my package name in front, not something default like 
> "com.example...etc".
>
> So i don't know if it is my app's fault or users'
>
> If someone knows something i will appreciate it.
>
> Thank you in advance!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to android-developers+unsubscr...@googlegroups.com .
> To post to this group, send email to android-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/a9d1def3-198d-4350-8ad8-77072207b103%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/16c7c30b-1d9a-4978-bff8-90d9571b0f1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-01-12 Thread Seth Tucker
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.


[android-developers] android webview upload

2016-01-12 Thread Luis Billy Billy
developed a webview app, I have an option to upload image (input type = 
"file"). In the browser functions normally, but within the webview does not 
work, does not appear the option to choose the image. I would like some 
help to resolve this problem.

-- 
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/58f948b1-032a-414f-8ddf-b78f32d29df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] help needed for my new App

2016-01-12 Thread For Great Vocals
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.


[android-developers] ANDROID_SDK_ROOT undefined when running emulator from command line

2016-01-12 Thread Charles Lamb
I am running on Windows 7 Pro with Android Studio 1.5.1 installed. I am 
able to run the emulator for *"AVD for Nexus One by Google*" fine from the 
AVD Manager but I get an error when I run it from the command line.

C:\Program Files (x86)\Android\android-sdk\tools>emulator -avd 
AVD_for_Nexus_One
_by_Google

C:\Program Files (x86)\Android\android-sdk\tools>emulator: ERROR: This 
AVD's con
figuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined

-- 
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/dadb95fa-aee6-4758-8d15-102ae4ee61ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Social App Development

2016-01-12 Thread Aleem Firnas
Hello , I'm new to the android development, as a group project we have to 
develop a social android application for EV users to track nearest electric 
stations in maps and other than this they have the social app to use among 
them to do features such as share , like comments and forum as well.

For this where do we have to start ? From Android studio can we develop 
this kind of apps?
If we should go with framework what is the (easiest) framework suit and can 
we manage for the 3 months long project?

I have googled enough unfortunately i could not able to decide . Please 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/c3fa468d-76c3-400e-a3d0-1d39b4e2da79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Does verified-boot of Android support antirollback?

2016-01-12 Thread 程洋
Now, Android introduced verified boot feature in 4.4. But it doesn't verify 
the version of boot.img, just signature.
So, what if i publish a boot.img with security holes? Is there anyway to 
prevent users from flashing back the this version?

-- 
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/0afe68e2-9525-4c37-8e42-acce8774f413%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to make interactions like html in android native java?

2016-01-12 Thread Mark Thomson
Hi Everyone,

I am a web developer and I have an android hybrid app built in cordova.

We are moving the app now from hybrid to native for android, now in hybrid 
we have many interactions in which we have use javascript and css3.

Now for example, we have a drag and drop functionality where we use jQuery 
UI to make drag and drop interactions. Now the dragged items can be dropped 
in one out of two containers. Based on dropped items quantity we make a 
seesaw effect using CSS3 transform rotate property. So now this makes a 
weight balancing interaction. You can check the screenshot below.




I found some tutorials on drag and drop but I have no idea on how can I 
make that seesaw effect. So can you guys help me out here, if you had to 
make this thing then what would be your approach, I am not expecting a full 
source code help but just a right way out here some tutorials or examples 
will also do.

I am not an expert in Native Android, but I have previously worked on 
android projects.

-- 
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/d880aa5c-947d-4357-a620-2f92f26632f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Publisher account has been suspended

2016-01-12 Thread Traista Rafael
Good morning , my google publisher account has been suspended for using admob 
from another accouny in my application. I can't access developer console , but 
the app is still on market avaible for download . Is there any chance to get 
the account back ? Thanks in advice !

-- 
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/664b73ce-a1b3-496d-9383-20851c672d45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.