[android-developers] WORKSHOP ON BUILDING MOBILE APP USING ANGULAR 5 & IONIC 3

2018-03-28 Thread chenna katagar


‘NBITS’ Offering  One Day WORKSHOP on *Building Mobile APP Using Angular 5 
& Ionic 3* 
 
this 
weekend by Industry Expert.

This is your opportunity to start learning Angular now and bring your web 
developments to the next level! This exciting workshop will start from 
scratch and walk you through how to develop Complete Mobile application on 
your own. We will dive into how to setup project, create and deploy  a 
Mobile app with *Angular 5 & Ionic 3*. At the end of the Workshop, you will 
walk away with a solid knowledge on both the technologies and be 
comfortable with starting your own app now.

*We will dive deep into:*

   - Getting Started with ionic framework
   - Building a simple app and installing required tool set.
   - Building App features with login social authentication like fb or 
   google.
   - Implementing real time chatting.
   - Usage of camera  and other featureswith in the app.
   - Interacting with cloud.
   - Interacting with Open source api’s
   - Deploying the app into Play store.

LIMITED SEATS AVAILABLE for the Workshop *!! Register NOW 

 
!!*

Registration Amount: *Rs 500/-*

Early Bird Offer Rs 300/- Expires On *27th March 2018*

Reserve your seat for the Workshop here: Click Here   
https://docs.google.com/forms/d/17zgGFZjMwS9TBlm3vbD53NoiInQ_DPr6baoPvXyI7n0/viewform?edit_requested=true

*Time : *Saturday, 31st March  @ 10:00 AM – 4:00 PM IST

*Venue :* NBITS, 101, B-Block, Balaji Towers ,Prime Hospital Lane, 
Maitrivanam, Ameerpet.

*Please utilize this Golden Opportunity and Also you can bring your 
friends.*

For more details, please feel free to call us @ *9701000415 | 9676465067.*

-- 
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/44ef95ad-f632-4fbc-af53-f8765f2237ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Streaming Video

2011-11-03 Thread Chenna Venkatasubbaiah
You can use RTSP to streaming your videos using VideoView and MediaPlayer
classes.

thanks
Chenna

On Thu, Nov 3, 2011 at 6:01 PM, Siva Prakash wrote:

> Hi
>
> I have list of videos in my storage server  from which I want to stream
> them to phone. What is the best way and protocol (Anything other that HTTP
> if ) to do this? I dont want to download them to local and show.
>
> 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




-- 
*Thanks*
*Chenna*

-- 
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 Will I dwevelop Bar code scanner for android ?

2011-11-01 Thread Chenna
You should have a barcode decoding engine to decode barcode from a
image frame. Camera API provides frames, which needs to be processed
for decoding barcoes. You can use Zxing  or RedLaser barcode scanners

http://code.google.com/p/zxing/

http://www.redlaser.com/

thanks
Chenna

On Nov 1, 2:24 pm, venugopal reddy  wrote:
> Hi friends,
>
> How Will I dwevelop Bar code scanner for android ?
>
> Please help me ...
>
> Give me the specifications also( i means which jars are reuires like
> that)
>
> 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 library project: how to overwrite an activity?

2011-10-26 Thread Chenna
Ok I got it.

Make your SecondActivity  as abstract class in yr library and create a
clientSecondActivity  class and extend SecondActivity

OverRide onCreate() method and add required views.

thanks
Chenna

