[android-developers] Digest for android-developers@googlegroups.com - 25 updates in 22 topics

SenyaApps Official <contact.senyaapp@gmail.com>: Jun 01 01:36PM -0700

Hi google
I want to know if i integrated Facebook android sdk properly in my game.
sardar khan <sardar.khan299@gmail.com>: Jun 02 02:00AM +0500

Yes you can integrate facebook using facebook adk check thr developer
console of the facebook and get started with android
On Jun 2, 2016 1:40 AM, "SenyaApps Official" <contact.senyaapp@gmail.com>
wrote:
 
SenyaApps Official <contact.senyaapp@gmail.com>: Jun 01 10:11PM +0100

i want to know if i added it properly or not !
 
On Wed, Jun 1, 2016 at 10:00 PM, sardar khan <sardar.khan299@gmail.com>
wrote:
 
TreKing <trekingapp@gmail.com>: Jun 01 04:16PM -0500

> my phone(Mi4 6.0) , app start so slowly, and it cost a long time before
> calling the launcher activity's "oncreate()" method. can somebody give some
> advice tome ?
 
 
Use TraceView to profile your app and identify the bottleneck.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
TreKing <trekingapp@gmail.com>: Jun 01 04:15PM -0500

> has a attrbute windowbackground to avoid white screen when app start ) to
> my launcher activity the background was covered by the soft home button ,
> how can i sove the problem.
 
 
You should post a screenshot of your issue, because it's unlikely the soft
home button is actually covering your app.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
TreKing <trekingapp@gmail.com>: Jun 01 04:14PM -0500


> I have built a custom SDK
 
 
This is outside the scope of this list, which is for developers using
Google's official Android SDK. You should consult groups or forums
dedicated to building custom SDKs or ROMs.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
TreKing <trekingapp@gmail.com>: Jun 01 04:13PM -0500

On Tue, May 31, 2016 at 12:20 AM, Vaibhav Agrawal <
 
> since firebase crash and config is available only after play service 9 ..
> its important to know how much audience is currently at this version .. so
> how can we know it ???
 
 
You can rest reasonably assured that any device with the Google Play store
will be running the latest version of play services. There are APIs to
check the existence of the current version and warn the user if they're
using an outdated version.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
knJoeyn Nguyen <knjoeyn@gmail.com>: Jun 01 01:50PM -0700

Hello can you show how you were able to retrieve the PrivateKey from the
KeyStore? I am getting the same error like the one you mentioned above.
 
Observation-
setClientKeyEntry method throws exception-
java.lang.IllegalArgumentException: Private key cannot be encoded.
setClientKeyEntry method throws this exception if getEncoded method returns
null for the PrivateKey object reference.
It is not clear why getEncoded returns null in this case.
 
On Tuesday, February 25, 2014 at 8:18:46 PM UTC-8, Pradeep Phatak wrote:
himanshu <potential.himanshu4u@gmail.com>: Jun 01 12:29PM -0700

I'm able to Pause a download by setting COLUMN_CONTROL to CONTROL_PAUSED
But when I resume a download by setting COLUMN_CONTROL to CONTROL_RUN, *it
doesn't work*.
The download stays in paused state.
 
Is that a bug ?
 
 
More info:
 
CONTENT_URI for update: content://downloads/my_download/<downloadId>
Greg Lindstrom <greg.lindstrom@gmail.com>: Jun 01 11:32AM -0700

I'm building a Google Play Services multiplayer game in unity with the
Google API and testing it on one physical device and one emulated device
using Android Virtual Devices that came with the SDK. Everything was
working great until I upgraded my Google Play Service API for unity which
now uses Google Play Services 9 instead of 8.7. My physical phone works
however my emulated device says I need the latest version of Google Play
Games. I can't download it through the phone since the emulated image
doesn't have the Google Play Store.
 
Is there a Google API System Image that has the Google Play Services 9 and
the updated Google Play Games?
 
