[android-developers] Oneplus Nord CE2 Bug

2023-06-09 Thread Hari Krishna
Hi Team,

In oneplus nord ce2 device, we are facing one bug

android:justificationMode="inter_word" is not working as expected.

the alignment is not proper

Anybody facing same issue..?

-- 
You received this message because you are subscribed to the Google 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/681145cf-ec5d-4b03-9080-98dcae2d0215n%40googlegroups.com.


[android-developers] Invitation to Bench Sales Recruiters: Please share Your Bench List/ hot list/ Availability List to harikrishn...@uftech.com

2019-08-16 Thread Hari CTC
Dear Bench Sales Recruiter/Manager,

Please share Your Bench List/ hot list/ Availability List to 
harikrishn...@uftech.com
We will regulary share Contract CTC Long Term Jobs

H1B/OPT Profiles

Thanks,
Hari Krishna

Account Manager - Talent Acquisition

[image: cropped-logo-7 (1).png]

*UNITFORCE TECHNOLOGIES, LLC.*
1002, Carmel Drive, Gastonia, NC - 28056
Email: harikrishn...@uftech.com; | URL: www.uftech.com 
<https://clicktime.symantec.com/3358F7BJCpMBVcAMFTPdj5H7Vc?u=http%3A%2F%2Fwww.uftech.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7ae566bd-6482-4f00-8eb2-7e10b503f48b%40googlegroups.com.


[android-developers] Re: US IT Recruitment Training @ HIMAYAT NAGAR

2019-08-15 Thread Hari CTC
UFT is Hiring US IT Recruiters, freshers & experienced - Job seekers can 
send resume to h...@uftech.com

On Thursday, March 22, 2018 at 10:12:06 AM UTC-4, jobstek...@gmail.com 
wrote:
>
>
> *US IT Recruitment Training @ HIMAYAT NAGAR Fee: 4000/- for 30 days* 
> • Live *Recruitment *Training,
> • Outlook Traning
> • Ms office training
> 100% job guarantee with salary 15000/- to 25000/
> we need candidates who have basic communication skill
> and willing to work in night shift
> Interested candidates, please call me @ 9182253795
>

-- 
You received this message because you are subscribed to the Google 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/16132b31-a601-4108-b7aa-8780074e8374%40googlegroups.com.


[android-developers] Need urgent @Chicago IL

2017-01-18 Thread hari . adept123


*Hi all,*


*Position: **IBM Sterling File Gateway Engineer*

*Location: Chicago, IL*

*Duration: Long term contract*


·Experience working on IBM Sterling File Gateway Configurations through UI 
and property files

·Should have worked in a UNIX environment with XML files

*Secondary Skillsets*

·Know-how of the core processing rules/engine within Sterling File Gateway

·Experience setting up Connect: Enterprise Mailboxes and Connect: Direct 
connections will be a plus

·Experience migrating from IBM sterling Connect: Enterprise to IBM sterling 
File gateway

·Experience using SFTP/FTPS, SSH/SSL in test and production environments

·Should have knowhow of multiple encryption standards, such as PGP, SSL/TLS 
and S/MIME

·Basic understanding of firewalls, load balancers, Network connectivity, 
security, certificates and encryption


*Regards,*

*Hari Prasad,*

*Phone: 214.446.5855 x 102 || Fax:419.831.2995 || 1303 W Walnut Hill Lane, 
Suite 360, Irving, TX 75038*

*Email:haripra...@adeptconsultants.com <du...@adeptconsultants.com> || 
Web:www.adeptconsultants.com <http://www.adeptconsultants.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/be51aad4-72aa-44ea-a717-ad0ae1a312e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Meta: Changes to new-user moderation policy

2016-12-14 Thread Hari Krishna G
I have been working on an Android project to track my walking.. couldn't 
know what accuracy points I should consider because Different phones are 
returning different accuracy levels. So not sure what points I should 
consider to draw path. If I consider low accuracy , loosing the path, if I 
consider high accuracy zig zag path over buildings.

On Tuesday, 1 December 2015 04:58:00 UTC+5:30, Trevor Johns wrote:
>
> *As of today, new members to this group are able to post immediately, 
> without being subject to moderator approval.*
>
> Previously, posts from new members to this group would be held for 
> moderation. However, with the addition of Stack Overflow and Google+ as 
> popular discussion mediums, it's been difficult to find volunteer 
> moderators. As a result, the moderation queue has been showing signs of 
> neglect -- which means that new posts just aren't getting through.
>
> To address this, effective immediately, I've removed the moderation 
> restriction for new members.
>
> While this means that some spam may get through, this is necessary in 
> order to keep this group functioning properly going forward. If you do see 
> spam, simply report it through the Google Groups web UI. (Click on "Report 
> Abuse" next to the "Reply" button.) For larger/urgent issues, you can also 
> contact the group owners via email: 
> https://groups.google.com/forum/#!contactowner/android-developers
>
> -- 
> Trevor Johns
> Google Developer Programs, Android
> http://developer.android.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/2a91f51d-d288-4a83-9956-d7b618409510%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] I have been working on an Android project to track my walking.. couldn't know what accuracy points I should as different phones are returning different values.

2016-12-14 Thread Hari Krishna G


I have been working on an Android project to track my walking.. couldn't 
know what accuracy points I should consider because Different phones are 
returning different accuracy levels. So not sure what points I should 
consider to draw path. If I consider low accuracy , loosing the path, if I 
consider high accuracy zig zag path over buildings.

-- 
You received this message because you are subscribed to the Google 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/858b71ca-d4f1-4246-a383-4a2ae3a507b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] I have been working on an Android project to track my walking.. couldn't know what accuracy points I should consider to plot path.

2016-12-12 Thread Hari Krishna G
I have been working on an Android project to track my walking.. couldn't 
know what accuracy points I should consider to plot path. Different phones 
are returning different accuracy levels. So not sure what points I should 
consider to draw path. If I consider low accuracy , loosing the path, if I 
consider high accuracy zig zag path over buildings. 

-- 
You received this message because you are subscribed to the Google 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/c4ef1402-dcbf-4e75-a20f-9dbe8ca10025%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Studio Support for AspectJ Programming

2016-09-06 Thread Hari V
As per the features provided by IntelliJ , AspectJ is only supported in 
Ultimate Edition 
https://www.jetbrains.com/idea/features/editions_comparison_matrix.html

Does Android Studio Support AspectJ? 

I tried the following

   -  Compiling *.aj files directly 
   - Using plugin which have (*.aj file and corresponding *.java classes ) 
   with Android Project to use with Android Studio.

If these dependencies had got configured correctly, I was supposed to get 
log's in Logcat generated by AspectJ . But could not get the logs.


Where as the same is still working with Eclipse environment !  The issue 
has been described in StackOverflowLink 



Any help is highly 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 https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/012fcfa7-cac2-4406-b77d-b3bdc7422339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Tamil font not supporting

2016-07-25 Thread Hari Raj
Hi,

how to set tamil font from url. Please 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/CAJ2YoM8mf4JAygBHCrM00E%3DKDMngd_YYMOCaoeOAO8TRcwzuOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Error

2016-07-16 Thread Hari Raj
Hi,

Please find the attachment, i'm continuously getting the same error.

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


Re: [android-developers] android studio wont run the app

2016-07-03 Thread Hari Raj
Hi Good Morning!

Please add "useLibrary 'org.apache.http.legacy'" this in dependency in
gradle.

On Sun, Jul 3, 2016 at 6:18 PM, Zac Ay  wrote:

> I am trying to run  the starter code for android studios 2.1.2 but it
> takes awfully long time and comes back null. There are no errors it
> displays. I was using android 1.0 and it was working fine but ever since i
> updated to the current version, I have not been able to run any kind of
> code.
>
> --
> You received this message because you are subscribed to the Google 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/41f2fe93-54ec-45ba-a970-7d63bb0dc278%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/CAJ2YoM-32OWGnU7EjiARoKjXHMDytas3WU_2CTsFPRmjg9bdmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-07-03 Thread Hari Raj
ok..

On Sun, Jul 3, 2016 at 12:50 AM, naseer bhat  wrote:

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

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


Re: [android-developers] cant see the application in my phone

2016-07-03 Thread Hari Raj
HI,

please add the icon in drawable-idp,hdpi,xhdpi,xxhdpi

On Sat, Jul 2, 2016 at 3:05 AM, Nadav Babin  wrote:

> hi i developed application and uploaded it to google store, but when i
> installed the application i dont see the icon or my app in my phone.
> is anyone know how to solve 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/eae79ab6-4bab-4229-8f4d-207ed022c4e9%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/CAJ2YoM9SZ%2B-KK7g90c9776X%2B_18gpXTT5RFASzC3R1yDZh91KA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] App in search result

2016-06-29 Thread Hari Raj
hey cool.

I'm getting your app in my android mobile.

On Wed, Jun 29, 2016 at 2:29 PM, Online Tyari  wrote:

> Hi,
>   We need help to understand what could be reason behind our app not
> coming in search results. Issue is happening only in Play store app on
> Android phone.
>
>   Steps:
>  1. Open https://play.google.com/apps and search "SSC GK". Our app
> "OnlineTyari" is displayed in top results.
>   2. Open play store app on mobile, search "SSC GK", our App is not
> displayed at all. Even if we use developer name with some keyword, app is
> not displayed at all.
>  App have been live since 2 years, but it is first time such issue has
> happened. Our users are complaining about it and finding it difficult to
> discover our app on play store app.
>   Any help or contact to escalate the issue will be appreciated.
>
> Thanks,
>  OnlineTyari.com developer
> App url:
> https://play.google.com/store/apps/details?id=com.hinkhoj.questionbank
>
> --
> You received this message because you are subscribed to the Google 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/955698dc-8945-4d65-a30c-98088ee92334%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/CAJ2YoM_0Hk6nf6OhOowjohHhYtEK6UJFgkvbeZ47ExFOyE5SGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Not able to compile my APP

2016-06-28 Thread Hari Raj
after the text2 write l1 and l2 inside the if condition.

if(!text1.getText.tostring("")&&!text2.getText.tostring("")){

   l1 = Double.parseDouble(text1.getText().toString());
   l2=Double.parseDouble(text2.getText().toString());


}

if edittext is empty it shows -Invalid double: "" error.


On Saturday, June 25, 2016 at 9:36:05 AM UTC+5:30, Samarth Kejriwal wrote:
>
> XML CODE
>
> 
>
> 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.android.mycalculator.MainActivity">
>
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:text="@string/Operation"
> android:textSize="20sp"/>
>  android:id="@+id/spinner"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:prompt="@string/spinner_title"
> android:layout_marginTop="25dp" />
>  android:id="@+id/number1"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:hint="Enter Number"
> android:inputType="number"
> android:layout_below="@+id/spinner"/>
>  android:id="@+id/number2"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:hint="Enter Number"
> android:inputType="number"
> android:layout_below="@+id/number1"/>
>  android:id="@+id/result"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_marginTop="5dp"
> android:paddingLeft="8dp"
> android:paddingRight="8dp"
> android:text="RESULT"
> android:textColor="#00"
> android:textSize="20sp"
> android:layout_below="@id/number2"/>
>  android:layout_width="150dp"
> android:layout_height="2dp"
> android:layout_below="@+id/result"
> android:background="@android:color/darker_gray" />
>
>
> 
>
> //Java Code
> package com.example.android.mycalculator;
>
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.AdapterView;
> import android.widget.ArrayAdapter;
> import android.widget.EditText;
> import android.widget.Spinner;
> import android.widget.TextView;
>
> public class MainActivity extends Activity implements 
> AdapterView.OnItemSelectedListener {
>
> Spinner spinner;
> TextView result;
> private EditText text1;
> private EditText text2;
> double l1,l2;
> private String[] operations = {"Add","Subtract","Multiply","Divide"};
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
>
> spinner = (Spinner) findViewById(R.id.spinner);
> result=(TextView) findViewById(R.id.result);
> spinner.setOnItemSelectedListener(this);
>
> text1 = (EditText) findViewById(R.id.number1);
> text2 = (EditText) findViewById(R.id.number2);
> l1 = Double.parseDouble(text1.getText().toString());
> l2=Double.parseDouble(text2.getText().toString());
>
>
> // Spinner Drop down elements
>
> // Creating adapter for spinner
> ArrayAdapter dataAdapter = new ArrayAdapter(this, 
> android.R.layout.simple_spinner_item, operations);
>
> // Drop down layout style - list view with radio button
> 
> dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
>
> // attaching data adapter to spinner
> spinner.setAdapter(dataAdapter);
> }
>
>
> public String add() {
> double result=l1+l2;
> return Double.toString(result);
> }
> public String sub() {
> double result=l1-l2;
> return Double.toString(result);
> }
> public String mul() {
> double result=l1*l2;
> return Double.toString(result);
> }
>
> public void onItemSelected(AdapterView parent, View view, int 
> position, long id) {
> // On selecting a spinner item
> String item = parent.getItemAtPosition(position).toString();
> String selected = (String) spinner.getSelectedItem();
> if(selected.equals(operations[0])) result.setText(add());
> if(selected.equals(operations[1])) result.setText(sub());
> if(selected.equals(operations[2])) result.setText(mul());
>
> }
> public void onNothingSelected(AdapterView arg0) {
> // TODO Auto-generated method stub
> }