On Oct 26, 7:47 pm, Francesco  wrote:
> Ok, thanks Chenna, for your help ..
>
> maybe i didn't make my self very clear, I'm very sorry...
>
> Setting the text resource from my client app to library was just an
> example.. I was actually trying to modify the Activity library
> behavior, overwriting it on the client app that is using the library
> (if possible).
> As it is very simple to redefine resources in a project using a
> library, I was wondering whether there is a way to redefine classes
> (in particular, activities) in a project, overwriting or extending the
> library ones...
>
> So, in my example, I was trying to overwrite SecondActivity defined in
> library, in order to modify its behavior ... in the example above,
> I've just changed text in TextView, but I could do more, for example I
> would implement a different functionality in activity project , or
> adding programmatically a new view ...
>
> thanks
> francesco
>
> On 26 Ott, 15:42, Chenna  wrote:
>
>
>
>
>
>
>
> > As per my understanding you have two activities in your library. So
> > you want to provide your library for another apps to use it. You want
> > to set text resource from your client app to your library activity. If
> > you want only resource. Create a class Configurator and declare a
> > static variable testdata and assign R.string.Textdata  this R is
> > belongs to your library. And use this variable to set in yr text view.
>
> >  When you create a Client app Activity get the string resource from
> > client app resource and assign Configurator.testData =
> > R.string.testdata this R is from client app.
>
> > thanks
> > Chenna
>
> > On Oct 26, 6:26 pm, Francesco  wrote:
>
> > > Thanks, Chenna, for your reply;
>
> > > but I have some doubts more... Could you better explain me , with
> > > sample code?
>
> > > You say: "Declare your activity as abstract class in library"  => ok,
> > > in this way (right?)
>
> > > **
> > > public abstract class SecondLibraryActivity extends Activity{
>
> > >          @Override
> > >             public void onCreate(Bundle savedInstanceState) {
> > >                 super.onCreate(savedInstanceState);
> > >                 setContentView(R.layout.second_activity);
>
> > >                 TextView t = (TextView) findViewById(R.id.textView);
>
> > >                 t.setText("Hello, i'm second activity on library!!!");
> > >             }}
>
> > > **
>
> > > then, "create a new activity in client apps using that library.": =>
> > > like this (right?)
>
> > > *
> > > public class SecondLibraryActivity extends Activity{
>
> > >          @Override
> > >             public void onCreate(Bundle savedInstanceState) {
> > >                 super.onCreate(savedInstanceState);
> > >                 setContentView(R.layout.second_activity);
>
> > >                 TextView t = (TextView) findViewById(R.id.textView);
>
> > >                 t.setText("Hello, i'm second activity on project!!!");
> > >             }
>
> > > }
>
> > > *
>
> > > now, in Manifest Project, which activity must I declare ???
>
> > > * if a refer to project activity :
> > > 
> > >          > > android:name="com.nolanofra.app.androidLibraryExample.AndroidLibraryExample
> > >  Activity">
> > >             
> > >                 
> > >                  > > android:name="android.intent.category.LAUNCHER" />
> > >             
> > >         
>
> > >                 
> > >         
>
> > >     
>
> > > then I have an arror in AndroidLibraryExampleActivity at line:
> > > Intent intent = new Intent(AndroidLibraryExampleActivity.this,
> > > SecondLibraryActivity.class);
>
> > > with ActivityNotFoundException;
>
> > > * if I refer to library activity:
>
> > >   > > android:name="com.nolanofr

[android-developers] Re: Android library project: how to overwrite an activity?

2011-10-26 Thread Chenna
As per my understanding you have two activities in your library. So
you want to provide your library for another apps to use it. You want
to set text resource from your client app to your library activity. If
you want only resource. Create a class Configurator and declare a
static variable testdata and assign R.string.Textdata  this R is
belongs to your library. And use this variable to set in yr text view.

 When you create a Client app Activity get the string resource from
client app resource and assign Configurator.testData =
R.string.testdata this R is from client app.

thanks
Chenna