I tried to manually push the latest the APK of Google Play Games to the
emulated device but now it complains that google play games needs the
latest Google Play Services. I tried to push the latest google play
services but the console command fails and says that the Google Play
Service 9 APK is not compatible. Any help here is much appreciated.
bahadirhatunoglu@neozeka.com: Jun 01 09:50AM -0700

Hello all,
I have two layouts, one is below the other one. When user swipes down, I
want upper layout to be bigger, and lower layout to be smaller and vice
versa for when user swipes up. How can I achieve that? The screenshot of my
layout is attached.
Here is my layout :
 
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
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.example.mydomain.myapplication1212.MainActivity">

<LinearLayout
android:id="@+id/above_element"
android:layout_width="match_parent"
android:layout_height="250dp"
 
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/summ"/>
</LinearLayout>

 
<LinearLayout
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_below="@+id/above_element"
 
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/flowers"/>
</LinearLayout>

</RelativeLayout>
Phil Gibbs <javabiker52@gmail.com>: Jun 01 09:17AM -0700

I have a data entry form in which I can choose to enter data multiple
times. After a selection the selected value shows in the spinner. How do
I 'disappear' that selection value from view before another set of data is
entered into the form?
Simon Giddings <mr.s.giddings@gmail.com>: Jun 01 08:47AM -0700

I have a custom view embedded within a ScrollView which displays music
scores.
When I scroll the view, after a time, parts of the top row are not erased.
Here is an example which illustrates the problem -
 
<https://lh3.googleusercontent.com/-hO5D2OLpaVM/V08DAUjR8XI/AAAAAAAAAtc/qRSNyC4IiBMQF5gLG11ZdIbgdXMgxAoTgCLcB/s1600/scrollview-erase-problem.png>
 
Here is another closeup view
 
<https://lh3.googleusercontent.com/-xutiq82eNeU/V08DYK8W1yI/AAAAAAAAAtg/0EWfBVe-Tz8W426u-jswfVUGusY1q5vMQCLcB/s1600/scrollview-erase-problem-closeup.png>
 
I have no code which does any erasing.
 
Is this a known problem ?
 
Does anyone know of a solution or workaround ?
jason.jaegers@gmail.com: Jun 01 08:32AM -0700

I currently working on a launcher and I am trying to access a list of the
bookmarks or web shortcuts that a user has clicked "add to home screen" in
Chrome... there has to be some way to pull up this list so my launcher can
support those home screen bookmarks as well. I have search Google to no
end and I can't find anything in the documentation about this...
Jadhav Ashok <jadhav.groups@gmail.com>: Jun 01 11:14AM -0400

*Manual Tester with Treasury Exp Mandatory*
*San Francisco, CA*
*Locals Only*
*Any Visa Fine*
*Financial Client*
 
*PLEASE DO NOT SHARE RESUME WITHOUT TREASURY EXP. *
 
*WE WILL CALL YOU IF THE RESUME IS A MATCH FOR OUR REQUIREMENT*
 
 
Manual Testing with Treasury Exp
Jadhav Ashok <jadhav.groups@gmail.com>: Jun 01 11:16AM -0400

*SENIOR DevOps Engineers *
*3-4 resources *
*Westport CT *
*Rate: OPEN*
*Any Visa is Fine*
*NON LOCALS ALSO FINE*
*80-90% match is also fine for this requirement*
 
Hands on knowledge of Development, QA and Operations
 
*MUST*
 
- Strong communication skills
- Advanced Coding experience in at least two of the following languages:
Java, Scala, JavaScript, .net
- Good understanding of Concepts of Databases, Programming Languages and
Web Technologies
- Good understanding of concepts DevOps, Agile
- Extensive hands on experience with TDD, Continuous Integration
- Extensive hands on experience in operation and maintenance of
environments
- Extensive hands on Test Automation Coding experience for Unit, API or
Functional Tests
- Hands on experience in building applications with either Maven, Grunt,
Gulp, MSBuild, ANT
- Hands on experience in agile teams in the roles developer or QA
- Hands on experience of automation tools (Infrastructure, Test, Build)
- Hands on experience in operation and maintenance of Linux/Windows
sai praveen G <saipravin.g@gmail.com>: Jun 01 10:16AM -0400

*Hi*
 
*Please find the updated hot-list of my consultants..*
 
*Please send the suitable requirements to *sai@theplanetp.com *or feel
free to call me at **786-484-7805*
 
 
 
 
 
*S.No*
 
* Name*
 
*Skill / Job Title*
 
*Experience*
 
*Location*
 
*Relocation*
 
1
 
Ram
 
.Net
 
8+
 
CA
 
Open
 
2
 
Vaibhav
 
UI
 
8+
 
CA
 
Open
 
3
 
Kaushal
 
QA Selenium
 
7+
 
NY
 
Open
 
4
 
Bharath
 
Salesforce
 
8+
 
VA
 
Open
 
5
 
Sai
 
UI
 
8+
 
TX
 
Open
 
6
 
Sruthi
 
QA
 
8+
 
PA
 
Open
 
7
 
Mounika
 
.Net Architect
 
8+
 
NY
 
Open
 
8
 
Abhishek
 
.Net
 
8+
 
WA
 
Open
 
 
 
 
 
 
 
 
 
[image: Planet-P Logo.png]
 
*Sai Praveen*
 
*Sr.IT Recruiter*
 
*Planet-P, Inc.,*
 
7950 NW 53rd Street, Suite 337, Miami, Florida 33166
 
Direct: +1 (786) 484 - 7805, Fax: +1 (866) 480-9591
 
Web: www.theplanetp.com eMail: sai@theplanetp.com
ravi kumar <ravinityo1@gmail.com>: Jun 01 08:56AM -0500

Hi
 
 
 
Hope you are doing great!
 
 
 
This is *Ravi Kumar*, working as a Technical Recruiter at *Nityo Infotech*
. Please find below Job Description and let me know your interest.
 
 
 
*Role :: AIX Admin*
 
 
 
*Location :: Arizona*
 
 
 
*Duration :: 12+ Months*
 
 
*JD ::*
 
 
 
1) In depth knowledge of AIX 6.1/7.1
2) In depth knowledge of Logical Volume Manager and Native Multipathing
3) In depth knowledge of Knowledge of EMC Powerpath
4) In Depth knowledge of VSCSI, Fiber Card Virtualization(NPIV)
5) Knowledge of HACMP, PowerHA and System mirror
6) Working knowledge of Oracle Data Base from AIX system Admin Prospective
 
 
 
*Thanks & Regards*
 
*Ravi Kumar*
 
Technical Recruiter
 
609-853-0818 ext 2157
 
ravi.kumar@nityo.com
 
www.nityo.com
 
Nityo Infotech Corp.
666 Plainsboro Road,
 
Suite 1285
 
Plainsboro, NJ 08536
 
 
 
 
------------------------------
 
USA | Canada | India | Singapore | Malaysia | Indonesia | Philippines |
Thailand | UK | Australia / Zealand
------------------------------
 
Nityo Infotech has been rated as One of the top 500 Fastest growing
companies by INC 500
------------------------------
 
Disclaimer: http://www.nityo.com/Email_Disclaimer.html
Steve Gabrilowitz <steveg1701@gmail.com>: Jun 01 09:44AM -0400

another possibility is to replace the release APK with one that just
displays a "sorry, not ready yet" screen
Amitai Rosenberg <amitairos@gmail.com>: Jun 01 05:20AM -0700

I have an app with a Navigation Drawer that uses fragments for each menu
item.
Each time an item is clicked, I replace the current fragment.
 