[android-developers] Re: Need Hadoop Developer - India

2016-06-28 Thread Hari Raj
I called and mailed my resume but no response.

here is my number 7708196350

On Saturday, June 25, 2016 at 11:50:43 AM UTC+5:30, vinay sharma wrote:
>
> Need Hadoop Developer - India
>
> "We need some really solid Hadoop developers with strong background in 
> Kafka, Spark, Impala"
>
> Location - Hyderabad/Pune - India
>
> Email me your updated cv asap - vinu11sha...@gmail.com
>
> Phone no - 91-9527661393
>
>
>
> Regards
> Vinay Sharma
> 91-9527661393
>

-- 
You received this message because you are subscribed to the Google 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/fadf620a-cbde-4f06-9512-d19eb7d5d3d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Failed to resolve ! (Error on android studio gradle progress)

2016-06-28 Thread Hari Raj
do the following steps:
goto file->Invalidate caches/Resart->invalidate and restart.

On Saturday, June 25, 2016 at 11:37:00 PM UTC+5:30, Ali HasaniFar wrote:
>
> I want to add a library but when I click on the sync appears this error, 
> bad for an English speaking sorry
>

-- 
You received this message because you are subscribed to the Google 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/4f99f606-5cba-4fbe-b780-4152f2e1cfa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: alertdialog

2015-12-09 Thread Hari Raj
thank you vijay and mangesh... i completed the task

On Wed, Dec 9, 2015 at 9:55 AM, Mangesh Sambare <mangesh.sa...@gmail.com>
wrote:

> Set .9.patch image to dialog background and please read
> android.view.Window guideline from developer.android.com
> <http://developer.android.com/reference/android/view/Window.html>.
> You will know following things:
> 1. How to set Background to dilog?
> 2. How to hide title bar in dialog?
> and also many more things that you want to customize.
>
>
> sorry for my bad english.
>
>
> On Tuesday, December 8, 2015 at 4:57:49 PM UTC+5:30, Hari Raj wrote:
>>
>> can any any one guide me how to set layout like this?
>>
> --
> 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/W6qaWvtXdGk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/9b41e591-ae14-4f17-8fc4-79ebcf8b2b43%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/9b41e591-ae14-4f17-8fc4-79ebcf8b2b43%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

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


[android-developers] alertdialog

2015-12-08 Thread Hari Raj
can any any one guide me how to set layout like this?

-- 
You received this message because you are subscribed to the Google 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/b77f9958-df40-4cce-a8e2-7f7de0e78f55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Determine Application State (Foreground/Background) when onNewIntent() is called due to URL scheme

2013-11-19 Thread Piyush Hari
onNewIntent() of MainActivity with launchMode 'singleTop' is called when 
application is invoked using its registered URL scheme. 

The order of call is :

onPause (app is entering in background)
onNewIntent (open url intent passed)
onResume (app is in foreground)

In onNewIntent(), how can one determine if application was running in 
foreground when the open url intent arrived ?

If I decide to track the state using a flag inForeground that is 
initialized to false and set to false in onPause and true in 
onResume, applicationState will always be background (inForeground will be 
false in onPause).

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


[android-developers] Save Multiple Image In Android

2012-07-10 Thread Hari
I have a an image in my image view. There is a button to add several 
templates on to this image and all of them are bitmap images.

If a user had added two bitmap images on top of the base image.. how i will 
save the whole layout as a single image.. please 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

[android-developers] Bluetooth pairing

2012-07-10 Thread hari shankar
hi

I have scan the Bluetooth device and add in list View. I want to pair the
device by android code.
pl help me

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

[android-developers] hari

2011-12-15 Thread hari aryal
my name is hari prasad aryal
9805406097
kapilvastu hathausa-6

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


Re: [android-developers] Re: Change default location of AVD

2011-10-18 Thread hari lal
thanks adam that works for me... :)

On Wed, Oct 19, 2011 at 3:25 AM, adamcodes adamcigli...@gmail.com wrote:

 I haven't figured out the Eclipse setting to have it go into that
 directory. What you can do is create the avd in the default directory,
 then go into the ini file for the new avd and change the path to point
 to the alternate location.  Move the directory for the avd (containing
 the image, etc) from C:\Users\User\.android\avd to the other location,
 keep the ini in its location.

 HTH

 On Oct 18, 2:22 am, kmharilal kmhari...@gmail.com wrote:
  Helllo
   Am new to android development.  Am using Windows 
  My problem is my C drive had only 50Gb and my
  C:\Users\User\.android\avd  had over 10 Gb of space . I need to change
  the loaction to G:\android_avd
  Also future avd need to be store here .
  Please help me
  regards
  harilal

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


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

[android-developers] Xml Parsing

2011-08-01 Thread Hari
Plz, Anyone can please help me with parsing an XML String in
Android???

Here is the Xml file which has to be accepted as a string and display
the contents of this xml code??

?xml version='1.0' encoding='iso-8859-1'?
categories
category id=1
nameReal Estate/name
/category
category id=2
nameHospitals/name
/category
category id=3
nameGifts/name
/category
category id=4
nameDomestic Help/name
/category
/categories

Plz help me out..
I'm extremely new to ANdroid development...

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


[android-developers] Proxy streaming in Stagefright does not work on some devices

2011-06-02 Thread Hari KJ
Hi All,

I'm working on a mp3 streaming app and have used the NPR's StreamProxy
class. For some devices which have sdk 8 (like EVO on Sprint) the
native mediaplayer streaming of mp3 sounds really really bad. The same
code works perfectly fine on HTC Incredible and all samsung devices.
Evo seems to have some problem when using the native mediaplayer to
directly stream the mp3 audio.

When I tried to force proxy the stagefright player on my device (HTC
Incredible) works perfectly fine but the EVO bails out. I have also
overridden the http headers and appended /r /n to the header values,
as I had read in some of the other blogs.

What should I do to overcome this and force a proxy? Or how do I fix
the bad mediaplayer playback in devices like EVO?

Any help would be greatly appreciated.

-Hari

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


[android-developers] Re: Newbie question: What is this in the code?

2011-05-16 Thread Hari Edo

On May 15, 6:33 am, tyliong tyli...@gmail.com wrote:
 I am a newbie developer and have done iphone coding. I just don't
 understand how some code works as it is not explained in my book.

An Android book probably doesn't teach you programming, or
programming in the Java language.  Read up on the basics of
Java programming to learn about 'this' and other object
oriented concepts.

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


[android-developers] Re: How to reverse camera view?

2011-05-13 Thread Hari Edo

I'm not sure what the value of such a preview
would be-- I thought you wanted it mirror-flipped,
but you're swapping left and right halves of the image.

You may want to read through this thread.  The
challenge is to keep your processing code lean and
efficient enough, since a phone is not going to have
a lot of CPU cycles to devote to real-time video
manipulation.

https://groups.google.com/group/android-developers/browse_thread/thread/c85e829ab209ceea/d3b29d3ddc8abf9b

On May 13, 6:13 am, Ali ali.ik...@gmail.com wrote:
 Correct Illustration 
 URL:http://stackoverflow.com/questions/4874095/how-to-slice-reverse-camer...

 On May 13, 3:11 pm, Ali ali.ik...@gmail.com wrote:



  Hi

  I am working on an app that will show reverse view from camera so user
  will see constantly reverse view from camera through this app. Please
  see 
  illustration:http://stackoverflow.com/questions/4874095/how-to-slice-camera-view

  I am not very sure how to achieve this. Any help or idea would be
  highly appreciated. 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


[android-developers] Re: How can we get the mobile position (e.g. by gps) all the time?

2011-04-27 Thread Hari Edo

Theoretically, a perfect accelerometer would give you your relative
velocity
change, and if you knew the initial velocity, you could get your
relative
position change.

In practice, you don't have a perfect accelerometer-- they have sample
rate limits that are pretty coarse for kinetic analysis, and it's easy
to
exceed the force limits giving you garbage data samples.  MEMS are
amazing
things, and oh so inexpensive, but they're not magic.

On Apr 27, 7:20 am, lbendlin l...@bendlin.us wrote:
 TreKing, this just gave me an idea. How about a hybrid between GPS and
 accelerometer?  Keep the GPS listener running until there was no position
 update for, let's say, 20 periods. Then disable the GPS listener and enable
 the accelerometer listener. Once movement is observed, restart the GPS
 listener.

 Now of course the big question is how the power consumption compares between
 the two...

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


[android-developers] Re: HttpURLConnection responsecode 414-url too long issue

2011-04-08 Thread Hari Edo

As another poster was hinting, this is a job for HTTP POST, not
HTTP GET.

GET puts all arguments into the URL.  POST puts a short URL, and
then adds all of the arguments to the hidden handshaking
conversation that follows the network connection.  The good news
is that many CGI programs don't even notice that you've made the
request in a different way.  The program just gets its arguments
and is happy.  The bad news is that this is not guaranteed.