On Oct 26, 6:26 pm, Francesco  wrote:
> Thanks, Chenna, for your reply;
>
> but I have some doubts more... Could you better explain me , with
> sample code?
>
> You say: "Declare your activity as abstract class in library"  => ok,
> in this way (right?)
>
> **
> public abstract class SecondLibraryActivity extends Activity{
>
>          @Override
>             public void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.second_activity);
>
>                 TextView t = (TextView) findViewById(R.id.textView);
>
>                 t.setText("Hello, i'm second activity on library!!!");
>             }}
>
> **
>
> then, "create a new activity in client apps using that library.": =>
> like this (right?)
>
> *
> public class SecondLibraryActivity extends Activity{
>
>          @Override
>             public void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.second_activity);
>
>                 TextView t = (TextView) findViewById(R.id.textView);
>
>                 t.setText("Hello, i'm second activity on project!!!");
>             }
>
> }
>
> *
>
> now, in Manifest Project, which activity must I declare ???
>
> * if a refer to project activity :
> 
>          android:name="com.nolanofra.app.androidLibraryExample.AndroidLibraryExample 
> Activity">
>             
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>         
>
>                 
>         
>
>     
>
> then I have an arror in AndroidLibraryExampleActivity at line:
> Intent intent = new Intent(AndroidLibraryExampleActivity.this,
> SecondLibraryActivity.class);
>
> with ActivityNotFoundException;
>
> * if I refer to library activity:
>
>   android:name="com.nolanofra.app.androidLibraryExample.AndroidLibraryExample 
> Activity">
>             
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>         
>
>                  android:name="com.nolanofra.app.androidLibraryExample.SecondLibraryActivity ">
>         
>
> then it will be run always code of library activity.
>
> I don' t understand when you say: "Declare a configuration class with
> static variables for your library. Assign resource ids with your local
> R.ids ..."
> Could you explain me with an example?
>
> Thanks for you patience,
> francesco
>
> On 26 Ott, 14:29, Chenna  wrote:
>
>
>
>
>
>
>
> > Declare your activity as abstract class in library and create a new
> > activity in client apps using that library.
>
> > Declare a configuration class with static variables for your library.
> > Assign resource ids with your local R.ids. If required you can allow
> > yr client apps can configure required resources for the same.
>
> > hope this helps.
>
> > thanks
> > Chenna
>
> > On Oct 26, 2:18 pm, Francesco  wrote:
>
> > > hi all,
>
> > > this is my situation: i have a library project, and a project
> > > referencing it. I know that is very simple to redefine any resource in
> > > my project, because in cases where a resource ID is defined in both
> > > the application and the library, the tools ensure that the resource
> > > declared in the application gets priority and that the resource in the
> > > library project is not compiled into the application .apk ( from
> > > android developers web site ).
>
> > > But: how can i do to redefine source (for example, override an
&

[android-developers] Marquee Text on rectangle with canvas

2011-10-26 Thread Chenna
Hi

I have a surface view and i am drawing some rectangles on surface view
with canvas.drawrect().. Further, I want to add marquee text on
rectangle. Please let me know how i can add marquee text on rectangle
programatically with canvas.

thanks
Chenna

-- 
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 library project: how to overwrite an activity?

2011-10-26 Thread Chenna
Declare your activity as abstract class in library and create a new
activity in client apps using that library.

Declare a configuration class with static variables for your library.
Assign resource ids with your local R.ids. If required you can allow
yr client apps can configure required resources for the same.

hope this helps.

thanks
Chenna

On Oct 26, 2:18 pm, Francesco  wrote:
> hi all,
>
> this is my situation: i have a library project, and a project
> referencing it. I know that is very simple to redefine any resource in
> my project, because in cases where a resource ID is defined in both
> the application and the library, the tools ensure that the resource
> declared in the application gets priority and that the resource in the
> library project is not compiled into the application .apk ( from
> android developers web site ).
>
> But: how can i do to redefine source (for example, override an
> activity) in my project?
>
> I have implemented some code samples, to better explain my problem:
>
> In my library project, i have two activities:
>
> *AndroidLibraryExampleActivity:
> 
>
> package com.nolanofra.app.androidLibraryExample;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
>
> public class AndroidLibraryExampleActivity extends Activity {
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
>     super.onCreate(savedInstanceState);
>     setContentView(R.layout.main);
>
> }
>
> public void onSecondActivityGo (View v)
> {
>     Intent intent = new Intent(AndroidLibraryExampleActivity.this,
> SecondLibraryActivity.class);
>
>     startActivity(intent);}
>
> *** 
> ***
>
>  and SecondLibraryActivity:
> **
>
> package com.nolanofra.app.androidLibraryExample;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class SecondLibraryActivity extends Activity{
>
>      @Override
>         public void onCreate(Bundle savedInstanceState) {
>             super.onCreate(savedInstanceState);
>             setContentView(R.layout.second_activity);
>
>             TextView t = (TextView) findViewById(R.id.textView);
>
>             t.setText("Hello, i'm second activity on library!!!");
>         }}
>
> *** 
> ***
>
> Manifest of library project is:
> 
> 
> http://schemas.android.com/apk/res/android";
>       package="com.nolanofra.app.androidLibraryExample"
>       android:versionCode="1"
>       android:versionName="1.0">
>     
>
>     
>                            android:label="@string/app_name">
>         
>
>                            android:label="@string/app_name">
>         
>
>     
> 
> *** 
> **
>
> In my project referencing library, I want to redefine
> SecondLibraryActivity  in order to change text displayed in text view,
> for example I would like to do some of this:
>
> package com.nolanofra.app.sampleProjectUsingLibrary;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> import com.nolanofra.app.androidLibraryExample.R;
>
> public class SecondLibraryActivity extends Activity{
>
>      @Override
>         public void onCreate(Bundle savedInstanceState) {
>             super.onCreate(savedInstanceState);
>             setContentView(R.layout.second_activity);
>
>             TextView t = (TextView) findViewById(R.id.textView);
>
>             t.setText("Hello, i'm second activity on project!!!");
>         }
>
> }
>
> *** 
> 
>
> Android Manifest on project is:
> **
>
> 
> http://schemas.android.com/apk/res/android";
>       package="com.nolanofra.app.sampleProjectUsingLibrary"
>       android:versionCode="1"
>       android:versionName="1.0">
>     
>
>     
>          android:name="com.nolanofra.app.androidLibraryExample.AndroidLibraryExample 
> Activity&

[android-developers] Re: Display Video view in a curved shape

2011-10-18 Thread Chenna
Thanks Subin.

I tried to create a shape with rectangle with rounded corners  in xml
and added this as a background to VideoView. But did not displayed
video.

How http://qik.com/ created videoViews?

thanks
Chenna

On Oct 18, 12:43 pm, Subin Sebastian  wrote:
> Chenna,
>
> Did you try creating a parent view with rounded corners for the video view?
>
>
>
>
>
>
>
>
>
> On Tue, Oct 18, 2011 at 6:17 AM, Chenna  wrote:
> > Hi
>
> > I am doing a live video stream and displaying in video view. But this
> > video view is in rectangle. But i want to display video in a curved
> > shape. How to draw a video view into a required shape.
>
> > thanks
> > Chenna
>
> > --
> > 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
>
> --
> Subin 
> Sebastianwww.nintriva.comhttp://in.linkedin.com/in/subinsebastienhttp://plus.google.com/subin<https://plus.google.com/118262481642737404812>http://facebook.com/subinsebastien

-- 
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] Display Video view in a curved shape