The problem is that it takes a long time to show the new fragment after the
user clicked.
The fragment that takes the longest to load is a fragment that has also
tabs inside it with child fragments.
Is there any way I can speed up the loading of the fragments? (Perhaps
initializing them beforehand, if this is possible?)
 
 
Here is my code:
 
 
protected override void OnCreate(Bundle bundle)
{
drawerLayout = FindViewById<DrawerLayout>(Resource.Id.drawer_layout);
navigationView = FindViewById<NavigationView>(Resource.Id.nav_view);
drawerLayout.DrawerClosed += DrawerLayout_DrawerClosed;
var mainFab = FindViewById<FloatingActionButton>(Resource.Id.mainFab);
mainFab.Click += MainFab_Click;
 
var callFab = FindViewById<FloatingActionButton>(Resource.Id.callFab);
callFab.Click += CallFab_Click;
var messageFab = FindViewById<FloatingActionButton>(Resource.Id.messageFab);
messageFab.Click += MessageFab_Click;
// Initialize the ViewPager and set an adapter
//var pager = FindViewById<ViewPager>(Resource.Id.pager);
//pager.Adapter = new TabsFragmentPagerAdapter(SupportFragmentManager, fragments, titles);
 
// Bind the tabs to the ViewPager
//var tabs = FindViewById<PagerSlidingTabStrip>(Resource.Id.tabs);
//tabs.SetViewPager(pager);
 
navigationView.NavigationItemSelected += (sender, e) =>
{
e.MenuItem.SetChecked(true);
//react to click here and swap fragments or navigate
 
switch (e.MenuItem.ItemId)
{
case (Resource.Id.nav_home):
ListItemClicked(0);
break;
 
case (Resource.Id.nav_halachot):
ListItemClicked(1);
break;
 
case (Resource.Id.nav_times):
ListItemClicked(2);
break;
 
case (Resource.Id.nav_siddur):
ListItemClicked(3);
break;
case (Resource.Id.nav_compass):
ListItemClicked(4);
break;
 
case (Resource.Id.nav_settings):
ListItemClicked(5);
break;
}
 
 
drawerLayout.CloseDrawers();
};
 
if (bundle == null)
{
ListItemClicked(0);
navigationView.Menu.GetItem(0).SetChecked(true);
fragment = new HomeFragment();
SupportFragmentManager.BeginTransaction()
.Replace(Resource.Id.content_frame, fragment)
.Commit();
}
}
 
public override void OnBackPressed()
{
 
if (drawerLayout.IsDrawerOpen((int)GravityFlags.Start))
{
drawerLayout.CloseDrawer((int)GravityFlags.Start);
}
else
{
base.OnBackPressed();
}
}
 
private void ListItemClicked(int position)
{
 
switch (position)
{
case 0:
fragment = new HomeFragment();
Title = "Home";
SupportActionBar.Elevation = 8;
break;
case 1:
fragment = new HalachaFragment();
Title = "aaa";
SupportActionBar.Elevation = 0;
break;
case 2:
fragment = new TimesFragment();
Title = "bbb";
SupportActionBar.Elevation = 8;
 
break;
case 3:
fragment = new SiddurFragment();
Title = "ccc";
SupportActionBar.Elevation = 8;
break;
case 4:
fragment = new CompassFragment();
Title = "ddd";
SupportActionBar.Elevation = 8;
break;
case 5:
fragment = new SettingsFragment();
Title = "eee";
break;
}
 
 
 
}
 
private void DrawerLayout_DrawerClosed(object sender, DrawerLayout.DrawerClosedEventArgs e)
{
SupportFragmentManager.BeginTransaction()
.Replace(Resource.Id.content_frame, fragment).AddToBackStack("BACK")
.Commit();
 
}
 
 
HalachaFragment.cs (The fragment that contains the tabs):
 
 
public class HalachaFragment : Fragment{
private ViewPager halachotPager;
private PagerSlidingTabStrip tabs;
 
public HalachaFragment()
{
this.RetainInstance = true;
}
public override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
 
// Create your fragment here
}
 
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
// Use this to return your custom view for this Fragment
 
var view = inflater.Inflate(Resource.Layout.HalachaSection, container, false);
 
var fragments = new Android.Support.V4.App.Fragment[]
{
new HalachotFragment(),
new BooksFragment(),
};
 
var titles = CharSequence.ArrayFromStringArray(new[]
{
"הלכות",
"ספרים",
});
 
halachotPager = view.FindViewById<ViewPager>(Resource.Id.halachotPager);
 
halachotPager.Adapter = new TabsFragmentPagerAdapter(this.ChildFragmentManager, fragments, titles);
halachotPager.OffscreenPageLimit = 2;
halachotPager.SetCurrentItem(1, true);
// Bind the tabs to the ViewPager
tabs = view.FindViewById<PagerSlidingTabStrip>(Resource.Id.halachotTabs);
 
tabs.SetViewPager(halachotPager);
 
return view;
 
}}
 
 
Hope someone can help me.
 
Thanks.
"Çağrı TOPÇU" <hctopcu@gmail.com>: Jun 01 04:52AM -0700

I'm trying to install Android Device Manager on my new device.
 
 
Can not pass the login.
 
"An error occured. Please try again."
 
 
I've quadruple checked my password (even written somewhere else and copied
into)
 
 
Need help directs me to forgot password screen.
 
 
Device:
 
Samsung Galaxy S7
 
Android v 6.0.1
 
Android Device Manager v 1.4.4
 
 
 
 
<https://lh3.googleusercontent.com/-ZZDt9IHpqeU/V07LQnh0kLI/AAAAAAAARIM/n9QK6BW32B4kxa3Hw0XWeFssMq5Udo-UQCLcB/s1600/Screenshot_20160601-144535.jpg>
Amber Ghayas <amber.ghayas@gmail.com>: Jun 01 04:21AM -0700

Amber Ghayas <amber.ghayas@gmail.com>: Jun 01 04:41AM -0700

Is no one knows?
EMIDIO OLIVEIRA <emidio.o.silva@gmail.com>: Jun 01 04:38AM -0700

I found a solution of this problem with hidden APIs (android statistic 3g
traffic for each APP, how?
<http://stackoverflow.com/questions/12613402/android-statistic-3g-traffic-for-each-app-how>)
and when trying to retrieve mobile data usage information with TYPE_MOBILE
was necessary to inform the SubscriberID, unlike when I tryed to get
information TYPE WIFI.
 
Try this code
 
TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
String subscriberID = tm.getSubscriberId();
 
NetworkStats networkStatsByApp = networkStatsManager.queryDetailsForUid(ConnectivityManager.TYPE_MOBILE, subscriberID, start, end, uid);
 
So when you are using TYPE_MOBILE, it's necessary to you use a valid
subscriberID.
 
 
 
 
Em quinta-feira, 19 de maio de 2016 07:50:52 UTC-3, Mauro Esposito escreveu:
David Schreiber <flashmasterdash@gmail.com>: Jun 01 03:25AM -0700

I have a RecyclerView.Adapter<MyViewHolder> that handles creation and
binding of ViewHolders based on a backing data set. Whenever the view is
scrolled ViewHolders are being recycled and rebound, calling first #onViewRecycled
and #onBindViewHolder for each recycled element. However, since my
ViewHolders also contain resources that need to be cleaned up upon
recycling (running async operations and Bitmaps) I want #onViewRecycled
only called when the view is going to be bound with a different element
(that has a different identity).
 
Now there is the case where I want to refresh some already bound
ViewHolder, for example when I want to visually highlight it. I'm already
setting this highlight inside my adapter's #onBindViewHolder, as this is
the place where the view is populated from my data. For me the solution on
hand was to update the backing data and trigger an invalidation using
adapter.notifyItemChanged(changedPosition). However, this will cause a call
to #onViewRecycled for the specific item before rebinding, which will cause
to release resources as well.
 
What's the expected place to update such properties on my ViewHolder? Am
I'm expected to handle view population without first recycling externally?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

No comments:

Post a Comment