(A side benefit of POST is that all of these ugly or semi-
private facts don't show up in the URL.)

If you can't accept HTTP POST arguments this way for some
reason but you can modify the CGI script (recipeBatch in your
example), then you may get a little farther by compacting the
arguments a bit.  You have a couple hundred copies of the
characters 'ids='.  Make it one argument with + separators,
and split it on the CGI side.  That gives you a little bit
of room, but it's not unlimited by URL length like POST is.

I am hoping that those 7-digit numbers are not phone numbers.
I'd hate to think I was helpful AT ALL to someone building
an annoying telemarketing system.

On Apr 8, 3:18 am, imran ali imran...@gmail.com wrote:
 Hi all,
 i have to download data but having big ur,l it's character is going to
 increase more than 4048,
 for small url it is working fine but for big url it has been giving
 response code 414- url too long.
 what would be feasible way to handle this issue?

 example of url is
 http://www.someserver.com/api/recipeBatch?
 ids=4851525ids=4853720ids=4856090ids=4856180ids=4856578ids=
...

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


[android-developers] Re: Honeycomb Sourcecode

2011-04-08 Thread Hari Edo


On Apr 7, 3:06 pm, JAlexoid (Aleksandr Panzin) jalex...@gmail.com
wrote:
 Why would you need Honeycomb source?


I think the issue is not need vs want.  Yet.  It's doing the right
thing.  If a network router uses some open-licensed code, but doesn't
provide the sources, they are rightly brought to task for it through
a legal challenge.

If Motorola has shipped stock Honeycomb 3.0 (per words from Google
reps here), then Motorola's users should have access to the software
on
the device.  While you can quibble about distinctions between Apache
vs GPL, and deltas from version 2.3 to version 3.0, the point is the
same:  users can't call it OPEN unless the users can have the CODE.
For Google to call it OPEN when users do not in fact have the CODE is
disingenuous at best, and becomes more nefarious over time.

Google's really good at hoovering in all kinds of data and coming up
with some sort of corporate strategy from it.  Google has not shown
the same level of ability at communicating in the other direction.
If we developers are going to be Google's partner in making Android
a success, then Google needs to communicate with us.  That goes for
Android Market, Android Platform, and all other areas upon which we
mutually depend.

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


[android-developers] Re: Parshing error

2011-04-07 Thread Hari Edo

On Apr 7, 2:55 am, rishabh agrawal android.rish...@gmail.com wrote:
 plz reply

rishabh agrawal, your question made no sense because it had no details
that we could use to understand the problem.  This is not the first
time that your questions on this forum were helpless.  Could you
please
read this page?

http://www.catb.org/~esr/faqs/smart-questions.html

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


[android-developers] Displaying data from database in table format

2011-04-07 Thread hari narayanan
Hi, i am trying to display the data from database in table format, but
it doesnt work. Pls take a look at the code here (I dont want to spam
this thread by posting a 2 page code here ...So, pls take a look at it
here):

http://pastebin.me/24d7e33ce334e56087dcb657081684e9

I will just post the XML part of the code here :

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
TableLayout
android:id=@+id/mytablelayout
android:layout_width=fill_parent
android:layout_height=wrap_content

/TableLayout
/LinearLayout

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


[android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread Hari Edo

The characters are made to be the same width as all other
Chinese characters, so that text will align as expected.

Even if I knew NOTHING about Unicode, or UTF-8 encoding,
I might decide to type all of the digits on the Chinese
soft keyboard, then cut and paste them into my Java code,
making a nice little filter with similar logic:

 if (ch == '1') ch = '1';
 if (ch == '2') ch = '2';

And so on.  If I looked at the integer values of each
character, I might notice that they're all in the same
order, so I could do something more sophisticated for
all conversions in one statement, like:

   ch = (char) ( (int)ch + (int)'1' - (int)'1' )

Some things require problem-specific code.  I would
suggest reading up on Unicode, and browsing the
UTF-8 or Unicode code tables to learn a bit more.

Were you hoping for a magic DWIM API that just
would Do What I Mean for any and all situations?

On Apr 6, 9:38 am, viktor victor.scherb...@gmail.com wrote:
 21212 -- Input from Chinese keyboard
 21212 -- From English keyboard

 On 6 Кві, 16:22, viktor victor.scherb...@gmail.com wrote:



  Hi,

  I have got device with Chinese keyboard, when I type digits into
  EditText and compare it with digits from English keyboard I have
  different results.

  How to convert Chinese characters to normal charset?

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


[android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread Hari Edo

Why don't you write a little code to find out?

Log.d(APP, This is the code for the character:  + (int)ch);

Many times, self-discovery is faster than forums, and the knowledge
sticks a lot better.

On Apr 6, 2:07 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Are they actually different characters, or the good old ones, just drawn
 with a wider, Chinese font?
 06.04.2011 21:59 пользователь Hari Edo hari@gmail.com написал:





  The characters are made to be the same width as all other
  Chinese characters, so that text will align as expected.

  Even if I knew NOTHING about Unicode, or UTF-8 encoding,
  I might decide to type all of the digits on the Chinese
  soft keyboard, then cut and paste them into my Java code,
  making a nice little filter with similar logic:

  if (ch == '1') ch = '1';
  if (ch == '2') ch = '2';

  And so on. If I looked at the integer values of each
  character, I might notice that they're all in the same
  order, so I could do something more sophisticated for
  all conversions in one statement, like:

  ch = (char) ( (int)ch + (int)'1' - (int)'1' )

  Some things require problem-specific code. I would
  suggest reading up on Unicode, and browsing the
  UTF-8 or Unicode code tables to learn a bit more.

  Were you hoping for a magic DWIM API that just
  would Do What I Mean for any and all situations?

  On Apr 6, 9:38 am, viktor victor.scherb...@gmail.com wrote:
  21212 -- Input from Chinese keyboard
  21212 -- From English keyboard

  On 6 Кві, 16:22, viktor victor.scherb...@gmail.com wrote:

   Hi,

   I have got device with Chinese keyboard, when I type digits into
   EditText and compare it with digits from English keyboard I have
   different results.

   How to convert Chinese characters to normal charset?

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

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


[android-developers] Re: Activity lifecycle

2011-04-05 Thread Hari Edo

On Apr 4, 10:29 am, Gino ginolee...@gmail.com wrote:
 In my tests, it looks like onSavedInstanceState() does not get called
 when switching from portrait to landscape mode, or vice versa.

There is no 'onSavedInstanceState' method in Activity.
Is that a typo in your question, or a typo in your code?
Did you mean 'onSaveInstanceState'?

Eclipse will put a little arrow in the left margin if you
are correctly overriding a base class's method.  You can
of course make a method of any name you want, but there is
a very small likelihood that it will ever get called.

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


[android-developers] Re: openGL texture render size

2011-04-02 Thread Hari Edo

On Apr 1, 11:16 pm, a a harvey.a...@gmail.com wrote:
 But i can't understand the following algorithm

 function nextHighestPowerOfTwo(x) {
     --x;
     for (var i = 1; i  32; i = 1) {
         x = x | x  i;
     }
     return x + 1;

 }

On the first loop, take the value and smear its bits
once rightward:

  x was:10010111
  x  1:   01001011
  x | x  1:   11010001

On the second loop, you could smear the bits once
rightward again (doing i++ in the for loop), but that
would be a waste of time since there can be no more
single 1 bits.  All the runs of 1 bits are now fatter.
So on the second loop, smear the bits TWICE rightward,
by doing (i = 1) in the for loop instead.

  x was:11010001
  x  2:   00110100
  x | x  2:   1101

On the third loop, smear the bits FOUR rightward,
since any 1 bit is now fatter.

  x was:1101
  x  4:   
  x | x  4:   

We're done in this example, but the loop here
also tries to smear by 8 and smear by 16.

We then add 1, to roll over to the next power of
two.

  x was:
  next power:   0001

However, because you don't want to have the
nextHighestPowerOfTwo(2048) to return 4096,
the function starts with x-1 instead of x.

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


[android-developers] Re: Google maps Android function

2011-03-30 Thread Piyush Hari
Re:
3) I have a large list of addresses (540 pcs.) How to determine
longitude mass and width (to refer to them on the map)?

I am developing a map based application to allow pet owners to
exchange pet sitting and I had similar questions before finding the
solution. Try using the Google Service that lets you do geocoding:

http://maps.googleapis.com/maps/api/geocode/json?address=some
addresssensor=true

Will return a JSON output that you can parse to look for the
appropriate information. As you might have guessed you will need to do
an HTTP GET and parse the output response.



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


[android-developers] Re: Emulator not rotating screen?

2011-03-29 Thread Hari Edo


On Mar 29, 7:25 am, Mark Murphy mmur...@commonsware.com wrote:
 This is a known problem with the 2.3 emulator.


*sigh*   Seems like a pretty obvious thing to test before releasing,
wouldn't you think?

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


[android-developers] Re: On Click method not working for buttons gotten by inflating the layout!

2011-03-28 Thread Hari Edo

You're inflating a whole layout, then attaching a listener to it,
then throwing the whole layout away.  There's nothing here showing
that the layout you've inflated is actually shown or attached to
the current activity.  If it's not on the screen, it's not going
to react to clicks.

Normally, you call your activity's .setContentView() with an ID
of a layout (R.layout.level), and that does the inflating and
more importantly, the continual display of said layout.  You
can then use .findViewById() to grab various buttons or other
view types in that layout.

setContentView(R.layout.level);
Button updateLevel = findViewById(R.id.updateLevel);

If you are inflating portions of a whole activity's layouts,
then be sure to add those inflated views to the activity's
existing containers (layouts).  For example,

setContentView(R.layout.whatever);
ViewGroup group = (ViewGroup)findViewById(R.id.levelgroup);
View level = getLayoutInflater()
.inflate(R.layout.level, levelgroup, false);
levelgroup.addView(level);
Button updateLevel = levelgroup.findViewById(R.id.updateLevel);

On Mar 24, 7:58 pm, The young programmer ayoungprogram...@gmail.com
wrote:
 All my other On Click methods work except the ones the I have to
 inflate the layout to get the button. What should I do to make this
 work? Or is it just my code that is wrong?

 Here are how I define my On Click listeners for the problem buttons:

 Button updateLevel =
 (Button)getLayoutInflater().inflate(R.layout.level,
 null).findViewById(R.id.updateLevel);

         updateLevel.setOnClickListener(new View.OnClickListener() {

                         @Override
                         public void onClick(View v) {
                                 setLevelOnClick(v);

                         }
                 });

    Button goBackMainMenu = (Button)
 getLayoutInflater().inflate(R.layout.play,
 null).findViewById(R.id.tomenu);
         goBackMainMenu.setOnClickListener(new View.OnClickListener() {

                         @Override
                         public void onClick(View v) {
                                 toMenuOnClick(v);

                         }
                 });

 Here are my onClick actions:

 protected void toMenuOnClick(View v) {
                 setContentView(R.layout.main);

         }

         protected void setLevelOnClick(View v) {

                 setContentView(R.layout.main);

         }

 What is wrong?

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


[android-developers] Re: Stack overflow error in TextView with text = ジョルテ

2011-03-28 Thread Hari Edo

I've used katakana and hiragana extensively in textviews, no problem.
This is a pretty suspicious error report-- is it JUST that string?
Is it only when the textview is in a listview?  What's the full stack
trace?  Are you sure your own function is not in the recursion, like
if you change the text on an on text changed listener, etc.?

On Mar 28, 12:47 pm, Bjorn Backlund bj...@backlund.org wrote:
 Hello group,
 I'm getting a  stack overflow in ViewRoot.draw when using a text view
 with  text = ジョルテ. The text view is in a ListView. Is there a way to
 catch this error and handle it gracefully?
 ---bjorn

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


[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-03-27 Thread Hari Edo

If you mean like the SMS app, you can do that with a .9.png
image file, also called a Nine Patch.

http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch

On Mar 27, 10:34 pm, Nick Longinow nicklongi...@gmail.com wrote:
 Like a balloon-style dialog, with one side of the dialog having a
 triangle coming out of it so that the dialog appears to point to some
 portion of the screen.  I've seen these in alot of apps - what is the
 basic idea here?  Is it use of shapes and themes?  Any simple examples
 out there?

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


[android-developers] Re: Augmented Reality and Spherical 360º Views

2011-03-26 Thread Hari Edo


On Mar 26, 10:01 pm, miguel miguelp...@gmail.com wrote:
 - Any tip for the sensor noise removal? Low pass filter, threeshold?
 both? any value for that filters? I tried EVERYTHING but the smooth
 problem may not be just here (so sad)
 - Any useful tip to make the overlay views move smooth?

Threading only helps separate the computation from the visuals,
so neither one gets too hung up on the other.

The most common filtering done, from Wiimotes to Google Star Map,
is kalman filtering.  It can take a bit of time and effort to
tune it right, but it will work better than anything else to
remove sensor nonrepeatability noise and jitter from an
arbitrary motion.

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


[android-developers] Re: collision detection

2011-03-25 Thread Hari Edo

On Mar 25, 8:36 pm, bob b...@coolgroups.com wrote:
 Does android have any libraries to help with collision detection?

Not going to give us much to go on, right?  What do you mean?
Phone-hits-pavement, finger-thumps-phone, finger-taps-widget,
circle-intersects-with-circle, rectangle-intersects-with-line,
sphere-intersects-with-ray, mesh-intersects-with-mesh, what?

Actually, I guess the answer is simpler than the question.
In all but one of those cases, the answer is generally no.

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


[android-developers] Re: database and maps

2011-03-23 Thread Piyush Hari
Putting latitudes and longitudes is one way. Putting just the address
and geocoding it before displaying on map is another. The caveat with
the latter approach is that geocoding everytime you retrieve data is
costly. Since latitudes/longitudes associated with addresses do not
change, it is best to store lat/lng in dB after geocoding the address
at the time of inserting the entry in db.

On Mar 22, 4:48 pm, sunny sunnykradi...@gmail.com wrote:
 in my project i need to take entries frm Db and show location on map

 is der any simpler approach den puttin latitude and longitude in table

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


[android-developers] Re: How to Obfuscate Android project source in eclipse

2011-03-23 Thread Hari Edo

The Android SDK setup for Eclipse does integrate with the ProGuard
tool,
which includes obfuscation.  I don't think obfuscation is much of a
protection, to be honest.  Focus on making a damned good app that
honest people will be happy to pay for.  You'll never achieve 100%
control over something you publish on the Internet.

On Mar 23, 7:12 am, lbendlin l...@bendlin.us wrote:
 you're searching for the wrong terms. This hasn't much to do with Android.
 Try

 eclipse java obfuscate

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


[android-developers] Re: how to change behavior of default application in android

2011-03-23 Thread Hari Edo

I think you're confused about how Android picks apps (activities)
to handle various commands (intents) that the user invokes.

Roughly:

  * the phone radio kit receives a call
  * Android asks, hey, which app is able to answer calls?
+ If one app says it can, that app is assumed the default.
+ If more than one app says it can, and one has been marked
  as the default, that app is used.
+ If more than one app says it can, and no default is marked,
  the user is shown a list of choices.
+ The user can make a choice and use it this time.
+ The user can make a choice and mark it as default for
  future situations as well.
  * Android uses the chosen app to display a receive call UI.

This scenario is not just for receiving calls.  It also works
for responding to the Home button, and many many many other
situations in the Android system.

You don't get hooks or callbacks for when applications finish--
even the app itself may not be notified that it's being killed.

You cannot disable this search for intent handlers mechanism.
It is at the core of what makes Android... Android.

On Mar 23, 9:58 am, Kacee komal...@gmail.com wrote:
 Hello All,

 I want to change default behavior of one of the in-built application
 like Phone/SMS/etc. I got to search on forums that there is an option
 in
 SettingsLaunch By Default  There Clear defaults
 The Clear default button on right is disabled for both in-built and
 any other downloaded app.

 1) Are there any special settings to disable it from custom(non in-
 built)  app?
 2) If once I change Clear Default using ClearDefault app available
 on market , is it possible to set the original default application
 back to active/defaults ?

 I want to change behavior of app after it is just about to complete.
 Can i get some event/ack that abc app has finished so that I can
 start my app after that ?

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


[android-developers] Re: security of the framework

2011-03-23 Thread Hari Edo

On Mar 23, 5:50 am, madushanka chamilhewag...@gmail.com wrote:
 Hi, I am handling the security module of a framework that will
 designed to develop real time applications for as my final year
 project. I am new to android and i need help on this. At the moment i
 need to know how to encrypt an XML file using an algorithm and how to
 decrypt it when needed, in android. Please Help me.

In general, asking people on the Internet to help you do your homework
is considered bad form.  Break up the problem into small parts, and
tackle each small part as its own problem.  As mentioned, encrypting
or decrypting XML is no different with Android than with any other
Java or Java-like environment.

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


[android-developers] Re: SIGSEGV on free()

2011-03-23 Thread Hari Edo

This has nothing to do with Android, per se.


Calling free(x) when x is NULL is not harmful.
Calling free(x) when x came from malloc() is not harmful.
Calling free(x) twice with the same value of x will surely SIGSEGV.
Calling free(x) with a bad value will likely SIGSEGV.

Note case 3:  if you call free(x), follow it immediately with x=NULL,
and you will probably not crash anymore.  Matching your malloc()/
free()
calls carefully and logically tends to fix such problems.




On Mar 22, 4:26 am, Dewr wind8...@gmail.com wrote:
 I have tested it on Galaxy S and it worked well on Galaxy S (2.2). I have
 not tried it on another Nexus One in order to know if my Nexus One is
 faulty.

 and it seems like that AssetFileDescriptor is not the source of the problem,
 because the problem is still ocurring while I didn't access asset files
 directly but accessing copied ones.



 On Fri, Feb 25, 2011 at 1:10 PM, Dewr wind8...@gmail.com wrote:
  it often causes SIGSEGV on third for-loop. but just a moment ago SIGSEGV on
  fourth loop.

  for ( i = 0 ; i  4 ; i++ ) {
  sprintf (temp, %s%s, header[i], index[fileno[i]]);
  *strBuf = getTextByIndex(filebuf, temp);* *//malloc() in this
  function.*
  if (strBuf == NULL)
  buf_output[i] = NULL;
  else

  {
  buf_output[i] = (*gEnv)-NewStringUTF(gEnv, strBuf);
  *free(strBuf);*
  }
  }

  On Thu, Feb 24, 2011 at 1:15 PM, Dewr wind8...@gmail.com wrote:

  Hello, I am porting a C program.

  The problem I've met is SIGSEGV on free(). I can't see what's the root
  cause of it.
  it doesn't occur sometimes, but very often.

  I am testing it on NexusOne 2.2.1
  I am using Android NDK r5b and Android SDK and Eclipse ADT and Cygwin.

  I am using *android.content.res.AssetFileDescriptor* to read assets in C
  modules.

  Here is the messages in ndk-gdb when the problem appears.

  (gdb) c
  Continuing.

  Breakpoint 2, Java_kr_co_pkbio_Unse_DangSaJuShinSal (env=0xaa50,
  obj=0x4495b970)
  at
  C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/jni/unse.c:1
  83
  *1083free(strBuf);*
  (gdb) next

  *Program received signal SIGSEGV, Segmentation fault.*
  *0xafd11c80 in __libc_android_abort ()*
 from
  C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/a
  meabi/libc.so
  (gdb) bt
  #0  0xafd11c80 in __libc_android_abort ()
 from
  C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/a
  meabi/libc.so
  #1  0xbec233bc in ?? ()
  Cannot access memory at address 0xc
  (gdb) quit

  Here is the Java source code...

  public static FileInfoForNativeCode openAssets(String fname) {
  if (Constants.VERBOSE_LOGS)
  Log.d(TAG, openAssets(+fname+));

  *AssetFileDescriptor myDescriptor = null;*
  try {
  myDescriptor = context.getAssets().openFd(fname+.jet);
  } catch (IOException e) {
  e.printStackTrace();
  return null;
  }
  FileDescriptor fd = myDescriptor.getFileDescriptor();
  long off = myDescriptor.getStartOffset();
  long len = myDescriptor.getLength();

  if (Constants.VERBOSE_LOGS)
  Log.d(TAG, fd:+fd+ off:+off+ len:+len);

  return new FileInfoForNativeCode(off, len, fd);
  }

  Here is the C source code...

  char* getTextByIndex (TextFileBufType *filebuf, char *index) {
  #define _INDEX_PREFIX_'@'
  inti, j, lenBuf;
  char*result;
  charindexPrefix = _INDEX_PREFIX_;
  intlenIndexPrefix = utf8len( indexPrefix );
  intlenIndex = strlen(index);

  for ( i = 0 ; i  filebuf-total ; i++ ) {
  *//__android_log_print(ANDROID_LOG_DEBUG,TAG, JNI : %d -
  %s, i, filebuf-text[i]);*

  if ( memcmp (filebuf-text[i], indexPrefix, lenIndexPrefix) != 0
  )
  continue;

  if ( memcmp (filebuf-text[i]+lenIndexPrefix, index, lenIndex) !=
  0 )
  continue;

  lenBuf = 0;
  lenBuf += strlen(filebuf-text[i]);
  lenBuf++;
  for ( j = i+1 ; j  filebuf-total ; j++ ) {
  if ( memcmp (filebuf-text[j], indexPrefix, lenIndexPrefix)
  == 0 )
  break;

  lenBuf += strlen(filebuf-text[j]);
  lenBuf++;
  }

  *result = malloc(lenBuf);*
  result[0] = 0;
  strcat(result, filebuf-text[i]);
  strcat(result, \n);
  for ( j = i+1 ; j  filebuf-total ; j++ ) {
  if ( memcmp (filebuf-text[j], indexPrefix, lenIndexPrefix)
  == 0 )
  break;

  strcat(result, filebuf-text[j]);
  strcat(result, \n);
  }

  *//__android_log_print(ANDROID_LOG_DEBUG,TAG, JNI : %d!!! -
  %s, i, filebuf-text[i]);*
  *return result;*
  }

  return NULL;

  #undef _INDEX_PREFIX_
  }

  inline void 