2011-10-17 Thread Chenna
Hi

I am doing a live video stream and displaying in video view. But this
video view is in rectangle. But i want to display video in a curved
shape. How to draw a video view into a required shape.

thanks
Chenna

-- 
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] Button/ImageButton Rotation Not working

2011-10-11 Thread Chenna
Hi

I am trying to create a Button/ImageButton and rotating to required
degrees. I can able to rotate ImageView but same not working for
Button/ImageButton

ImageButton homeButton = new ImageButton (context);
homeButton.setOnClickListener(homeButtonListener);

 
homeButton.setScaleType(android.widget.ImageView.ScaleType.MATRIX);
 
homeButton.setBackgroundResource(ScannerConfiguration.homeButtonResource); //
0x7f020001

matrix = new Matrix();
matrix.postRotate(270F);
//matrix.preTranslate(-((float)20 * density), -(height -10));
matrix.postTranslate((float)20 * density, height -10);

homeButton.setImageMatrix(matrix);

Please let me know anything needs to be done.

thanks
Chenna

-- 
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: LinearLayout Rotation Issue

2011-10-05 Thread Chenna
any one help me this?

On Oct 4, 5:22 pm, Chenna  wrote:
> Hi
>
> I am forced to fix my CameraPrview Activity in landscape. Now i am
> adding buttons on top of surface with linear layout and rotating the
> same with Animation. After rotating my buttons are not clickable.
> before rotation buttons are clickable.
>
> i have re/anim/rotation.xml
> http://schemas.android.com/apk/res/
> android"
> android:fromDegrees="0"
> android:toDegrees="-90"
> android:pivotX="50%"
> android:pivotY="50%"
>
> android:duration="100"
> android:startOffset="0"
> android:fillAfter="true">
>  
>
> Animation Code
>
> RotateAnimation rotateAnim =
> (RotateAnimation)AnimationUtils.loadAnimation(this, R.anim.rotation);
>          LayoutAnimationController animController = new
> LayoutAnimationController(rotateAnim, 0);
>          //rotateAnim.setFillEnabled(true);
>          //rotateAnim.setFillAfter(true);
>         panel.setAnimation(rotateAnim);
>
> Where panel is LinearLayout(vertical) and it has two
> LinearLayout(horizontal) with couple of buttons
>
> I have two issues.
> 1. After rotation buttons are not clickable.
> 2. I dont know what values to provide in rotate xml to bring all
> layout to top of the portrait. Now i am getting at center.
>
> thanks
> Chenna

-- 
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] LinearLayout Rotation Issue

2011-10-04 Thread Chenna
Hi

I am forced to fix my CameraPrview Activity in landscape. Now i am
adding buttons on top of surface with linear layout and rotating the
same with Animation. After rotating my buttons are not clickable.
before rotation buttons are clickable.

i have re/anim/rotation.xml
http://schemas.android.com/apk/res/
android"
android:fromDegrees="0"
android:toDegrees="-90"
android:pivotX="50%"
android:pivotY="50%"

android:duration="100"
android:startOffset="0"
android:fillAfter="true">
 

Animation Code

RotateAnimation rotateAnim =
(RotateAnimation)AnimationUtils.loadAnimation(this, R.anim.rotation);
 LayoutAnimationController animController = new
LayoutAnimationController(rotateAnim, 0);
 //rotateAnim.setFillEnabled(true);
 //rotateAnim.setFillAfter(true);
panel.setAnimation(rotateAnim);

Where panel is LinearLayout(vertical) and it has two
LinearLayout(horizontal) with couple of buttons

I have two issues.
1. After rotation buttons are not clickable.
2. I dont know what values to provide in rotate xml to bring all
layout to top of the portrait. Now i am getting at center.

thanks
Chenna

-- 
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: Camera Orientation Issue

2011-10-03 Thread Chenna Venkatasubbaiah
Thanks for your clarification.

Now I am planning to support from 2.2 onwards. I have fixed my activity in
landscape and adding buttons on top of surface view and rotating them. But
all buttons are giving button feeling. On surface view buttons are appearing
as just rectangle and onTouchEvents are working.

How t overlay button in portrait mode?

thanks
Chenna

On Tue, Oct 4, 2011 at 2:50 AM, Adam Ratana  wrote:

> I may be mistaken, but for 2.1 specifically, most developers lock the
> camera to landscape for maximum compatibility across all phones.  This is
> true for the stock camera app, too.
>
> I looked into this in the beginning of the year and most developers I had
> spoken to locked the camera preview in landscape.  It also seems the case
> with all of the camera apps that are out there that I've seen for 2.1.
>
> For 2.2 (major camera API updates), and up, I'm not sure what your options
> are.
>
>
> On Sunday, October 2, 2011 10:07:08 PM UTC-4, Chenna wrote:
>>
>> Hi
>>
>> I want to keep my camera in middle and place a top button bar and bottom
>> button bar in my activity. I want to fix the activity in portrait mode. I
>> need a support from 2.1 onwards. But each version is behaving differently.
>> The method setDisplayOrientation() helps to display camera view normally
>> instead of tilded view.
>>
>> I am forced to use Camera in landscape mode. I added in my manifest
>> orientation as landscape. In this scenario everything works fine. If i
>> change t portrait to fix my activity in always portrait the camera i get
>> camera in center properly but all my top toolbar and bottom toolbar
>> displayed in landscape.
>>
>> I want to use camera in landscape and place buttons in portrait. is there
>> a way i can acheive this?
>>
>> --
>> *Thanks*
>> *Chenna*
>>
>>  --
> 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
>



-- 
*Thanks*
*Chenna*

-- 
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] Camera Orientation Issue

2011-10-03 Thread Chenna
Hi
I want to keep my camera in middle and place a top button bar and
bottom
button bar in my activity. I want to fix the activity in portrait
mode. I
need a support from 2.1 onwards. But each version is behaving
differently.
The method setDisplayOrientation() helps to display camera view
normally
instead of tilded view.
I am forced to use Camera in landscape mode. I added in my manifest
orientation as landscape. In this scenario everything works fine. If
i
change t portrait to fix my activity in always portrait the camera i
get
camera in center properly but all my top toolbar and bottom toolbar
displayed in landscape.
I want to use camera in landscape and place buttons in portrait. is
there a
way i can acheive this?
--
*Thanks*
*Chenna*

-- 
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] Getting ActivityResult on click of a Button

2011-10-03 Thread Chenna Venkatasubbaiah
Thanks for your clarification.

I will explain you little more details.

I have started a launched MainActivity and started a SubActivity for Result.
In subactivity i am scanning barcode of items from barcode app and adding
items in collection. I have to return the scanned items after clicking done
button in subactivity.

I am creating a Message object and returning message.sendToTarget()

is it the right way I am doing?

thanks
Chenna

On Mon, Oct 3, 2011 at 5:59 PM, Mark Murphy  wrote:

> On Mon, Oct 3, 2011 at 7:41 AM, Chenna  wrote:
> > I have started a activity B from a Activity A by calling
> > startActivityForResult(A,B)
> >
> > The activity B is collecting objects in every 1 min and adding into a
> > List. I have a DONE button on my activity A. I want to get result
> > whenever DONE button clicked.
>
> Since Activity B is on the screen, the user cannot click a button in
> Activity A. If the button were in Activity B, you could call
> setResult() and finish() to return control to Activity A with a result
> value.
>
> The point behind startActivityForResult() is for you to display an
> activity, the user to make a choice, and for that choice to be
> returned to the initial activity. It is not designed for "collecting
> objects every 1 min and adding into a List".
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android 3.1 Programming 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




-- 
*Thanks*
*Chenna*

-- 
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] Getting ActivityResult on click of a Button

2011-10-03 Thread Chenna
Hi

I have started a activity B from a Activity A by calling
startActivityForResult(A,B)

The activity B is collecting objects in every 1 min and adding into a
List. I have a DONE button on my activity A. I want to get result
whenever DONE button clicked.

Please let me know the best way.

thanks
Chenna

-- 
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] Camera Orientation Issue

2011-10-03 Thread Chenna
Hi
I want to keep my camera in middle and place a top button bar and
bottom
button bar in my activity. I want to fix the activity in portrait
mode. I
need a support from 2.1 onwards. But each version is behaving
differently.
The method setDisplayOrientation() helps to display camera view
normally
instead of tilded view.
I am forced to use Camera in landscape mode. I added in my manifest
orientation as landscape. In this scenario everything works fine. If
i
change t portrait to fix my activity in always portrait the camera i
get
camera in center properly but all my top toolbar and bottom toolbar
displayed in landscape.
I want to use camera in landscape and place buttons in portrait. is
there a
way i can acheive this?
--
*Thanks*
*Chenna*

-- 
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] Camera Orientation Issue

2011-10-02 Thread Chenna Venkatasubbaiah
Hi

I want to keep my camera in middle and place a top button bar and bottom
button bar in my activity. I want to fix the activity in portrait mode. I
need a support from 2.1 onwards. But each version is behaving differently.
The method setDisplayOrientation() helps to display camera view normally
instead of tilded view.

I am forced to use Camera in landscape mode. I added in my manifest
orientation as landscape. In this scenario everything works fine. If i
change t portrait to fix my activity in always portrait the camera i get
camera in center properly but all my top toolbar and bottom toolbar
displayed in landscape.

I want to use camera in landscape and place buttons in portrait. is there a
way i can acheive this?

-- 
*Thanks*
*Chenna*

-- 
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] Problem with Camera images

2011-09-26 Thread Chenna
Hi

I am developing a App for enterprise business, My business app needs
in portrait mode. I have top and bottom tool bar and i need a camera
in middle frame. I have created a nested LinearLayout for top toobar
and bottom tool bar. And added FrameLayout in middle. Created a
SurfaceView for camera and drawn a rectangle in middle for view a
barcode for scanning. My main activity is in Portrait mode. using
camera.setDisplayOrientation(90) could able to rotate the view of a
picture to portrait mode. When i am getting the barcode image from
camera it is providing in landscape picture. is there a way to tell
camera to provide portrait image.

actually whatever we are seeing in proper image in portrait mode is
not getting the sme image. we are seeing the linear barcode in
horizantal but camera is providing vertical. Due to this i am getting
partial barcode image instead of full barcode. Bcoz i am making a
rectangle view in portrait mode to get the barcode frame.

Pl guide me.

thanks
Chenna

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