android-tabactivity

How to startActivity for Result from Activity under Group Activity Under Tabs?

风格不统一 提交于 2019-12-10 22:49:41
问题 I am developing an app in which I am using multiple Activity Under Tab Activity .I am Using this Tutorial. I want to get the Result from next Activity . How can i do it. I am not able to find it. I have read two or three Example such as this and this. But I am not able to find out how can I get the result. I also tried View view = getLocalActivityManager().startActivityForResult("Search", new Intent(this, WhatMenu.class). addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView(); But it only

Alternative of TabAcitivity

半城伤御伤魂 提交于 2019-12-10 21:03:30
问题 Hi Friends i want to create tab's in project. For making tab there is two way which i found 1) Extends the activity class with TabActivity class which is deprecated as i seem this is a easy way but don't why it is deprecated so i want to know whether any other class or any alternative for that class. 2) Create individual activity for every tab which lengthy but convenient way but still feels TabActivity is fast one. I was wondering if anybody could tell me, Thanks 回答1: For making tab there is

How to integrate tab host with zxing qr code scanner?

左心房为你撑大大i 提交于 2019-12-10 10:58:33
问题 I want to integrate zxing qr code scanner in my application which is having three tabs in my application. Currently when my one of the tab bar butto gets pressed at that time I am calling zxing qr code's scann activity but when ever its calling it is showing error like below. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.beepz/com.google.zxing.client.android.CaptureActivity}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is

ScrollView not working with Tabbed layout in Android

江枫思渺然 提交于 2019-12-08 11:39:37
问题 I am a newbie to Android and I am trying to use a ScrollView in the Tabbed layout. When I include the fragment layout to the tabbed view, the last element is not showing when we scroll down. I tried setting the height of the "LinearLayout" to "wrap_content" but still it is not working. Ideally I needed only one button, other button are added just for testing purposes. The same layout is working fine if I add it to an Activity and not a Tab view. Here is the layout which contains a ScrollView

How can I use fragments, now that TabActivity is deprecated?

巧了我就是萌 提交于 2019-12-08 07:17:16
问题 I have a main activity with a sort of dock at the bottom, with 4 icons: A, B, C, D. I already tried getting a response to a question here involving replacing a fragment within a given tab but did not get an answer. I began to think that maybe I was heading down a wrong path. So now I thought up a new way of implementing it which basically forces me to use the now deprecated TabActivity. The question is, why is it deprecated? My idea is to implement a system as such : TabActicity(TabActivity)

How can I use fragments, now that TabActivity is deprecated?

谁都会走 提交于 2019-12-06 16:08:27
I have a main activity with a sort of dock at the bottom, with 4 icons: A, B, C, D. I already tried getting a response to a question here involving replacing a fragment within a given tab but did not get an answer. I began to think that maybe I was heading down a wrong path. So now I thought up a new way of implementing it which basically forces me to use the now deprecated TabActivity. The question is, why is it deprecated? My idea is to implement a system as such : TabActicity(TabActivity) Tab A(FragmentActivity) -> Fragments Tab B(FragmentActivity) -> Fragments Tab C(FragmentActivity) ->

How to integrate tab host with zxing qr code scanner?

久未见 提交于 2019-12-06 13:43:18
I want to integrate zxing qr code scanner in my application which is having three tabs in my application. Currently when my one of the tab bar butto gets pressed at that time I am calling zxing qr code's scann activity but when ever its calling it is showing error like below. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.beepz/com.google.zxing.client.android.CaptureActivity}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' Rather my code is having both tab host control and I have instantiated tab host in

Android: TabActivity deprecated, use Fragments?

元气小坏坏 提交于 2019-12-05 18:51:28
问题 It appears that TabActivity is now deprecated, we need to use Fragments. I tried using a standard Activity but couldn't call getTabHost. So it appears i have to use Fragments. But i am a little confused how this would work. I understand that fragments are not activities so they are not in the manifest file? SO i presume i can't do startActivity on a fragment? Does anyone know of a good example explaining the tabHost and Fragments, all the examples and tutorials i have found are only using the

Why getActionBar() getting null value in TabHost from Android?

為{幸葍}努か 提交于 2019-12-05 01:18:17
问题 I am trying to write a code in Android , to hide the Actionbar during scroll down event. I have a grid 10x50. So when i am scrolling down the action bar should hide. I am getting scroll state result in the Log Cat correctly so , whenever i am applying for getActionBar().hide , i am getting NullPointerException error. My Code : package com.example.complexdatepicker; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; import

How to launch an activity with a specific tab?

耗尽温柔 提交于 2019-12-04 12:36:51
问题 I've gone through many examples, questions and tutorials but I've never seen an activity launch (launch a new intent) with a specific tab. I know that one can use .setCurrentTab to switch to a tab, but this can be done only from inside the parent activity tab. How about launching a specific tab contained in one activity from a different activity? Is it possible? If so, then how? In my code, on a standard activity launch user is shown the first tab, but I want him to go to the fourth tab in