[android-developers] Re: SIGSEGV on free()

2011-03-23 Thread Hari Edo

On Mar 23, 11:41 pm, Dewr wind8...@gmail.com wrote:
 thank you guys. I really appreciate your advice.
 I have debugged by putting this 1 line code right after free(strBuf);
 (though there is no repeating free(strBuf)...)

  strBuf = NULL;


If that's all that you changed, and it fixed the
problem, then you WERE calling free() twice, likely
the same line of code was reached twice.  I wouldn't
call your logic really fixed, but at least now it
doesn't crash.

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


[android-developers] Re: How to make webview answers onmousedown immediataly when touched?

2011-03-18 Thread Hari Edo

On Mar 17, 10:05 pm, lol zsefv...@gmail.com wrote:
 webview always answers onmousedown (js) after your finger leave up
 from the screen, so onmousedown is just like onclick. So how can
 webview listen to onTouch event so that it can answer the onmousedown
 event immediataly when you've touched the screen?

Touch devices have different semantics.  They simulate the
onmousedown/onmouseup events for backward compatibility, but
you really can't assume they will work the same way.

For example, how would you scroll a webview if it replied to the
initiation of every touch instantly?  The touch, stroke, lift
has come to be known as a scrolling gesture, and the web page
should not receive any onmousedown/onmouseup events.  If you
touch and lift without stroking, only then can the system know
you're not trying to scroll, and it offers the onmousedown/
onmouseup events at that time.

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


[android-developers] Re: Source Code for HelloGoogleMaps Tutorial

2011-03-15 Thread Piyush Hari
Hello,

The official tutorial works for me.
http://developer.android.com/resources/tutorials/views/hello-mapview.html

Its best to debug to identify the problem. Did you include marker
images in your res/drawable* directories ?

Regards,
Piyush Hari
http://petsiiphoneapp.com
PETSI: Where Pets meet their sitters...
Android Version coming soon...

On Mar 13, 3:58 pm, Dominik Schury dominik.sch...@googlemail.com
wrote:
 Hello Developers,

 I am new at Android development and I work through the tutorials.
 The HelloGoogleMaps Tutorial

 http://developer.android.com/resources/tutorials/views/hello-mapview

 does not work on my phone. The map is shown but not the marker. So I
 want to ask if someone has a working source code of the tutorial?
 I can not understand that Google does not provide!

 Thank you 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


[android-developers] Re: Any idea for Augmented Reality??

2011-03-13 Thread Hari Edo

On Mar 13, 3:59 pm, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com
wrote:
 can anyone guide me to the path of augmented reality some nice
 tutorials, books ,special tips, platforms/sdk
 video links which can do the magic,..

Here you go:  http://tinyurl.com/663pdl2

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


[android-developers] Re: TranslateAnimation and scaleAnimation run at a time.

2011-03-10 Thread Hari Edo

On Mar 10, 5:21 am, leela morampudile...@gmail.com wrote:
 i am able to run Scale adn Translate animations one after another
 is it possible to run both at a time..

Read the documentation for AnimationSet.

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


[android-developers] Re: android TOAST?

2011-03-09 Thread Hari Edo

On Mar 9, 5:38 pm, kiros88 ghui...@gmail.com wrote:
 rather then the basic Ringer Volume display so i couldnt find any
 code that was using those words does anyone have an idea what it is
 like is it a toast cuz if it is does anyone know how to put a seekbar
 and textview on a single toast

You can put any view into a toast.   So make a layout in XML with all
you want to show, then inflate that layout, then assign it to the
toast.  Not difficult.

However, the one big rule about toasts:  no touch, click or typing
interaction is possible.  It fades in, it lingers, it fades out, and
you can't interact at all through 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


[android-developers] Re: Read CSV from web

2011-03-07 Thread Hari Edo

This looks like a school homework assignment.

Have you even taken the first step of dividing this task into
two parts?  What's the first thing you want to do?  What have
you considered, to get that first step accomplished?

On Mar 3, 6:13 pm, Muhammad Anas anas@gmail.com wrote:
 I am new to android and creating an application that imports data from
 web in CSV format. Please tell me how to parse data taken from web
 (CSV Format) in android

 I need to read it from URL and the sample data that I need to parse is
 as follows

 Start Date,Start Time,End Date,End Time,Location,Subject

 2011-03-03,13:15,2011-03-03,15:00,-,S1,John,Seminar on
 Telecommunication

 2011-03-06,10:15,2011-03-06,13:00,-,E1,Nicolas,Examination
 of TCP

 The above is the data I am importing from URL (webpage) and it is not
 exactly as I have written it. The data is in one line not in different
 lines like below

 Start Date,Start Time,End Date,End
 Time,Location,Subject2011-03-03,13:15,2011-03-03,15:00,-,S1 
 ,John,Seminar
 on
 Telecommunication2011-03-06,10:15,2011-03-06,13:00,-,E1,Nicolas 
 ,Examination
 of TCP

 I need to separate each n everything. Please help me out that how to
 import it from URL and to parse it in android

 /Anas

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


[android-developers] Re: Can you use include / with @layout-land?

2011-03-06 Thread Hari Edo


On Mar 6, 5:00 pm, Romain Guy romain...@android.com wrote:
 If the layout you want to include is *exactly* the same for all
 configurations, just put it in res/layout.



I once tried to have small rotation-independent clusters of
views included from layout/, while the activity xml was in
layout-land.  It seemed to have trouble finding layout/ to
resolve include tags.  Trouble of the NullPointerException
variety.

Since then, I dropped that approach, and keep everything
that a layout-land/ xml might need in layout-land/.  Maybe
later builds have fixed that bug.

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


[android-developers] Re: TextView gravity off on Galaxy Tab?

2011-03-05 Thread Hari Edo
Try setting the text value after setting the typeface?  It may
incorrectly
cache the measurement using the view's Paint's font, and not revise
that
measurement when the typeface is changed.

On Mar 5, 10:38 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Sat, Mar 5, 2011 at 1:10 PM, Nikolay Elenkov

 nikolay.elen...@gmail.com wrote:
  Hi,
  I have a TextView displaying a single character, centered inside the view.
  It works fine on all sort of devices, but on Galaxy Tab, the character is
  aligned with the top of the view and slightly clipped. I've reproduced it
  with the emulator, and tried all combination of gravity
  (center_vertical|center_horizontal, etc), with no success.

 OK, this only happens when I use a custom font. This same font works fine on
 other devices. Anything obvious I am missing? What I am doing is very simple:

 Typeface tf  = Typeface.createFromFile(my-font.ttf);
 myText.setTypeface(tf);

 There are no errors or warnings in logcat. I'm guessing the custom font 
 somehow
 is screwing up text drawing. Is there anyway I can get it redraw the
 text? I've tried
 with postInvalidate() and requestLayout() with no success.

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


[android-developers] Re: how to check my sign is correct not

2011-03-05 Thread Hari Edo

On Mar 5, 7:47 am, rishabh agrawal android.rish...@gmail.com wrote:
 how to check my sign is correct or not,becouse i have no android phone
 where i can test.i sign my apps using eclipse so how i will
 chek ..plz help

Why would you start publishing without even having one device?
The world is not your beta-testing employee.

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


[android-developers] Re: Help Getting the Context

2011-03-04 Thread Hari Edo

One alternative is to look for, or create, a public singleton.
A public singleton is a class that (1) ever only has one instance,
and (2) that instance can be located from anywhere by means of a
static method.

One candidate for singleton status is Application -- it is a Context,
and you expect there'll only be one of them.  In your extension of
Application, have the constructor save 'this' to a static field, and
have a public static method to get the saved reference.  Voi la, you
can now get a useful Context from anywhere.  Most apps don't use an
Application extension, but you can use this pattern on pretty much
any class.

On Mar 4, 9:38 am, Jake Colman col...@ppllc.com wrote:
 I'm sure that this is a basic question that must have been answered a
 100 times but I googled to no avail.  Maybe I am going about this the
 wrong way.

 I am creating a class that is not an Activity or a Service.  I need that
 class to be able to get a hold of, for example, the Location Manager.
 If I had a context I would call

    (LocationManger)context.getSystemService(...)

 How do I obtain a context in this situation?

 I would prefer not passing in the context to the class constructor.  Am
 I fundamentally misunderstanding this environment?

 --
 Jake Colman -- Android Tinkerer

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


[android-developers] Re: Help Getting the Context

2011-03-04 Thread Hari Edo

On Mar 4, 9:54 am, Jake Colman col...@ppllc.com wrote:
 So your suggestion is that I extend the Application class using the
 singleton pattern?  And my extension saves 'this' (the context) as a
 static member of my singleton?  So now I have to see how to extend the
 application class.

Yes, indeed.  Extend android.app.Application.

In your manifest, your application tag refers to the class that
should be constructed for the Application.   It's usually left to
be the default, Application, but you simply name your Application
extension class there, and Android constructs your class instead of
the default.  It gets its own onCreate()/onDestroy() lifecycle that
spans all activities.

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


[android-developers] Re: Help Getting the Context

2011-03-04 Thread Hari Edo

On Mar 4, 10:40 am, Hari Edo hari@gmail.com wrote:
 Yes, indeed.  Extend android.app.Application.
 ... Android constructs your class instead of
 the default.  It gets its own onCreate()/onDestroy() lifecycle that
 spans all activities.

Clarification:  Application has no onDestroy() and you can't rely
on the onTerminate() either.  Android can kill a process without
notifying the Application class instance, so if anyone adds other
features besides the singleton pattern, take care in holding onto
any kind of resource that needs to be committed/saved/closed/freed
for a clean termination.  In fact, better if you don't hold any
such resource open/uncommitted at all, if you can help 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


[android-developers] Re: how to stop music which is play background in my apps

2011-03-02 Thread Hari Edo


On Mar 2, 12:41 pm, rishabh agrawal android.rish...@gmail.com wrote:
 i have develope apps in which i play background music.but when i go to
 the home through back tab then the song is also playing.how it is
 stop.. my code are
         MediaPlayer mp=MediaPlayer.create(this, R.raw.ri);
         mp.start();


You are creating a MediaPlayer instance.  You save a reference to
this instance with your variable mp.  You then start the music
by calling one of the methods, with mp.start().  You then forget
all about the instance, by not saving any reference to it.  The
local variable mp is gone, but the instance is still playing.

This is like sitting in your car, starting the motor, turning on
the radio of your car, then stepping out of your car as it rolls
away from you.

You should declare mp to be a member of your class, instead of a
local variable.  And at an opportune time, such as during your
activity's onPause() callback, you should use the member mp to
control the media playback.

If this makes no sense to you at all, I'm afraid you should go
find a much more basic introduction to Java and software
development in general.

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


[android-developers] Re: Two activities in one window

2011-03-02 Thread Hari Edo

On Mar 2, 7:20 am, Mika mika.ristim...@gmail.com wrote:
 So what I would like to do is to have one view open where the user can
 see the new values and in the same window have also the system
 settings activity where the user should input the values.

And if they have no hardware keyboard, they will have to see

  * your layout containing the suggested settings,
  * a system settings activity, the size and layout you don't control,
  * a software keyboard that often takes up about 50% of the screen

All at once on a small handheld device.

I feel for your situation, it's a shame the settings can't be done
programmatically as would be ideal.  But this suggestion goes beyond
the sensible interface.  If it were just one field, such as a tricky
hostname, I'd offer the use of the clipboard.  If this is only to be
done once, they may have to resort to pencil and paper.  If it's
to be done often, and in likely travel situations (setting up a new
scratch VPN from every airport), it's not pretty at all.

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


[android-developers] Re: Market package name on Xoom?

2011-02-28 Thread Hari Edo

Greg, reading fail.  There's a difference between she's
only the one who... and she's the only one who...
Without Dianne's team, Android wouldn't be.

Shane, the advice (from Google team or anyone else) is
trying to coach you into a sustainable design.  You can
write whatever compiles, but the advice is to write
something robust and future-proof.

Have you tried the original suggestion, clipping the query
parameters?  I don't know if it would succeed.

Uri.parse(market://)

On Feb 28, 5:16 pm, Greg Donald gdon...@gmail.com wrote:
 On Mon, Feb 28, 2011 at 4:06 PM, rich friedel rich.frie...@gmail.com wrote:
  she's only the one who makes this OS happen...

 I'm pretty sure Linus Torvalds (and 16K kernel hackers) would
 disagree, not to mention Dan Bornstein, Andy Rubin, etc.

 --
 Greg Donald
 destiney.com | gregdonald.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


[android-developers] Re: reflection

2011-02-28 Thread Hari Edo

Reflection is the act of asking the JVM (Dalvik VM) and the
current ClassLoader object instance for information about the
classes it can reach in memory or along the Java CLASSPATH.

It has nothing to do with inter-process communication.  If it
is not in the current process, or reachable by the CLASSPATH,
it won't be found.

On Android, different package names are given different user
ids, and apps reside in completely different directories, to
further limit the visibility of files related to a different
application.

On Feb 28, 11:09 pm, Krt keerthira...@gmail.com wrote:
 Hi All,

 I am trying reflection in android.

 It works fine for classes, say A and B, under same project(same
 process in other words).

 It does not work between two different processes.
 i.e. I have
 project A, package name com.ref.classA
 project B, package name com.ref.classB

 Can I call from project B, Class.forName(com.ref.classA);

 I get exception class not found when I do this.
 Please note I have not imported package of calssA in classB.

 Am I missing something? or it is just not possible to do it between
 different processes.

 Any input would be of great help.

 Regards,
 Krt

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


[android-developers] Re: How to handle?

2011-02-16 Thread Hari Edo

You don't respond to the HOME key, it is handled by the OS
and only by the OS.  Add android:clearTaskOnLaunch to your
top-level activity tag in the manifest, and the OS does
what you describe.

http://developer.android.com/guide/topics/manifest/activity-element.html

On Feb 16, 7:00 am, Abhilash baddam
abhilash.androiddevelo...@gmail.com wrote:
 Hi,

    How to handle the Home key functionality. Suppose in my app i am having 5
 activities. When the user in 3rd activity if he clicks on Home button i want
 to finish my app. If he starts the app again then i want to start the app
 from starting onwards.

 I did like this but its not working,

 public boolean onKeyDown(int keyCode, KeyEvent event) {
     if ((keyCode == KeyEvent.KEYCODE_HOME)) {
      //webView.goBack();
      System.out.println(HOME in TEstApps);
      finish();
         return true;
     }
     return super.onKeyDown(keyCode, event);







 }

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


[android-developers] Re: Avoiding getIdentifier calls.

2011-02-16 Thread Hari Edo

I think the advice is to caution you not to do this for all of your
UI elements everywhere, just as you don't use Java Reflection for
all method calls.  Looking a few things up by name in response to
an activity start-up or a user interaction should not be a big deal.

On Feb 16, 7:30 am, Samuh samuh.va...@gmail.com wrote:
 We have about 300 drawables/icons in our application and each drawable/
 icon is associated with an Id meaningful within the functional context
 of our app. These icons are to be displayed in a Gallery and when the
 user makes a selection, the relevant Id for the selected icon needs
 to be passed to the backend server.

 Presently, inside getView of the Gallery Adapter, we are making use of
 getResources().getIdentifier() to fetch appropriate icons since we
 know only the names of the icons and their IDs. We DO NOT know their
 resource ID.

 The official documentation discourages use of this API. Also, though
 we have not yet instrumented our code, people have said this API and
 also reflection is inefficient.

 Questions:
 What are other alternatives that we can try?
 How should such resources be bundled so that they can be addressed in
 code efficiently?

 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


[android-developers] Re: Avoiding getIdentifier calls.

2011-02-16 Thread Hari Edo



On Feb 16, 7:30 am, Samuh samuh.va...@gmail.com wrote:
 Questions:
 What are other alternatives that we can try?
 How should such resources be bundled so that they can be addressed in
 code efficiently?


If you do find yourself making many calls, especially from the same
name multiple times, form your own MapString,Integer with each
value you look up.  Use the value if it's already in the map, or
ask Android to resolve the name and add it to the map.  This
technique is called memo-izing or memorizing the function.

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


[android-developers] Re: SQLite multithreads

2011-02-15 Thread Hari Edo

Fifteen seconds of the proper use of web search tools gives this:

   FAQ: Is SQLite threadsafe?
   http://www.sqlite.org/faq.html#q6

   Android Documentation - SQLiteDatabase - setLockingEnabled()
   
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#setLockingEnabled(boolean)

On Feb 12, 4:36 pm, Neo Apostol neo.apos...@gmail.com wrote:
 Hi,
 Is it possible to write data from different threads  to the SQLite DB at
 the some time?
 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


[android-developers] Re: How to delete...?

2011-02-14 Thread Hari Edo


On Feb 14, 9:15 am, Abhilash baddam
abhilash.androiddevelo...@gmail.com wrote:
 I tried like but showing error..

Why is it so hard for people to explain WHAT error they get?

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


[android-developers] Re: Getting rid of the blink after a TranslateAnimation

2011-02-11 Thread Hari Edo

Note that the usual matrix-manipulating animations don't change the
hit-testing for a view, so you have to actually move the real view
if you plan on animating a view that is touchable.

My app, Qwiz - Hiragana, uses a LOT of drag and drop of views,
and touchable views that move around on their own initiative.

I implemented a true Animation class that adjusts the view's
position instead of manipulating the drawing transform matrix.
Then you don't need to reinvent the wheel of timing and iterating
and interpolating things (and you can use all of the other fun
iterators to bounce or wiggle the view).  I use a FrameLayout to
support moving things around by their margin coordinates, instead
of an AbsoluteLayout, but the idea is the same.

On Feb 10, 10:40 pm, Mark markree...@gmail.com wrote:
 I'm using TranslateAnimation  to actually move a View from one place
 to another, however from what I can google no one has managed to
 actually do this without having the View blink out for a second at the
 end of the animation...  If you've managed to do this without the
 blink please share.

 Has anyone tried doing the translate themselves with AbsoluteLayout?
 It looks like I'll have to duplicate the translate functionality by
 using a Handler to act as a run loop and move the View myself? A
 handler isn't a separate thread right? I just use it to to call a move
 function every X ms?

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


[android-developers] retrieve current shadow effect attributes from a textview

2011-02-10 Thread Hari Edo

I can set shadow layer attributes in XML for a textview.
Separate attributes control the Dx, Dy, radius and color.

I can also set shadow layer attributes in code.
One method will allow me to set all four of those parameters.

However, I don't see any getters for these parameters.

I'd prefer to design the appropriate shadow in XML, but
I guess I'll have to do it in code, so I can know the values.

I was hoping to read the existing values of the parameters,
so I could do some dynamic effects with them in some
situations, without completely shifting to implement the
parameters in code.

(Example:  rotate text view upside down, but play with
shadow Dx Dy so the lighting doesn't look wrong.  Or
animate shadow right to left as another graphic moves.)

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


[android-developers] Re: Redrawing a view when the transparent activity closes

2011-02-10 Thread Hari Edo

Are you saying that your MainActivity.onResume() nor your
MainActivity.onActivityResult() is not being called?  I would think
both should be happening here, and the translucent visual effect is
irrelevant.  See the activity lifecycle documentation.

On Feb 9, 6:02 am, vivin joy joy.viv...@gmail.com wrote:
 Hi All,
        i have an Activity called MainActivity. It has a custom view on
 it and a button. When i press a button, it opens a new Activity with a
 translucent theme so that MainActiivty is paused. The Second Activity
 has got a EditText. and i type something over there and press a button
 which closes the second activity and it returns back to MainActivity.
 When we return back to MainActivity, i need to redraw the custom view
 depending on what i typed in the second Activity. but it doesn't get
 re-drawn immediately after i have returned. It gets re-drawn only
 after i touch the custom view. How do i make a custom view re-draw
 immediately when i return to an activity? plz people help me with
 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


[android-developers] How to intercept when the application is brought to foregroud from background

2011-02-10 Thread Hari
Hi,
Out Mobile Application required the user to provide username and
password to login. After login, if the user navigates to another
application and tries to come back to our application again, i would
like to intercept this action and redirect the user to login screen
and then lead to where ever he was before.

How can i achieve this?

Currently we are doing it a very crude way by tracking the user's
action in variables and in onResume() we check for the value of the
variable and make a decision if he should continue or be redirected to
login.

Is there something to the order of an Interceptor which can use tell
me if the application coming to foreground was actually in the
background and not a new process.

Any assistance is appreciated.

Regards
Hari

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


[android-developers] Re: How to intercept when the application is brought to foregroud from background

2011-02-10 Thread Hari
Hi Mark,
Thanks for validating our approach.

If you are called with onResume() and not onCreate(), you are coming
back onto the screen after having not been on the screen.

There are 2 possibilities,
1. you come back to the same screen (activity) due to the application
flow. Navigate to other activities and come back to it due to
application functionality.
2. you come back after you navigate away to another application.

Is there a way to recognize this using the application attributes or
context attributes.

Regards
Hari

On Feb 10, 2:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Feb 10, 2011 at 2:19 PM, Hari mba.for.d...@gmail.com wrote:
  Out Mobile Application required the user to provide username and
  password to login.

 Why?

  After login, if the user navigates to another
  application and tries to come back to our application again, i would
  like to intercept this action and redirect the user to login screen
  and then lead to where ever he was before.

  How can i achieve this?

 onResume()

  Currently we are doing it a very crude way by tracking the user's
  action in variables and in onResume() we check for the value of the
  variable and make a decision if he should continue or be redirected to
  login.

 Sounds about right.

  Is there something to the order of an Interceptor which can use tell
  me if the application coming to foreground was actually in the
  background and not a new process.

 If you are called with onResume() and not onCreate(), you are coming
 back onto the screen after having not been on the screen.

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

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

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


[android-developers] Re: Android Market anomaly in limiting distribution

2011-02-09 Thread Hari Edo

Try signing out of the Market console, shutting down your web browser
instance completely, and forcing a refresh of the page.  This sounds
similar to a complaint where Free apps were reported with 'invalid
price' in many countries; a clean browser session fixed the problems.

On Feb 9, 12:01 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I see the same thing. If it is indeed the case, shortly I'll be seeing
 a bunch of one star comments in different languages. Our weather app
 (Radar Now!) only functions in the US and border regions of Canada and
 Mexico. I'll post back if that's the case.

 -John Coryat

 On Feb 9, 10:20 am, DanaH dhauk...@gmail.com wrote:



  I am preparing to release the latest update to our company's app. This
  application is intended to be released only within the United States,
  and in the past this has not presented any difficulty. Apparently with
  the recent updates to the Android Market publishing page, I am no
  longer able to select only the United States as my intended country.
  When I unselect the default All Countries option, and then select
  United States, the All Countries check box again becomes selected.
  This anomalous behavior is not unique to selecting the U.S.; selecting
  any country causes the All Countries check box to become selected.

  Has anyone else seen this behavior? This functionality worked as
  expected in the previous release of Android Market.

  I am running on Windows XP Professional, and I see this behavior both
  with Internet Explorer and Safari web browsers.

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


[android-developers] Re: Completely disable Soft Keyboard from EditText

2011-02-06 Thread Hari Edo

I think he said he had a special soft keyboard that was to be used for
this field.  Sounds like he doesn't want to go through the whole
hassle
of creating an entire soft keyboard, nor creating all the caret-
position
and backspace-handling code necessary to reinvent EditView.  I don't
know the actual situation but imagine a Scrabble tile rack that only
let
you enter the letters in your rack, plus a backspace and DONE key.

On Feb 6, 2:26 am, Dianne Hackborn hack...@android.com wrote:
 Can I first ask, what are you trying to accomplish?  What is the purpose of
 having an editable text view if the user can't actually put text into it?









 On Tue, Feb 1, 2011 at 10:29 AM, zenperttu perttu.s...@gmail.com wrote:
  Hi!

  I would like a way to turn off showing the current soft keyboard for
  an EditText. I have a custom View that provides the soft input needed
  for an EditText, so on every occasion (on click, on focus change, on
  touch...) when by default the soft keyboard would be shown, I want it
  NOT to be shown.

  The closest things I found are

 http://groups.google.com/group/android-developers/browse_thread/threa...

  and

 http://stackoverflow.com/questions/1109022/how-to-close-hide-the-andr...

  and

 http://stackoverflow.com/questions/1109022/how-to-close-hide-the-andr...

  These however do not work for me.

  The solution suggested in the latter

  InputMethodManager imm =
  (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);

  for example works only after the EditText has been selected by the
  user and is already accepting input and so the soft keyboard is
  already on the screen. I want it never to appear.

  I can try to implicitly set all of the onFocusChangeListener,
  onTouchListener, onClickListener  to do

  public void onSomeActionListener(View v) {

  InputMethodManager imm = (InputMethodManager)
  context.getSystemService(Context.INPUT_METHOD_SERVICE);
                         if (imm.isActive(v)) {
                                 imm.toggleSoftInput(0,0);
                         }
  }

  However, this is really not a nice solution because

  1) the soft keyboard is first called and shown so that it briefly
  flashes on the screen before disappearing

  2) I can't by trial and error try to find all the different ways user
  could cause soft keyboard to be shown and override all corresponding
  methods

  Thanks for your 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

 --
 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, and so won't reply to such e-mails.  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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Where to report app update problems?

2011-02-06 Thread Hari Edo

I ran into this on an update of my free app tonight as well.
I completely quit the whole Chrome browser process (which has
been running for a month), and restarted it.  The price problem
went away as if by magic.

I did notice another problem, where non-latin characters were
causing the Recent Changes text to blank out.  It would let
me type them and save them, but then a refresh or look in the
Market would show no text at all.  If I latin-ized the text,
it worked okay and the Recent Changes text stayed.


The question of the thread still stands:  where do you post
this kind of problem with the market, officially?


  On Feb 6, 9:20 am, Keith Wiley kbwi...@gmail.com wrote:
    I scroll down to find the problem and see that
   many countries now say Invalid price in red writing with a red box
   (those messages weren't there before I clicked Save)...BUT IT'S A FREE
   APP!!!  and to make matters worse, the United States is one of those
   countries (I'm in the U.S.)!!!

--
Qwiz - Hiragana flashcard drill game
http://market.android.com/details?id=cc.halley.droid.qwiz

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


[android-developers] Re: Application Shutdown

2011-02-05 Thread Hari Edo

Save data when the user's no longer interacting with it.  And even
when they are.  As you point out, there are no guaranteed callbacks.
The system assumes that if you're idle, you can be killed.

On Feb 5, 8:57 pm, AndroidDevTime androiddevd...@gmail.com wrote:
 I would like to handle application shutdown gracefully.  Whether the
 user ends the application or the system decides the kill the process,
 I want to know the best place to put hooks in the application to
 detect and handle this.  I know that application level components have
 lifecycle methods the conform to system events, but I really want the
 best practice on this at the application level.  This is after all an
 application level shutdown, so i want an app level(not just component
 level) handling.

 Not really sure where to put the global app shutdown code:

 In Application.terminate() ?:  Not really guaranteed to get called.

 In a service?:  I have n services.

 In an activity? : ok but just for the view data.

 The only thing I can think is to have a service dedicated to this
 shutdown activity manage the application level data, but I don't
 really want to start a service at a time when my app is getting
 shutdown perhaps for resource consumption.

 Perhaps one could  just let each component deal with it, however I
 have shared data/state (that is not a preference) across the
 components, and I see no reason why one of those components other than
 the application (subclass) should be dealing with application global
 data management.

 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


[android-developers] Re: Disable landscape orientation in Android Browser?

2011-02-04 Thread Hari Edo

Web sites should be even more aware that differences in browsers
exist, and to allow the end user to dictate the state of the
browser, not you.  For some examples, phone clamped in landscape
on a car's dashboard; user who prefers landscape because the text
can be bigger and more readable; users who need to enter things
with the pop-out hardware keyboard.

What could possibly *require* portrait layout over the wishes of
the user?

On Feb 3, 2:46 pm, Grev thegrevs...@ukspotlight.co.uk wrote:
 I know there is a way to restrict the orientation within an app, but
 is there a way in code of a web page (whether it be HTML, CSS or JS)
 to restrict the web view to only potrait?

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


[android-developers] Re: In app billing...

2011-02-04 Thread Hari Edo

On Feb 4, 2:31 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 No, that says that the purchase can't be refunded.

 Is it somehow made clear to the user that the purchase can be refunded
 by contacting the developer?

 -- Kostya


I would gather that only those developers who WANT TO OFFER THE
OPTION of refunding in-app purchases, would make that clear in
the app itself.  (The left-hand image in the above checkout flow
could have that made clear, at the developer's discretion.)

Given that in-app purchases can have immediate benefits to the
buyer (buying a dragon-sleep potion allows the player access to
the dragon's treasure hoard), I can imagine that the developer
DOES NOT WANT an in-box filled with can you refund my purchase,
the potion didn't work messages which are 99% lying anyway.

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


[android-developers] Re: Force Close Question

2011-02-01 Thread Hari Edo

Something else is causing your Force Close.  Read the exception
report in LogCat and dig into the actual cause.

Read up on the Activity lifecycle, in particular the bubble
that reads Other applications need memory:

http://developer.android.com/reference/android/app/Activity.html

The Android OS won't even try to return to your app if
it reaped it for memory.  It will just restart it.  There
is no way that it reaps some part of the app state
irretrievably, but leaves the process going.

If the system is low on memory, your app may receive an
*opportunity* to shed some of its state data at the app's
discretion.  If your app does honor this *request*, then
the system may have regained enough memory to allow the
user to run some other heavy task in the foreground.  The
current activity also got an earlier courtesy notice when
your activity was no longer active, giving an opportunity
to save the state away.  If your app does not honor these
requests, or cannot free up enough memory, the then the
system reserves the right to completely kill the whole
process as a whole.  If that happens, your next startup
will surely be as a brand new process, and your activity
will be handed whatever you chose to save away earlier.

You *can* flag your app to start at the initial activity
every time the app is suspended and resumed, but that is
completely separate from your impression that Android
frees up memory without any notice or control over its
own state.

On Feb 1, 7:18 pm, Scott Deutsch surger...@gmail.com wrote:
 Hello Group,

 How can I deal with when the user hits the home button when in my app and
 then doesnt go back to it for a while and then they hold home button to go
 back to my app and then the force close appears since all the memory has
 been freed because how the OS is designed.

 Is there a way instead of resuming the app that has freed memory and will
 break instantly...just launch it brand new?

 Is there a setting in the Android Manifest to force start brand new if freed
 memory?

 Thanks group.

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


[android-developers] Re: google analytics and active installs on market way off

2011-01-30 Thread Hari Edo

Congrats on having such a popular app.

Sounds like your child has grown up and left home, moved off to other
markets
without asking your permission.  Some people would say it's stealing,
piracy,
and must be stopped at all costs.  Some people would say that the more
people
see it, the more people will buy it, so those underground copies are
just a
form of advertising.

I just wish the market and the analytics would update more often than
24
hours.

On Jan 30, 9:05 am, neuron aagaa...@gmail.com wrote:
 Hi

 I got an application that onhttp://market.android.com/publish/shows around
 20k active installs / 30k total installs. However, google analytics for the
 app (that's not really doing anything weird. It's just using the normal api,
 collecting fairly standard data). Is showing 100k+ unique visitors since
 launch (around 37k so far this month).

 What should I trust?

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


[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Hari Edo

This kind of question seems more like a school homework
assignment, but in case the question is practical, here goes.

What Base64 is:

  http://en.wikipedia.org/wiki/Base64

This article gives plenty of examples and details that someone
can write their own fully-tested implementation in an hour.

But in twenty seconds of using Google, I tried the search string
of base64 encode in java and got tons of hits.  The third link
has a fully-tested implementation (based on the same Wikipedia
example data and algorithms).

  http://www.wikihow.com/Encode-a-String-to-Base64-With-Java

Now, it's not good form to just copy code without asking, but
since this is a How-To article published on the web, I don't
think you'll run into copyright issues if you adapt their code
into your application.  There's good discussion in the article
about how the code works, and advice on learning to program.

However, this question is even sillier than that.  The
Android platform even includes a class called Base64 which
does all the encoding and decoding for you.  Without
worrying about incompatibility, testing, or license issues!

  http://developer.android.com/reference/android/util/Base64.html

That class even has an .encodeToString() method that turns
your arbitrary byte[] data into a String ready for use in
sqlite TEXT fields.

Beyond that, I'm really not sure what the actual problem is.

I'm not trying to be rude, but it's depressing when people
ask questions that are so quickly answered with even the
most cursory search first.

On Jan 28, 11:40 am, saex elpablos...@gmail.com wrote:
 Hi

 Can someone tell me the code to transforma image (maximum of 200KB)
 into Base64 String???

 i need to know how to do it with android, because i have to add the
 functionality to upload images to a remote server in my main app
 putting them into a ROW of the database, as a string.

 i am searching in google and in StackOverflow but i can't find easy
 examples that i can afford. And also i find some examples but they are
 not talking about to transform into String... and i need to transform
 into string to upload by JSON to my remote server.

 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


[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Hari Edo

Perhaps the actual question is how to get a byte[] for a given
Bitmap or vice versa.  This is, indeed, Android-specific and not
as obvious as the Base64 part of your question.

However, again, with a couple minutes of Google use, I found
this snippet:

 // have Bitmap bitmap from somewhere
 ByteArrayOutputStream bos = new ByteArrayOutputStream();
 bitmap.compress(CompressFormat.JPEG,100,bos);
 byte[] array = bos.toByteArray();
 // now have byte[] array to use, e.g., base64 encode

And then on the decompression side,

 // have byte[] array from somewhere, e.g., base64 decode
 Bitmap bitmap =
BitmapFactory.decodeByteArray(array, 0, array.length);
 // now have Bitmap bitmap to use, e.g., to make a drawable



On Jan 28, 11:40 am, saex elpablos...@gmail.com wrote:
 Hi

 Can someone tell me the code to transforma image (maximum of 200KB)
 into Base64 String???

 i need to know how to do it with android, because i have to add the
 functionality to upload images to a remote server in my main app
 putting them into a ROW of the database, as a string.

 i am searching in google and in StackOverflow but i can't find easy
 examples that i can afford. And also i find some examples but they are
 not talking about to transform into String... and i need to transform
 into string to upload by JSON to my remote server.

 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


[android-developers] Re: Android Developer Position for a NY Based Internet Company

2011-01-27 Thread Hari Edo

I've never heard of a software *development* position that's
stuffed into a mid-shift or night-shift slot.  Either you're
really advertising for operations technicians to be on call
for those hours, or you are expecting a groundbreaking work
environment where collaboration is excercised primarily
with calls to offshore outsource labor in a remote timezone.
Nothing wrong with global economy and all that, but it's
hard to tell what you're really seeking in candidates.

Can you give more info on your unusual ad in this regard?

On Jan 27, 6:45 am, Kim Abunado kim.abun...@gmail.com wrote:
 Hi There,

 SourcePad is a New York City based Internet company focusing on
 outsourcing services for SME. Our company practices a groundbreaking
 work environment where collaboration is exercised throughout all
 levels of the company.

 We are expanding rapidly and have now worked with 50+ clients!

 We currently have more Mobile work than we can handle and need to grow
 our team!

 We have positions for both Mid-shift  Night-Shift, so, if you are
 smart, excited about Mobile  development and want to potentially
 double your salary...we want you to join our team!

 If you are interested, please email Kim at k...@sourcepad.com or text
 at 0916.496.83.46

 Look forward to speaking with you!

 Kim Abunado
 Recruiting Manager
 SourcePad LLC
 0916.496.8346www.sourcepad.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


[android-developers] Re: Absolute path for an asset file

2011-01-27 Thread Hari Edo

An APK file, like a Java JAR file, is really just a ZIP
archive file with special manifest data included with the
other data files.

Your assets/ directory on your development machine may
contain individual files.  They get zipped up into the
APK along with all the .class, .png and .xml files.
The APK file contains it all in one file.

Once inside the APK, there really is no absolute path
to the files inside.  They are not really files.  They
are just entries in the ZIP, which a zip expander could
reconstruct into real files later.

This is why you use special API to access assets.  Many
apps ship with initial databases, and if the app finds
no existing file, it uses the special API to reconstruct
real files (sometimes confusingly called copying a file
out of the APK).

See copyDataBase() in this article for a working
example of how to extract an asset and reconstruct a
file in your data directory.

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

On Jan 27, 2:31 pm, Titus titus.mor...@gmail.com wrote:
 Hello,

 I have been trying to get the absolute path for an asset file but i
 havent found an answer.

 the file which is directly within my asset folder is mydemo.txt
  and i call the function given below to test the validity of the path
 (tried the below options)
                 testURI(//android_asset/mydemo.txt);
                 testURI(//assets/mydemo.txt);

         public void testURI(String filepath) {
                 try {
                         Log.e(TAG, Testing  + filepath);
                         File f = new File(filepath);
                         if (f.exists() == true) {
                                 Log.e(TAG, Valid : + filepath);
                         } else {
                                 Log.e(TAG, InValid : + filepath);
                         }
                 } catch (Exception e) {
                         Log.e(TAG, File not found + filepath);
                         e.printStackTrace();
                 }
         }

 Can someone let me know whats the absolute path i can use to get an
 asset file. i don't need the file descriptors but i want the file path
 to construct an URI.

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


[android-developers] Re: Suggested Android Phone for Unity Game Development Testing?

2011-01-27 Thread Hari Edo

They list compatible phones.  Buy one of those.

This is the most important paragraph I found in your forum link:

  The problem is, publishing to Android won't really be
  solid for another year. Consumers get locked into 2 year
  contracts, in the same way I got locked in, and the most
  common will be the free phones and the cheaper (50$) for
  the next 2 years. Without a way to dumbdown your app, or
  modify the published one within Eclipse to work for ARMv6,
  that is potentially a GIANT chunk of current market share
  which will be LOST to a UnityAndroid developer.

The market has a ton of very competent devices out there, but
Unity is not doing what they need to do to be compatible
with what is out there NOW.  As much as a developer may want
to tease over the specs to find 'Samsung Galaxy S' is a
compatible model, the general public does *not* see any
clear differentiation or tiers.  They just see that your
game sucks because it won't run while Angry Birds does.

That, and Unity has no try ON THE PHONE before you buy
plan to get into Unity development.  You might go with the
trial on your desktop, but that doesn't really tell you
whether your idea will work well on the Android platform.
If you had to buy Eclipse and the Android SDK just to load
an app on your own phone, we wouldn't have come so far so
fast.  If the price of those tools was as high as Unity,
come on now.

On Jan 24, 7:29 pm, HV-Charley charles.holmes.pr...@gmail.com wrote:
 Hey everyone,

 I'm new to Android development and am looking to sort out what I
 should be getting as a development device for non-emulator testing
 purposes. Naturally, my goal would be to get a device that best
 represents the most common end-user device looking ahead to the next
 4-12 months when our first title(s) are likely to be released.

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


[android-developers] Re: Tablet support up to 2.2

2011-01-26 Thread Hari Edo

I think the tablets in general will be more likely to flip orientation
and good apps should handle that gracefully.  But I think they should
also have a lock orientation control at the OS or hardware level,
as it's common but annoying to have the view flipping as you lay down
in bed reading on an e-book reader (as an example).

One thing that I did in my app was to identify some views as heros
and some views as mere interface details.  I made a generic sizing
capability which makes a view, say, N% of the size of the whole
window, and I use that on all the hero elements.  So the buttons stay
the same size (finger sized) but the main elements of the screen use
their available real-estate more fully.

 (Not to toot my own horn, but see my Qwiz - Hiragana screenshots.)
 http://www.appbrain.com/app/qwiz-hiragana/cc.halley.droid.qwiz

Other applications just try to allow the additional area to be used
as a more convenient tableau, fitting more items in view at once,
because the individual items remain finger-sized.

 (NiaSoft's game Alchemy Classic uses tablet workspace well.)
 http://www.appbrain.com/app/alchemy-classic/com.niasoft.alchemyclassic

On Jan 26, 5:43 am, Neilz neilhorn...@gmail.com wrote:
 Hey thanks Kostya, that's really useful. I agree, maybe ensuring that
 the layout works is more important than resizing all the images again.

 Portrait vs Landscape is another issue... the majority of my apps
 specify portrait only, it's just the way they were intended to work.
 Do I take it that these tablets are designed to set landscape mode as
 their default?

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


[android-developers] Re: One frame buffer per activity or one frame buffer per the whole system

2011-01-26 Thread Hari Edo

I'm not sure that this is the right forum for platform-developers;
it's more geared to app-developers.

However, I will point out that there's an important entity between
the framebuffer level and the activity level, and that is the Window.
Activities come and go, Dialogs come and go, and their views are
attached to the window to be seen.  Activities themselves aren't
users of pixels, but Views are.  I don't think any storage is given
to a View; the View is merely consulted to render into the Window.

On a phone, the Window is basically 95% of the whole screen so you
don't necessarily think of this, but it's still a separate entity.
I could definitely see some more traditional WIMP implementation
offering a Desktop that contains multiple overlapping or tiled
Window areas, and in those Windows various Views/Activities being
managed in parallel.  Not saying that's the best vision of a huge
display on Android, but it may help understand the framebuffer
question you posed.

On Jan 25, 9:59 pm, Videoguy puri_mall...@yahoo.com wrote:
 Hi
 I am trying to come up with memory footprint requirements for an
 android based settop box. Does Android maintain framebuffer per
 activity or one framebuffer per the whole system?

 Lets say I have 10 activities. Lets assume frame buffer size is 2MB.
 Does system need 10x2MB+2MB (= 22MB) for these many resident
 activities?

 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


[android-developers] Re: Edittext max characters - not set max

2011-01-26 Thread Hari Edo

I think Andre was looking for a design limit, not how to set one.

The control can handle many pages of text, even with spanning styled
markup.  The EULA which I saw on one Android tablet was shown in a
simple text view, and it was about fifty pages of text on the tablet.
(The EditText control should have the same limits as the TextView,
as the EditText is just some additional features on the basic view.)

The answer is how much memory can you allocate?  Of course
the system needs to allocate resources to measure and typeset and
render all of that text.  If it's too long, consider showing the text
in pages or chunks.

On Jan 26, 1:05 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 26 January 2011 18:27, André pha...@hotmail.com wrote:

  Is there a limit on how many characters and or lines you can have in
  an edittext? Or is it unlimited?

 http://developer.android.com/reference/android/widget/TextView.html#a...

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


[android-developers] Re: performance when passing background data to ui thread

2011-01-26 Thread Hari Edo

If you're sure that all users of the data are within the same process
(the
same app), then using Java synchronized is the best way to go.
However,
you will need to be very careful to understand your semaphore
dependencies,
or deadlock will occur.  Not responding is almost as bad as Data
corrupted due to bad inter-thread communication.

The use of Bundles and/or ContentProviders are to enable inter-process
data
passing, and to avoid some of the danger of errant deadlock
situations.

On Jan 26, 10:37 am, neuron aagaa...@gmail.com wrote:
 Hi

 I've got an app that spawns of a seperate thread. Parses JSON data into a
 structure. And passes it back to the main thread through a handler. Each
 part of data is sent through the handler individually. That worked fairly
 well with my previous XML parser, as XML parses data while it downloads. But
 JSON doesn't (atleast I haven't found a way to get that working). In either
 way the JSON data is much smaller and much faster to parse.

 I've recently added a feature that requires me to load several sources of
 json in parallel, parse in the background, and pass all the data back again
 using a Handler. This is a bit slower than I was hoping.

 Would it be faster (and possible) for me to do this:
 BackgroundThread extends Thread {
     onCreate (Parent) {
         this.parent = parent;
     }
     onData {
         parent.addParsedData(x);
     }

 }

 Parent extends ListActivity {
     ListAdapter list;
     onCreate {
        setListAdapter(list);
        new BackgroundThread(this);
     }
     public synchronized addParsedData(data) {
         list.add(data)
     }

 }

 I'm thinking this won't be thread safe, as ListAdapter is in the parent
 thread. Am I right?
 Should I instead inside the listadapter (which puts data in an array) have
 synchronized access to it's items?

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


[android-developers] Re: ENHANCEMENT: Allow java public static finals to be referenced from XML

2011-01-26 Thread Hari Edo

It would create a dependancy loop:

 *   the app code requires R.java to be generated
 *   the R.java generation requires the XML to be scanned
 *   the XML @java would require the app code to be scanned

Maybe you intend the XML to be scanned twice, with two different
sets of rules as to what is allowed to be broken on each pass,
such that nothing broken slips through the two passes.  On the
first pass, find @+id kinds of things to add to R.java; on the
second pass, find @java kinds of things to validate the code.
All of the rest of the XML DTD rules would need to be covered
on at least one of those passes.  That kind of duplicity is
very error-prone and troublesome.

On Jan 26, 12:14 pm, mkh mike.hana...@gmail.com wrote:
 One example from an AndroidManifest.xml:

 provider android:name=NotePadProvider
             android:authorities=com.exampl.notepad.provider.NotePad /



 This deliberately includes a typo that cannot be flagged by an IDE
 because it is just a string.

 Instead as an enhancement, why not define @java/ to be a reference
 to the a public static final, then the above becomes:

 provider android:name=NotePadProvider
             android:authorities=@java/
 com.example.android.notepad.AUTHORITY /

 Now an IDE can provide completion on these @java variables, and the
 IDE can also immediately flag undefined references. Also, the
 definition of the authority string can be changed in one place, and
 the code does not break.

 Is there any reason this would not work -- it seems like the benefits
 offered are significant.

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


[android-developers] Re: Application does not use all screen in Android tablet (with android 2.2)

2011-01-26 Thread Hari Edo

The tarot deck answers nothing, so I'm reading the tea leaves now.  If
that
doesn't work, I will throw some chicken bones across the campfire.

What app?  Is this your app?  What are you doing to develop the
activity?
Are you making layouts in XML?  Did you try a sample application?
What
tablet are you talking about?

I'm sure this reply is not useful to you.  Google for How to ask
questions
the smart way and you may get some more useful replies.

On Jan 26, 2:10 pm, gato chlr dany...@gmail.com wrote:
 Hi List,

 In a phone, the application works o, but in an android tablet (with android
 2.2) it does not use all screen, does anybody know how to fix that?
 I just see the application in the center of screen, and the rest of screen
 is black.

 Thanks a lot!

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


[android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Hari Edo

On Jan 26, 2:53 pm, Mark Murphy mmur...@commonsware.com wrote:
 I would recommend that developers depend as little as possible on
 explicitly using firmware-defined resources. If you need them, copy
 their values into your project. Or, at least have a value that you use
 as a fallback in case a firmware-defined resource is not available.

While I understand that sentiment, it's not practical.  Widgets
like Button constantly use built-in firmware-defined resources.
And I too have gotten TWO crash dumps where the .inflate() failed
unexpectedly, one trying to fetch Button's .9.png background, and
one trying to fetch a custom .9.png that I had put into my own app,
just as you suggest doing.

Now my first guess was that I was doing something wrong with a
timer, some accidental UI Thread/Worker Thread collision, so I
did revise that area of the code.  But if it wasn't that, then
I am not sure exactly how you should really respond to an
exception deep in .inflate() or .setContentView()... besides
calling .finish() and let the user wonder why the activity did
not appear.

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


[android-developers] Re: Hide each view after LayoutAnimation

2011-01-26 Thread Hari Edo

Are you setting fill-after to true on this animation?

On Jan 26, 4:58 pm, chrismanster chrismans...@gmail.com wrote:
 I have a GridView with several n Views in the Layout.  When one is
 clicked I want to reverse the LayoutAnimation to give the affect that
 everything is being removed.  Once the animation ends I do something,
 in this case start an activity.

 My problem is that once the LayoutAnimation on each view is complete
 it returns to its original position.  This doesn't give me the affect
 I am going for.  Is there anyway to keep the Views from returning
 until after the activity is started?

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


[android-developers] Re: android: a redundant UI syntax ?

2011-01-26 Thread Hari Edo


This is pretty common with XML systems with a lot of tags, especially
if they're meant to be expanded or mashed up.

If you create your own View types, you can extend the XML DTD to
include
your namespace.  Third-party libraries can add all of their features
with their own namespace.  It's the combination of these namespaces
and
DTD rules that allow the XML scanning process to find errors or
mistyped
parameter names.  No namespace, weaker protection from errors.

You might see the official reply in this bug tracker entry:
  http://code.google.com/p/android/issues/detail?id=7123

On Jan 24, 9:31 pm, Naren nare...@gmail.com wrote:
 Hi,
 I am a beginner to android development and wanted to ask a question to
 the developer community.

 What is the significance of specifying android: in front of every
 attribute.?

 be it view or layout, I know that I am already in android, then I feel
 its kind of redundant to prefix an attribute with android colon.

 TextView android:id=@+id/mastersname
 android:layout_width=wrap_content
                 android:layout_height=wrap_content android:text=Master of
 Computer Applications
 /TextView

 Cant this be expressed as follows?

 TextView id=@+id/mastersname layout_width=wrap_content
                 layout_height=wrap_content text=Master of Computer 
 Applications
 /TextView

 However the one reason that I can think of is specifying the package
 name (android:) as a prefix to resource will help to retrieve the
 resource easilly. But still, this need not be prefixed in every
 attribute. This should have been able to be specified in only one
 header or similar at the top.

 I think this might help in bringing down the code size and also for a
 quicker parsing.

 Let me know if I am missing something.

 Thank you

 Further,
 the attributes itself also can be very well shortened.
 ex:width as w height as h and layout_width as lw and
 layout_height as lh

 Thank you,
 Naren P

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


[android-developers] Re: Android Emulator-capture live images

2011-01-24 Thread Hari Edo

Read the documentation for the 'adb' tool.  Live pictures from your
phone or from your emulator.  No video.

On Jan 24, 9:51 am, jayavenkat jaia...@gmail.com wrote:
 Hi All,
          whether its possible to capture live picture from Android
 emulator 2.2 version,If so can anyone share your ideas and can you
 please list some related url

 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


[android-developers] Re: how to get home screen click event

2011-01-24 Thread Hari Edo

As far as I know, the Home button can't be overridden or hooked by
your application.  The button invokes an Intent, and the system looks
up what activity (or activities) are coded to respond to that Intent.

All your app will know is that it is asked to save instance state,
pause operation, and maybe get a notice that you're being destroyed.

On Jan 24, 4:40 am, Narendra Bagade bagadenaren...@gmail.com wrote:
 Hi,

 Does anyone know how to get home screen click event.
 --
 Regards,
 Narendra
 .

-- 
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


  1   2   >