Kishor Joshi

Ranch Hand
+ Follow
since Sep 24, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
0
Total given
25
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Greenhorn Scavenger Hunt

Recent posts by Kishor Joshi

Ok Just a question I have a URL and that will reply JSON data which contain both Bitmaps and Plain Text

I want to countinue download that data and not lost when device change orientation .which one I should use

1)Async Task

2)Download Manager

(If possible please explain why is one is better than other)
7 years ago
I don't want to use DownloadManager I will use AsyncTask to get JSON Data and then Parse It.
I want to preserve that Download not Android's built in DownloadManager
7 years ago
But as per this document on android developer site
https://developer.android.com/guide/topics/resources/runtime-changes.html


Handling the configuration change yourself can make it much more difficult to use alternative resources, because the system does not automatically apply them for you. This technique should be considered a last resort when you must avoid restarts due to a configuration change and is not recommended for most applications.



so I also want different layout in both mode(portrait and landscape).

let me explain my use case

I am designing an application which has a blogs Option in navigation drawer.So whethar the device is in landscpae or Portrait or user switch between these two modes ,data that is downloading from server using async task
should be countinue download.and once download is complete it should update blogs layout whethar it is in landscpae or portrait


So what solution I should use
1)Retain an Object during Configuration Change
2)Handling Configuration Changes yourself
7 years ago


That's most easily done by NOT having your app respond automatically to orientation changes, via the mechanism I mentioned in my previous post.



so where will be async task run in my case in main activity because I will replace fragment when orientation of device changes what I need to call something like setRetainInstance() and in onCreate() get
that instance object from fragment in activity and pass that object to another fragment of same selection item in navigation drawer.Is that what you are suggesting

7 years ago
my requirement is I want to show two different layout of same selected item from navigation drawer for both in landscape and portrait mode.And I also want to preserve network state and data download in one section.

How can I meet these changes
7 years ago
Hi there

My requirement is very simple I am using a navigation drawer in my app and I want to display different layout for same selected value on landscape and portrait orientation so far I think I need to handle these things

*Async Tasks
*Data in App

so what other things are needed to handle properly I am following Single activity and multiple fragments paradigm of navigation drawer
7 years ago
That I also think because so far I didn't find any way to extract attribute value from an HTML tag
7 years ago
Yes I am getting data from server like this

"This is my first text and it countinue  <a href="http://www.pmsas.pr.gov.br/wp-content/?id=coderanch-1z0-809&exam=www.domainname.com">This is Link</a>.This is my second text and this text countinue"

so what I am facing problem so far is getting href value from anchor tag


I have general question what is proper way to send HTML text as JSON to android?
7 years ago
Hi there

I am working in an application In which their is blogs section.blogs data is coming from server as a form of html tags
My question is so far I found two ways to parse HTML in android

1)Using JSoup
2)Using Html.formHtml()

which one to use and is there any other method to parse HTML in android?
7 years ago
but I want to generate a JSON from blog source data How can I do that?

blog can anchor and any html tag between text.
7 years ago
JSP
Hi all

I am designing a web application which has blog writing features like user can insert image,text,files at any place.

I have designed its UI problem I am facing is getting those value in server side and store them in same sequenance as they entered in textarea.

suppose In case information is in this order
video
text
image
text
text

so then I need to store that data in same order for further processing to create JSON

and same for others

How can I solve this?

7 years ago
JSP
Hi there

I am working on a travel industry product.
my requirement is client wants to make a website with hotel booking engine.from where customer can book hotel in different locations on different hotels.

problem I am facing is
how can I get realtime booking data from different hotels and connect them with my main booking engine?

8 years ago
yes I want to secure backends
8 years ago
JSP
Ok I have one more question realted to Rest Client Verfication


suppose my URL is like this

http://myIPAddress:myPort/myURL


and I am using this from Android App and IOS app or other clients

so this URL is hard coded in my web application
so anyone who renginner my code can get that URL and can make a application which communicate in exactly same way as my application

so this is security hole
so how can I verfiy a REST clients that request is comming from trusted source?
8 years ago
JSP


vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |