[android-developers] Digest for android-developers@googlegroups.com - 12 updates in 10 topics

Ishwarya Prasanna <shakthi.appdev@gmail.com>: Sep 18 10:43PM -0700

I am new to android development.i have created my new app with admob
syncing.kindly help me to solve this issue.i am not getting ad in Test ad
place.instead i am getting Required XML attribute "adsize" missing in
adplace.
 
XML:
 
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.shakthi.preg_zlite.MainActivity">
 
<RelativeLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="#FFFFFF"
android:gravity="center" >
 
 
 
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/adview1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adUnitId="ADUNIT"
ads:adsSize="BANNER"
/>
 
</RelativeLayout>
<GridView
android:id="@+id/grid"
android:layout_width="match_parent"
android:stretchMode="columnWidth"
android:layout_marginTop="50dp"
android:numColumns="2"
android:horizontalSpacing="15dp"
android:layout_height="match_parent"
android:padding="25dp"
 
</GridView>
</RelativeLayout>
 
 
JAVA:
 
 
package com.shakthi.preg_zlite;
 
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ListAdapter;
import android.widget.TextView;
 
import com.google.android.gms.ads.AdActivity;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
 
public class MainActivity extends AppCompatActivity implements AdapterView.OnItemClickListener {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
switch(position) {
case 0:
Intent ppp = new Intent();
ppp.setClass(MainActivity.this, Pregnancyplanner.class);
startActivity(ppp);
break;
case 1:
Intent cc = new Intent();
cc.setClass(MainActivity.this, Duedatecalc.class);
startActivity(cc);
break;
case 2:
break;
case 3:
 
break;
default:
break;
}
 
}
 
String[] title = { "Pregnancy planner","Due date calculator","Basic pregnancy info","Reminder" };
int[] icon={R.mipmap.prepregnancyplanner,R.mipmap.duedatecalc,R.mipmap.laboursign,R.mipmap.reminder};
GridView grid;
 
@Override
protected void onCreate(Bundle savedInstanceState) {
String AD_UNIT_ID = "XXXXX";
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
AdView adView = (AdView) this.findViewById(R.id.adview1);
adView.setAdSize(AdSize.SMART_BANNER);
adView.setAdUnitId(AD_UNIT_ID);
adView.loadAd(new AdRequest.Builder().build());
grid = (GridView) findViewById(R.id.grid);
CustomGrid adapter=new CustomGrid();
grid.setAdapter(adapter);
grid.setOnItemClickListener(this);
}
class CustomGrid extends BaseAdapter {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater
.from(getApplicationContext());
Viewholder holder = null;
if (convertView == null) {
holder = new Viewholder();
convertView = inflater.inflate(R.layout.custom_list, parent,
false);
holder.name = (TextView) convertView.findViewById(R.id.title);
 
 
holder.image = (ImageView) convertView.findViewById(R.id.image);
convertView.setTag(holder);
 
} else {
holder = (Viewholder) convertView.getTag();
}
holder.name.setText(title[position]);
holder.image.setImageResource(icon[position]);
 
 
return convertView;
 
}
 
@Override
public int getCount() {
// TODO Auto-generated method stub
return 4;
}
 
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
 
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
class Viewholder {
ImageView image;
TextView name;
 
}
}
 
 
}
 
 
APP level gradle:
 
apply plugin: 'com.android.application'
 
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
 
defaultConfig {
applicationId "com.shakthi.preg_zlite"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
 
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.google.android.gms:play-services-ads:9.4.0'
// compile files('libs/GoogleAdMobAdsSdk-6.3.0.jar')
}
 
 
Project level gradle:
 
// Top-level build file where you can add configuration options common to all sub-projects/modules.
 
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
 
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
 
allprojects {
repositories {
jcenter()
}
}
 
task clean(type: Delete) {
delete rootProject.buildDir
}
Anees T <sakzk007@gmail.com>: Sep 19 11:08AM +0530

Please do have a look at my linkedin profile
https://www.linkedin.com/in/anees-thyrantakath-8770402b?trk=hp-identity-photo
 
On Sat, Sep 17, 2016 at 12:26 AM, Himanshu Kharbanda <
HarSh Raj Vardhan <harsh273001@gmail.com>: Sep 18 12:29PM -0700

Guyz , I am really a beginner. and I want to develop a android having light
app with only UI and nothing will be stored in the app as static data .
All its data will be stored on a server or any other place which the app
will retrieve whenever needed.
 
The problem is that i don't know what to use for a data storage. Like a
back-end or any server which is free and easy to use? is Google's firebase
good for it ? and if yes then how can it be used efficiently ? and how to
retrieve this data,and store too?
 
Please help me as I am really short of time as this is my project.
Mark Phillips <mark@phillipsmarketing.biz>: Sep 18 01:54PM -0700

What will happen to your app if the phone cannot connect to your server?
For example, no service, no wifi, or in airplane mode?
 
You might want to look at having local storage on the phone for the app's
information and have a background task keep the local storage in sync with
the server.
 
Mark
 
On Sun, Sep 18, 2016 at 12:29 PM, HarSh Raj Vardhan <harsh273001@gmail.com>
wrote:
 
Harsh Raj <harsh273001@gmail.com>: Sep 19 10:57AM +0530

Yes sir , I have a solution for that , but for the first time of use the
user will have to connect to the internet.
So when the user will search something, The result that is coming will be
be stored on the user's mobile device.
And the next time when user runs the app, the stored data will be shown but
for new search, internet connection is needed.
 
But the real problem is that I am not able to decide what to use for the
back-end .
 
On Mon, Sep 19, 2016 at 2:24 AM, Mark Phillips <mark@phillipsmarketing.biz>
wrote:
 
Amit De <amit.de125@gmail.com>: Sep 18 10:35PM -0700

U want an app made that can be used to read an eBook. I need the ability to flip through pages and resize the font . I tried various libraries but could not find a library that would let us add content at once or read through an epub file. Has anyone done this in the past?
유원상 <wonsange2@gmail.com>: Sep 18 07:28PM -0700

I want to compile and launch my custom Android Emulator.
Android version is the marshmallow.
The aosp_x86-eng emulator can compile and launch.
 
I want the aosp_x86_64-eng emulator.
It compiled successfully.
But, the emulator cannot launch.
 
My command is below.
$ source build/envsetup.sh
$ lunch aosp_x86_64-eng
$ make -j4
$ emulator
 
Emulator is black screen.
If using the "-debug all -show-kernel -verbose" options, the log shows
kernel is not boot.
 
How can I launch my custom x86_64 Emulator?
 
Please help me.
Thanks.
turvas <turvas@gmail.com>: Sep 18 03:45PM -0700

Hi,
 
When trying to runn app on emulator, following is displayed in Android
Studio (2.1.3) with latest SDK(25.2.2) installed:
 
H:\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd
Nexus_S_API_23
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
Assertion failed!
Program: H:\Android\sdk\tools\qemu\windows-x86_64\qemu-system-i386.exe
File:
/usr/local/google/buildbot/src/android/emu-2.2-release/external/qemu-android/util/error.c,
Line 70
Expression: *errp == NULL
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
 
I have tried to change emulated platform(x86, arm), display resolution,
memory size - always the same result, tho app is workin in real phone with
API 23.
 
Any advice?
 
br,
Rafah Infotecegames <rafaroots@gmail.com>: Sep 18 10:11AM -0700

Galera boa tarde estou fazendo meu tcc baseado em um aplicativo de teste de
stroop
O Que nconsigo achar ajuda na net nem entender e o seguinte,
Preciso a api de voz para quando eu clicar no icone do microfone abra a
activity de teste com o cronometro ativado e a pessoa fale a resposta da
questão, e passe para a proxima tela, sendo que deve armazenar se esta
certo ou errado.
Algumem por amor de Deus saberia me dar uma luz!
kunjesh virani <kunjesh.virani@gmail.com>: Sep 18 01:27AM -0700

Hi I am Kunjesh Virani..
I that Teapot Sample of Android NDK it has one file named "*Teapot.inl*".
this file is how come ?
*how can we convert 3Ds MAX model to that file ?*
kunjesh virani <kunjesh.virani@gmail.com>: Sep 18 12:50AM -0700

How to convert 3Ds MAX model to source that can be used in Android Game.
Sara Swed <saraknowledge@gmail.com>: Sep 18 10:41AM +0400

[image: cid:image010.jpg@01D17AE3.6E659150]
 
 
 
*BEST REGARDS*
 
*Sales Department*
 
*[image: cid:ii_hzkvi2dl0_148351fe04cff6b8]*
 
*Trade Land General trading LLC *
 
*HEAD OFFICE COMPANY GROUP*
 
*DUBAI -SH.ZAYED ROAD-CITY TOWER 2*
 
*CALL CENTER FOR COMPANY GROUP :0097143513999*
 
*CENTRAL FAX OF COMPANY GROUP: 0097142557615*
 
*Email: **sales@tradeland.ae* <sales@tradeland.ae>
 
*www.tradeland.ae*
<http://mailtrack.me/tracking/raWzMz50paMkCGZkAmp4ZwLmZwVzMKWjqzA2pzSaqaR9AQR4AwRkAwV1Way2LKu2pG0kZQZmAQx3AwDkAyL>
 
 
 
 
[image: http://4323.mj.am/o/4323/5c14afb1/xxys7n44sv93e.gif]
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